|
@@ -394,6 +394,9 @@
|
|
|
|
|
|
list.compId = sessionStorage.getItem('ws-pf_compId')
|
|
list.compId = sessionStorage.getItem('ws-pf_compId')
|
|
list.publisher = this.userInfo.userName
|
|
list.publisher = this.userInfo.userName
|
|
|
|
+ uni.showLoading({
|
|
|
|
+ title:"审核中"
|
|
|
|
+ })
|
|
this.$api.doRequest('post', '/inOutWarehouseTask/api/checkOrUpdateInOutTask', list).then(res => {
|
|
this.$api.doRequest('post', '/inOutWarehouseTask/api/checkOrUpdateInOutTask', list).then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
this.$api.doRequest('post', '/workflow/api/handle', {
|
|
this.$api.doRequest('post', '/workflow/api/handle', {
|
|
@@ -402,12 +405,51 @@
|
|
auditMind: '34',
|
|
auditMind: '34',
|
|
needReapply: false
|
|
needReapply: false
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
|
+ uni.hideLoading()
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
this.$api.msg('审核成功!')
|
|
this.$api.msg('审核成功!')
|
|
setTimeout(function() {
|
|
setTimeout(function() {
|
|
uni.navigateBack()
|
|
uni.navigateBack()
|
|
}, 1000);
|
|
}, 1000);
|
|
|
|
+ }else{
|
|
|
|
+ this.$api.msg('审核失败!')
|
|
|
|
+ }
|
|
|
|
+ }).catch(res => {
|
|
|
|
+ uni.hideLoading()
|
|
|
|
+ if(res.message){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: res.message,
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
}
|
|
}
|
|
|
|
+ else{
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "系统异常,请联系管理员",
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ else{
|
|
|
|
+ this.$api.msg('审核失败!')
|
|
|
|
+ }
|
|
|
|
+ }).catch(res => {
|
|
|
|
+ uni.hideLoading()
|
|
|
|
+ if(res.message){
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: res.message,
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ else{
|
|
|
|
+ uni.showToast({
|
|
|
|
+ title: "系统异常,请联系管理员",
|
|
|
|
+ icon: 'none',
|
|
|
|
+ duration: 2000
|
|
})
|
|
})
|
|
}
|
|
}
|
|
})
|
|
})
|