|
@@ -314,10 +314,26 @@
|
|
|
if (res.confirm) {
|
|
|
that.$api.doRequest('post','/purchaseOrder/api/insertPurchaseOrder', that.purchaseOrder).then(res => {
|
|
|
if(res.data.code==200){
|
|
|
- uni.showToast({
|
|
|
- title: '提交成功,等待买方回复',
|
|
|
- icon: 'none',
|
|
|
- duration: 2000
|
|
|
+ that.$api.doRequest('post','/purchaseOrder/api/submitPurchaseOrder', {id:res.data.data}).then(res1 => {
|
|
|
+ if(res1.data.code==200){
|
|
|
+ uni.showToast({
|
|
|
+ title: '提交成功,等待买方回复',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ uni.showToast({
|
|
|
+ title: res.data.message,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }).catch(res => {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.data.message,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
})
|
|
|
// uni.navigateBack();
|
|
|
}else{
|