|
@@ -7,6 +7,7 @@
|
|
|
<el-divider direction="vertical"></el-divider>
|
|
|
<span v-show="showUpdtTime"> <el-date-picker v-model="updtTime" size="small" placeholder="请选择更新日期" style="width: 160px"></el-date-picker> </span>
|
|
|
<el-button size="small" type="primary" icon="Download" :disabled="!cataType" @click="beforeDownload">从中心获取</el-button>
|
|
|
+ <el-button size="small" type="primary" icon="Collection" v-show="cataType === '1319'" @click="saveSelfpayCatlg">下载到HIS</el-button>
|
|
|
<span v-show="!showUpdtTime && cataType !== '1901'">
|
|
|
<el-button size="small" type="primary" icon="Download" :disabled="!cataType" @click="fetchData">从医院获取</el-button>
|
|
|
</span>
|
|
@@ -194,7 +195,7 @@ import { getCatalogues } from '@/api/medical-insurance/si-dict'
|
|
|
import { executeDownload, queryFromHis } from '@/api/medical-insurance/si-download'
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
import store from '@/store'
|
|
|
-import { siDictTypes } from '@/data/index'
|
|
|
+import { siDictTypes } from '@/data'
|
|
|
import { formatDatetime } from '@/utils/date'
|
|
|
export default {
|
|
|
setup() {
|
|
@@ -258,6 +259,28 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ const saveSelfpayCatlg = () => {
|
|
|
+ if (!updtTime.value) {
|
|
|
+ ElMessage({
|
|
|
+ message: '请选择更新日期!',
|
|
|
+ type: 'warning',
|
|
|
+ duration: 2000,
|
|
|
+ showClose: true,
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ const param = {
|
|
|
+ code: '1319_save',
|
|
|
+ updtTime: formatDatetime(updtTime.value),
|
|
|
+ }
|
|
|
+ executeDownload(param).then((res) => {
|
|
|
+ if (showUpdtTime.value) {
|
|
|
+ data.totalSize = res.totalSize
|
|
|
+ data.list = res.list
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
const qrySiDicts = () => {
|
|
|
if (!dictType.value) {
|
|
|
ElMessage({
|
|
@@ -328,6 +351,7 @@ export default {
|
|
|
updtTime,
|
|
|
showUpdtTime,
|
|
|
beforeDownload,
|
|
|
+ saveSelfpayCatlg,
|
|
|
data,
|
|
|
pageSize,
|
|
|
currentPage,
|