liuzhihui 2 years ago
parent
commit
99da486f05

+ 93 - 16
CallCenterWeb.UI/RMYY/src/components/button/orderList.vue

184
       </div>
184
       </div>
185
     </el-dialog>
185
     </el-dialog>
186
     <!-- 门诊处理 -->
186
     <!-- 门诊处理 -->
187
-    <!-- <el-dialog :visible.sync="dialogStatus.dialog_ywzx_menchuli" title="处理">
188
-      <el-form ref="appointmentForm" :model="appointmentForm" :rules="rules" label-width="100px">
187
+    <el-dialog :visible.sync="dialogStatus.dialog_ywzx_menchuli" title="处理">
188
+      <el-form ref="appointmentMenForm" :model="appointmentMenForm" :rules="rules" label-width="100px">
189
         <el-form-item label="沟通情况" prop="F_gtqk">
189
         <el-form-item label="沟通情况" prop="F_gtqk">
190
-          <el-radio-group v-model="appointmentForm.F_gtqk">
190
+          <el-radio-group v-model="appointmentMenForm.F_gtqk" @change="gtqkChange">
191
             <el-radio label="0">住院</el-radio>
191
             <el-radio label="0">住院</el-radio>
192
             <el-radio label="1">离院</el-radio>
192
             <el-radio label="1">离院</el-radio>
193
           </el-radio-group>
193
           </el-radio-group>
194
         </el-form-item>
194
         </el-form-item>
195
-        <el-form-item label="" v-show="appointmentForm.F_gtqk == '0'">
196
-          <select-dept-tree :deptparam="mendeptidArr" v-model="appointmentForm.F_zyks" @post-deptid="getmenDeptid" />
195
+        <el-form-item label="" v-show="appointmentMenForm.F_gtqk == '0'">
196
+          <select-dept-tree :tishiy="tishiyu" :deptparam="mendeptidArr" v-model="appointmentMenForm.F_zyks" @post-deptid="getmenDeptid" />
197
         </el-form-item>
197
         </el-form-item>
198
         <el-form-item label="处理结果" prop="cont">
198
         <el-form-item label="处理结果" prop="cont">
199
-          <el-input :autosize="{ minRows: 4, maxRows: 8 }" v-model="appointmentForm.cont" show-word-limit
199
+          <el-input :autosize="{ minRows: 4, maxRows: 8 }" v-model="appointmentMenForm.cont" show-word-limit
200
             maxlength="100" type="textarea" />
200
             maxlength="100" type="textarea" />
201
         </el-form-item>
201
         </el-form-item>
202
       </el-form>
202
       </el-form>
203
       <div slot="footer" class="dialog-footer">
203
       <div slot="footer" class="dialog-footer">
204
         <el-button @click="dialogStatus.dialog_ywzx_menchuli = false">取 消</el-button>
204
         <el-button @click="dialogStatus.dialog_ywzx_menchuli = false">取 消</el-button>
205
-        <el-button type="primary" @click="submitForm('appointmentForm')">确 定</el-button>
205
+        <el-button type="primary" @click="submitForm('appointmentMenForm')">确 定</el-button>
206
       </div>
206
       </div>
207
-    </el-dialog> -->
207
+    </el-dialog>
208
     <!-- 会诊处理 -->
208
     <!-- 会诊处理 -->
209
-   <!-- <el-dialog :visible.sync="dialogStatus.dialog_ywzx_huichuli" title="处理">
210
-      <el-form ref="appointmentForm" :model="appointmentForm" :rules="rules" label-width="100px">
209
+   <el-dialog :visible.sync="dialogStatus.dialog_ywzx_huichuli" title="处理">
210
+      <el-form ref="appointmentHuiForm" :model="appointmentHuiForm" :rules="rules" label-width="100px">
211
         <el-form-item label="会诊情况" prop="F_hzqk">
211
         <el-form-item label="会诊情况" prop="F_hzqk">
212
-          <el-radio-group v-model="appointmentForm.F_hzqk">
212
+          <el-radio-group v-model="appointmentHuiForm.F_hzqk">
213
             <el-radio label="0">已会诊</el-radio>
213
             <el-radio label="0">已会诊</el-radio>
214
             <el-radio label="1">未会诊</el-radio>
214
             <el-radio label="1">未会诊</el-radio>
215
           </el-radio-group>
