liuzhihui 2 years ago
parent
commit
62637f2036

+ 15 - 25
CallCenterWeb.UI/RMYY/src/components/workOrder/information/addOrEditInfOrder.vue

@@ -351,7 +351,13 @@ export default {
351 351
       default() {
352 352
         return {}
353 353
       }
354
-    }
354
+    },
355
+    patientDatas: {
356
+      type: Object,
357
+      default() {
358
+        return {}
359
+      }
360
+    },
355 361
   },
356 362
 
357 363
   data() {
@@ -484,6 +490,14 @@ export default {
484 490
     }
485 491
   },
486 492
   watch: {
493
+    "patientDatas":function() {
494
+      console.log(this.patientDatas,'patientDatapatientDatapatientDat888888888888')
495
+      this.zsyh = this.patientDatas.zsyh
496
+      this.ruleForm.F_Customer = this.patientDatas.hzxm
497
+      this.ruleForm.F_FullName = this.patientDatas.hzxm
498
+      this.ruleForm.F_IDNumber = this.patientDatas.zjhm
499
+      this.ruleForm.F_CusAddress = this.patientDatas.jtdz
500
+    },
487 501
     'orderTypeData.F_Type2': function() {
488 502
       this.ruleForm.clbm = ''
489 503
       this.deptidArr1 = []
@@ -533,7 +547,6 @@ export default {
533 547
     // this.callinNum = '15638114211'
534 548
     if (this.callinNum) {
535 549
       this.ruleForm.F_Phon = this.callinNum
536
-      console.log(this.callinNum, 'callinNumcallinNumcallinNum')
537 550
       this.getOldMsg() // 老患者信息
538 551
     }
539 552
     this.cid = this.callid
@@ -544,7 +557,6 @@ export default {
544 557
       this.OrderDetail()
545 558
     }
546 559
     if (this.iswomanage) {
547
-      // this.ruleForm.F_ComplaintSource = ''
548 560
       this.ruleForm.F_AppointmentTime = ''
549 561
     }
550 562
     this.gettsSelect()
@@ -582,29 +594,10 @@ export default {
582 594
         this.ruleForm.F_IDNumber = decrypt(this.ruleForm.F_IDNumberShow)
583 595
         this.ruleForm.F_CusAddress = decrypt(this.ruleForm.F_CusAddressShow)
584 596
         this.clickbefore = 1
585
-        // const params = {
586
-        //   id: this.customerid
587
-        // }
588
-        // const res = await  GetCompleteCustomer(params)
589
-        // if (res && res.data) {
590
-        //   this.ruleForm.F_IDNumber = res.data.F_IdCardShow
591
-        //   this.ruleForm.F_CusAddress = res.data.F_AddressShow
592
-        //   this.clickbefore = 1
593
-        // }
594 597
       } else if (this.zsyh) {
595 598
         this.ruleForm.F_IDNumber = decrypt(window.localStorage.getItem('huancardShow'))
596 599
         this.ruleForm.F_CusAddress = decrypt(window.localStorage.getItem('huanaddressShow'))
597 600
         this.clickbefore = 1
598
-        // const params = {
599
-        //   zsyh: window.localStorage.getItem("zsyh")
600
-        // }
601
-        // const res = await GetPatientModel(params)
602
-        // if (res && res.rows && res.rows.length > 0) {
603
-        //   const data = res.rows[0]
604
-        //   this.ruleForm.F_IDNumber = data.zjhmShow
605
-        //   this.ruleForm.F_CusAddress = data.jtdzShow
606
-        //   this.clickbefore = 1
607
-        // }
608 601
       }
609 602
     },
610 603
     getOldMsg() {
@@ -646,14 +639,12 @@ export default {
646 639
             const this_ = this
647 640
             this_.ruleForm.F_FullName = window.localStorage.getItem('huanxm') || ''
648 641
           }, 1000)
649
-          // this.ruleForm.F_FullName = window.localStorage.getItem('huanxm')
650 642
         }
651 643
         if (!this.ruleForm.F_IDNumber) {
652 644
           setTimeout(() => {
653 645
             const this_ = this
654 646
             this_.ruleForm.F_IDNumber = window.localStorage.getItem('huancard') || ''
655 647
           }, 1000)
656
-          // this.ruleForm.F_IDNumber = window.localStorage.getItem('huancard')
657 648
         }
658 649
         if (!this.ruleForm.F_CusAddress) {
659 650
           setTimeout(() => {
@@ -661,7 +652,6 @@ export default {
661 652
             this_.ruleForm.F_CusAddress =
662 653
               window.localStorage.getItem('huanaddress') || ''
663 654
           }, 1000)
664
-          // this.ruleForm.F_CusAddress = window.localStorage.getItem('huanaddress')
665 655
         }
666 656
       })
