|
@@ -237,16 +237,6 @@
|
|
|
>
|
|
|
<ws-input @input='grainMoney' v-model="paymentList.grainMoney" placeholder="请输入粮款" maxlength="100" size="small" disabled/>
|
|
|
</ws-form-item>
|
|
|
- <ws-form-item label="称重补助" span="1" prop="waterContent">
|
|
|
- <ws-input
|
|
|
- @input='grainMoney'
|
|
|
- v-model="paymentList.weighingSubsidy"
|
|
|
- placeholder="请输入称重补助"
|
|
|
- maxlength="100"
|
|
|
- size="small"
|
|
|
- :disabled="disabled"
|
|
|
- />
|
|
|
- </ws-form-item>
|
|
|
<ws-form-item label="称重扣款" span="1" prop="waterContent">
|
|
|
<ws-input
|
|
|
@input='grainMoney'
|
|
@@ -257,16 +247,17 @@
|
|
|
:disabled="disabled"
|
|
|
/>
|
|
|
</ws-form-item>
|
|
|
- <ws-form-item label="运费补助" span="1" prop="waterContent">
|
|
|
+ <ws-form-item label="称重补助" span="1" prop="waterContent">
|
|
|
<ws-input
|
|
|
@input='grainMoney'
|
|
|
- v-model="paymentList.freightSubsidy"
|
|
|
- placeholder="请输入运费补助"
|
|
|
+ v-model="paymentList.weighingSubsidy"
|
|
|
+ placeholder="请输入称重补助"
|
|
|
maxlength="100"
|
|
|
- :disabled="disabled"
|
|
|
size="small"
|
|
|
+ :disabled="disabled"
|
|
|
/>
|
|
|
</ws-form-item>
|
|
|
+
|
|
|
<ws-form-item label="运费扣款" span="1" prop="waterContent">
|
|
|
<ws-input
|
|
|
@input='grainMoney'
|
|
@@ -277,11 +268,11 @@
|
|
|
size="small"
|
|
|
/>
|
|
|
</ws-form-item>
|
|
|
- <ws-form-item label="卸车补助" span="1" prop="waterContent">
|
|
|
+ <ws-form-item label="运费补助" span="1" prop="waterContent">
|
|
|
<ws-input
|
|
|
@input='grainMoney'
|
|
|
- v-model="paymentList.unloadSubsidy"
|
|
|
- placeholder="请输入卸车补助"
|
|
|
+ v-model="paymentList.freightSubsidy"
|
|
|
+ placeholder="请输入运费补助"
|
|
|
maxlength="100"
|
|
|
:disabled="disabled"
|
|
|
size="small"
|
|
@@ -297,11 +288,11 @@
|
|
|
size="small"
|
|
|
/>
|
|
|
</ws-form-item>
|
|
|
- <ws-form-item label="其他补助" span="1" prop="waterContent">
|
|
|
+ <ws-form-item label="卸车补助" span="1" prop="waterContent">
|
|
|
<ws-input
|
|
|
@input='grainMoney'
|
|
|
- v-model="paymentList.otherSubsidy"
|
|
|
- placeholder="请输入其他补助"
|
|
|
+ v-model="paymentList.unloadSubsidy"
|
|
|
+ placeholder="请输入卸车补助"
|
|
|
maxlength="100"
|
|
|
:disabled="disabled"
|
|
|
size="small"
|
|
@@ -317,6 +308,18 @@
|
|
|
size="small"
|
|
|
/>
|
|
|
</ws-form-item>
|
|
|
+
|
|
|
+ <ws-form-item label="其他补助" span="1" prop="waterContent">
|
|
|
+ <ws-input
|
|
|
+ @input='grainMoney'
|
|
|
+ v-model="paymentList.otherSubsidy"
|
|
|
+ placeholder="请输入其他补助"
|
|
|
+ maxlength="100"
|
|
|
+ :disabled="disabled"
|
|
|
+ size="small"
|
|
|
+ />
|
|
|
+ </ws-form-item>
|
|
|
+
|
|
|
<ws-form-item label="其他扣款" span="1" prop="waterContent">
|
|
|
<ws-input
|
|
|
@input='grainMoney'
|
|
@@ -388,7 +391,7 @@
|
|
|
>
|
|
|
<paymentPrint :printData="printData" ref="saveImg"></paymentPrint>
|
|
|
<div style="text-align:center">
|
|
|
- <el-button type="primary" @click="isShowPrint = false">关闭</el-button>
|
|
|
+ <el-button type="primary" @click="closePrint">关闭</el-button>
|
|
|
<!-- <el-button type="primary" @click="printSmall">打印小票</el-button> -->
|
|
|
<el-button type="primary" @click="printBig">打印单据</el-button>
|
|
|
</div>
|
|
@@ -485,13 +488,15 @@ export default {
|
|
|
}
|
|
|
if(this.paymentList.type =='潮粮'){
|
|
|
this.paymentList.grainMoney=this.paymentList.qualityInspectionManagement.tidalGrainPrice*this.paymentList.weighingManagement.netWeight
|
|
|
- this.paymentList.calculationPayable = this.paymentList.grainMoney.toFixed(2)
|
|
|
+ this.paymentList.calculationPayable=Number(this.paymentList.grainMoney)+Number(this.paymentList.weighingSubsidy)+Number(this.paymentList.freightSubsidy)+Number(this.paymentList.unloadSubsidy)+Number(this.paymentList.otherSubsidy)-Number(this.paymentList.weighingDeduction)-this.paymentList.freightDeduction-Number(this.paymentList.unloadDeduction)-Number(this.paymentList.otherDeduction)-Number(this.paymentList.qualityDeduction)
|
|
|
+ this.paymentList.calculationPayable = this.paymentList.calculationPayable.toFixed(2)
|
|
|
+
|
|
|
this.paymentList.actualPayment = this.paymentList.calculationPayable
|
|
|
this.actualPayment( this.paymentList.actualPayment)
|
|
|
}else{
|
|
|
// this.paymentList.grainMoney=this.paymentList.qualityInspectionManagement.solidGrainPrice*this.paymentList.weighingManagement.netWeight
|
|
|
- this.paymentList.grainMoney = this.paymentList.qualityInspectionManagement.dryGrainPrice * this.paymentList.weighingManagement.netWeight
|
|
|
- this.paymentList.calculationPayable = this.paymentList.grainMoney.toFixed(2)
|
|
|
+ this.paymentList.calculationPayable=Number(this.paymentList.grainMoney)+Number(this.paymentList.weighingSubsidy)+Number(this.paymentList.freightSubsidy)+Number(this.paymentList.unloadSubsidy)+Number(this.paymentList.otherSubsidy)-Number(this.paymentList.weighingDeduction)-this.paymentList.freightDeduction-Number(this.paymentList.unloadDeduction)-Number(this.paymentList.otherDeduction)-Number(this.paymentList.qualityDeduction)
|
|
|
+ this.paymentList.calculationPayable = this.paymentList.calculationPayable.toFixed(2)
|
|
|
this.paymentList.actualPayment = this.paymentList.calculationPayable
|
|
|
this.actualPayment( this.paymentList.actualPayment)
|
|
|
}
|
|
@@ -503,7 +508,7 @@ export default {
|
|
|
this.paymentList.capitalize=this.convertCurrency(e)
|
|
|
},
|
|
|
grainMoney(){
|
|
|
- this.paymentList.calculationPayable=(Number(this.paymentList.grainMoney)+Number(this.paymentList.weighingSubsidy)+Number(this.paymentList.freightSubsidy)+Number(this.paymentList.unloadSubsidy)+Number(this.paymentList.otherSubsidy))-this.paymentList.weighingDeduction-this.paymentList.freightDeduction-this.paymentList.unloadDeduction-this.paymentList.otherDeduction-this.paymentList.qualityDeduction.toFixed(2)
|
|
|
+ this.paymentList.calculationPayable=Number(this.paymentList.grainMoney)+Number(this.paymentList.weighingSubsidy)+Number(this.paymentList.freightSubsidy)+Number(this.paymentList.unloadSubsidy)+Number(this.paymentList.otherSubsidy)-Number(this.paymentList.weighingDeduction)-this.paymentList.freightDeduction-Number(this.paymentList.unloadDeduction)-Number(this.paymentList.otherDeduction)-Number(this.paymentList.qualityDeduction)
|
|
|
this.paymentList.calculationPayable = this.paymentList.calculationPayable.toFixed(2)
|
|
|
this.paymentList.actualPayment = this.paymentList.calculationPayable
|
|
|
this.actualPayment( this.paymentList.actualPayment)
|
|
@@ -733,9 +738,15 @@ export default {
|
|
|
|
|
|
},
|
|
|
cancel() {
|
|
|
+ this.isShowPrint = false
|
|
|
this.paymentList = []
|
|
|
this.$router.push({ path: 'paymentManagement' })
|
|
|
},
|
|
|
+ closePrint(){
|
|
|
+ this.paymentList = []
|
|
|
+ this.isShowPrint = false
|
|
|
+ this.$router.push({path:'paymentManagement'})
|
|
|
+ },
|
|
|
},
|
|
|
}
|
|
|
</script>
|