215
           </el-radio-group>
216
         </el-form-item>
216
         </el-form-item>
217
         <el-form-item label="会诊类型" prop="F_hzlx">
217
         <el-form-item label="会诊类型" prop="F_hzlx">
218
-          <el-radio-group v-model="appointmentForm.F_hzlx">
218
+          <el-radio-group v-model="appointmentHuiForm.F_hzlx">
219
             <el-radio label="0">普通会诊</el-radio>
219
             <el-radio label="0">普通会诊</el-radio>
220
             <el-radio label="1">急会诊</el-radio>
220
             <el-radio label="1">急会诊</el-radio>
221
           </el-radio-group>
221
           </el-radio-group>
222
         </el-form-item>
222
         </el-form-item>
223
         <el-form-item label="会诊科室">
223
         <el-form-item label="会诊科室">
224
-          <select-dept-tree :deptparam="huideptidArr" v-model="appointmentForm.F_zyks" @post-deptid="gethuiDeptid" />
224
+          <select-dept-tree :tishiy='tishiyuhui' :deptparam="huideptidArr" v-model="appointmentHuiForm.F_hzks" @post-deptid="gethuiDeptid" />
225
         </el-form-item>
225
         </el-form-item>
226
+          <el-form-item label="会诊专家">
227
+            <el-select v-model="appointmentHuiForm.F_hzzj" clearable filterable placeholder="请选择会诊专家"
228
+              style="width: 68%" @change="changeHuiRepairman">
229
+              <el-option v-for="item in huizhenrepairman" :key="item.usercode"
230
+                :label="item.username + '(' + item.count + ')'" :value="item.usercode" />
231
+            </el-select>
232
+          </el-form-item>
226
         <el-form-item label="处理结果" prop="cont">
233
         <el-form-item label="处理结果" prop="cont">
227
-          <el-input :autosize="{ minRows: 4, maxRows: 8 }" v-model="appointmentForm.cont" show-word-limit
234
+          <el-input :autosize="{ minRows: 4, maxRows: 8 }" v-model="appointmentHuiForm.cont" show-word-limit
228
             maxlength="100" type="textarea" />
235
             maxlength="100" type="textarea" />
229
         </el-form-item>
236
         </el-form-item>
230
       </el-form>
237
       </el-form>
231
       <div slot="footer" class="dialog-footer">
238
       <div slot="footer" class="dialog-footer">
232
         <el-button @click="dialogStatus.dialog_ywzx_huichuli = false">取 消</el-button>
239
         <el-button @click="dialogStatus.dialog_ywzx_huichuli = false">取 消</el-button>
233
-        <el-button type="primary" @click="submitForm('appointhuitForm')">确 定</el-button>
240
+        <el-button type="primary" @click="submitForm('appointmentHuiForm')">确 定</el-button>
234
       </div>
241
       </div>
235
-    </el-dialog> -->
242
+    </el-dialog>
236
     <!-- 确认耗材 -->
243
     <!-- 确认耗材 -->
237
     <el-dialog :visible.sync="dialogStatus.dialog_haocai" title="确认耗材">
244
     <el-dialog :visible.sync="dialogStatus.dialog_haocai" title="确认耗材">
238
       <el-table :data="haocaiarr" border stripe>
245
       <el-table :data="haocaiarr" border stripe>
822
         reason5: "",
829
         reason5: "",
823
         reasonarr1: [],
830
         reasonarr1: [],
824
         dialogStatus: {
831
         dialogStatus: {
832
+          dialog_ywzx_menchuli: false,
833
+          dialog_ywzx_huichuli: false,
825
           dialog_schEdit: false,
834
           dialog_schEdit: false,
826
           dialog_dispatch_zhuanpai: false,
835
           dialog_dispatch_zhuanpai: false,
827
           dialog_zhdd_zhipai: false,
836
           dialog_zhdd_zhipai: false,
994
           communicate: "1",
1003
           communicate: "1",
995
           cont: "",
1004
           cont: "",
996
         },
1005
         },
