Browse Source

术语映射

wyq 3 years ago
parent
commit
aa85aed383

+ 1 - 1
src/api/index.js

@@ -3,7 +3,7 @@ import config from './config.js';
 
 axios.default.timeout = 500000;
 axios.defaults.headers.post['Content-Type'] = "application/json;charset=utf-8";
-// axios.defaults.baseURL = 'http://192.168.2.236:6060';
+axios.defaults.baseURL = 'http://192.168.2.236:6060';
 // axios.defaults.baseURL = 'http://192.168.2.241';
 // axios.defaults.baseURL = 'http://192.168.3.113:6060';
 

+ 16 - 43
src/components/common/LtModal.vue

@@ -143,7 +143,7 @@
       </div>
       <div class="mapList">
         已关联标准术语:
-        <span v-for="item in mapList" :key="item.id">{{item.hisName}};</span>
+        <span v-for="item in mapList" :key="item.id">{{item.uniqueName}};</span>
       </div>
       <div class="modal-footer">
         <button class="confirm btns" :disabled="saveDisable" @click="submitForm">确定</button>
@@ -168,7 +168,8 @@ export default {
         hisDetailName: '',
         formConceptId: '',
         conceptId: '',
-        form: ''
+        form: '',
+        source:''
       },
       showDrop: false, //下拉框显示文字
       saveDisable: false, //保存按钮禁止点击
@@ -182,8 +183,6 @@ export default {
           { required: true, message: '请选择' + this.meal, trigger: 'change' }
         ]
       },
-      ty: this.type,
-      searchType: '',
       isEdit: false,
       editId: '',
       drugList: [],
@@ -199,10 +198,11 @@ export default {
       this.editId = this.data.id;
       this.form.hisName = this.data.hisName;
       this.form.searchText = this.data.uniqueName;
-      this.form.icdCode = this.data.icdCode;
+      this.form.icdCode = this.data.code;
       this.form.conceptId = this.data.conceptId;
       this.form.formConceptId = this.data.formConceptId;
       this.form.form = this.data.form;
+      this.form.source = this.data.source;
       this.getTermMatching();
       this.getRelatedMapping();
     }
@@ -224,11 +224,14 @@ export default {
         this.form.searchText = '';
         this.form.conceptId = '';
         this.form.icdCode = '';
+        this.form.source = '';
       } else {
         this.getIndex = row.index;
         this.form.searchText = row.name;
         this.form.conceptId = row.id;
         this.form.icdCode = row.code;
+        this.form.source = row.source;
+        
       }
     },
     // 搜索列表
@@ -237,17 +240,9 @@ export default {
         this.uniqueNameList = [];
         return;
       }
