Explorar o código

前端审核弹窗

gjy %!s(int64=2) %!d(string=hai) anos
pai
achega
a6f2b359bc

+ 0 - 3
pages/task/audit/Issueandreceipt_task_approval.vue

@@ -899,9 +899,6 @@
 			},
 			requestaudit(list, status) {
 
-				uni.showLoading({
-					title: "审核中"
-				})
 				let pcUserInfo = uni.getStorageSync('pcUserInfo')
 				if(pcUserInfo){
 					list.compId = pcUserInfo.compId

+ 6 - 0
pages/task/audit/acquisition_information_approval.vue

@@ -93,6 +93,9 @@
 					confirmText: '确定',
 					success: function(res) {
 						if (res.confirm) {
+							uni.showLoading({
+								title: "审核中"
+							})
 							that.$api.doRequest('post', '/acquisitionInfo/api/examine', {
 								flag: 2,
 								id: that.toexamineId
@@ -117,6 +120,9 @@
 					confirmText: '确定',
 					success: function(res) {
 						if (res.confirm) {
+							uni.showLoading({
+								title: "审核中"
+							})
 							that.$api.doRequest('post', '/acquisitionInfo/api/examine', {
 								flag: 1,
 								id: that.toexamineId

+ 8 - 0
pages/task/audit/leave_approve.vue

@@ -161,6 +161,9 @@
 						showCancel: true,
 						confirmText: '确定',
 						success: function(res) {
+							uni.showLoading({
+								title: "审核中"
+							})
 							that.$api.doRequest('post', '/newWorkflow/api/handle', {
 								approved: true,
 								taskId: that.dataList.taskId,
@@ -168,10 +171,12 @@
 								needReapply: false
 							}).then(res => {
 								if (res.data.code == 200) {
+									uni.hideLoading()
 									that.$api.msg('审核成功!')
 									uni.navigateTo({
 										url: "/pages/task/my_task"
 									})
+									
 								} else {
 									that.$api.msg('审核失败!')
 								}
@@ -208,6 +213,9 @@
 						showCancel: true,
 						confirmText: '确定',
 						success: function(res) {
+							uni.showLoading({
+								title: "审核中"
+							})
 							that.$api.doRequest('post', '/newWorkflow/api/handle', {
 								approved: false,
 								taskId: that.dataList.taskId,

+ 7 - 0
pages/task/audit/supp_clock_approve.vue

@@ -137,12 +137,16 @@
 						showCancel: true,
 						confirmText: '确定',
 						success: function(res) {
+							uni.showLoading({
+								title: "审核中"
+							})
 							that.$api.doRequest('post', '/newWorkflow/api/handle', {
 								approved: true,
 								taskId: that.dataList.taskId,
 								auditMind: that.auditMind,
 								needReapply: false
 							}).then(res => {
+								uni.hideLoading()
 								if (res.data.code == 200) {
 									that.$api.msg('审核成功!')
 									uni.navigateTo({
@@ -184,6 +188,9 @@
 						showCancel: true,
 						confirmText: '确定',
 						success: function(res) {
+							uni.showLoading({
+								title: "审核中"
+							})
 							that.$api.doRequest('post', '/newWorkflow/api/handle', {
 								approved: false,
 								taskId: that.dataList.taskId,

+ 13 - 1
pages/task/audit/tradeServices_audit.vue

@@ -283,12 +283,16 @@
 						this.$api.msg('驳回意见不能为空')
 						return
 					}
+					uni.showLoading({
+						title: "审核中"
+					})
 					this.$api.doRequest('post', '/newWorkflow/api/handle', {
 						taskId: this.tradeList.taskId,
 						approved: false,
 						auditMind: this.auditMind,
 						needReapply: true,
 					}).then(res => {
+						uni.hideLoading()
 						if (res.data.code == 200) {
 							uni.showToast({
 								title: "驳回成功",
@@ -298,6 +302,7 @@
 							uni.navigateBack()
 						}
 					}).catch(res => {
+						uni.hideLoading()
 						if (res.errmsg) {
 							uni.showToast({
 								title: res.errmsg,
@@ -306,7 +311,10 @@
 							})
 						}
 					});
-				} else {//通过
+				} else {
+					uni.showLoading({
+						title: "审核中"
+					})//通过
 				   if(this.tradeList.approveStatus == "待银行审批"){
 					   this.tradeList.amountToRepaid = this.tradeList.amountDue//设置待还金额 = 应还金额
 					   this.$api.doRequest('post', '/tradeWarehouseReceiptAppl/api/editTradeWarehouseReceiptAppl', this.tradeList)
@@ -318,6 +326,7 @@
 							   	auditMind: this.auditMind ? this.auditMind : "审核通过",
 							   	needReapply: false,
 							   }).then(res => {
+								   uni.hideLoading()
 							   	if (res.data.code == 200) {
 							   		uni.showToast({
 							   			title: "审核成功",
@@ -327,6 +336,7 @@
 							   		uni.navigateBack()
 							   	}
 							   }).catch(res => {
+								   uni.hideLoading()
 							   	if (res.errmsg) {
 							   		uni.showToast({
 							   			title: res.errmsg,
@@ -344,6 +354,7 @@
 						auditMind: this.auditMind ? this.auditMind : "审核通过",
 						needReapply: false,
 					}).then(res => {
+						uni.hideLoading()
 						if (res.data.code == 200) {
 							uni.showToast({
 								title: "审核成功",
@@ -353,6 +364,7 @@
 							uni.navigateBack()
 						}
 					}).catch(res => {
+						uni.hideLoading()
 						if (res.errmsg) {
 							uni.showToast({
 								title: res.errmsg,

+ 3 - 0
pages/task/audit/warehouse_approval.vue

@@ -432,6 +432,9 @@
 						confirmText: '确定',
 						success: function(res) {
 							if (res.confirm) {
+								uni.showLoading({
+									title: "审核中"
+								})
 								that.$api.doRequest('post', '/newWorkflow/api/handle', {
 									taskId: that.list.taskId,
 									approved: false,