1006
+        mendeptidArr:[],
1007
+        tishiyu:'请选择住院科室',
1008
+        appointmentMenForm:{
1009
+          F_gtqk:'0',
1010
+          F_zyks:'',
1011
+          cont:''
1012
+        },
1013
+        tishiyuhui:'请选择会诊科室',
1014
+        huideptidArr:[],
1015
+        huizhenrepairman:[],
1016
+        appointmentHuiForm:{
1017
+          F_hzqk:'0',
1018
+          F_hzlx:'0',
1019
+          F_hzks:'',
1020
+          F_hzzj:'',
1021
+          cont:''
1022
+        },
997
         consumablesForm: {
1023
         consumablesForm: {
998
           confirmtype: "1",
1024
           confirmtype: "1",
999
           reason: "",
1025
           reason: "",
1790
             });
1816
             });
1791
           });
1817
           });
1792
       },
1818
       },
1819
+      gtqkChange(val){
1820
+        if(val == '1'){
1821
+          this.mendeptidArr = []
1822
+          this.appointmentMenForm.F_zyks = ''
1823
+        }
1824
+      },
1825
+      getmenDeptid(data){
1826
+        this.mendeptidArr = data;
1827
+        this.appointmentMenForm.F_zyks = data[data.length - 1];
1828
+      },
1829
+      gethuiDeptid(data){
1830
+        this.huideptidArr = data;
1831
+        this.appointmentHuiForm.F_hzks = data[data.length - 1];
1832
+        this.huizhenrepairman = []
1833
+        this.appointmentHuiForm.F_hzzj = ""
1834
+        if(this.appointmentHuiForm.F_hzks){
1835
+          this.getHuimen(this.appointmentHuiForm.F_hzks);
1836
+        }
1837
+      },
1793
       getDeptid(data) {
1838
       getDeptid(data) {
1794
         console.log(data);
1839
         console.log(data);
1795
         this.deptidArr = data;
1840
         this.deptidArr = data;
1849
           resolve();
1894
           resolve();
1850
         });
1895
         });
1851
       },
1896
       },
1897
+      getHuimen(id) {
1898
+        return new Promise((resolve) => {
1899
+          const params = {
1900
+            deptid: id, // 字典管理的工单标识
1901
+          };
1902
+          getClassByDeptId(params).then((res) => {
1903
+            this.huizhenrepairman = res.rows;
1904
+          });
1905
+          resolve();
1906
+        });
1907
+      },
1852
       changeRepairman(data) {
1908
       changeRepairman(data) {
1853
         this.transferForm.tousercode = data;
1909
         this.transferForm.tousercode = data;
1854
       },
1910
       },
1858
       changedispatchRepairman(data) {
1914
       changedispatchRepairman(data) {
1859
         this.dispatchtransferForm.DealMan = data;
1915
         this.dispatchtransferForm.DealMan = data;
1860
       },
1916
       },
1917
+      changeHuiRepairman(data){
1918
+        this.appointmentHuiForm.F_hzzj = data;
1919
+      },
1861
       bigImg(url) {
1920
       bigImg(url) {
1862
         this.dialogImgVisible = true;
1921
         this.dialogImgVisible = true;
1863
         this.imgrepairUrl = url;
1922
         this.imgrepairUrl = url;
2118
               case "appointmentForm":
2177
               case "appointmentForm":
2119
                 this.postEvent = getDealWorkOrder;
2178
                 this.postEvent = getDealWorkOrder;
2120
                 break;
2179
                 break;
2180
+              case "appointmentMenForm":
2181
+                this.postEvent = getDealWorkOrder;
2182
+                break;
2183
+              case "appointmentHuiForm":
2184
+                this.postEvent = getDealWorkOrder;
2185
+                break;
2121
               case "consumablesForm":
2186
               case "consumablesForm":
2122
                 this.postEvent = getHaocaiOrder;
2187
                 this.postEvent = getHaocaiOrder;
2123
                 break;
2188
                 break;
2181
                       type: "success",
2246
                       type: "success",
2182
                       message: "操作成功!",
2247
                       message: "操作成功!",
2183
                     });
2248
                     });
