Bladeren bron

no message

zhaomin 3 jaren geleden
bovenliggende
commit
5bee33c2a0

+ 27 - 12
anyangWebAPP/pages/myTask/workOrderList/workOrderDetail/buttons/components/button_15/button_15.vue

3
 		<view class="form">
3
 		<view class="form">
4
 			<!-- 基础表单校验 -->
4
 			<!-- 基础表单校验 -->
5
 			<uni-forms >
5
 			<uni-forms >
6
-				<uni-forms-item label="申请退回原因" name="reason" >
7
-					<uni-easyinput type="textarea" v-model="reason" placeholder="请输入申请退回原因"  readonly='true'/>
6
+				<uni-forms-item label="申请退回原因:" name="reason" >
7
+					<view>{{reason}}</view>
8
+					<!-- <uni-easyinput type="textarea" v-model="reason" placeholder="请输入申请退回原因"  readonly/> -->
8
 				</uni-forms-item>
9
 				</uni-forms-item>
9
-				<uni-forms-item label="附件" name="">
10
+				<uni-forms-item label="附件:" name="">
10
 					<view class="example-body">
11
 					<view class="example-body">
11
 						<uni-file-picker readonly :value="imgUrlList" :imageStyles="imageStyles" file-mediatype="image" />
12
 						<uni-file-picker readonly :value="imgUrlList" :imageStyles="imageStyles" file-mediatype="image" />
12
 					</view>
13
 					</view>
49
 		},
50
 		},
50
 		onLoad(option) {
51
 		onLoad(option) {
51
 			this.workorderid = option.wid
52
 			this.workorderid = option.wid
53
+			this.getDetail()
52
 		},
54
 		},
53
 		methods: {
55
 		methods: {
54
 			// 同意
56
 			// 同意
64
 				this.submit(2,0)
66
 				this.submit(2,0)
65
 			},
67
 			},
66
 			submit(state,zb) {
68
 			submit(state,zb) {
69
+				if(!this.shReason) {
70
+					this.$mHelper.toast('请输入审核意见');
71
+					return
72
+				}
67
 				const params = {
73
 				const params = {
68
 					workorderid: this.workorderid,
74
 					workorderid: this.workorderid,
69
 					reason: this.shReason,
75
 					reason: this.shReason,
72
 					zb: zb,
78
 					zb: zb,
73
 					token: uni.getStorageSync("token"),
79
 					token: uni.getStorageSync("token"),
74
 				}
80
 				}
75
-				if(zb == 1) {
76
-					uni.navigateTo({
77
-						url: "/pages/myTask/workOrderList/workOrderDetail/buttons/components/button_23/wid="+ this.wid,
78
-					})
79
-				}else{
80
-					this.$mHelper.httpPost("WorkOrder/AuditRebackWorkOrder",params,2)
81
-				}
82
-				
83
-				
81
+				this.$http.post("WorkOrder/AuditRebackWorkOrder", params).then((result) => {
82
+					if(result.state.toLowerCase() == "success") {
83
+						if(zb == 1) {
84
+							uni.navigateTo({
85
+								url: "/pages/myTask/workOrderList/workOrderDetail/buttons/components/button_23/button_23?wid="+ this.workorderid,
86
+							})
87
+						}else{
88
+							uni.showToast({
89
+								title:'操作成功',
90
+								duration:500
91
+							});
92
+							setTimeout(() => {
93
+								uni.$emit("updateList",{}); //列表刷新数据
94
+								uni.navigateBack({ delta:2, })
95
+							},500)
96
+						}
97
+					}
98
+				})
84
 			},
99
 			},
85
 			getDetail() {
100
 			getDetail() {
86
 				const params = {
101
 				const params = {

File diff suppressed because it is too large
+ 1 - 1
anyangWebAPP/unpackage/dist/build/h5/index.html