瀏覽代碼

按钮操作

zhaomin 3 年之前
父節點
當前提交
5588ef4430

+ 1 - 1
anyangWebAPP/pages/login/login.vue

161
 							uni.setStorageSync('userCode', data.user.F_UserCode)
161
 							uni.setStorageSync('userCode', data.user.F_UserCode)
162
 							const code = uni.getStorageSync("roleCode");
162
 							const code = uni.getStorageSync("roleCode");
163
 							
163
 							
164
-							if (code === "ZXLD"||code === "MTDD"||code === "WLDW"||code === "EJWLDW"||code === "GLY") {
164
+							if (code === "ZXLD"||code === "MTDD"||code === "WLDW"||code === "EJWLDW") {
165
 								uni.switchTab({
165
 								uni.switchTab({
166
 									url: '/pages/myTask/myTask'
166
 									url: '/pages/myTask/myTask'
167
 								});
167
 								});

+ 5 - 5
anyangWebAPP/pages/myTask/workOrderList/workOrderDetail/buttons/buttons.vue

14
 				<uni-popup-dialog ref="inputClose" mode="input" title="输入内容" @confirm="dialogInputConfirm">
14
 				<uni-popup-dialog ref="inputClose" mode="input" title="输入内容" @confirm="dialogInputConfirm">
15
 					<view style="width:100%;">
15
 					<view style="width:100%;">
16
 						<uni-data-select v-model="days" :clear="false" :localdata="datatime" placeholder="请选择申请延时时间" v-show="auditPlaceholder == '请输入申请延时原因'" style="margin-bottom: 30px;"></uni-data-select>
16
 						<uni-data-select v-model="days" :clear="false" :localdata="datatime" placeholder="请选择申请延时时间" v-show="auditPlaceholder == '请输入申请延时原因'" style="margin-bottom: 30px;"></uni-data-select>
17
-						<uni-data-select v-model="days" :clear="false" :localdata="timeList" placeholder = "请选择申请时间" v-show="auditPlaceholder == '请输入申请原因'" style="margin-bottom: 30px;"></uni-data-select>
17
+						<uni-data-select v-model="days" :clear="false" :localdata="timeList" placeholder = "请选择申请时间" v-show="auditPlaceholder == '请输入省平台申请延时原因'" style="margin-bottom: 30px;"></uni-data-select>
18
 						<uni-easyinput type="textarea" autoHeight v-model="cbreason" :placeholder="auditPlaceholder" />
18
 						<uni-easyinput type="textarea" autoHeight v-model="cbreason" :placeholder="auditPlaceholder" />
19
 					</view>
19
 					</view>
20
 				</uni-popup-dialog>
20
 				</uni-popup-dialog>
121
 					this.$refs.inputDialog.open()
121
 					this.$refs.inputDialog.open()
122
 				} else if(key == 48) { // 48省平台申请延时
122
 				} else if(key == 48) { // 48省平台申请延时
123
 					this.cbreason = ''
123
 					this.cbreason = ''
124
-					this.auditPlaceholder = '请输入申请原因'
124
+					this.auditPlaceholder = '请输入省平台申请延时原因'
125
 					this.$refs.inputDialog.open()
125
 					this.$refs.inputDialog.open()
126
 				} else if(key == 49) { // 49上报
126
 				} else if(key == 49) { // 49上报
127
 					this.cbreason = ''
127
 					this.cbreason = ''
179
 					this.workOrderContent("WorkOrder/RefuseWorkOrder", addParams)
179
 					this.workOrderContent("WorkOrder/RefuseWorkOrder", addParams)
180
 				} else if (this.auditPlaceholder === '请输入审核通过并转办原因') {
180
 				} else if (this.auditPlaceholder === '请输入审核通过并转办原因') {
181
 					this.toExamineWorkOrder(2)
181
 					this.toExamineWorkOrder(2)
182
-				} else if (this.auditPlaceholder === '请输入不通过原因') {
182
+				} else if (this.auditPlaceholder === '请输入审核不通过原因') {
183
 					this.toExamineWorkOrder(1)
183
 					this.toExamineWorkOrder(1)
184
 				} else if (this.auditPlaceholder === '请输入申请延时原因') {
184
 				} else if (this.auditPlaceholder === '请输入申请延时原因') {
185
 					const addParams = {
185
 					const addParams = {
216
 				} else if(this.auditPlaceholder === '请输入提交重办原因') {
216
 				} else if(this.auditPlaceholder === '请输入提交重办原因') {
217
 					const addParams = {reason: this.cbreason,ids: this.wid,iszb: 1}
217
 					const addParams = {reason: this.cbreason,ids: this.wid,iszb: 1}
218
 					this.workOrderContent("WorkOrder/SubReloadWorkOrder",addParams)
218
 					this.workOrderContent("WorkOrder/SubReloadWorkOrder",addParams)
219
-				}else if(this.auditPlaceholder === '请输入申请原因') {
219
+				}else if(this.auditPlaceholder === '请输入省平台申请延时原因') {
220
 					const addParams = {reason: this.cbreason,workorderid: this.wid,newlimittime: this.days,type: 0,}
220
 					const addParams = {reason: this.cbreason,workorderid: this.wid,newlimittime: this.days,type: 0,}
221
 					this.workOrderContent("Affairs/DelayWorkOrder",addParams)
221
 					this.workOrderContent("Affairs/DelayWorkOrder",addParams)
222
 				}else if(this.auditPlaceholder === '请输入推送意见') {
222
 				}else if(this.auditPlaceholder === '请输入推送意见') {
223
-					const addParams = {cbreason: this.cbreason,workorderid: this.wid,nexttype:2}
223
+					const addParams = {content: this.cbreason,workorderid: this.wid}
224
 					this.workOrderContent("Affairs/PhshWorkOrder",addParams)
224
 					this.workOrderContent("Affairs/PhshWorkOrder",addParams)
225
 				}else if(this.auditPlaceholder === '请输入拒收原因') {
225
 				}else if(this.auditPlaceholder === '请输入拒收原因') {
226
 					const addParams = {reason: this.cbreason,workorderid: this.wid}
226
 					const addParams = {reason: this.cbreason,workorderid: this.wid}

+ 23 - 28
anyangWebAPP/pages/myTask/workOrderList/workOrderDetail/buttons/components/button_13/button_13.vue

163
 		methods: {
163
 		methods: {
164
 			// 工单提交
164
 			// 工单提交
165
 			formSubmit(ref) {
165
 			formSubmit(ref) {
166
-				
166
+				console.log(1)
167
 				if (!this.formData.detailRsult) {
167
 				if (!this.formData.detailRsult) {
168
 					this.$mHelper.toast('请输入办理结果');
168
 					this.$mHelper.toast('请输入办理结果');
169
 					return
169
 					return
182
 					}
182
 					}
183
 					this.formData.staisfied = 0
183
 					this.formData.staisfied = 0
184
 				}
184
 				}
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
-					
209
-				}).catch(err => {
210
-					console.log('err', err);
211
-				})
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
+				}
212
 			},
207
 			},
213
 			getImgData(data){
208
 			getImgData(data){
214
 				this.imgList = data
209
 				this.imgList = data