liuzhihui vor 2 Jahren
Ursprung
Commit
5d79444779

+ 31 - 10
CallCenterWeb.UI/RMYY/src/components/workOrder/information/addOrEditInfOrder.vue

@@ -54,20 +54,26 @@
54 54
           <el-row v-if="worktypeInfo3 === 'huizhen'">
55 55
             <el-col :span="12">
56 56
               <el-form-item label="所属医院" prop="F_Yqname">
57
-                <el-input
57
+                <el-select placeholder="请选择所属医院" v-model="ruleForm.F_Yqname">
58
+                  <el-option v-for="(item,index) in coperDataLists" :key="index" :value="item.F_YqName" :label="item.F_YqName"></el-option>
59
+                </el-select>
60
+                <!-- <el-input
58 61
                   v-model="ruleForm.F_Yqname"
59 62
                   placeholder="请输入所属医院"
60
-                />
63
+                /> -->
61 64
               </el-form-item>
62 65
             </el-col>
63 66
           </el-row>
64 67
           <el-row v-if="worktypeInfo3 === 'menzhen'">
65 68
             <el-col :span="12">
66 69
               <el-form-item label="医联体单位" prop="F_Yqname">
67
-                <el-input
70
+                <el-select placeholder="请选择医联体单位" v-model="ruleForm.F_Yqname">
71
+                  <el-option v-for="(item,index) in coperDataLists" :key="index" :value="item.F_YqName" :label="item.F_YqName"></el-option>
72
+                </el-select>
73
+                <!-- <el-input
68 74
                   v-model="ruleForm.F_Yqname"
69 75
                   placeholder="请输入医联体单位"
70
-                />
76
+                /> -->
71 77
               </el-form-item>
72 78
             </el-col>
73 79
           </el-row>
@@ -211,7 +217,7 @@
211 217
             </el-col>
212 218
             <el-col :span="12" v-if="patientMsgAll[currentIndex]">
213 219
               <el-form-item label="接诊院区">
214
-                <el-select clearable v-model="patientMsgAll[currentIndex].jzyq">
220
+                <el-select placeholder="请选择接诊院区" clearable v-model="patientMsgAll[currentIndex].jzyq">
215 221
                   <el-option v-for="(item,index) in hospitalDataLists" :key="index" :value="item.T_Woid" :label="item.T_Woname"></el-option>
216 222
                 </el-select>
217 223
               </el-form-item>
@@ -472,7 +478,7 @@
472 478
 </template>
473 479
 
474 480
 <script>
475
-import {getListyqRepairlist} from "@/api/systemSetup/roleSetting/hospitalArea";
481
+import {getCooperateList,getListyqRepairlist} from "@/api/systemSetup/roleSetting/hospitalArea";
476 482
 import {
477 483
   addOrEdittOrder,
478 484
   updateWorkOrder,
@@ -549,6 +555,7 @@ export default {
549 555
       currentIndex:0,
550 556
       currentPatient:'患者1',//患者信息切换
551 557
       hospitalDataLists:[],
558
+      coperDataLists:[],
552 559
       // patientArrData:['患者1'],
553 560
       patientMsgAll:[
554 561
       {
@@ -689,7 +696,7 @@ export default {
689 696
         F_sxzzd:'1',//双向转诊单
690 697
         F_sqhzsj:'',
691 698
         F_jzsj:'',
692
-        F_lyfs:'1',//来院方式
699
+        F_lyfs:'0',//来院方式
693 700
       },
694 701
       relationarr: [],
695 702
       worktypeInfo: '',
@@ -750,9 +757,13 @@ export default {
750 757
         this.zppername = '被表扬人'
751 758
       }
752 759
       if(this.worktypeInfo3 === 'menzhen'){
760
+        this.getCoperyq()
753 761
         this.getListyq()
754 762
         this.ruleForm.opt = '3'
755 763
       }
764
+      if(this.worktypeInfo3 === 'huizhen'){
765
+        this.getCoperyq()
766
+      }
756 767
       if (this.ruleForm.F_Type2) {
757 768
         this.getAuto()
758 769
       }
@@ -784,6 +795,15 @@ export default {
784 795
     this.getRelations()
785 796
   },
786 797
   methods: {
798
+    getCoperyq(){
799
+      const params = {
800
+        pageindex: 1, // 第几页
801
+        pagesise: 100, // 每页几条信息
802
+      };
803
+      getCooperateList(params).then(res=>{
804
+        this.coperDataLists = res.rows;
805
+      })
806
+    },
787 807
     getListyq(){
788 808
       const params = {
789 809
         pageindex: 1, // 第几页
@@ -868,6 +888,7 @@ export default {
868 888
         if(res.state == 'success' && res.data){
869 889
           this.ruleForm.F_Yqname = res.data.F_YqName
870 890
         }else{
891
+          this.ruleForm.F_Yqname = ''
871 892
           this.isAddHos = 1 //没有数据存标识,提交工单调添加合作院区接口
872 893
         }
873 894
       })
@@ -1124,9 +1145,9 @@ export default {
1124 1145
         this.ruleForm.clid = ''
1125 1146
         this.ruleForm.opt = ''
1126 1147
       }
1127
-      if(this.isAddHos == 1){ //需要添加院区
1128
-        this.getAddHos()
1129
-      }
1148
+      // if(this.isAddHos == 1){ //需要添加院区
1149
+      //   this.getAddHos()
1150
+      // }
1130 1151
       if(this.worktypeInfo3 == 'menzhen'){
1131 1152
         this.ruleForm.F_sfjhz = ''
1132 1153
         if(this.ruleForm.F_lyfs == '0'){