|
|
@@ -184,6 +184,40 @@
|
|
184
|
184
|
<!-- 会诊结束 -->
|
|
185
|
185
|
<!-- 门诊开始 -->
|
|
186
|
186
|
<el-row v-if="worktypeInfo3 === 'menzhen'">
|
|
|
187
|
+ <el-col :span="24" v-if="!this.wid">
|
|
|
188
|
+ <el-form-item label="患者信息">
|
|
|
189
|
+ <el-tag :key="tag" v-for="(tag,index) in dynamicTags" size="medium" closable :class="{'bortag':currentIndex==index}"
|
|
|
190
|
+ :disable-transitions="false" style="margin-right: 10px;" @close="colsePatient(index,tag)" @click="changePatient(index,tag)"> {{tag}}</el-tag>
|
|
|
191
|
+ <el-button icon="el-icon-plus" size="mini" @click="addPatient">新增患者</el-button>
|
|
|
192
|
+ </el-form-item>
|
|
|
193
|
+ </el-col>
|
|
|
194
|
+ </el-row>
|
|
|
195
|
+ <el-row v-if="worktypeInfo3 === 'menzhen'">
|
|
|
196
|
+ <el-col :span="12" v-if="patientMsgAll[currentIndex]">
|
|
|
197
|
+ <el-form-item label="患者姓名">
|
|
|
198
|
+ <el-input
|
|
|
199
|
+ v-model="patientMsgAll[currentIndex].name"
|
|
|
200
|
+ placeholder="请输入患者姓名"
|
|
|
201
|
+ />
|
|
|
202
|
+ </el-form-item>
|
|
|
203
|
+ </el-col>
|
|
|
204
|
+ <el-col :span="12" v-if="patientMsgAll[currentIndex]">
|
|
|
205
|
+ <el-form-item label="患者电话">
|
|
|
206
|
+ <el-input
|
|
|
207
|
+ v-model="patientMsgAll[currentIndex].tel"
|
|
|
208
|
+ placeholder="请输入患者电话"
|
|
|
209
|
+ />
|
|
|
210
|
+ </el-form-item>
|
|
|
211
|
+ </el-col>
|
|
|
212
|
+ <el-col :span="12" v-if="patientMsgAll[currentIndex]">
|
|
|
213
|
+ <el-form-item label="接诊院区">
|
|
|
214
|
+ <el-select clearable v-model="patientMsgAll[currentIndex].jzyq">
|
|
|
215
|
+ <el-option v-for="(item,index) in hospitalDataLists" :key="index" :value="item.T_Woid" :label="item.T_Woname"></el-option>
|
|
|
216
|
+ </el-select>
|
|
|
217
|
+ </el-form-item>
|
|
|
218
|
+ </el-col>
|
|
|
219
|
+ </el-row>
|
|
|
220
|
+ <el-row v-if="worktypeInfo3 === 'menzhen'">
|
|
187
|
221
|
<el-col :span="12">
|
|
188
|
222
|
<el-form-item label="双向转诊单">
|
|
189
|
223
|
<el-radio-group v-model="ruleForm.F_sxzzd">
|
|
|
@@ -392,13 +426,13 @@
|
|
392
|
426
|
<el-col v-if="iswomanage != 1" :span="12">
|
|
393
|
427
|
<el-form-item label="处理方式" prop="opt">
|
|
394
|
428
|
<el-radio-group v-model="ruleForm.opt">
|
|
395
|
|
- <el-radio label="1">立即办理</el-radio>
|
|
|
429
|
+ <el-radio label="1" v-if="worktypeInfo3 !== 'menzhen'">立即办理</el-radio>
|
|
396
|
430
|
<el-radio label="3">转派</el-radio>
|
|
397
|
431
|
</el-radio-group>
|
|
398
|
432
|
</el-form-item>
|
|
399
|
433
|
</el-col>
|
|
400
|
434
|
</el-row>
|
|
401
|
|
- <el-row v-if="ruleForm.opt == '3' && iswomanage != 1">
|
|
|
435
|
+ <el-row v-if="ruleForm.opt == '3' && iswomanage != 1 && worktypeInfo3 !== 'menzhen'">
|
|
402
|
436
|
<el-col :span="12">
|
|
403
|
437
|
<el-form-item label="转派科室" prop="clbm">
|
|
404
|
438
|
<select-dept-tree
|
|
|
@@ -438,6 +472,7 @@
|
|
438
|
472
|
</template>
|
|
439
|
473
|
|
|
440
|
474
|
<script>
|
|
|
475
|
+import {getListyqRepairlist} from "@/api/systemSetup/roleSetting/hospitalArea";
|
|
441
|
476
|
import {
|
|
442
|
477
|
addOrEdittOrder,
|
|
443
|
478
|
updateWorkOrder,
|
|
|
@@ -510,6 +545,17 @@ export default {
|
|
510
|
545
|
|
|
511
|
546
|
data() {
|
|
512
|
547
|
return {
|
|
|
548
|
+ dynamicTags: ['患者1'],
|
|
|
549
|
+ currentIndex:0,
|
|
|
550
|
+ currentPatient:'患者1',//患者信息切换
|
|
|
551
|
+ hospitalDataLists:[],
|
|
|
552
|
+ // patientArrData:['患者1'],
|
|
|
553
|
+ patientMsgAll:[
|
|
|
554
|
+ {
|
|
|
555
|
+ name:"",
|
|
|
556
|
+ tel:"",
|
|
|
557
|
+ jzyq:""
|
|
|
558
|
+ }],
|
|
513
|
559
|
zpdptname: '',
|
|
514
|
560
|
zppername: '',
|
|
515
|
561
|
typeid: 1,
|
|
|
@@ -703,6 +749,10 @@ export default {
|
|
703
|
749
|
this.zpdptname = '被表扬科室'
|
|
704
|
750
|
this.zppername = '被表扬人'
|
|
705
|
751
|
}
|
|
|
752
|
+ if(this.worktypeInfo3 === 'menzhen'){
|
|
|
753
|
+ this.getListyq()
|
|
|
754
|
+ this.ruleForm.opt = '3'
|
|
|
755
|
+ }
|
|
706
|
756
|
if (this.ruleForm.F_Type2) {
|
|
707
|
757
|
this.getAuto()
|
|
708
|
758
|
}
|
|
|
@@ -734,6 +784,45 @@ export default {
|
|
734
|
784
|
this.getRelations()
|
|
735
|
785
|
},
|
|
736
|
786
|
methods: {
|
|
|
787
|
+ getListyq(){
|
|
|
788
|
+ const params = {
|
|
|
789
|
+ pageindex: 1, // 第几页
|
|
|
790
|
+ pagesise: 100, // 每页几条信息
|
|
|
791
|
+ };
|
|
|
792
|
+ getListyqRepairlist(params).then(res=>{
|
|
|
793
|
+ this.hospitalDataLists = res.rows;
|
|
|
794
|
+ })
|
|
|
795
|
+ },
|
|
|
796
|
+ addPatient(){
|
|
|
797
|
+ var item = this.dynamicTags[this.dynamicTags.length-1]
|
|
|
798
|
+ const index = Number(item.substr(item.length-1,1))+1
|
|
|
799
|
+ this.dynamicTags.push('患者'+index)
|
|
|
800
|
+ this.patientMsgAll.push({
|
|
|
801
|
+ name:'',
|
|
|
802
|
+ tel:'',
|
|
|
803
|
+ jzyq:''
|
|
|
804
|
+ })
|
|
|
805
|
+ if(this.dynamicTags.length>1){
|
|
|
806
|
+ this.currentIndex = this.dynamicTags.length-1
|
|
|
807
|
+ }else{
|
|
|
808
|
+ this.currentIndex = 0
|
|
|
809
|
+ }
|
|
|
810
|
+ },
|
|
|
811
|
+ changePatient(index,data){
|
|
|
812
|
+ this.currentIndex = index
|
|
|
813
|
+ },
|
|
|
814
|
+ colsePatient(index,tag){
|
|
|
815
|
+ if(this.dynamicTags.length==1){
|
|
|
816
|
+ return
|
|
|
817
|
+ }
|
|
|
818
|
+ if(index>0){
|
|
|
819
|
+ this.currentIndex = index-1
|
|
|
820
|
+ }else{
|
|
|
821
|
+ this.currentIndex = 0
|
|
|
822
|
+ }
|
|
|
823
|
+ this.patientMsgAll.splice(index, 1)
|
|
|
824
|
+ this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);
|
|
|
825
|
+ },
|
|
737
|
826
|
getAuto() {
|
|
738
|
827
|
this.deptidArr1 = []
|
|
739
|
828
|
this.repairman1 = []
|
|
|
@@ -963,6 +1052,12 @@ export default {
|
|
963
|
1052
|
this.ruleForm.F_Relationship = res.F_Relationship
|
|
964
|
1053
|
this.ruleForm.EmergencyTypes = res.F_EmergencyTypes
|
|
965
|
1054
|
// 门会诊开始
|
|
|
1055
|
+ this.currentIndex = 0
|
|
|
1056
|
+ this.patientMsgAll = [{
|
|
|
1057
|
+ name: res.F_FullName,
|
|
|
1058
|
+ tel: res.F_hzdh,
|
|
|
1059
|
+ jzyq: res.F_JzYq
|
|
|
1060
|
+ }]
|
|
966
|
1061
|
this.ruleForm.F_Yqname = res.F_ssyy
|
|
967
|
1062
|
if(res.F_sxzzd){
|
|
968
|
1063
|
this.ruleForm.F_sxzzd = res.F_sxzzd.toString()
|
|
|
@@ -1009,6 +1104,8 @@ export default {
|
|
1009
|
1104
|
.catch(() => {})
|
|
1010
|
1105
|
},
|
|
1011
|
1106
|
async submitForm() {
|
|
|
1107
|
+ // console.log(this.patientMsgAll)
|
|
|
1108
|
+ // return
|
|
1012
|
1109
|
if (this.telTopRightState == '通话中') {
|
|
1013
|
1110
|
this.$message('请挂断后再提交工单')
|
|
1014
|
1111
|
return
|
|
|
@@ -1017,11 +1114,11 @@ export default {
|
|
1017
|
1114
|
this.$message.error('请选择工单类别')
|
|
1018
|
1115
|
return
|
|
1019
|
1116
|
}
|
|
1020
|
|
- var resTypeArr = this.$store.getters.workTypeMap[parseInt(this.ruleForm.F_Type2)].ids
|
|
1021
|
|
- if(resTypeArr[0] != 1000){
|
|
1022
|
|
- this.$message.error('业务类别与工单类别不匹配,请重新选择')
|
|
1023
|
|
- return
|
|
1024
|
|
- }
|
|
|
1117
|
+ // var resTypeArr = this.$store.getters.workTypeMap[parseInt(this.ruleForm.F_Type2)].ids
|
|
|
1118
|
+ // if(resTypeArr[0] != 1000){
|
|
|
1119
|
+ // this.$message.error('业务类别与工单类别不匹配,请重新选择')
|
|
|
1120
|
+ // return
|
|
|
1121
|
+ // }
|
|
1025
|
1122
|
if (this.iswomanage == 1) {
|
|
1026
|
1123
|
this.ruleForm.clbm = ''
|
|
1027
|
1124
|
this.ruleForm.clid = ''
|
|
|
@@ -1037,10 +1134,18 @@ export default {
|
|
1037
|
1134
|
this.ruleForm.F_sbxq = ''
|
|
1038
|
1135
|
this.ruleForm.F_ryxq = ''
|
|
1039
|
1136
|
}
|
|
|
1137
|
+ const indexnum = this.patientMsgAll.findIndex((o) => {
|
|
|
1138
|
+ return !o.name || !o.tel || !o.jzyq
|
|
|
1139
|
+ })
|
|
|
1140
|
+ if (indexnum >= 0) {
|
|
|
1141
|
+ this.$message.error('请填入对应患者信息')
|
|
|
1142
|
+ return
|
|
|
1143
|
+ }
|
|
1040
|
1144
|
}
|
|
1041
|
1145
|
if(this.worktypeInfo3 == 'huizhen'){
|
|
1042
|
1146
|
this.ruleForm.F_lyfs = ''
|
|
1043
|
1147
|
this.ruleForm.F_sxzzd = ''
|
|
|
1148
|
+ this.patientMsgAll = null
|
|
1044
|
1149
|
}
|
|
1045
|
1150
|
await this.clickEye()
|
|
1046
|
1151
|
this.$refs.ruleForm.validate((valid) => {
|
|
|
@@ -1087,6 +1192,7 @@ export default {
|
|
1087
|
1192
|
F_lyfs: this.ruleForm.F_lyfs,//来院方式
|
|
1088
|
1193
|
F_sqhzsj: this.ruleForm.F_sqhzsj,//申请会诊时间
|
|
1089
|
1194
|
F_jzsj: this.ruleForm.F_jzsj,//就诊时间
|
|
|
1195
|
+ Hzxx: this.patientMsgAll
|
|
1090
|
1196
|
}
|
|
1091
|
1197
|
// 添加
|
|
1092
|
1198
|
if (!this.wid) {
|
|
|
@@ -1302,3 +1408,13 @@ export default {
|
|
1302
|
1408
|
}
|
|
1303
|
1409
|
}
|
|
1304
|
1410
|
</style>
|
|
|
1411
|
+<style rel="stylesheet/scss" lang="scss" scoped="scoped">
|
|
|
1412
|
+ .bortag{
|
|
|
1413
|
+ font-weight: bold;
|
|
|
1414
|
+ }
|
|
|
1415
|
+ /deep/.el-radio-button__inner {
|
|
|
1416
|
+ margin-right: 15px;
|
|
|
1417
|
+ border-radius: 0 !important;
|
|
|
1418
|
+ border: 1px solid rgb(205, 205, 205);
|
|
|
1419
|
+ }
|
|
|
1420
|
+</style>
|