Explorar el Código

安阳办理工单验证

miaofuhao %!s(int64=3) %!d(string=hace) años
padre
commit
b31a402d85

+ 24 - 22
anyangWebAPP/pages/myTask/workOrderList/workOrderDetail/buttons/components/button_13/button_13.vue

@@ -182,28 +182,30 @@
182 182
 					}
183 183
 					this.formData.staisfied = 0
184 184
 				}
185
-				const params = {
186
-					workorderid: this.wid, // 工单id
187
-					dealman: this.formData.undertaker, //承办人
188
-					dealcontact: this.formData.undertaker_phone, //联系方式
189
-					duties: this.formData.undertaker_position, //职务
190
-					AuditUser: this.formData.auditLeader, //审核领导
191
-					post: this.formData.auditLeader_position, //审核领导职务
192
-					auditContact: this.formData.auditLeader_phone, //审核领导联系方式
193
-					result:this.simpleDetailStrStart + this.formData.detailRsult ,
194
-					situation: this.formData.detailRsult, //处理情况
195
-					isproresult: this.formData.feedback, //处理结果
196
-					isstaisfied: this.formData.staisfied, // 满意选项
197
-					feedbackReason: this.formData.feedbackReason, //不反馈原因
198
-					files: this.$mHelper.getImgString(this.imgList),
199
-					state: 1,
200
-					token: uni.getStorageSync("token")
201
-				}
202
-				if(uni.getStorageSync("roleCode") == 'WLDW' ) {
203
-					this.$mHelper.httpPost("WorkOrder/FeedBackWorkOrder",params,2)
204
-				}else if(uni.getStorageSync("roleCode") == 'EJWLDW') {
205
-					this.$mHelper.httpPost("WorkOrder/DealWorkOrder",params,2)
206
-				}
185
+				this.$refs[ref].validate().then(res => {
186
+					const params = {
187
+						workorderid: this.wid, // 工单id
188
+						dealman: this.formData.undertaker, //承办人
189
+						dealcontact: this.formData.undertaker_phone, //联系方式
190
+						duties: this.formData.undertaker_position, //职务
191
+						AuditUser: this.formData.auditLeader, //审核领导
192
+						post: this.formData.auditLeader_position, //审核领导职务
193
+						auditContact: this.formData.auditLeader_phone, //审核领导联系方式
194
+						result:this.simpleDetailStrStart + this.formData.detailRsult ,
195
+						situation: this.formData.detailRsult, //处理情况
196
+						isproresult: this.formData.feedback, //处理结果
197
+						isstaisfied: this.formData.staisfied, // 满意选项
198
+						feedbackReason: this.formData.feedbackReason, //不反馈原因
199
+						files: this.$mHelper.getImgString(this.imgList),
200
+						state: 1,
201
+						token: uni.getStorageSync("token")
202
+					}
203
+					if(uni.getStorageSync("roleCode") == 'WLDW' ) {
204
+						this.$mHelper.httpPost("WorkOrder/FeedBackWorkOrder",params,2)
205
+					}else if(uni.getStorageSync("roleCode") == 'EJWLDW') {
206
+						this.$mHelper.httpPost("WorkOrder/DealWorkOrder",params,2)
207
+					}
208
+				})
207 209
 			},
208 210
 			getImgData(data){
209 211
 				this.imgList = data