liuzhihui 2 vuotta sitten
vanhempi
commit
62637f2036

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

351
       default() {
351
       default() {
352
         return {}
352
         return {}
353
       }
353
       }
354
-    }
354
+    },
355
+    patientDatas: {
356
+      type: Object,
357
+      default() {
358
+        return {}
359
+      }
360
+    },
355
   },
361
   },
356
 
362
 
357
   data() {
363
   data() {
484
     }
490
     }
485
   },
491
   },
486
   watch: {
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
     'orderTypeData.F_Type2': function() {
501
     'orderTypeData.F_Type2': function() {
488
       this.ruleForm.clbm = ''
502
       this.ruleForm.clbm = ''
489
       this.deptidArr1 = []
503
       this.deptidArr1 = []
533
     // this.callinNum = '15638114211'
547
     // this.callinNum = '15638114211'
534
     if (this.callinNum) {
548
     if (this.callinNum) {
535
       this.ruleForm.F_Phon = this.callinNum
549
       this.ruleForm.F_Phon = this.callinNum
536
-      console.log(this.callinNum, 'callinNumcallinNumcallinNum')
537
       this.getOldMsg() // 老患者信息
550
       this.getOldMsg() // 老患者信息
538
     }
551
     }
539
     this.cid = this.callid
552
     this.cid = this.callid
544
       this.OrderDetail()
557
       this.OrderDetail()
545
     }
558
     }
546
     if (this.iswomanage) {
559
     if (this.iswomanage) {
547
-      // this.ruleForm.F_ComplaintSource = ''
548
       this.ruleForm.F_AppointmentTime = ''
560
       this.ruleForm.F_AppointmentTime = ''
549
     }
561
     }
550
     this.gettsSelect()
562
     this.gettsSelect()
582
         this.ruleForm.F_IDNumber = decrypt(this.ruleForm.F_IDNumberShow)
594
         this.ruleForm.F_IDNumber = decrypt(this.ruleForm.F_IDNumberShow)
583
         this.ruleForm.F_CusAddress = decrypt(this.ruleForm.F_CusAddressShow)
595
         this.ruleForm.F_CusAddress = decrypt(this.ruleForm.F_CusAddressShow)
584
         this.clickbefore = 1
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
       } else if (this.zsyh) {
597
       } else if (this.zsyh) {
595
         this.ruleForm.F_IDNumber = decrypt(window.localStorage.getItem('huancardShow'))
598
         this.ruleForm.F_IDNumber = decrypt(window.localStorage.getItem('huancardShow'))
596
         this.ruleForm.F_CusAddress = decrypt(window.localStorage.getItem('huanaddressShow'))
599
         this.ruleForm.F_CusAddress = decrypt(window.localStorage.getItem('huanaddressShow'))
597
         this.clickbefore = 1
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
     getOldMsg() {
603
     getOldMsg() {
646
             const this_ = this
639
             const this_ = this
647
             this_.ruleForm.F_FullName = window.localStorage.getItem('huanxm') || ''
640
             this_.ruleForm.F_FullName = window.localStorage.getItem('huanxm') || ''
648
           }, 1000)
641
           }, 1000)
649
-          // this.ruleForm.F_FullName = window.localStorage.getItem('huanxm')
650
         }
642
         }
651
         if (!this.ruleForm.F_IDNumber) {
643
         if (!this.ruleForm.F_IDNumber) {
652
           setTimeout(() => {
644
           setTimeout(() => {
653
             const this_ = this
645
             const this_ = this
654
             this_.ruleForm.F_IDNumber = window.localStorage.getItem('huancard') || ''
646
             this_.ruleForm.F_IDNumber = window.localStorage.getItem('huancard') || ''
655
           }, 1000)
647
           }, 1000)
656
-          // this.ruleForm.F_IDNumber = window.localStorage.getItem('huancard')
657
         }
648
         }
658
         if (!this.ruleForm.F_CusAddress) {
649
         if (!this.ruleForm.F_CusAddress) {
659
           setTimeout(() => {
650
           setTimeout(() => {
661
             this_.ruleForm.F_CusAddress =
652
             this_.ruleForm.F_CusAddress =
662
               window.localStorage.getItem('huanaddress') || ''
653
               window.localStorage.getItem('huanaddress') || ''
663
           }, 1000)
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
           :callin-num="callinNum"
22
           :callin-num="callinNum"
23
           :order-type-data="orderTypeData"
23
           :order-type-data="orderTypeData"
24
           :person-parms-data="personParmsData"
24
           :person-parms-data="personParmsData"
25
+          :patient-datas="patientDatas"
25
           @closeLayer="closeLayer"
26
           @closeLayer="closeLayer"
26
         />
27
         />
27
       </el-col>
28
       </el-col>
125
       type: String,
126
       type: String,
126
       default: "",
127
       default: "",
127
     },
128
     },
129
+    patientData: {
130
+      type: Object,
131
+      default() {
132
+        return {}
133
+      },
134
+    }
128
   },
135
   },
129
   data() {
136
   data() {
130
     return {
137
     return {
143
       },
150
       },
144
       secondOrderType: 0,
151
       secondOrderType: 0,
145
       loading: false,
152
       loading: false,
153
+      patientDatas:{}
146
     };
154
     };
147
   },
155
   },
148
   computed: {
156
   computed: {
149
     ...mapGetters(["screenState"]),
157
     ...mapGetters(["screenState"]),
150
   },
158
   },