667 657
     },

+ 14 - 0
CallCenterWeb.UI/RMYY/src/views/callScreen/components/AddOrEditOrder.vue

@@ -22,6 +22,7 @@
22 22
           :callin-num="callinNum"
23 23
           :order-type-data="orderTypeData"
24 24
           :person-parms-data="personParmsData"
25
+          :patient-datas="patientDatas"
25 26
           @closeLayer="closeLayer"
26 27
         />
27 28
       </el-col>
@@ -125,6 +126,12 @@ export default {
125 126
       type: String,
126 127
       default: "",
127 128
     },
129
+    patientData: {
130
+      type: Object,
131
+      default() {
132
+        return {}
133
+      },
134
+    }
128 135
   },
129 136
   data() {
130 137
     return {
@@ -143,11 +150,18 @@ export default {
143 150
       },
144 151
       secondOrderType: 0,
145 152
       loading: false,
153
+      patientDatas:{}
146 154
     };
147 155
   },
148 156
   computed: {
149 157
     ...mapGetters(["screenState"]),
150 158
   },
159
+  watch: {
160
+    "patientData":function() {
161
+      this.patientDatas = this.patientData
162
+      console.log(this.patientData,'patientDatapatientDatapatientDatapatientData')
163
+    }
164
+  },
151 165
   created() {
152 166
     this.genderParams();
153 167
     console.log(this.iswomanage);

+ 8 - 8
CallCenterWeb.UI/RMYY/src/views/callScreen/components/callScreen.vue

@@ -13,7 +13,7 @@
13 13
           <div style="margin-bottom: 10px;">
14 14
             <div class="msgbox" /><span style="line-height: 30px;font-size: 14px;color: #333;">新建工单</span>
15 15
           </div>
16
-          <add-or-edit-order :callin-num="callinNum" :callid="callinCallid" @order-type-data="getOrderTypeData" />
16
+          <add-or-edit-order :callin-num="callinNum" :callid="callinCallid" :patientData="patientData" @order-type-data="getOrderTypeData" />
17 17
         </el-col>
18 18
       </el-col>
19 19
       <el-col :span="11">
@@ -21,7 +21,7 @@
21 21
         <el-tabs v-model="activeName" @tab-click="handleClick" ref="tabs">
22 22
           <el-tab-pane label="患者信息" name="first">
23 23
             <div class="tab_body">
24
-              <his-List :callin-num="callinNum" :callid="callinCallid" />
24
+              <his-List :callin-num="callinNum" :callid="callinCallid" @patientMsg="getPatient"/>
25 25
             </div>
26 26
           </el-tab-pane>
27 27
           <el-tab-pane label="坐诊信息" name="visitInfo">
@@ -116,7 +116,8 @@
116 116
         },
117 117
         value1: true,
118 118
         customerMsg: {}, // 客户信息
119
-        deptMsg: {} // 部门信息
119
+        deptMsg: {} ,// 部门信息
120
+        patientData: {}//his患者信息
120 121
       }
121 122
     },
122 123
 
@@ -140,9 +141,6 @@
140 141
         if (params != 0) {
141 142
           this.typeSecondId = params
142 143
           const type2 = this.$store.getters.workTypeMap[parseInt(params)].ids
143
-          // console.log(params)
144
-          // console.log(type2)
145
-          // console.log(this.$refs.tabs)
146 144
           if (this.$refs.tabs) {
147 145
             if (params != 1000 && type2[0] != 1000) {
148 146
               this.activeName = 'second'
@@ -157,13 +155,11 @@
157 155
         }
158 156
       })
