优化采购流程审批细节问题

This commit is contained in:
905166056 2021-08-20 08:42:38 +08:00
parent 7a203c4e3b
commit 979780a080
6 changed files with 8 additions and 5 deletions

View File

@ -379,6 +379,7 @@ export function saveAuditAllocationStoreOrder(_that,_data){
reslove(res.data); reslove(res.data);
}, },
fail: function(e) { fail: function(e) {
_that.onoff = true;
wx.showToast({ wx.showToast({
title: "服务器异常了", title: "服务器异常了",
icon: 'none', icon: 'none',
@ -598,6 +599,7 @@ export function saveUrgentPurchaseApply(_that,_data){
reslove(res.data); reslove(res.data);
}, },
fail: function(e) { fail: function(e) {
_that.onoff = true;
wx.showToast({ wx.showToast({
title: "服务器异常了", title: "服务器异常了",
icon: 'none', icon: 'none',

View File

@ -126,10 +126,10 @@
saveItemOutApply(this, _data) saveItemOutApply(this, _data)
.then(function(res) { .then(function(res) {
if (res.code == 0) { if (res.code == 0) {
_that.onoff = true;
uni.navigateBack({ uni.navigateBack({
delta:1 delta:1
}) })
_that.onoff = true;
return; return;
} }
}); });

View File

@ -52,6 +52,7 @@
import conf from '../../conf/config.js' import conf from '../../conf/config.js'
import * as TanslateImage from '../../lib/java110/utils/translate-image.js'; import * as TanslateImage from '../../lib/java110/utils/translate-image.js';
import {preventClick} from '../../lib/java110/utils/common.js'; import {preventClick} from '../../lib/java110/utils/common.js';
import {queryDictInfo} from '../../api/inspection/inspection.js';
import {getCurrentCommunity} from '../../api/community/community.js' import {getCurrentCommunity} from '../../api/community/community.js'
import url from '../../constant/url.js' import url from '../../constant/url.js'
import Vue from 'vue' import Vue from 'vue'

View File

@ -170,12 +170,12 @@
}; };
saveMyAuditOrders(this,_auditInfo) saveMyAuditOrders(this,_auditInfo)
.then(function(res){ .then(function(res){
_that.onoff = true;
uni.showToast({ uni.showToast({
title:res.msg, title:res.msg,
icon: 'none' icon: 'none'
}); });
setTimeout(() => { setTimeout(() => {
_that.onoff = true;
uni.navigateBack({ uni.navigateBack({
delta:1 delta:1
}) })

View File

@ -136,12 +136,12 @@
}; };
saveMyAuditOrders(this,_auditInfo) saveMyAuditOrders(this,_auditInfo)
.then(function(res){ .then(function(res){
_that.onoff = true;
uni.showToast({ uni.showToast({
title:res.msg, title:res.msg,
icon: 'none' icon: 'none'
}); });
setTimeout(() => { setTimeout(() => {
_that.onoff = true;
uni.navigateBack({ uni.navigateBack({
delta:1 delta:1
}) })

View File

@ -137,6 +137,7 @@
}; };
saveUrgentPurchaseApply(this, _data) saveUrgentPurchaseApply(this, _data)
.then(function(res) { .then(function(res) {
_that.onoff = true;
if (res.code == 0) { if (res.code == 0) {
// uni.navigateTo({ // uni.navigateTo({
// url: '/pages/purchaseApplyManage/purchaseApplyManage' // url: '/pages/purchaseApplyManage/purchaseApplyManage'
@ -146,7 +147,6 @@
}) })
return; return;
}else{ }else{
_that.onoff = true;
_that._showToast(res.msg); _that._showToast(res.msg);
} }
}); });