浏览代码

判断code修改

wyq 3 年之前
父节点
当前提交
39cb1d2ee3

+ 16 - 1
src/components/icss/dept/DeptManage.vue

@@ -428,7 +428,7 @@ export default {
       };
       this.uploadInfo = '导入中...';
       api.importExcelDataVerify(formData, header).then(res => {
-        if (res.data.code === '00020001') {
+        if (res.data.code === '00020004') {
           this.$confirm(`${res.data.msg}`, '提示1', {
             confirmButtonText: '确定',
             cancelButtonText: '取消',
@@ -444,6 +444,21 @@ export default {
             });
         } else if (res.data.data === true) {
           this.importDeptRecord(formData, header);
+        }else {
+          this.$alert(`${res.data.msg}`, '提示', {
+            confirmButtonText: '确定',
+            // cancelButtonText: '取消',
+            // cancelButtonClass: 'cancelSure',
+            // confirmButtonClass: 'sure',
+            // customClass: 'exportConfirm',
+            type: 'warning'
+          })
+            .then(() => {})
+            .catch(() => {});
+
+          setTimeout(() => {
+            this.uploadInfo = '导入';
+          }, 300);
         }
       });
 

+ 16 - 1
src/components/icss/disease/ChemicalAndCommonMapping.vue

@@ -427,7 +427,7 @@ export default {
       };
       this.uploadInfo = '导入中...';
       api.importExcelDataVerify(formData, header).then(res => {
-        if (res.data.code === '00020001') {
+        if (res.data.code === '00020004') {
           this.$confirm(`${res.data.msg}`, '提示1', {
             confirmButtonText: '确定',
             cancelButtonText: '取消',
@@ -443,6 +443,21 @@ export default {
             });
         } else if (res.data.data === true) {
           this.importDiseaseRecord(formData, header)
+        }else {
+          this.$alert(`${res.data.msg}`, '提示', {
+            confirmButtonText: '确定',
+            // cancelButtonText: '取消',
+            // cancelButtonClass: 'cancelSure',
+            // confirmButtonClass: 'sure',
+            // customClass: 'exportConfirm',
+            type: 'warning'
+          })
+            .then(() => {})
+            .catch(() => {});
+
+          setTimeout(() => {
+            this.uploadInfo = '导入';
+          }, 300);
         }
       });
       //解决上传相同文件不触发change

+ 16 - 1
src/components/icss/drug/DrugManage.vue

@@ -421,7 +421,7 @@ export default {
       };
       this.uploadInfo = '导入中...';
       api.importExcelDataVerify(formData, header).then(res => {
-        if (res.data.code === '00020001') {
+        if (res.data.code === '00020004') {
           this.$confirm(`${res.data.msg}`, '提示1', {
             confirmButtonText: '确定',
             cancelButtonText: '取消',
@@ -437,6 +437,21 @@ export default {
             });
         } else if (res.data.data === true) {
           this.importDrugRecord(formData, header);
+        }else {
+          this.$alert(`${res.data.msg}`, '提示', {
+            confirmButtonText: '确定',
+            // cancelButtonText: '取消',
+            // cancelButtonClass: 'cancelSure',
+            // confirmButtonClass: 'sure',
+            // customClass: 'exportConfirm',
+            type: 'warning'
+          })
+            .then(() => {})
+            .catch(() => {});
+
+          setTimeout(() => {
+            this.uploadInfo = '导入';
+          }, 300);
         }
       });
 

+ 16 - 1
src/components/icss/fusion/Fusion.vue

@@ -419,7 +419,7 @@ export default {
       };
       this.uploadInfo = '导入中...';
       api.importExcelDataVerify(formData, header).then(res => {
-        if (res.data.code === '00020001') {
+        if (res.data.code === '00020004') {
           this.$confirm(`${res.data.msg}`, '提示1', {
             confirmButtonText: '确定',
             cancelButtonText: '取消',
@@ -435,6 +435,21 @@ export default {
             });
         } else if (res.data.data === true) {
           this.importFusionRecord(formData, header);
+        }else {
+          this.$alert(`${res.data.msg}`, '提示', {
+            confirmButtonText: '确定',
+            // cancelButtonText: '取消',
+            // cancelButtonClass: 'cancelSure',
+            // confirmButtonClass: 'sure',
+            // customClass: 'exportConfirm',
+            type: 'warning'
+          })
+            .then(() => {})
+            .catch(() => {});
+
+          setTimeout(() => {
+            this.uploadInfo = '导入';
+          }, 300);
         }
       });
 

+ 16 - 1
src/components/icss/lis/Lis.vue

@@ -430,7 +430,7 @@ export default {
       };
       this.uploadInfo = '导入中...';
       api.importExcelDataVerify(formData, header).then(res => {
-        if (res.data.code === '00020001') {
+        if (res.data.code === '00020004') {
           this.$confirm(`${res.data.msg}`, '提示1', {
             confirmButtonText: '确定',
             cancelButtonText: '取消',
@@ -446,6 +446,21 @@ export default {
             });
         } else if (res.data.data === true) {
           this.importLisRecord(formData, header)
+        }else {
+          this.$alert(`${res.data.msg}`, '提示', {
+            confirmButtonText: '确定',
+            // cancelButtonText: '取消',
+            // cancelButtonClass: 'cancelSure',
+            // confirmButtonClass: 'sure',
+            // customClass: 'exportConfirm',
+            type: 'warning'
+          })
+            .then(() => {})
+            .catch(() => {});
+
+          setTimeout(() => {
+            this.uploadInfo = '导入';
+          }, 300);
         }
       });
       //解决上传相同文件不触发change

+ 16 - 1
src/components/icss/nursing/nursing.vue

@@ -428,7 +428,7 @@ export default {
       };
       this.uploadInfo = '导入中...';
       api.importExcelDataVerify(formData, header).then(res => {
-        if (res.data.code === '00020001') {
+        if (res.data.code === '00020004') {
           this.$confirm(`${res.data.msg}`, '提示1', {
             confirmButtonText: '确定',
             cancelButtonText: '取消',
@@ -444,6 +444,21 @@ export default {
             });
         } else if (res.data.data === true) {
           this.importNurseRecord(formData, header);
+        }else {
+          this.$alert(`${res.data.msg}`, '提示', {
+            confirmButtonText: '确定',
+            // cancelButtonText: '取消',
+            // cancelButtonClass: 'cancelSure',
+            // confirmButtonClass: 'sure',
+            // customClass: 'exportConfirm',
+            type: 'warning'
+          })
+            .then(() => {})
+            .catch(() => {});
+
+          setTimeout(() => {
+            this.uploadInfo = '导入';
+          }, 300);
         }
       });
 

+ 16 - 1
src/components/icss/operation/Operation.vue

@@ -429,7 +429,7 @@ export default {
       this.uploadInfo = '导入中...';
 
       api.importExcelDataVerify(formData, header).then(res => {
-        if (res.data.code === '00020001') {
+        if (res.data.code === '00020004') {
           this.$confirm(`${res.data.msg}`, '提示1', {
             confirmButtonText: '确定',
             cancelButtonText: '取消',
@@ -445,6 +445,21 @@ export default {
             });
         } else if (res.data.data === true) {
           this.importOperationRecord(formData, header);
+        }else {
+          this.$alert(`${res.data.msg}`, '提示', {
+            confirmButtonText: '确定',
+            // cancelButtonText: '取消',
+            // cancelButtonClass: 'cancelSure',
+            // confirmButtonClass: 'sure',
+            // customClass: 'exportConfirm',
+            type: 'warning'
+          })
+            .then(() => {})
+            .catch(() => {});
+
+          setTimeout(() => {
+            this.uploadInfo = '导入';
+          }, 300);
         }
       });
 

+ 16 - 1
src/components/icss/pacs/Pacs.vue

@@ -425,7 +425,7 @@ export default {
       };
       this.uploadInfo = '导入中...';
       api.importExcelDataVerify(formData, header).then(res => {
-        if (res.data.code === '00020001') {
+        if (res.data.code === '00020004') {
           this.$confirm(`${res.data.msg}`, '提示1', {
             confirmButtonText: '确定',
             cancelButtonText: '取消',
@@ -441,6 +441,21 @@ export default {
             });
         } else if (res.data.data === true) {
           this.importPacsRecord(formData, header);
+        }else {
+          this.$alert(`${res.data.msg}`, '提示', {
+            confirmButtonText: '确定',
+            // cancelButtonText: '取消',
+            // cancelButtonClass: 'cancelSure',
+            // confirmButtonClass: 'sure',
+            // customClass: 'exportConfirm',
+            type: 'warning'
+          })
+            .then(() => {})
+            .catch(() => {});
+
+          setTimeout(() => {
+            this.uploadInfo = '导入';
+          }, 300);
         }
       });
 

+ 16 - 1
src/components/icss/scale/ScaleManage.vue

@@ -426,7 +426,7 @@ export default {
       };
       this.uploadInfo = '导入中...';
       api.importExcelDataVerify(formData, header).then(res => {
-        if (res.data.code === '00020001') {
+        if (res.data.code === '00020004') {
           this.$confirm(`${res.data.msg}`, '提示1', {
             confirmButtonText: '确定',
             cancelButtonText: '取消',
@@ -442,6 +442,21 @@ export default {
             });
         } else if (res.data.data === true) {
           this.importScaleRecord(formData, header);
+        }else {
+          this.$alert(`${res.data.msg}`, '提示', {
+            confirmButtonText: '确定',
+            // cancelButtonText: '取消',
+            // cancelButtonClass: 'cancelSure',
+            // confirmButtonClass: 'sure',
+            // customClass: 'exportConfirm',
+            type: 'warning'
+          })
+            .then(() => {})
+            .catch(() => {});
+
+          setTimeout(() => {
+            this.uploadInfo = '导入';
+          }, 300);
         }
       });
 

+ 16 - 1
src/components/icss/tcmdisease/tcmdisease.vue

@@ -435,7 +435,7 @@ export default {
       };
       this.uploadInfo = '导入中...';
       api.importExcelDataVerify(formData, header).then(res => {
-        if (res.data.code === '00020001') {
+        if (res.data.code === '00020004') {
           this.$confirm(`${res.data.msg}`, '提示1', {
             confirmButtonText: '确定',
             cancelButtonText: '取消',
@@ -451,6 +451,21 @@ export default {
             });
         } else if (res.data.data === true) {
           this.importTcmRecord(formData, header);
+        }else {
+          this.$alert(`${res.data.msg}`, '提示', {
+            confirmButtonText: '确定',
+            // cancelButtonText: '取消',
+            // cancelButtonClass: 'cancelSure',
+            // confirmButtonClass: 'sure',
+            // customClass: 'exportConfirm',
+            type: 'warning'
+          })
+            .then(() => {})
+            .catch(() => {});
+
+          setTimeout(() => {
+            this.uploadInfo = '导入';
+          }, 300);
         }
       });
 

+ 16 - 1
src/components/icss/tcmdrome/tcmdrome.vue

@@ -435,7 +435,7 @@ export default {
       };
       this.uploadInfo = '导入中...';
       api.importExcelDataVerify(formData, header).then(res => {
-        if (res.data.code === '00020001') {
+        if (res.data.code === '00020004') {
           this.$confirm(`${res.data.msg}`, '提示1', {
             confirmButtonText: '确定',
             cancelButtonText: '取消',
@@ -451,6 +451,21 @@ export default {
             });
         } else if (res.data.data === true) {
           this.importTcmdromeRecord(formData, header);
+        }else {
+          this.$alert(`${res.data.msg}`, '提示', {
+            confirmButtonText: '确定',
+            // cancelButtonText: '取消',
+            // cancelButtonClass: 'cancelSure',
+            // confirmButtonClass: 'sure',
+            // customClass: 'exportConfirm',
+            type: 'warning'
+          })
+            .then(() => {})
+            .catch(() => {});
+
+          setTimeout(() => {
+            this.uploadInfo = '导入';
+          }, 300);
         }
       });