2249
+                    if(this.optionName == 'ywzx_menchuli'){
2250
+                      this.appointmentMenForm.F_gtqk = '0'
2251
+                      this.appointmentMenForm.F_zyks = ''
2252
+                      this.appointmentMenForm.cont = ''
2253
+                    }
2254
+                    if(this.optionName == 'ywzx_huichuli'){
2255
+                      this.appointmentHuiForm.F_hzqk = '0'
2256
+                      this.appointmentHuiForm.F_hzlx = '0'
2257
+                      this.appointmentHuiForm.F_hzks = ''
2258
+                      this.appointmentHuiForm.F_hzzj = ''
2259
+                      this.appointmentHuiForm.cont = ''
2260
+                    }
2184
                     if (this.optionName == 'repairconfirm') {
2261
                     if (this.optionName == 'repairconfirm') {
2185
                       this.consumablesConfirmForm.confirmtype = "1"
2262
                       this.consumablesConfirmForm.confirmtype = "1"
2186
                       this.consumablesConfirmForm.Attitude = 0
2263
                       this.consumablesConfirmForm.Attitude = 0

+ 16 - 5
CallCenterWeb.UI/RMYY/src/components/workOrder/information/addOrEditInfOrder.vue

780
     },
780
     },
781
     getYQmsg() {
781
     getYQmsg() {
782
       const params = {
782
       const params = {
783
-        tel: this.callinNum
783
+        tel: this.callinNum || this.ruleForm.F_Phon
784
       }
784
       }
785
       GetModelByTel(params).then(res=>{
785
       GetModelByTel(params).then(res=>{
786
         if(res.state == 'success' && res.data){
786
         if(res.state == 'success' && res.data){
996
         .catch(() => {})
996
         .catch(() => {})
997
     },
997
     },
998
     async submitForm() {
998
     async submitForm() {
999
-      // console.log(this.telTopRightState);
1000
       if (this.telTopRightState == '通话中') {
999
       if (this.telTopRightState == '通话中') {
1001
         this.$message('请挂断后再提交工单')
1000
         this.$message('请挂断后再提交工单')
1002
         return
1001
         return
1003
       }
1002
       }
1004
-      // console.log(this.ruleForm.F_Type2, 'this.ruleForm.F_type2')
1005
       if (!this.ruleForm.F_Type2 && !this.wid) {
1003
       if (!this.ruleForm.F_Type2 && !this.wid) {
1006
         this.$message.error('请选择工单类别')
1004
         this.$message.error('请选择工单类别')
1007
         return
1005
         return
1011
         this.$message.error('业务类别与工单类别不匹配,请重新选择')
1009
         this.$message.error('业务类别与工单类别不匹配,请重新选择')
1012
         return
1010
         return
1013
       }
1011
       }
1014
-      // console.log(resTypeArr)
1015
-      // return
1016
       if (this.iswomanage == 1) {
1012
       if (this.iswomanage == 1) {
1017
         this.ruleForm.clbm = ''
1013
         this.ruleForm.clbm = ''
1018
         this.ruleForm.clid = ''
1014
         this.ruleForm.clid = ''
1021
       if(this.isAddHos == 1){ //需要添加院区
1017
       if(this.isAddHos == 1){ //需要添加院区
1022
         this.getAddHos()
1018
         this.getAddHos()
1023
       }
1019
       }
1020
+      if(this.worktypeInfo3 == 'menzhen'){
1021
+        this.ruleForm.F_sfjhz = ''
1022
+        if(this.ruleForm.F_lyfs == '0'){
1023
+          this.ruleForm.F_pcdd = ''
1024
+          this.ruleForm.F_sbxq = ''
1025
+          this.ruleForm.F_ryxq = ''
1026
+        }
1027
+      }
1028
+      if(this.worktypeInfo3 == 'huizhen'){
1029
+        this.ruleForm.F_lyfs = ''
1030
+        this.ruleForm.F_sxzzd = ''
1031
+      }
1024
       await this.clickEye()
1032
       await this.clickEye()
1025
       this.$refs.ruleForm.validate((valid) => {
1033
       this.$refs.ruleForm.validate((valid) => {
1026
         if (valid) {
1034
         if (valid) {
1249
     },
1257
     },
1250
     storagephone() {
1258
     storagephone() {
1251
       this.$bus.$emit('hzphone', this.ruleForm.F_Phon)
1259
       this.$bus.$emit('hzphone', this.ruleForm.F_Phon)
1260
+      if(this.worktypeInfo3 == 'menzhen' || this.worktypeInfo3 == 'huizhen'){
1261
+        this.getYQmsg()
1262
+      }
1252
     },
1263
     },
1253
     storagename() {
1264
     storagename() {
1254
       this.$bus.$emit('hzname', this.ruleForm.F_FullName)
1265
       this.$bus.$emit('hzname', this.ruleForm.F_FullName)