159 157
       this.callinNum = this.telCallNum // 来电号码  $route.params.telInNumber
160
-
161 158
       // this.callinNum = '15638114211' // 来电号码  $route.params.telInNumber
162 159
       this.ldphone = this.$route.params.telInNumber
163 160
       if (this.$route.params.callid) {
164 161
         this.callinCallid = this.$route.params.callid.toString() // 来电callid  $route.params.callid
165 162
       }
166
-      // this.getUserInfor()
167 163
     },
168 164
     methods: {
169 165
       // tab 切换
@@ -237,6 +233,10 @@
237 233
           })
238 234
           resolve()
239 235
         })
236
+      },
237
+      getPatient(data){
238
+        this.patientData = data
239
+        console.log(data,'masssg')
240 240
       }
241 241
     }
242 242
   }

+ 3 - 17
CallCenterWeb.UI/RMYY/src/views/callScreen/components/hisList.vue

@@ -329,22 +329,10 @@ export default {
329 329
       this.lxdh = this.hismsg.lxdh;
330 330
       window.localStorage.setItem('huancard',this.hismsg.zjhm)
331 331
       window.localStorage.setItem('huanaddress',this.hismsg.jtdz)
332
-      // const params = {
333
-      //   zsyh: window.localStorage.getItem("zsyh")
334
-      // }
335
-      // GetPatientModel(params).then(res=>{
336
-      //   const data = res.rows[0]
337
-      //   this.hismsg.lxdh = data.lxdh
338
-      //   this.hismsg.zjhm = data.zjhm
339
-      //   this.hismsg.jtdz = data.jtdz
340
-      //   this.clickbefore = 1
341
-      //   this.zjh = this.hismsg.zjhm;
342
-      //   this.lxdh = this.hismsg.lxdh;
343
-      //   window.localStorage.setItem('huancard',this.hismsg.zjhm)
344
-      //   window.localStorage.setItem('huanaddress',this.hismsg.jtdz)
345
-      // })
346 332
     },
347 333
     getList() {
334
+      // this.$emit('patientMsg',this.hismsg)
335
+      // return
348 336
       this.clickbefore = 0;
349 337
         const params = {
350 338
           zsyh: window.localStorage.getItem("zsyh"),
@@ -359,6 +347,7 @@ export default {
359 347
           this.loading = false;
360 348
           if (response.rows.length>0) {
361 349
             this.hismsg = response.rows[0];
350
+            this.$emit('patientMsg',this.hismsg)//传
362 351
             this.zjh = this.hismsg.zjhm;
363 352
             this.lxdh = this.hismsg.lxdh;
364 353
             console.log(response, 'response');
@@ -410,9 +399,6 @@ export default {
410 399
       GetUrl(params).then((res) => {
411 400
         if (res.state == "success") {
412 401
           this.dialogVisible = false;
413
-          // this.jzlb = ''
414
-          // this.userid = ''
415
-          // this.zjh = ''
416 402
           window.open(res.data);
417 403
         }
418 404
       });

+ 2 - 9
CallCenterWeb.UI/RMYY/src/views/callScreen/components/hischange.vue

@@ -245,6 +245,8 @@ export default {
245 245
       // this.searchData.zsyh = val.target.value
246 246
     },
247 247
     hisSubmit() {
248
+      // this.$parent.getList();
249
+      // return
248 250
       if (!this.tableRadio) {
249 251
         this.$message.warning("请选择一个患者");
250 252
         return;
@@ -257,15 +259,6 @@ export default {
257 259
     },
258 260
     btn_search_task() {
259 261
       this.getList();
260
-      // if (this.typeSecondId) {
261
-      //   this.getList()
262
-      // } else {
263
-      //   this.$message({
264
-      //     message: '请输入工单类型',
265
-      //     type: 'warning'
266
-      //   })
267
-      //   return
268
-      // }
269 262
     },
270 263
   },
271 264
 };