|
@@ -47,7 +47,7 @@
|
|
|
<view class="title">今日基差(元/吨)</view>
|
|
|
<view class="con-list">
|
|
|
<view class="picker">
|
|
|
- <text>{{purchaseOrder.basisPrice}}</text>
|
|
|
+ <text>{{purchaseOrder.basis}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -75,7 +75,7 @@
|
|
|
<view class="c-row b-b">
|
|
|
<view class="title">采购数量(吨)</view>
|
|
|
<view class="con-list">
|
|
|
- <input v-model='purchaseOrder.transactionsNumber' placeholder="请填写出售数量" name="input"></input>
|
|
|
+ <input v-model='purchaseOrder.transactionsNumber' placeholder="请填写采购数量" name="input"></input>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="c-row b-b">
|
|
@@ -286,7 +286,8 @@
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
- if(this.purchaseOrder.packingFee>0||this.purchaseOrder.packingFee<= 2000){
|
|
|
+ this.purchaseOrder.packingFee=-this.purchaseOrder.packingFee
|
|
|
+ if(this.purchaseOrder.packingFee>0||this.purchaseOrder.packingFee<-2000){
|
|
|
this.$api.msg('包装费输入错误')
|
|
|
return
|
|
|
}
|
|
@@ -308,35 +309,35 @@
|
|
|
}
|
|
|
var that=this
|
|
|
this.purchaseOrder.pcFlag=0
|
|
|
- // uni.showModal({
|
|
|
- // content: '订单提交后将发送给买方,是否确定提交?',
|
|
|
- // success: function (res) {
|
|
|
- // if (res.confirm) {
|
|
|
- // that.$api.doRequest('post',' ', that.purchaseOrder).then(res => {
|
|
|
- // if(res.data.code==200){
|
|
|
- // uni.showToast({
|
|
|
- // title: '提交成功,等待买方回复',
|
|
|
- // icon: 'none',
|
|
|
- // duration: 2000
|
|
|
- // })
|
|
|
- // // uni.navigateBack();
|
|
|
- // }else{
|
|
|
- // uni.showToast({
|
|
|
- // title: '提交失败:'+res.data.message,
|
|
|
- // icon: 'none',
|
|
|
- // duration: 2000
|
|
|
- // })
|
|
|
- // }
|
|
|
- // }).catch(res => {
|
|
|
- // uni.showToast({
|
|
|
- // title: res.data.message,
|
|
|
- // icon: 'none',
|
|
|
- // duration: 2000
|
|
|
- // })
|
|
|
- // })
|
|
|
- // }
|
|
|
- // }
|
|
|
- // })
|
|
|
+ uni.showModal({
|
|
|
+ content: '订单提交后将发送给卖方,是否确定提交?',
|
|
|
+ success: function (res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ that.$api.doRequest('post','/saleOrder/api/insertSaleOrder', that.purchaseOrder).then(res => {
|
|
|
+ if(res.data.code==200){
|
|
|
+ uni.showToast({
|
|
|
+ title: '提交成功,等待卖方回复',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ // uni.navigateBack();
|
|
|
+ }else{
|
|
|
+ uni.showToast({
|
|
|
+ title: '提交失败:'+res.data.message,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }).catch(res => {
|
|
|
+ uni.showToast({
|
|
|
+ title: res.data.message,
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
someprice(e){
|
|
|
if(this.purchaseOrder.pointPrice&&this.purchaseOrder.invoiceFee&&this.purchaseOrder.packingFee){
|