|
@@ -55,7 +55,7 @@
|
|
|
class="text-align-right yf-input">{{dataDetails.freight}}元/车</view> -->
|
|
|
<view class="flex">
|
|
|
<u--input placeholder="请输入运费" border="none" type="number" v-model="dataDetails.freight"
|
|
|
- inputAlign='right' clearable></u--input>
|
|
|
+ inputAlign='right' clearable @input="preMoney"></u--input>
|
|
|
<!-- <span> 元/车</span> -->
|
|
|
</view>
|
|
|
</view>
|
|
@@ -122,9 +122,7 @@
|
|
|
<view class='row-between'>
|
|
|
<view class="gray">装车后预付款</view>
|
|
|
<view class="">
|
|
|
-
|
|
|
-
|
|
|
- <u--input placeholder="请输入装车后预付款" v-if="dataDetails.freightAdvance == 1" border="none"
|
|
|
+ <u--input placeholder="自动获取,不可编辑" v-if="dataDetails.freightAdvance == 1" border="none"
|
|
|
v-model="dataDetails.loadingAdvancePayment" inputAlign='right' clearable disabled></u--input>
|
|
|
<u--input placeholder="请输入装车后预付款" v-else border="none" v-model="dataDetails.loadingAdvancePayment"
|
|
|
inputAlign='right' clearable></u--input>
|
|
@@ -220,6 +218,7 @@
|
|
|
startShow: false,
|
|
|
endShow: false,
|
|
|
contractCheck:false,//判断合同是否提交
|
|
|
+ proportion:"",//垫付比例
|
|
|
|
|
|
|
|
|
};
|
|
@@ -273,6 +272,11 @@
|
|
|
})
|
|
|
}
|
|
|
// this.dataDetails.advanceFreightService = '平台垫付运费'
|
|
|
+ this.dataDetails = JSON.parse(decodeURIComponent(options.obj))
|
|
|
+ if(this.dataDetails.freightAdvance == 1){
|
|
|
+ this.proportion = this.dataDetails.driverAdvancePayment > this.dataDetails.ownerAdvancePayment ? this.dataDetails.ownerAdvancePayment:this.dataDetails.driverAdvancePayment
|
|
|
+ }
|
|
|
+ console.log(this.dataDetails)
|
|
|
this.dataDetails.carrierInfo = {}
|
|
|
|
|
|
this.ctx = uni.createCanvasContext("handWriting");
|
|
@@ -307,13 +311,17 @@
|
|
|
} else {
|
|
|
uni.$u.toast(res.message);
|
|
|
}
|
|
|
-
|
|
|
})
|
|
|
.catch(res => {
|
|
|
uni.$u.toast(res.message);
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
+ preMoney(){
|
|
|
+ if(this.dataDetails.freightAdvance == 1){
|
|
|
+ this.dataDetails.loadingAdvancePayment = this.dataDetails.freight * this.proportion
|
|
|
+ }
|
|
|
+ },
|
|
|
collection() {
|
|
|
uni.$u.route('/pages/order/bankCard');
|
|
|
},
|
|
@@ -321,7 +329,6 @@
|
|
|
this.dataDetails.carrierInfo.carNo = e.value[0]
|
|
|
for (let i = 0; i < this.carlistCopy.length; i++) {
|
|
|
if (e.value[0] == this.carlistCopy[i].carNumber) {
|
|
|
-
|
|
|
this.dataDetails.trailerNumber = this.carlistCopy[i].guaCarNumber
|
|
|
}
|
|
|
}
|