-      if (this.type == 1) {
-        const { hisName, hisDetailName } = this.form;
-        this.ty = 2; // 1-化验大项、2-化验小项
-        if (hisName !== '' && hisDetailName === '') {
-          this.ty = 1;
-        }
-        this.searchType = this.ty;
-      }
       this.showDrop = true;
       let params = {
-        type: this.ty ? this.ty : this.type,
+        type: this.type,
         inputStr: query,
         sex: 3,
         age: 0
@@ -255,11 +250,7 @@ export default {
       api.retrievalSearch(params).then(res => {
         this.showDrop = false;
         if (res.data.code === '0') {
-          if (this.ty == 2 && this.ty) {
-            this.uniqueNameList = res.data.data.lisDetailNames;
-          } else {
-            this.uniqueNameList = res.data.data.nameList;
-          }
+          this.uniqueNameList = res.data.data.nameList;
         }
       });
     },
@@ -287,14 +278,8 @@ export default {
     },
     getRelatedMapping() {
       const { hisName, hisDetailName } = this.form;
-      if (this.type == 1) {
-        this.ty = 2; // 1-化验大项、2-化验小项
-        if (hisName !== '' && hisDetailName === '') {
-          this.ty = 1;
-        }
-      }
       let params = {
-        type: this.ty ? this.ty : this.type,
+        type: this.type,
         hisDetailName: hisDetailName,
         hisName: hisName
       };
@@ -327,7 +312,7 @@ export default {
     },
     getTermMatching() {
       let params = {
-        type: this.ty ? this.ty : this.type,
+        type: this.type,
         inputStr: this.form.hisName
       };
       api.getTermMatching(params).then(res => {
@@ -347,24 +332,10 @@ export default {
             hisDetailName,
             icdCode,
             conceptId,
-            formConceptId
+            formConceptId,
+            source
           } = this.form;
           // 当标准术语是套餐时,细项必须为空
-          if (this.searchType === 1 && hisDetailName !== '') {
-            this.warning('医院术语与标准术语类型不匹配,请修改');
-            return;
-          }
-
-          // 当标准术语是细项时,医院术语套餐和细项均不能为空
-          if (this.searchType === 2) {
-            if (hisName === '') {
-              this.warning('医院术语与标准术语类型不匹配,请修改');
-              return;
-            } else if (hisDetailName === '') {
-              this.warning('医院术语与标准术语类型不匹配,请修改');
-              return;
-            }
-          }
           let params = {
             hisName: hisName,
             uniqueName: searchText,
@@ -372,6 +343,7 @@ export default {
             type: this.type,
             conceptId: conceptId,
             formConceptId: formConceptId,
+            source: source?source:1
           };
           this.showSaveDialog(params);
         } else {
@@ -414,6 +386,7 @@ export default {
       this.form.hisDetailName = '';
       this.form.form = '';
       this.form.conceptId = '';
+      this.form.source = ''
     },
     // 映射关系不存在-建立关联
     saveLisMapping(params, msg, type) {

+ 2 - 2
src/components/icss/dept/DeptManage.vue

@@ -12,8 +12,8 @@
           />
                       <!-- accept=".csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" -->
           <el-button size="mini" @click="importPage">{{uploadInfo}}</el-button>
+          <el-button size="mini" @click="handleMatchData" style="margin:0 10px">预匹配</el-button>
           <input type="file" name="uploadfile " id="upFileMatch" @change="uploadFileMatch($event)" />
-          <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 class="selectMedicine">
@@ -379,7 +379,7 @@ export default {
         // }
       })
         .then(() => {
-          api.exportDeptRecord({type:7}).then(res => {
+          api.exportDeptRecord({type:7,isMatch:this.filter.match}).then(res => {
             if (res.status === 200) {
               this.$message({ message: '导出成功', type: 'success' });
               utils.downloadExportedData(res.data, '科室关联数据.xls');

+ 2 - 2
src/components/icss/disease/ChemicalAndCommonMapping.vue

@@ -6,8 +6,8 @@
           <el-button type="text" class="downTemplate" @click="exportModule">导入模板下载</el-button>
           <input type="file" name="uploadfile " id="upFile" @change="uploadFile($event)" />
           <el-button size="mini" @click="importPage">{{uploadInfo}}</el-button>
+          <el-button size="mini" @click="handleMatchData" style="margin:0 10px">预匹配</el-button>
           <input type="file" name="uploadfile " id="upFileMatch" @change="uploadFileMatch($event)" />
-          <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 class="selectMedicine">
@@ -374,7 +374,7 @@ export default {
         // }
       })
         .then(() => {
-          api.exportDiseaseRecord({type:4}).then(res => {
+          api.exportDiseaseRecord({type:4,isMatch:this.filter.match}).then(res => {
             if (res.status === 200) {
               this.$message({ message: '导出成功', type: 'success' });
               utils.downloadExportedData(res.data, '诊断关联数据.xls');

+ 2 - 2
src/components/icss/drug/DrugManage.vue

@@ -11,8 +11,8 @@
             @change="uploadFile($event)"
           />
           <el-button size="mini" @click="importPage">{{uploadInfo}}</el-button>
+          <el-button size="mini" @click="handleMatchData" style="margin:0 10px">预匹配</el-button>
           <input type="file" name="uploadfile " id="upFileMatch" @change="uploadFileMatch($event)" />
-          <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 class="selectMedicine">
@@ -369,7 +369,7 @@ export default {
         // }
       })
         .then(() => {
-          api.exportDrugRecord({type:5}).then(res => {
+          api.exportDrugRecord({type:5,isMatch:this.filter.match}).then(res => {
             if (res.status === 200) {
               this.$message({ message: '导出成功', type: 'success' });
               utils.downloadExportedData(res.data, '药品关联数据.xls');

+ 2 - 2
src/components/icss/fusion/Fusion.vue

@@ -11,8 +11,8 @@
             @change="uploadFile($event)"
           />
           <el-button size="mini" @click="importPage">{{uploadInfo}}</el-button>
+          <el-button size="mini" @click="handleMatchData" style="margin:0 10px">预匹配</el-button>
           <input type="file" name="uploadfile " id="upFileMatch" @change="uploadFileMatch($event)" />
-          <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 class="selectMedicine">
@@ -370,7 +370,7 @@ export default {
         // }
       })
         .then(() => {
-          api.exportFusionRecord({type:8}).then(res => {
+          api.exportFusionRecord({type:8,isMatch:this.filter.match}).then(res => {
             if (res.status === 200) {
               this.$message({ message: '导出成功', type: 'success' });
               utils.downloadExportedData(res.data, '输血关联数据.xls');

+ 2 - 2
src/components/icss/lis/Lis.vue

@@ -6,8 +6,8 @@
           <el-button type="text" class="downTemplate" @click="exportModule">导入模板下载</el-button>
           <input type="file" name="uploadfile " id="upFile" @change="uploadFile($event)" />
           <el-button size="mini" @click="importPage">{{uploadInfo}}</el-button>
+          <el-button size="mini" @click="handleMatchData" style="margin:0 10px">预匹配</el-button>
           <input type="file" name="uploadfile " id="upFileMatch" @change="uploadFileMatch($event)" />
-          <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 class="selectMedicine">
@@ -376,7 +376,7 @@ export default {
         .then(() => {
           api
             .exportLisRecord({
-              type: 1
+              type: 1,isMatch:this.filter.match
             })
             .then(res => {
               if (res.status === 200) {

+ 2 - 2
src/components/icss/nursing/nursing.vue

@@ -12,8 +12,8 @@
           />
                       <!-- accept=".csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" -->
           <el-button size="mini" @click="importPage">{{uploadInfo}}</el-button>
+          <el-button size="mini" @click="handleMatchData" style="margin:0 10px">预匹配</el-button>
           <input type="file" name="uploadfile " id="upFileMatch" @change="uploadFileMatch($event)" />
-          <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 class="selectMedicine">
@@ -379,7 +379,7 @@ export default {
         // }
       })
         .then(() => {
-          api.exportNurseRecord({type:11}).then(res => {
+          api.exportNurseRecord({type:11,isMatch:this.filter.match}).then(res => {
             if (res.status === 200) {
               this.$message({ message: '导出成功', type: 'success' });
               utils.downloadExportedData(res.data, '护理关联数据.xls');

+ 2 - 2
src/components/icss/operation/Operation.vue

@@ -11,8 +11,8 @@
             @change="uploadFile($event)"
           />
           <el-button size="mini" @click="importPage">{{uploadInfo}}</el-button>
+          <el-button size="mini" @click="handleMatchData" style="margin:0 10px">预匹配</el-button>
           <input type="file" name="uploadfile " id="upFileMatch" @change="uploadFileMatch($event)" />
-          <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 class="selectMedicine">
@@ -376,7 +376,7 @@ export default {
         // }
       })
         .then(() => {
-          api.exportOperationRecord({type:6}).then(res => {
+          api.exportOperationRecord({type:6,isMatch:this.filter.match}).then(res => {
             if (res.status === 200) {
               this.$message({ message: '导出成功', type: 'success' });
               utils.downloadExportedData(res.data, '手术/操作关联数据.xls');

+ 2 - 2
src/components/icss/pacs/Pacs.vue

@@ -11,8 +11,8 @@
             @change="uploadFile($event)"
           />
           <el-button size="mini" @click="importPage">{{uploadInfo}}</el-button>
+          <el-button size="mini" @click="handleMatchData" style="margin:0 10px">预匹配</el-button>
           <input type="file" name="uploadfile " id="upFileMatch" @change="uploadFileMatch($event)" />
-          <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 class="selectMedicine">
@@ -376,7 +376,7 @@ export default {
         // }
       })
         .then(() => {
-          api.exportPacsRecord({type:3}).then(res => {
+          api.exportPacsRecord({type:3,isMatch:this.filter.match}).then(res => {
             if (res.status === 200) {
               this.$message({ message: '导出成功', type: 'success' });
               utils.downloadExportedData(res.data, '检查关联数据.xls');

+ 2 - 2
src/components/icss/scale/ScaleManage.vue

@@ -6,8 +6,8 @@
           <el-button type="text" class="downTemplate" @click="exportModule">导入模板下载</el-button>
           <input type="file" name="uploadfile " id="upFile" @change="uploadFile($event)" />
           <el-button size="mini" @click="importPage">{{uploadInfo}}</el-button>
+          <el-button size="mini" @click="handleMatchData" style="margin:0 10px">预匹配</el-button>
           <input type="file" name="uploadfile " id="upFileMatch" @change="uploadFileMatch($event)" />
-          <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 class="selectMedicine">
@@ -371,7 +371,7 @@ export default {
         // }
       })
         .then(() => {
-          api.exportScaleRecord({type:10}).then(res => {
+          api.exportScaleRecord({type:10,isMatch:this.filter.match}).then(res => {
             if (res.status === 200) {
               this.$message({ message: '导出成功', type: 'success' });
               utils.downloadExportedData(res.data, '量表关联数据.xls');

+ 2 - 2
src/components/icss/tcmdisease/tcmdisease.vue

@@ -12,8 +12,8 @@
           />
                       <!-- accept=".csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" -->
           <el-button size="mini" @click="importPage">{{uploadInfo}}</el-button>
+          <el-button size="mini" @click="handleMatchData" style="margin:0 10px">预匹配</el-button>
           <input type="file" name="uploadfile " id="upFileMatch" @change="uploadFileMatch($event)" />
-          <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 class="selectMedicine">
@@ -381,7 +381,7 @@ export default {
         // }
       })
         .then(() => {
-          api.exportTcmRecord({type:12}).then(res => {
+          api.exportTcmRecord({type:12,isMatch:this.filter.match}).then(res => {
             if (res.status === 200) {
               this.$message({ message: '导出成功', type: 'success' });
               utils.downloadExportedData(res.data, '中医疾病关联数据.xls');

+ 2 - 2
src/components/icss/tcmdrome/tcmdrome.vue

@@ -12,8 +12,8 @@
           />
                       <!-- accept=".csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" -->
           <el-button size="mini" @click="importPage">{{uploadInfo}}</el-button>
+          <el-button size="mini" @click="handleMatchData" style="margin:0 10px">预匹配</el-button>
           <input type="file" name="uploadfile " id="upFileMatch" @change="uploadFileMatch($event)" />
-          <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 class="selectMedicine">
@@ -381,7 +381,7 @@ export default {
         // }
       })
         .then(() => {
-          api.exportTcmdromeRecord({type:13}).then(res => {
+          api.exportTcmdromeRecord({type:13,isMatch:this.filter.match}).then(res => {
             if (res.status === 200) {
               this.$message({ message: '导出成功', type: 'success' });
               utils.downloadExportedData(res.data, '中医证候关联数据.xls');