瀏覽代碼

辅检子项维护

zhangxc 5 年之前
父節點
當前提交
2b1394c970
共有 2 個文件被更改,包括 11 次插入9 次删除
  1. 10 8
      src/components/medicalTerm/AddAssistCheckSon.vue
  2. 1 1
      src/components/medicalTerm/AssistCheckSon.vue

+ 10 - 8
src/components/medicalTerm/AddAssistCheckSon.vue

@@ -28,7 +28,7 @@
         </el-form>
         <div class="symptomList">
             <div class="screenIndex clearfix">
-                    <p class="assayTitle">化验子项添加</p>
+                    <p class="assayTitle">辅检子项添加</p>
                     <label class="screenIndexLabel">添加:</label>
                     <input class="searchInput"  @focus="focuInput" type="text" v-model = "searchIndexVal"> 
                     <span class="searchName" @click="searchIndex">搜索</span>
@@ -69,6 +69,7 @@
 
 <script>
   import api from '@api/icss.js';
+  import apis from '@api/medicalTerm.js';
   export default {
     name: 'AddAssistCheckSon',
     data() {
@@ -113,7 +114,8 @@
               "name": this.searchConcept,
               "relationId": 18,
               "relationPosition": 1,
-              "typeId": 12
+              "relationTypeId": 16,
+              "typeId": 16
             }
             api.getConceptInfoAssay(param).then((res)=>{
                if(res.data.code === '0') {
@@ -139,13 +141,13 @@
           return selectedTags
         },
         searchIndex() {
-           const notIds = this.selectedTags();
+           const notIds =[this.form.conceptId ,...this.selectedTags()];
            const param = {
             "name": this.searchIndexVal,
             "relationId": 18,
-            "relationPosition": 2,
-            "typeId": 13,
-            "relationConceptId":this.form.conceptId,
+            "relationPosition": 0,
+            "typeId": 16,
+            // "relationConceptId":this.form.conceptId,
             "excludedConceptIds":notIds
           }
           
@@ -189,13 +191,13 @@
           }
           this.showConfirmDialog('是否建立该关联?', () => {
               this.saveDisable = true  //提交保存按钮不可点击,返回结果时才可点击,防止频繁发送请求
-              api.addAssaySon(param).then((res) => {
+              apis.assistCheckPacsAddPacsRelation(param).then((res) => {
               if (res.data.code  === '0') {
                   this.warning(res.data.msg || '关联成功', 'success','1000')
                   setTimeout(() => {
                     //返回带搜索条件的首页
                   this.$router.push({
-                      name:'AssaySon',
+                      name:'AssistCheckSon',
                     params: Object.assign({}, this.$route.params, {currentPage: 1})
                   })
                   }, 1000);

+ 1 - 1
src/components/medicalTerm/AssistCheckSon.vue

@@ -145,7 +145,7 @@
                 conceptId: row.conceptId,
                 // relationId:18
                 relationIds:[18], //9-23后台修改
-                typeIds:[13]
+                typeIds:[16]
             }
             api.assistCheckGetPacsContactDetail(param).then((res) => {
                 if(res.data.code == '0') {