gjy 3 年 前
コミット
0d9df70009
2 ファイル変更7 行追加2 行削除
  1. 2 2
      config/index.js
  2. 5 0
      pages/task/audit/purchasecontract.vue

+ 2 - 2
config/index.js

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

+ 5 - 0
pages/task/audit/purchasecontract.vue

@@ -196,6 +196,7 @@
 			},
 			//驳回
 			rejectSubmit() {
+				uni.showLoading({title: '加载中',mask:true});
 				var that = this
 				that.$api.doRequest('post', '/workflow/api/handle', {
 					taskId: that.list.taskId,
@@ -203,6 +204,7 @@
 					auditMind: this.auditMind,
 					needReapply: true,
 				}).then(res => {
+					uni.hideLoading()
 					that.$api.msg('驳回成功')
 					that.show=false
 				})
@@ -225,12 +227,14 @@
 				if(this.title=='驳回原因'){
 					this.rejectSubmit()
 				}else{
+					uni.showLoading({title: '加载中',mask:true});
 					that.$api.doRequest('post', '/workflow/api/handle', {
 						taskId: that.list.taskId,
 						approved: true,
 						auditMind: this.auditMind,
 						needReapply: true,
 					}).then(res => {
+						uni.hideLoading()
 						that.$api.msg('通过成功')
 						that.show=false
 					})
@@ -415,5 +419,6 @@
 		.textCss{
 			justify-content: flex-end;
 			width: 100%;
+			text-align: right;
 		}
 </style>