morphone1995 4 年之前
父節點
當前提交
d631c8e3e9

+ 13 - 16
src/components/cdssManage/dept/DeptManage.vue

@@ -10,16 +10,6 @@
           <el-button size="mini" @click="handleMatchData" style="marginLeft: 10px">预匹配</el-button>
           <el-button size="mini" @click="exportData">导出</el-button>
         </el-form-item>
-        <!-- <el-form-item label="医院科室名称:">
-          <el-input size="mini" v-model="filter.hisName" placeholder="请输入" clearable></el-input>
-        </el-form-item>
-        <el-form-item label="标准科室名称:">
-          <el-input size="mini" v-model="filter.uniqueName" placeholder="请输入" clearable></el-input>
-        </el-form-item>
-        <el-form-item class="dododo">
-          <el-button size="mini" @click="filterDatas">检索</el-button>
-          <el-button size="mini" type="warning" @click="addRelation">添加关联</el-button>
-        </el-form-item>-->
       </el-form>
     </crumbs>
     <div class="searchBar">
@@ -149,6 +139,12 @@ export default {
           'Content-Type': 'multipart/form-data'
         }
       };
+      const loading = this.$loading({
+        lock: true,
+        text: '预匹配中...',
+        spinner: 'el-icon-loading',
+        background: 'rgba(0, 0, 0, 0.7)'
+      });
       api.dataDeptVerify(formData, header).then(res => {
         if (res.data.code === '00020007') {
           this.$alert(`${res.data.msg}`, '提示', {
@@ -159,13 +155,14 @@ export default {
             .catch(() => {});
         } else {
           api.precDeptDataMatch(formData, header).then(res => {
+            setTimeout(() => {
+              loading.close();
+            }, 800);
             if (res.status === 200) {
-              setTimeout(() => {
-                utils.downloadExportedData(
-                  res.data,
-                  '科室关联数据(预匹配).xls'
-                );
-              }, 1500);
+              utils.downloadExportedData(
+                res.data,
+                '科室关联数据(预匹配).xls'
+              );
             }
           });
         }

+ 13 - 6
src/components/cdssManage/disease/Disease.vue

@@ -136,6 +136,12 @@ export default {
           'Content-Type': 'multipart/form-data'
         }
       };
+      const loading = this.$loading({
+        lock: true,
+        text: '预匹配中...',
+        spinner: 'el-icon-loading',
+        background: 'rgba(0, 0, 0, 0.7)'
+      });
       api.dataDiseaseVerify(formData, header).then(res => {
         if (res.data.code === '00020007') {
           this.$alert(`${res.data.msg}`, '提示', {
@@ -146,13 +152,14 @@ export default {
             .catch(() => {});
         } else {
           api.precDiseaseDataMatch(formData, header).then(res => {
+            setTimeout(() => {
+              loading.close();
+            }, 800);
             if (res.status === 200) {
-              setTimeout(() => {
-                utils.downloadExportedData(
-                  res.data,
-                  '诊断关联数据(预匹配).xls'
-                );
-              }, 1500);
+              utils.downloadExportedData(
+                res.data,
+                '诊断关联数据(预匹配).xls'
+              );
             }
           });
         }

+ 13 - 6
src/components/cdssManage/drug/DrugManage.vue

@@ -136,6 +136,12 @@ export default {
           'Content-Type': 'multipart/form-data'
         }
       };
+      const loading = this.$loading({
+        lock: true,
+        text: '预匹配中...',
+        spinner: 'el-icon-loading',
+        background: 'rgba(0, 0, 0, 0.7)'
+      });
       api.dataDrugVerify(formData, header).then(res => {
         if (res.data.code === '00020007') {
           this.$alert(`${res.data.msg}`, '提示', {
@@ -146,13 +152,14 @@ export default {
             .catch(() => {});
         } else {
           api.precDrugDataMatch(formData, header).then(res => {
+            setTimeout(() => {
+              loading.close();
+            }, 800);
             if (res.status === 200) {
-              setTimeout(() => {
-                utils.downloadExportedData(
-                  res.data,
-                  '药品关联数据(预匹配).xls'
-                );
-              }, 1500);
+              utils.downloadExportedData(
+                res.data,
+                '药品关联数据(预匹配).xls'
+              );
             }
           });
         }

+ 13 - 6
src/components/cdssManage/fusion/Fusion.vue

@@ -135,6 +135,12 @@ export default {
           'Content-Type': 'multipart/form-data'
         }
       };
+      const loading = this.$loading({
+        lock: true,
+        text: '预匹配中...',
+        spinner: 'el-icon-loading',
+        background: 'rgba(0, 0, 0, 0.7)'
+      });
       api.dataFusionVerify(formData, header).then(res => {
         if (res.data.code === '00020007') {
           this.$alert(`${res.data.msg}`, '提示', {
@@ -145,13 +151,14 @@ export default {
             .catch(() => {});
         } else {
           api.precFusionDataMatch(formData, header).then(res => {
+            setTimeout(() => {
+              loading.close();
+            }, 800);
             if (res.status === 200) {
-              setTimeout(() => {
-                utils.downloadExportedData(
-                  res.data,
-                  '输血关联数据(预匹配).xls'
-                );
-              }, 1500);
+              utils.downloadExportedData(
+                res.data,
+                '输血关联数据(预匹配).xls'
+              );
             }
           });
         }

+ 13 - 6
src/components/cdssManage/lis/Lis.vue

@@ -140,6 +140,12 @@ export default {
           'Content-Type': 'multipart/form-data'
         }
       };
+      const loading = this.$loading({
+        lock: true,
+        text: '预匹配中...',
+        spinner: 'el-icon-loading',
+        background: 'rgba(0, 0, 0, 0.7)'
+      });
       api.dataLisVerify(formData, header).then(res => {
         if (res.data.code === '00020007') {
           this.$alert(`${res.data.msg}`, '提示', {
@@ -150,13 +156,14 @@ export default {
             .catch(() => {});
         } else {
           api.precLisDataMatch(formData, header).then(res => {
+            setTimeout(() => {
+              loading.close();
+            }, 800);
             if (res.status === 200) {
-              setTimeout(() => {
-                utils.downloadExportedData(
-                  res.data,
-                  '检验关联数据(预匹配).xls'
-                );
-              }, 1500);
+              utils.downloadExportedData(
+                res.data,
+                '检验关联数据(预匹配).xls'
+              );
             }
           });
         }

+ 13 - 6
src/components/cdssManage/operation/Operation.vue

@@ -140,6 +140,12 @@ export default {
           'Content-Type': 'multipart/form-data'
         }
       };
+      const loading = this.$loading({
+        lock: true,
+        text: '预匹配中...',
+        spinner: 'el-icon-loading',
+        background: 'rgba(0, 0, 0, 0.7)'
+      });
       api.dataOperationVerify(formData, header).then(res => {
         if (res.data.code === '00020007') {
           this.$alert(`${res.data.msg}`, '提示', {
@@ -150,13 +156,14 @@ export default {
             .catch(() => {});
         } else {
           api.precOperationDataMatch(formData, header).then(res => {
+            setTimeout(() => {
+              loading.close();
+            }, 800);
             if (res.status === 200) {
-              setTimeout(() => {
-                utils.downloadExportedData(
-                  res.data,
-                  '手术/操作关联数据(预匹配).xls'
-                );
-              }, 1500);
+              utils.downloadExportedData(
+                res.data,
+                '手术/操作关联数据(预匹配).xls'
+              );
             }
           });
         }

+ 13 - 6
src/components/cdssManage/pacs/Pacs.vue

@@ -135,6 +135,12 @@ export default {
           'Content-Type': 'multipart/form-data'
         }
       };
+      const loading = this.$loading({
+        lock: true,
+        text: '预匹配中...',
+        spinner: 'el-icon-loading',
+        background: 'rgba(0, 0, 0, 0.7)'
+      });
       api.dataPacsVerify(formData, header).then(res => {
         if (res.data.code === '00020007') {
           this.$alert(`${res.data.msg}`, '提示', {
@@ -145,13 +151,14 @@ export default {
             .catch(() => {});
         } else {
           api.precPacsDataMatch(formData, header).then(res => {
+            setTimeout(() => {
+              loading.close();
+            }, 800);
             if (res.status === 200) {
-              setTimeout(() => {
-                utils.downloadExportedData(
-                  res.data,
-                  '检查关联数据(预匹配).xls'
-                );
-              }, 1500);
+              utils.downloadExportedData(
+                res.data,
+                '检查关联数据(预匹配).xls'
+              );
             }
           });
         }