wyq 3 سال پیش
والد
کامیت
38eb8e026b

+ 29 - 8
src/components/cdssManage/dept/DeptManage.vue

@@ -524,23 +524,44 @@ export default {
       //   }
       // });
       this.importDeptRecord(formData, header)
+      this.getDataList();
       //解决上传相同文件不触发change
       let inp = document.getElementById('upFile');
       inp.value = '';
     },
     importDeptRecord(formData, header) {
+      let that = this
       api.importDeptRecord(formData, header).then(res => {
         if (res.headers['content-disposition']) {
           this.downloadUrl(res);
         } else {
-          this.$alert(`导入成功`, '提示', {
-            confirmButtonText: '确定',
-            // cancelButtonText: '取消',
-            // cancelButtonClass: 'cancelSure',
-            // confirmButtonClass: 'sure',
-            // customClass: 'exportConfirm',
-            type: 'success'
-          });
+          let r = new FileReader();
+          r.onload = function() {
+            const code = JSON.parse(this.result);
+            if (code.code === '00020007') {
+              that
+                .$alert(`${code.msg}`, '提示', {
+                  confirmButtonText: '确定',
+                  // cancelButtonText: '取消',
+                  // cancelButtonClass: 'cancelSure',
+                  // confirmButtonClass: 'sure',
+                  // customClass: 'exportConfirm',
+                  type: 'warning'
+                })
+                .then(() => {})
+                .catch(() => {});
+            } else {
+              that.$alert(`导入成功`, '提示', {
+                confirmButtonText: '确定',
+                // cancelButtonText: '取消',
+                // cancelButtonClass: 'cancelSure',
+                // confirmButtonClass: 'sure',
+                // customClass: 'exportConfirm',
+                type: 'success'
+              });
+            }
+          };
+          r.readAsText(res.data);
         }
         // if ((res.data.code === '00020007')) {
         //   this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {

+ 46 - 12
src/components/cdssManage/disease/Disease.vue

@@ -62,7 +62,9 @@
         </el-table-column>
         <el-table-column :resizable="false" prop="operate" label="标准术语状态">
           <template slot-scope="scope">
-            <span v-if="scope.row.uniqueName && scope.row.uniqueName!=''">{{scope.row.status == 0?'禁用':'启用'}}</span>
+            <span
+              v-if="scope.row.uniqueName && scope.row.uniqueName!=''"
+            >{{scope.row.status == 0?'禁用':'启用'}}</span>
           </template>
         </el-table-column>
         <el-table-column :resizable="false" prop="operate" label="操作">
@@ -122,7 +124,7 @@ export default {
       statusList: [
         { id: '', name: '全部' },
         { id: 1, name: '启用' },
-        { id: 0, name: '禁用' },
+        { id: 0, name: '禁用' }
       ],
       list: [],
       searched: false,
@@ -285,7 +287,7 @@ export default {
           (data && data.hospitalId) || localStorage.getItem('hospitalId'),
         type: 4,
         isMatch: this.filter.match,
-        status: this.filter.status,
+        status: this.filter.status
       };
       return param;
     },
@@ -450,7 +452,6 @@ export default {
     // 点击导入
     importPage(e) {
       let inp = document.getElementById('upFile');
-
       inp.click();
     },
     // 导入数据
@@ -508,24 +509,57 @@ export default {
       //   }
       // });
       this.importDiseaseRecord(formData, header);
+      this.getDataList();
       //解决上传相同文件不触发change
       let inp = document.getElementById('upFile');
       inp.value = '';
     },
     importDiseaseRecord(formData, header) {
+      let that = this
       api.importDiseaseRecord(formData, header).then(res => {
         if (res.headers['content-disposition']) {
           this.downloadUrl(res);
         } else {
-          this.$alert(`导入成功`, '提示', {
-            confirmButtonText: '确定',
-            // cancelButtonText: '取消',
-            // cancelButtonClass: 'cancelSure',
-            // confirmButtonClass: 'sure',
-            // customClass: 'exportConfirm',
-            type: 'success'
-          });
+          let r = new FileReader();
+          r.onload = function() {
+            const code = JSON.parse(this.result);
+            if (code.code === '00020007') {
+              that
+                .$alert(`${code.msg}`, '提示', {
+                  confirmButtonText: '确定',
+                  // cancelButtonText: '取消',
+                  // cancelButtonClass: 'cancelSure',
+                  // confirmButtonClass: 'sure',
+                  // customClass: 'exportConfirm',
+                  type: 'warning'
+                })
+                .then(() => {})
+                .catch(() => {});
+            } else {
+              that.$alert(`导入成功`, '提示', {
+                confirmButtonText: '确定',
+                // cancelButtonText: '取消',
+                // cancelButtonClass: 'cancelSure',
+                // confirmButtonClass: 'sure',
+                // customClass: 'exportConfirm',
+                type: 'success'
+              });
+            }
+          };
+          r.readAsText(res.data);
         }
+        // if (res.headers['content-disposition']) {
+        //   this.downloadUrl(res);
+        // } else {
+        //   this.$alert(`导入成功`, '提示', {
+        //     confirmButtonText: '确定',
+        //     // cancelButtonText: '取消',
+        //     // cancelButtonClass: 'cancelSure',
+        //     // confirmButtonClass: 'sure',
+        //     // customClass: 'exportConfirm',
+        //     type: 'success'
+        //   });
+        // }
         // if (res.data.code === '00020007') {
         //   this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {
         //     confirmButtonText: '确定',

+ 48 - 9
src/components/cdssManage/drug/DrugManage.vue

@@ -35,6 +35,16 @@
               ></el-option>
             </el-select>
           </el-form-item>
+          <el-form-item label="剂型术语状态:" class="selectMedicine">
+            <el-select size="mini" v-model="filter.formStatus" placeholder="请选择" clearable>
+              <el-option
+                v-for="item in formstatusList"
+                :label="item.name"
+                :value="item.id"
+                :key="item.id"
+              ></el-option>
+            </el-select>
+          </el-form-item>
           <el-form-item label="医院药品名称:">
             <el-input size="mini" v-model="filter.hisName" placeholder="请输入" clearable></el-input>
           </el-form-item>
@@ -130,13 +140,20 @@ export default {
       filter: {
         hisName: '', // 医院诊断名称
         uniqueName: '', //标准诊断名称
-        match: ''
+        match: '',
+        status:'',
+        formStatus:''
       },
       statusList: [
         { id: '', name: '全部' },
         { id: 1, name: '启用' },
         { id: 0, name: '禁用' },
       ],
+      formstatusList: [
+        { id: '', name: '全部' },
+        { id: 1, name: '启用' },
+        { id: 0, name: '禁用' },
+      ],
       currentPage: 1,
       pageSize: config.pageSize,
       pageSizeArr: config.pageSizeArr,
@@ -289,6 +306,7 @@ export default {
         type: 5,
         isMatch: this.filter.match,
         status: this.filter.status,
+        formStatus: this.filter.formStatus,
       };
       return param;
     },
@@ -527,23 +545,44 @@ export default {
       //   }
       // });
       this.importDrugRecord(formData, header)
+      this.getDataList();
       //解决上传相同文件不触发change
       let inp = document.getElementById('upFile');
       inp.value = '';
     },
     importDrugRecord(formData, header) {
+      let taht = this
       api.importDrugRecord(formData, header).then(res => {
         if (res.headers['content-disposition']) {
           this.downloadUrl(res);
         } else {
-          this.$alert(`导入成功`, '提示', {
-            confirmButtonText: '确定',
-            // cancelButtonText: '取消',
-            // cancelButtonClass: 'cancelSure',
-            // confirmButtonClass: 'sure',
-            // customClass: 'exportConfirm',
-            type: 'success'
-          });
+          let r = new FileReader();
+          r.onload = function() {
+            const code = JSON.parse(this.result);
+            if (code.code === '00020007') {
+              that
+                .$alert(`${code.msg}`, '提示', {
+                  confirmButtonText: '确定',
+                  // cancelButtonText: '取消',
+                  // cancelButtonClass: 'cancelSure',
+                  // confirmButtonClass: 'sure',
+                  // customClass: 'exportConfirm',
+                  type: 'warning'
+                })
+                .then(() => {})
+                .catch(() => {});
+            } else {
+              that.$alert(`导入成功`, '提示', {
+                confirmButtonText: '确定',
+                // cancelButtonText: '取消',
+                // cancelButtonClass: 'cancelSure',
+                // confirmButtonClass: 'sure',
+                // customClass: 'exportConfirm',
+                type: 'success'
+              });
+            }
+          };
+          r.readAsText(res.data);
         }
         // if ((res.data.code === '00020007')) {
         //   this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {

+ 29 - 8
src/components/cdssManage/fusion/Fusion.vue

@@ -513,23 +513,44 @@ export default {
       //   }
       // });
       this.importFusionRecord(formData,header)
+      this.getDataList();
       //解决上传相同文件不触发change
       let inp = document.getElementById('upFile');
       inp.value = '';
     },
     importFusionRecord(formData,header){
+      let that = this
       api.importFusionRecord(formData, header).then(res => {
         if (res.headers['content-disposition']) {
           this.downloadUrl(res);
         } else {
-          this.$alert(`导入成功`, '提示', {
-            confirmButtonText: '确定',
-            // cancelButtonText: '取消',
-            // cancelButtonClass: 'cancelSure',
-            // confirmButtonClass: 'sure',
-            // customClass: 'exportConfirm',
-            type: 'success'
-          });
+          let r = new FileReader();
+          r.onload = function() {
+            const code = JSON.parse(this.result);
+            if (code.code === '00020007') {
+              that
+                .$alert(`${code.msg}`, '提示', {
+                  confirmButtonText: '确定',
+                  // cancelButtonText: '取消',
+                  // cancelButtonClass: 'cancelSure',
+                  // confirmButtonClass: 'sure',
+                  // customClass: 'exportConfirm',
+                  type: 'warning'
+                })
+                .then(() => {})
+                .catch(() => {});
+            } else {
+              that.$alert(`导入成功`, '提示', {
+                confirmButtonText: '确定',
+                // cancelButtonText: '取消',
+                // cancelButtonClass: 'cancelSure',
+                // confirmButtonClass: 'sure',
+                // customClass: 'exportConfirm',
+                type: 'success'
+              });
+            }
+          };
+          r.readAsText(res.data);
         }
         // if ((res.data.code === '00020007')) {
         //   this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {

+ 29 - 8
src/components/cdssManage/lis/Lis.vue

@@ -528,23 +528,44 @@ export default {
       //   }
       // });
       this.importLisRecord(formData, header)
+      this.getDataList();
       //解决上传相同文件不触发change
       let inp = document.getElementById('upFile');
       inp.value = '';
     },
     importLisRecord(formData, header) {
+      let that = this
       api.importLisRecord(formData, header).then(res => {
         if (res.headers['content-disposition']) {
           this.downloadUrl(res);
         } else {
-          this.$alert(`导入成功`, '提示', {
-            confirmButtonText: '确定',
-            // cancelButtonText: '取消',
-            // cancelButtonClass: 'cancelSure',
-            // confirmButtonClass: 'sure',
-            // customClass: 'exportConfirm',
-            type: 'success'
-          });
+          let r = new FileReader();
+          r.onload = function() {
+            const code = JSON.parse(this.result);
+            if (code.code === '00020007') {
+              that
+                .$alert(`${code.msg}`, '提示', {
+                  confirmButtonText: '确定',
+                  // cancelButtonText: '取消',
+                  // cancelButtonClass: 'cancelSure',
+                  // confirmButtonClass: 'sure',
+                  // customClass: 'exportConfirm',
+                  type: 'warning'
+                })
+                .then(() => {})
+                .catch(() => {});
+            } else {
+              that.$alert(`导入成功`, '提示', {
+                confirmButtonText: '确定',
+                // cancelButtonText: '取消',
+                // cancelButtonClass: 'cancelSure',
+                // confirmButtonClass: 'sure',
+                // customClass: 'exportConfirm',
+                type: 'success'
+              });
+            }
+          };
+          r.readAsText(res.data);
         }
         // if ((res.data.code === '00020007')) {
         //   this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {

+ 29 - 8
src/components/cdssManage/nursing/nursing.vue

@@ -485,6 +485,7 @@ export default {
       };
       // this.uploadInfo = '导入中...';
       this.importNurseRecord(formData, header)
+      this.getDataList();
       //解决上传相同文件不触发change
       let inp = document.getElementById('upFile');
       inp.value = '';
@@ -524,18 +525,38 @@ export default {
       // });
     },
     importNurseRecord(formData, header) {
+      let that = this
       api.importNurseRecord(formData, header).then(res => {
         if (res.headers['content-disposition']) {
           this.downloadUrl(res);
         } else {
-          this.$alert(`导入成功`, '提示', {
-            confirmButtonText: '确定',
-            // cancelButtonText: '取消',
-            // cancelButtonClass: 'cancelSure',
-            // confirmButtonClass: 'sure',
-            // customClass: 'exportConfirm',
-            type: 'success'
-          });
+          let r = new FileReader();
+          r.onload = function() {
+            const code = JSON.parse(this.result);
+            if (code.code === '00020007') {
+              that
+                .$alert(`${code.msg}`, '提示', {
+                  confirmButtonText: '确定',
+                  // cancelButtonText: '取消',
+                  // cancelButtonClass: 'cancelSure',
+                  // confirmButtonClass: 'sure',
+                  // customClass: 'exportConfirm',
+                  type: 'warning'
+                })
+                .then(() => {})
+                .catch(() => {});
+            } else {
+              that.$alert(`导入成功`, '提示', {
+                confirmButtonText: '确定',
+                // cancelButtonText: '取消',
+                // cancelButtonClass: 'cancelSure',
+                // confirmButtonClass: 'sure',
+                // customClass: 'exportConfirm',
+                type: 'success'
+              });
+            }
+          };
+          r.readAsText(res.data);
         }
         // if ((res.data.code === '00020007')) {
         //   this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {

+ 29 - 8
src/components/cdssManage/operation/Operation.vue

@@ -527,23 +527,44 @@ export default {
       //   }
       // });
       this.importOperationRecord(formData, header)
+      this.getDataList();
       //解决上传相同文件不触发change
       let inp = document.getElementById('upFile');
       inp.value = '';
     },
     importOperationRecord(formData, header) {
+      let that = this
       api.importOperationRecord(formData, header).then(res => {
         if (res.headers['content-disposition']) {
           this.downloadUrl(res);
         } else {
-          this.$alert(`导入成功`, '提示', {
-            confirmButtonText: '确定',
-            // cancelButtonText: '取消',
-            // cancelButtonClass: 'cancelSure',
-            // confirmButtonClass: 'sure',
-            // customClass: 'exportConfirm',
-            type: 'success'
-          });
+          let r = new FileReader();
+          r.onload = function() {
+            const code = JSON.parse(this.result);
+            if (code.code === '00020007') {
+              that
+                .$alert(`${code.msg}`, '提示', {
+                  confirmButtonText: '确定',
+                  // cancelButtonText: '取消',
+                  // cancelButtonClass: 'cancelSure',
+                  // confirmButtonClass: 'sure',
+                  // customClass: 'exportConfirm',
+                  type: 'warning'
+                })
+                .then(() => {})
+                .catch(() => {});
+            } else {
+              that.$alert(`导入成功`, '提示', {
+                confirmButtonText: '确定',
+                // cancelButtonText: '取消',
+                // cancelButtonClass: 'cancelSure',
+                // confirmButtonClass: 'sure',
+                // customClass: 'exportConfirm',
+                type: 'success'
+              });
+            }
+          };
+          r.readAsText(res.data);
         }
         // if ((res.data.code === '00020007')) {
         //   this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {

+ 29 - 8
src/components/cdssManage/pacs/Pacs.vue

@@ -519,23 +519,44 @@ export default {
       //   }
       // });
       this.importPacsRecord(formData, header)
+      this.getDataList();
       //解决上传相同文件不触发change
       let inp = document.getElementById('upFile');
       inp.value = '';
     },
     importPacsRecord(formData, header) {
+      let that = this
       api.importPacsRecord(formData, header).then(res => {
         if (res.headers['content-disposition']) {
           this.downloadUrl(res);
         } else {
-          this.$alert(`导入成功`, '提示', {
-            confirmButtonText: '确定',
-            // cancelButtonText: '取消',
-            // cancelButtonClass: 'cancelSure',
-            // confirmButtonClass: 'sure',
-            // customClass: 'exportConfirm',
-            type: 'success'
-          });
+          let r = new FileReader();
+          r.onload = function() {
+            const code = JSON.parse(this.result);
+            if (code.code === '00020007') {
+              that
+                .$alert(`${code.msg}`, '提示', {
+                  confirmButtonText: '确定',
+                  // cancelButtonText: '取消',
+                  // cancelButtonClass: 'cancelSure',
+                  // confirmButtonClass: 'sure',
+                  // customClass: 'exportConfirm',
+                  type: 'warning'
+                })
+                .then(() => {})
+                .catch(() => {});
+            } else {
+              that.$alert(`导入成功`, '提示', {
+                confirmButtonText: '确定',
+                // cancelButtonText: '取消',
+                // cancelButtonClass: 'cancelSure',
+                // confirmButtonClass: 'sure',
+                // customClass: 'exportConfirm',
+                type: 'success'
+              });
+            }
+          };
+          r.readAsText(res.data);
         }
         // if ((res.data.code === '00020007')) {
         //   this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {

+ 29 - 8
src/components/cdssManage/scale/ScaleManage.vue

@@ -467,6 +467,7 @@ export default {
         }
       };
       this.importScaleRecord(formData, header)
+      this.getDataList();
       // this.uploadInfo = '导入中...';
       // api.importExcelDataVerify(formData, header).then(res => {
       //   if (res.data.code === '00020001') {
@@ -508,18 +509,38 @@ export default {
       inp.value = '';
     },
     importScaleRecord(formData, header) {
+      let taht = this
       api.importScaleRecord(formData, header).then(res => {
         if (res.headers['content-disposition']) {
           this.downloadUrl(res);
         } else {
-          this.$alert(`导入成功`, '提示', {
-            confirmButtonText: '确定',
-            // cancelButtonText: '取消',
-            // cancelButtonClass: 'cancelSure',
-            // confirmButtonClass: 'sure',
-            // customClass: 'exportConfirm',
-            type: 'success'
-          });
+          let r = new FileReader();
+          r.onload = function() {
+            const code = JSON.parse(this.result);
+            if (code.code === '00020007') {
+              that
+                .$alert(`${code.msg}`, '提示', {
+                  confirmButtonText: '确定',
+                  // cancelButtonText: '取消',
+                  // cancelButtonClass: 'cancelSure',
+                  // confirmButtonClass: 'sure',
+                  // customClass: 'exportConfirm',
+                  type: 'warning'
+                })
+                .then(() => {})
+                .catch(() => {});
+            } else {
+              that.$alert(`导入成功`, '提示', {
+                confirmButtonText: '确定',
+                // cancelButtonText: '取消',
+                // cancelButtonClass: 'cancelSure',
+                // confirmButtonClass: 'sure',
+                // customClass: 'exportConfirm',
+                type: 'success'
+              });
+            }
+          };
+          r.readAsText(res.data);
         }
         // if ((res.data.code === '00020007')) {
         //   this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {

+ 29 - 8
src/components/cdssManage/tcmdisease/tcmdisease.vue

@@ -491,6 +491,7 @@ export default {
         }
       };
       this.importTcmRecord(formData, header);
+      this.getDataList();
       // this.uploadInfo = '导入中...';
       // api.importExcelDataVerify(formData, header).then(res => {
       //   if (res.data.code === '00020001') {
@@ -532,18 +533,38 @@ export default {
       inp.value = '';
     },
     importTcmRecord(formData, header) {
+      let taht = this
       api.importTcmRecord(formData, header).then(res => {
         if (res.headers['content-disposition']) {
           this.downloadUrl(res);
         } else {
-          this.$alert(`导入成功`, '提示', {
-            confirmButtonText: '确定',
-            // cancelButtonText: '取消',
-            // cancelButtonClass: 'cancelSure',
-            // confirmButtonClass: 'sure',
-            // customClass: 'exportConfirm',
-            type: 'success'
-          });
+          let r = new FileReader();
+          r.onload = function() {
+            const code = JSON.parse(this.result);
+            if (code.code === '00020007') {
+              that
+                .$alert(`${code.msg}`, '提示', {
+                  confirmButtonText: '确定',
+                  // cancelButtonText: '取消',
+                  // cancelButtonClass: 'cancelSure',
+                  // confirmButtonClass: 'sure',
+                  // customClass: 'exportConfirm',
+                  type: 'warning'
+                })
+                .then(() => {})
+                .catch(() => {});
+            } else {
+              that.$alert(`导入成功`, '提示', {
+                confirmButtonText: '确定',
+                // cancelButtonText: '取消',
+                // cancelButtonClass: 'cancelSure',
+                // confirmButtonClass: 'sure',
+                // customClass: 'exportConfirm',
+                type: 'success'
+              });
+            }
+          };
+          r.readAsText(res.data);
         }
         // if ((res.data.code === '00020007')) {
         //   this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {

+ 29 - 8
src/components/cdssManage/tcmdrome/tcmdrome.vue

@@ -492,6 +492,7 @@ export default {
         }
       };
       this.importTcmdromeRecord(formData, header);
+      this.getDataList();
       // this.uploadInfo = '导入中...';
       // api.importExcelDataVerify(formData, header).then(res => {
       //   if (res.data.code === '00020001') {
@@ -533,18 +534,38 @@ export default {
       inp.value = '';
     },
     importTcmdromeRecord(formData, header) {
+      let taht = this
       api.importTcmdromeRecord(formData, header).then(res => {
         if (res.headers['content-disposition']) {
           this.downloadUrl(res);
         } else {
-          this.$alert(`导入成功`, '提示', {
-            confirmButtonText: '确定',
-            // cancelButtonText: '取消',
-            // cancelButtonClass: 'cancelSure',
-            // confirmButtonClass: 'sure',
-            // customClass: 'exportConfirm',
-            type: 'success'
-          });
+          let r = new FileReader();
+          r.onload = function() {
+            const code = JSON.parse(this.result);
+            if (code.code === '00020007') {
+              that
+                .$alert(`${code.msg}`, '提示', {
+                  confirmButtonText: '确定',
+                  // cancelButtonText: '取消',
+                  // cancelButtonClass: 'cancelSure',
+                  // confirmButtonClass: 'sure',
+                  // customClass: 'exportConfirm',
+                  type: 'warning'
+                })
+                .then(() => {})
+                .catch(() => {});
+            } else {
+              that.$alert(`导入成功`, '提示', {
+                confirmButtonText: '确定',
+                // cancelButtonText: '取消',
+                // cancelButtonClass: 'cancelSure',
+                // confirmButtonClass: 'sure',
+                // customClass: 'exportConfirm',
+                type: 'success'
+              });
+            }
+          };
+          r.readAsText(res.data);
         }
         // if ((res.data.code === '00020007')) {
         //   this.$alert(`医院术语字符数超出最大数量,请修改后再试`, '提示', {