|
|
@@ -4,12 +4,35 @@
|
|
4
|
4
|
<view class="form">
|
|
5
|
5
|
<!-- 基础表单校验 -->
|
|
6
|
6
|
<uni-forms ref="valiForm" >
|
|
7
|
|
- <uni-forms-item label="是否调度回访" name="isReturnVisit">
|
|
|
7
|
+ <uni-forms-item label="是否调度回访" name="isReturnVisit" v-show="identification!='menzhen' && identification!='huizhen'">
|
|
8
|
8
|
<uni-data-checkbox v-model="isReturnVisit" :localdata="returnVisit" />
|
|
9
|
9
|
</uni-forms-item>
|
|
10
|
|
- <uni-forms-item label="沟通情况" name="communicate">
|
|
|
10
|
+ <uni-forms-item label="沟通情况" name="communicate" v-show="identification!='menzhen' && identification!='huizhen'">
|
|
11
|
11
|
<uni-data-checkbox v-model="communicate" :localdata="communicateList" />
|
|
12
|
12
|
</uni-forms-item>
|
|
|
13
|
+ <!-- 门诊 -->
|
|
|
14
|
+ <uni-forms-item label="沟通情况" name="F_gtqk" v-show="identification=='menzhen'">
|
|
|
15
|
+ <uni-data-checkbox v-model="F_gtqk" :localdata="F_gtqkList" />
|
|
|
16
|
+ </uni-forms-item>
|
|
|
17
|
+ <uni-forms-item label="" name="F_zyks" v-show="identification=='menzhen' && F_gtqk=='0'">
|
|
|
18
|
+ <uni-data-picker placeholder="请选择住院科室" :showSearch= "showSearch" :localdata="deptDataTree" v-model="F_zyks" @nodeclick="deptNodeclick" @popupclosed="popupclosedDept" @searchTrue="departSearchTrue">
|
|
|
19
|
+ </uni-data-picker>
|
|
|
20
|
+ </uni-forms-item>
|
|
|
21
|
+ <!-- 会诊 -->
|
|
|
22
|
+ <uni-forms-item label="会诊情况" name="F_hzqk" v-show="identification=='huizhen'">
|
|
|
23
|
+ <uni-data-checkbox v-model="F_hzqk" :localdata="F_hzqkList" />
|
|
|
24
|
+ </uni-forms-item>
|
|
|
25
|
+ <uni-forms-item label="会诊类型" name="F_hzlx" v-show="identification=='huizhen'">
|
|
|
26
|
+ <uni-data-checkbox v-model="F_hzlx" :localdata="F_hzlxList" />
|
|
|
27
|
+ </uni-forms-item>
|
|
|
28
|
+ <uni-forms-item label="会诊科室" name="F_zyks" v-show="identification=='huizhen'">
|
|
|
29
|
+ <uni-data-picker placeholder="请选择会诊科室" :showSearch= "showSearch" :localdata="deptDataTree" v-model="F_zyks" @nodeclick="deptNodeclick" @popupclosed="popupclosedDept" @searchTrue="departSearchTrue">
|
|
|
30
|
+ </uni-data-picker>
|
|
|
31
|
+ </uni-forms-item>
|
|
|
32
|
+ <uni-forms-item label="会诊专家" name="F_hzzj" v-show="identification=='huizhen'">
|
|
|
33
|
+ <uni-combox :candidates="candidates" placeholder="请选择会诊专家" @input="handleInput"
|
|
|
34
|
+ v-model="F_hzzjname"></uni-combox>
|
|
|
35
|
+ </uni-forms-item>
|
|
13
|
36
|
<uni-forms-item label="处理结果" name="dealCon">
|
|
14
|
37
|
<uni-easyinput type="textarea" v-model="dealCon" placeholder="请输入处理结果" />
|
|
15
|
38
|
</uni-forms-item>
|
|
|
@@ -27,6 +50,8 @@
|
|
27
|
50
|
export default {
|
|
28
|
51
|
data() {
|
|
29
|
52
|
return {
|
|
|
53
|
+ deptDataTree: [], // 科室-部门数据
|
|
|
54
|
+ showSearch: true,
|
|
30
|
55
|
identification:'',
|
|
31
|
56
|
getFontSizeValue:'1rem',
|
|
32
|
57
|
disabledButton:false,
|
|
|
@@ -47,10 +72,49 @@
|
|
47
|
72
|
},{
|
|
48
|
73
|
value:0,
|
|
49
|
74
|
text:'未解决'
|
|
50
|
|
- }]
|
|
|
75
|
+ }],
|
|
|
76
|
+ // 门诊
|
|
|
77
|
+ F_gtqk:0,
|
|
|
78
|
+ F_zyks:'',
|
|
|
79
|
+ vehicleDetpid:'',
|
|
|
80
|
+ F_gtqkList:[{
|
|
|
81
|
+ value:0,
|
|
|
82
|
+ text:'住院'
|
|
|
83
|
+ },{
|
|
|
84
|
+ value:1,
|
|
|
85
|
+ text:'离院'
|
|
|
86
|
+ }],
|
|
|
87
|
+ // 会诊
|
|
|
88
|
+ F_hzqk:0,
|
|
|
89
|
+ F_hzlx:0,
|
|
|
90
|
+ F_hzzj:'',
|
|
|
91
|
+ F_hzzjname:'',
|
|
|
92
|
+ candidates: [],
|
|
|
93
|
+ ApplicantData:[],
|
|
|
94
|
+ orderApplicantData:[],
|
|
|
95
|
+ F_hzqkList:[{
|
|
|
96
|
+ value:0,
|
|
|
97
|
+ text:'已会诊'
|
|
|
98
|
+ },{
|
|
|
99
|
+ value:1,
|
|
|
100
|
+ text:'未会诊'
|
|
|
101
|
+ }],
|
|
|
102
|
+ F_hzlxList:[{
|
|
|
103
|
+ value:0,
|
|
|
104
|
+ text:'普通会诊'
|
|
|
105
|
+ },{
|
|
|
106
|
+ value:1,
|
|
|
107
|
+ text:'急会诊'
|
|
|
108
|
+ }],
|
|
51
|
109
|
}
|
|
52
|
110
|
},
|
|
53
|
111
|
onLoad(option) {
|
|
|
112
|
+ // 部门数据
|
|
|
113
|
+ pageData.getDet((res,data) => {
|
|
|
114
|
+ console.log(res)
|
|
|
115
|
+ this.deptDataTree = res
|
|
|
116
|
+ })
|
|
|
117
|
+ console.log(option.orderType,'option.orderType')
|
|
54
|
118
|
this.getDpartment(option.orderType)
|
|
55
|
119
|
this.getFontSizeValue = uni.getStorageSync('fontSizeValue')+'rem'
|
|
56
|
120
|
this.workorderid = option.wid
|
|
|
@@ -59,6 +123,34 @@
|
|
59
|
123
|
|
|
60
|
124
|
},
|
|
61
|
125
|
methods: {
|
|
|
126
|
+ deptNodeclick(e) {
|
|
|
127
|
+ if(e) {
|
|
|
128
|
+ this.vehicleDetpid = e.value
|
|
|
129
|
+ pageData.getApplicant(e.value.split('_')[1], (res,data,candidates) => {
|
|
|
130
|
+ this.candidates = candidates
|
|
|
131
|
+ this.ApplicantData = res
|
|
|
132
|
+ this.orderApplicantData = data
|
|
|
133
|
+ })
|
|
|
134
|
+ this.candidates = []
|
|
|
135
|
+ this.F_hzzj = ''
|
|
|
136
|
+ this.F_hzzjname = ''
|
|
|
137
|
+ console.log(this.vehicleDetpid,'this.vehicleDetpid')
|
|
|
138
|
+ }
|
|
|
139
|
+ },
|
|
|
140
|
+ handleInput(res) {
|
|
|
141
|
+ let e = this.$mHelper.getValueByText(res, this.ApplicantData)
|
|
|
142
|
+ this.F_hzzj = e
|
|
|
143
|
+ this.F_hzzjname = res
|
|
|
144
|
+ console.log(e,this.F_hzzjname)
|
|
|
145
|
+ },
|
|
|
146
|
+ departSearchTrue(e){
|
|
|
147
|
+ this.F_zyks = e.value
|
|
|
148
|
+ console.log(this.F_zyks,'this.F_zyks')
|
|
|
149
|
+ },
|
|
|
150
|
+ popupclosedDept(e) {
|
|
|
151
|
+ this.F_zyks = this.vehicleDetpid
|
|
|
152
|
+ console.log(this.F_zyks,'this.F_zyks')
|
|
|
153
|
+ },
|
|
62
|
154
|
getDpartment(id) {
|
|
63
|
155
|
pageData.getGongDanType('1000',(res, data) => {
|
|
64
|
156
|
this.orderList = data
|
|
|
@@ -68,15 +160,55 @@
|
|
68
|
160
|
})
|
|
69
|
161
|
},
|
|
70
|
162
|
submit(ref,state) {
|
|
71
|
|
- this.disabledButton = true
|
|
72
|
|
- this.$refs[ref].validate().then(res => {
|
|
73
|
|
- const params = {
|
|
74
|
|
- WorkOrderCode: this.workorderid,
|
|
75
|
|
- cont: this.dealCon,
|
|
76
|
|
- isvisit: this.isReturnVisit,
|
|
77
|
|
- isover: 1,
|
|
78
|
|
- communicate: this.communicate
|
|
|
163
|
+ if(this.identification == 'menzhen'){
|
|
|
164
|
+ if(this.F_gtqk == 0){
|
|
|
165
|
+ if(!this.F_zyks){
|
|
|
166
|
+ this.$mHelper.toast('请选择住院科室')
|
|
|
167
|
+ return
|
|
|
168
|
+ }
|
|
|
169
|
+ }else{
|
|
|
170
|
+ this.F_zyks = ''
|
|
79
|
171
|
}
|
|
|
172
|
+ }
|
|
|
173
|
+ if(this.identification == 'huizhen'){
|
|
|
174
|
+ if(!this.F_zyks){
|
|
|
175
|
+ this.$mHelper.toast('请选择会诊科室')
|
|
|
176
|
+ return
|
|
|
177
|
+ }
|
|
|
178
|
+ if(!this.F_hzzj){
|
|
|
179
|
+ this.$mHelper.toast('请选择会诊专家')
|
|
|
180
|
+ return
|
|
|
181
|
+ }
|
|
|
182
|
+ }
|
|
|
183
|
+ this.disabledButton = true
|
|
|
184
|
+ this.$refs[ref].validate().then(res => {
|
|
|
185
|
+ if(this.identification == 'menzhen'){
|
|
|
186
|
+ const params = {
|
|
|
187
|
+ WorkOrderCode: this.workorderid,
|
|
|
188
|
+ isover: 1,
|
|
|
189
|
+ F_gtqk: this.F_gtqk,
|
|
|
190
|
+ F_zyks: this.F_zyks.split('_')[1],
|
|
|
191
|
+ cont: this.dealCon
|
|
|
192
|
+ }
|
|
|
193
|
+ }else if(this.identification == 'huizhen'){
|
|
|
194
|
+ const params = {
|
|
|
195
|
+ WorkOrderCode: this.workorderid,
|
|
|
196
|
+ isover: 1,
|
|
|
197
|
+ cont: this.dealCon,
|
|
|
198
|
+ F_hzqk:this.F_hzqk,
|
|
|
199
|
+ F_hzlx:this.F_hzlx,
|
|
|
200
|
+ F_hzks:this.F_zyks.split('_')[1],
|
|
|
201
|
+ F_hzzj:this.F_hzzj,
|
|
|
202
|
+ }
|
|
|
203
|
+ }else{
|
|
|
204
|
+ const params = {
|
|
|
205
|
+ WorkOrderCode: this.workorderid,
|
|
|
206
|
+ cont: this.dealCon,
|
|
|
207
|
+ isvisit: this.isReturnVisit,
|
|
|
208
|
+ isover: 1,
|
|
|
209
|
+ communicate: this.communicate
|
|
|
210
|
+ }
|
|
|
211
|
+ }
|
|
80
|
212
|
this.$mHelper.httpPost("Con_WorkOrder/DealWorkOrder",params,2,res=>this.disabledButton=res)
|
|
81
|
213
|
|
|
82
|
214
|
}).catch(err => {
|