|
|
|
@ -1,7 +1,7 @@ |
|
|
|
|
<template> |
|
|
|
|
<el-drawer direction="ltr" size="40%" :visible="controlWindows.bill" @opened="openDrawer" :before-close="closeWindow" :show-close="false"> |
|
|
|
|
<div class="create" v-if="controlWindows.bill"> |
|
|
|
|
<el-form label-width="100px"> |
|
|
|
|
<el-form label-width="135px"> |
|
|
|
|
<div class="billTop"> |
|
|
|
|
<div class="billTop-top"> |
|
|
|
|
<div class="billTop-top-left"> |
|
|
|
@ -41,6 +41,17 @@ |
|
|
|
|
<span>{{ billData.orderInfo.surplusAmount }}</span> |
|
|
|
|
</el-form-item> |
|
|
|
|
</div> |
|
|
|
|
<div |
|
|
|
|
v-if="billData.orderInfo && billData.orderInfo.orderStatus && billData.orderInfo.orderStatus == 'DELIVERING'" |
|
|
|
|
class="billTop-top-left" |
|
|
|
|
> |
|
|
|
|
<el-form-item label="炼厂余额:"> |
|
|
|
|
<span>{{ billData.refineryInfo.balance }}</span> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="炼厂余额(预扣):"> |
|
|
|
|
<span>{{ balanceWithhold }}</span> |
|
|
|
|
</el-form-item> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="billBottom"> |
|
|
|
@ -222,6 +233,18 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
created() {}, |
|
|
|
|
computed: { |
|
|
|
|
balanceWithhold() { |
|
|
|
|
let { refineryInfo, orderInfo } = this.billData |
|
|
|
|
if (refineryInfo) { |
|
|
|
|
let balance = refineryInfo.balance * 10000 |
|
|
|
|
let preAmount = orderInfo.preAmount * 10000 |
|
|
|
|
let total = this.$utils.fixedHandle((balance + preAmount) / 10000) |
|
|
|
|
return total |
|
|
|
|
} |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
billdelivery() { |
|
|
|
|
let percentage103 = (this.billAddData.preDeliveryQuantity * 10000 * 1.03) / 10000 |
|
|
|
@ -363,7 +386,6 @@ export default { |
|
|
|
|
this.form = JSON.parse(JSON.stringify(this.controlWindows.addInfo)) |
|
|
|
|
this.configAutocomplete.echoId = id |
|
|
|
|
this.configAutocomplete.echoName = this.form.refineryName |
|
|
|
|
console.log('this.form', this.form.floorPrice) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
submit() { |
|
|
|
|