159
+  watch: {
160
+    "patientData":function() {
161
+      this.patientDatas = this.patientData
162
+      console.log(this.patientData,'patientDatapatientDatapatientDatapatientData')
163
+    }
164
+  },
151
   created() {
165
   created() {
152
     this.genderParams();
166
     this.genderParams();
153
     console.log(this.iswomanage);
167
     console.log(this.iswomanage);

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

13
           <div style="margin-bottom: 10px;">
13
           <div style="margin-bottom: 10px;">
14
             <div class="msgbox" /><span style="line-height: 30px;font-size: 14px;color: #333;">新建工单</span>
14
             <div class="msgbox" /><span style="line-height: 30px;font-size: 14px;color: #333;">新建工单</span>
15
           </div>
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
         </el-col>
17
         </el-col>
18
       </el-col>
18
       </el-col>
19
       <el-col :span="11">
19
       <el-col :span="11">
21
         <el-tabs v-model="activeName" @tab-click="handleClick" ref="tabs">
21
         <el-tabs v-model="activeName" @tab-click="handleClick" ref="tabs">
22
           <el-tab-pane label="患者信息" name="first">
22
           <el-tab-pane label="患者信息" name="first">
23
             <div class="tab_body">
23
             <div class="tab_body">
24
-              <his-List :callin-num="callinNum" :callid="callinCallid" />
24
+              <his-List :callin-num="callinNum" :callid="callinCallid" @patientMsg="getPatient"/>
25
             </div>
25
             </div>
26
           </el-tab-pane>
26
           </el-tab-pane>
27
           <el-tab-pane label="坐诊信息" name="visitInfo">
27
           <el-tab-pane label="坐诊信息" name="visitInfo">
116
         },
116
         },
117
         value1: true,
117
         value1: true,
118
         customerMsg: {}, // 客户信息
118
         customerMsg: {}, // 客户信息
119
-        deptMsg: {} // 部门信息
119
+        deptMsg: {} ,// 部门信息
120
+        patientData: {}//his患者信息
120
       }
121
       }
121
     },
122
     },
122
 
123
 
140
         if (params != 0) {
141
         if (params != 0) {
141
           this.typeSecondId = params
142
           this.typeSecondId = params
142
           const type2 = this.$store.getters.workTypeMap[parseInt(params)].ids
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
           if (this.$refs.tabs) {
144
           if (this.$refs.tabs) {
147
             if (params != 1000 && type2[0] != 1000) {
145
             if (params != 1000 && type2[0] != 1000) {
148
               this.activeName = 'second'
146
               this.activeName = 'second'
157
         }
155
         }
158
       })
156
       })
159
       this.callinNum = this.telCallNum // 来电号码  $route.params.telInNumber
157
       this.callinNum = this.telCallNum // 来电号码  $route.params.telInNumber
160
-
161
       // this.callinNum = '15638114211' // 来电号码  $route.params.telInNumber
158
       // this.callinNum = '15638114211' // 来电号码  $route.params.telInNumber
162
       this.ldphone = this.$route.params.telInNumber
159
       this.ldphone = this.$route.params.telInNumber
163
       if (this.$route.params.callid) {
160
       if (this.$route.params.callid) {
164
         this.callinCallid = this.$route.params.callid.toString() // 来电callid  $route.params.callid
161
         this.callinCallid = this.$route.params.callid.toString() // 来电callid  $route.params.callid
165
       }
162
       }
166
-      // this.getUserInfor()
167
     },
163
     },
168
     methods: {
164
     methods: {
169
       // tab 切换
165
       // tab 切换
237
           })
233
           })
238
           resolve()
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
       this.lxdh = this.hismsg.lxdh;
329
       this.lxdh = this.hismsg.lxdh;
330
       window.localStorage.setItem('huancard',this.hismsg.zjhm)
330
       window.localStorage.setItem('huancard',this.hismsg.zjhm)
331
       window.localStorage.setItem('huanaddress',this.hismsg.jtdz)
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
     getList() {
333
     getList() {
334
+      // this.$emit('patientMsg',this.hismsg)
335
+      // return
348
       this.clickbefore = 0;
336
       this.clickbefore = 0;
349
         const params = {
337
         const params = {
350
           zsyh: window.localStorage.getItem("zsyh"),
338
           zsyh: window.localStorage.getItem("zsyh"),
359
           this.loading = false;
347
           this.loading = false;
360
           if (response.rows.length>0) {
348
           if (response.rows.length>0) {
361
             this.hismsg = response.rows[0];
349
             this.hismsg = response.rows[0];
350
+            this.$emit('patientMsg',this.hismsg)//传
362
             this.zjh = this.hismsg.zjhm;
351
             this.zjh = this.hismsg.zjhm;
363
             this.lxdh = this.hismsg.lxdh;
352
             this.lxdh = this.hismsg.lxdh;
364
             console.log(response, 'response');
353
             console.log(response, 'response');
410
       GetUrl(params).then((res) => {
399
       GetUrl(params).then((res) => {
411
         if (res.state == "success") {
400
         if (res.state == "success") {
412
           this.dialogVisible = false;
401
           this.dialogVisible = false;
413
-          // this.jzlb = ''
414
-          // this.userid = ''
415
-          // this.zjh = ''
416
           window.open(res.data);
402
           window.open(res.data);
417
         }
403
         }
418
       });
404
       });

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

245
       // this.searchData.zsyh = val.target.value
245
       // this.searchData.zsyh = val.target.value
246
     },
246
     },
247
     hisSubmit() {
247
     hisSubmit() {
248
+      // this.$parent.getList();
249
+      // return
248
       if (!this.tableRadio) {
250
       if (!this.tableRadio) {
249
         this.$message.warning("请选择一个患者");
251
         this.$message.warning("请选择一个患者");
250
         return;
252
         return;
257
     },
259
     },
258
     btn_search_task() {
260
     btn_search_task() {
259
       this.getList();
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
 };