|
|
@@ -46,7 +46,7 @@
|
|
46
|
46
|
</uni-data-picker>
|
|
47
|
47
|
</uni-forms-item>
|
|
48
|
48
|
<uni-forms-item label="指派人" name="Maintenancer" v-show="valiFormData.IsEnd === 0">
|
|
49
|
|
- <uni-combox :candidates="candidates" placeholder="输入选择报修人" @input="handleZP" v-model="valiFormData.MaintenancerName"></uni-combox>
|
|
|
49
|
+ <uni-combox :candidates="candidatesDesignate" placeholder="输入选择报修人" @input="handleZP" v-model="valiFormData.MaintenancerName"></uni-combox>
|
|
50
|
50
|
</uni-forms-item>
|
|
51
|
51
|
</div>
|
|
52
|
52
|
</uni-forms>
|
|
|
@@ -119,6 +119,7 @@
|
|
119
|
119
|
orderApplicantData: [],
|
|
120
|
120
|
departList: [],
|
|
121
|
121
|
candidates: [],
|
|
|
122
|
+ candidatesDesignate:[],
|
|
122
|
123
|
// 校验规则
|
|
123
|
124
|
rules: {
|
|
124
|
125
|
WorkOrderCategory: {
|
|
|
@@ -163,14 +164,15 @@
|
|
163
|
164
|
onLoad(option) {
|
|
164
|
165
|
this.getFontSizeValue = uni.getStorageSync('fontSizeValue')+'rem'
|
|
165
|
166
|
// 维修员下步流程指派的时候只能指派给自己部门
|
|
166
|
|
- // if(uni.getStorageSync("roleCode") == 'GLY' || uni.getStorageSync("roleCode") == 'WXY') {
|
|
|
167
|
+ if(uni.getStorageSync("roleCode") == 'GLY' || uni.getStorageSync("roleCode") == 'WXY') {
|
|
167
|
168
|
this.isShowIsEnd = true
|
|
168
|
|
- // if(uni.getStorageSync("roleCode") == 'WXY') {
|
|
|
169
|
+ if(uni.getStorageSync("roleCode") == 'WXY') {
|
|
169
|
170
|
this.readonly = true
|
|
170
|
171
|
this.valiFormData.ApplicationDept = uni.getStorageSync("deptId")
|
|
171
|
172
|
this.valiFormData.MaintenanceDept = uni.getStorageSync("deptId")
|
|
172
|
173
|
pageData.getApplicant(uni.getStorageSync("deptId"), (res,data,candidates) => {
|
|
173
|
174
|
this.candidates = candidates
|
|
|
175
|
+ this.candidatesDesignate = candidates
|
|
174
|
176
|
this.MaintenancerData = res
|
|
175
|
177
|
this.ApplicantData = res
|
|
176
|
178
|
this.orderApplicantData = data
|
|
|
@@ -184,8 +186,8 @@
|
|
184
|
186
|
}
|
|
185
|
187
|
this.getLocation(this.valiFormData.Applicant)
|
|
186
|
188
|
})
|
|
187
|
|
- // }
|
|
188
|
|
- // }
|
|
|
189
|
+ }
|
|
|
190
|
+ }
|
|
189
|
191
|
this.workorderid = option.wid
|
|
190
|
192
|
// 部门数据
|
|
191
|
193
|
pageData.getDet((res,data) => {
|
|
|
@@ -216,7 +218,7 @@
|
|
216
|
218
|
// 申请部门
|
|
217
|
219
|
deptNodeclick(e) {
|
|
218
|
220
|
if (e) {
|
|
219
|
|
- this.valiFormData.ApplicationDept = e.value
|
|
|
221
|
+ // this.valiFormData.ApplicationDept = e.value
|
|
220
|
222
|
pageData.getApplicant(e.value.split('_')[1], (res, data, candidates) => {
|
|
221
|
223
|
this.candidates = candidates
|
|
222
|
224
|
this.ApplicantData = res
|
|
|
@@ -231,10 +233,10 @@
|
|
231
|
233
|
//指派部门
|
|
232
|
234
|
maintenanceNodeclick(e) {
|
|
233
|
235
|
if(e) {
|
|
234
|
|
- this.valiFormData.MaintenanceDept = e.value
|
|
235
|
|
- pageData.getApplicant(e.value.split('_')[1], (res) => {
|
|
|
236
|
+ // this.valiFormData.MaintenanceDept = e.value
|
|
|
237
|
+ pageData.getApplicant(e.value.split('_')[1], (res, data, candidates) => {
|
|
236
|
238
|
this.MaintenancerData = res
|
|
237
|
|
- this.candidates = candidates
|
|
|
239
|
+ this.candidatesDesignate = candidates
|
|
238
|
240
|
})
|
|
239
|
241
|
}
|
|
240
|
242
|
},
|
|
|
@@ -275,6 +277,7 @@
|
|
275
|
277
|
return
|
|
276
|
278
|
}
|
|
277
|
279
|
console.log(this.valiFormData.ApplicationDept.length)
|
|
|
280
|
+
|
|
278
|
281
|
this.$refs[ref].validate().then(res => {
|
|
279
|
282
|
const params = {
|
|
280
|
283
|
WorkOrderCategory: this.valiFormData.WorkOrderCategory, // 工单类别
|
|
|
@@ -286,7 +289,7 @@
|
|
286
|
289
|
PlaceOfRepair: this.valiFormData.PlaceOfRepair, // 报修地点
|
|
287
|
290
|
IsEnd: this.valiFormData.IsEnd, // 是否完结
|
|
288
|
291
|
File: this.valiFormData.File, // 文件
|
|
289
|
|
- MaintenanceDept: this.valiFormData.MaintenanceDept, // 维修部门
|
|
|
292
|
+ MaintenanceDept: this.valiFormData.MaintenanceDept.split('_')[1], // 维修部门
|
|
290
|
293
|
DeviceEncode: this.valiFormData.epCode,
|
|
291
|
294
|
Maintenancer: this.valiFormData.Maintenancer, // 指派人
|
|
292
|
295
|
EmergencyTypes: this.valiFormData.EmergencyTypes
|