|
@@ -42,7 +42,8 @@
|
|
|
|
|
|
</u-form-item>
|
|
</u-form-item>
|
|
<u-form-item label="运费(元/吨)" prop="tranPrice" label-width="250">
|
|
<u-form-item label="运费(元/吨)" prop="tranPrice" label-width="250">
|
|
- <u-input v-model="list.tranPriceIng" input-align="right" placeholder="请输入运费单价" />
|
|
|
|
|
|
+ <u-input v-if='list.billingMethod==1' v-model="list.tranPriceIng" input-align="right" placeholder="请输入运费单价" />
|
|
|
|
+ <u-input v-else v-model="list.tranPriceIngCar" input-align="right" placeholder="请输入运费单价" />
|
|
</u-form-item>
|
|
</u-form-item>
|
|
</u-form>
|
|
</u-form>
|
|
</view>
|
|
</view>
|
|
@@ -101,20 +102,29 @@
|
|
},
|
|
},
|
|
passSubmit() {
|
|
passSubmit() {
|
|
var that = this
|
|
var that = this
|
|
- if (!this.list.tranPriceIng) {
|
|
|
|
|
|
+ if (!this.list.tranPriceIng&&this.list.billingMethod==1||!this.list.tranPriceIngCar&&this.list.billingMethod==2) {
|
|
this.$api.msg('运费单价不能为空')
|
|
this.$api.msg('运费单价不能为空')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title: "审核中"
|
|
title: "审核中"
|
|
})
|
|
})
|
|
var tranProcessInfo = {}
|
|
var tranProcessInfo = {}
|
|
|
|
+ var url=''
|
|
tranProcessInfo.id = that.list.id
|
|
tranProcessInfo.id = that.list.id
|
|
tranProcessInfo.flag = "2"
|
|
tranProcessInfo.flag = "2"
|
|
- tranProcessInfo.tranPriceIng = that.list.tranPriceIng
|
|
|
|
|
|
+ tranProcessInfo.billingMethod=that.list.billingMethod
|
|
tranProcessInfo.reviewer = that.userInfo.userName
|
|
tranProcessInfo.reviewer = that.userInfo.userName
|
|
tranProcessInfo.tranTypeKey = that.list.tranTypeKey
|
|
tranProcessInfo.tranTypeKey = that.list.tranTypeKey
|
|
- that.$api.doRequest('post', '/tranProcessInfo/api/setUpTranPrice', tranProcessInfo)
|
|
|
|
|
|
+ if(that.list.billingMethod==1){
|
|
|
|
+ tranProcessInfo.tranPriceIng = that.list.tranPriceIng
|
|
|
|
+ url='/tranProcessInfo/api/setUpTranPrice'
|
|
|
|
+ }else{
|
|
|
|
+ tranProcessInfo.tranPriceIngCar = that.list.tranPriceIngCar
|
|
|
|
+ url='/tranProcessInfo/api/setUpTranPriceCar'
|
|
|
|
+ }
|
|
|
|
+ that.$api.doRequest('post',url , tranProcessInfo)
|
|
.then(res => {
|
|
.then(res => {
|
|
if (res.data.code == 200) {
|
|
if (res.data.code == 200) {
|
|
that.$api.msg('审核通过成功!')
|
|
that.$api.msg('审核通过成功!')
|