Browse Source

术语映射

wyq 4 years ago
parent
commit
0b55613faf

+ 13 - 5
src/components/base/LtModal.vue

@@ -146,7 +146,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>
@@ -180,7 +180,8 @@ export default {
         formConceptId: '',
         conceptId: '',
         form: '',
-        hisCode: ''
+        hisCode: '',
+        source: ''
       },
       showDrop: false, //下拉框显示文字
       saveDisable: false, //保存按钮禁止点击
@@ -207,14 +208,16 @@ export default {
   created() {
     //修改
     if (this.data != {}) {
+      console.log(this.data)
       this.isEdit = true;
       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();
     }
@@ -236,11 +239,13 @@ 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;
       }
     },
     // 搜索列表
@@ -361,7 +366,8 @@ export default {
             icdCode,
             conceptId,
             formConceptId,
-            hisCode
+            hisCode,
+            source
           } = this.form;
           // 当标准术语是套餐时,细项必须为空
           if (this.searchType === 1 && hisDetailName !== '') {
@@ -387,7 +393,8 @@ export default {
             conceptId: conceptId,
             formConceptId: formConceptId,
             hospitalId: this.hospitalId,
-            hisCode: hisCode
+            hisCode: hisCode,
+            source: source?source:1
           };
           this.showSaveDialog(params);
         } else {
@@ -430,6 +437,7 @@ export default {
       this.form.hisDetailName = '';
       this.form.form = '';
       this.form.conceptId = '';
+      this.form.source = '';
     },
     // 映射关系不存在-建立关联
     saveLisMapping(params, msg, type) {

+ 2 - 2
src/components/cdssManage/dept/DeptManage.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>
@@ -395,7 +395,7 @@ export default {
       })
         .then(() => {
           api
-            .exportDeptRecord({ hospitalId: this.hospitalId, type: 7 })
+            .exportDeptRecord({ hospitalId: this.hospitalId, type: 7,isMatch:this.filter.match })
             .then(res => {
               if (res.status === 200) {
                 this.$message({ message: '导出成功', type: 'success' });

+ 3 - 3
src/components/cdssManage/disease/Disease.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>
-          <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="handleMatchData" style="margin:0 10px">预匹配</el-button>
+          <input type="file" name="uploadfile " id="upFileMatch"  @change="uploadFileMatch($event)" />
           <el-button size="mini" @click="exportData">导出</el-button>
         </el-form-item>
       </el-form>
@@ -386,7 +386,7 @@ export default {
         type: 'warning'
       })
         .then(() => {
-          api.exportDiseaseRecord({ hospitalId: this.hospitalId,type:4 }).then(res => {
+          api.exportDiseaseRecord({ hospitalId: this.hospitalId,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/cdssManage/drug/DrugManage.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>
@@ -401,7 +401,7 @@ export default {
         // }
       })
         .then(() => {
-          api.exportDrugRecord({ hospitalId: this.hospitalId,type:5 }).then(res => {
+          api.exportDrugRecord({ hospitalId: this.hospitalId,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/cdssManage/fusion/Fusion.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>
@@ -399,7 +399,7 @@ export default {
         // }
       })
         .then(() => {
-          api.exportFusionRecord({ hospitalId: this.hospitalId,type:8 }).then(res => {
+          api.exportFusionRecord({ hospitalId: this.hospitalId,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/cdssManage/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>
@@ -406,7 +406,7 @@ export default {
         // }
       })
         .then(() => {
-          api.exportLisRecord({ hospitalId: this.hospitalId,type:1 }).then(res => {
+          api.exportLisRecord({ hospitalId: this.hospitalId,type:1,isMatch:this.filter.match }).then(res => {
             if (res.status === 200) {
               this.$message({ message: '导出成功', type: 'success' });
               utils.downloadExportedData(res.data, '检验数据.xls');

+ 2 - 2
src/components/cdssManage/nursing/nursing.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>
@@ -393,7 +393,7 @@ export default {
         // }
       })
         .then(() => {
-          api.exportNurseRecord({ hospitalId: this.hospitalId,type:11 }).then(res => {
+          api.exportNurseRecord({ hospitalId: this.hospitalId,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/cdssManage/operation/Operation.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>
@@ -405,7 +405,7 @@ export default {
       })
         .then(() => {
           api
-            .exportOperationRecord({ hospitalId: this.hospitalId,type:6 })
+            .exportOperationRecord({ hospitalId: this.hospitalId,type:6,isMatch:this.filter.match })
             .then(res => {
               if (res.status === 200) {
                 this.$message({ message: '导出成功', type: 'success' });

+ 2 - 2
src/components/cdssManage/pacs/Pacs.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>
@@ -399,7 +399,7 @@ export default {
         // }
       })
         .then(() => {
-          api.exportPacsRecord({ hospitalId: this.hospitalId,type:3 }).then(res => {
+          api.exportPacsRecord({ hospitalId: this.hospitalId,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/cdssManage/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>
@@ -381,7 +381,7 @@ export default {
         type: 'warning'
       })
         .then(() => {
-          api.exportScaleRecord({ hospitalId: this.hospitalId,type:10 }).then(res => {
+          api.exportScaleRecord({ hospitalId: this.hospitalId,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/cdssManage/tcmdisease/tcmdisease.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>
@@ -401,7 +401,7 @@ export default {
         // }
       })
         .then(() => {
-          api.exportTcmRecord({ hospitalId: this.hospitalId,type:12 }).then(res => {
+          api.exportTcmRecord({ hospitalId: this.hospitalId,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/cdssManage/tcmdrome/tcmdrome.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>
@@ -402,7 +402,7 @@ export default {
         // }
       })
         .then(() => {
-          api.exportTcmdromeRecord({ hospitalId: this.hospitalId,type:13 }).then(res => {
+          api.exportTcmdromeRecord({ hospitalId: this.hospitalId,type:13 ,isMatch:this.filter.match}).then(res => {
             if (res.status === 200) {
               this.$message({ message: '导出成功', type: 'success' });
               utils.downloadExportedData(res.data, '中医证候关联数据.xls');