ソースを参照

前端 更新sdy

zhongtianhaoyuan 3 年 前
コミット
4d4ee03bd6

+ 2 - 2
config/index.js

@@ -1,7 +1,7 @@
 const dev = {
 	baseUrl: 'https://www.zthymaoyi.com',
-	// baseUrlNew: 'http://192.168.1.107:8090/',
-	baseUrlNew: 'http://api1.eliangeyun.com/',
+	baseUrlNew: 'http://192.168.1.107:8090/',
+	// baseUrlNew: 'http://api1.eliangeyun.com/',
 	h5Appid: 'wxb66b599f7f61b46f',
 	debug: false
 }

+ 7 - 3
pages/task/audit/acquisition_settlement_approval.vue

@@ -138,7 +138,7 @@
 							}
 						})
 					} else {
-						this.$api.doRequest('get', '/workflow/api/handle', {
+						this.$api.doRequest('post', '/workflow/api/handle', {
 							taskId: item.taskId,
 							approved: status,
 							auditMind: reason ? '已驳回' : '34',
@@ -152,10 +152,14 @@
 				} else {
 					if (status == true) {
 						that.$api.msg('通过成功')
-						this.getList()
+						setTimeout(function() {
+							uni.navigateBack()
+						}, 1000);
 					} else if (status == false) {
 						that.$api.msg('驳回成功')
-						this.getList()
+						setTimeout(function() {
+							uni.navigateBack()
+						}, 1000);
 					}
 				}
 			},

+ 8 - 4
pages/task/audit/freight_settlement_approval.vue

@@ -137,11 +137,15 @@
 					})
 				} else {
 					if (status == true) {
-							that.$api.msg('通过成功')
-						this.getList()
+							this.$api.msg('通过成功')
+						setTimeout(function() {
+							uni.navigateBack()
+						}, 1000);
 					} else if (status == false) {
-							that.$api.msg('驳回成功')
-						this.getList()
+							this.$api.msg('驳回成功')
+						setTimeout(function() {
+							uni.navigateBack()
+						}, 1000);
 					}
 				}
 			},