|
@@ -37,7 +37,7 @@
|
|
|
</ws-form-item>
|
|
|
<ws-form-item label="仓位号" span="1" prop="waterContent">
|
|
|
<ws-input
|
|
|
- v-model="paymentList.binNumber"
|
|
|
+ v-model="paymentList.qualityInspectionManagement.binNumber"
|
|
|
placeholder="请输入仓位号"
|
|
|
maxlength="100"
|
|
|
disabled
|
|
@@ -54,10 +54,10 @@
|
|
|
/>
|
|
|
</ws-form-item>
|
|
|
<ws-form-item label="囤位号" span="1" prop="waterContent">
|
|
|
- <ws-input v-model="paymentList.storageNumber" placeholder="请输入囤位号" maxlength="100" size="small" disabled />
|
|
|
+ <ws-input v-model="paymentList.qualityInspectionManagement.storageTagNo" placeholder="请输入囤位号" maxlength="100" size="small" disabled />
|
|
|
</ws-form-item>
|
|
|
<ws-form-item label="车牌号" span="1" prop="waterContent">
|
|
|
- <ws-input v-model="paymentList.carNumber" placeholder="请输入车牌号" maxlength="100" size="small" disabled />
|
|
|
+ <ws-input v-model="paymentList.carNo" placeholder="请输入车牌号" maxlength="100" size="small" disabled />
|
|
|
</ws-form-item>
|
|
|
<ws-form-item label="货名" span="1" prop="waterContent">
|
|
|
<ws-input v-model="paymentList.goodsName" placeholder="请输入货名" maxlength="100" size="small" disabled />
|
|
@@ -66,10 +66,16 @@
|
|
|
<ws-input v-model="paymentList.type" placeholder="请输入类型" maxlength="100" size="small" disabled />
|
|
|
</ws-form-item>
|
|
|
<ws-form-item label="购粮性质" span="1" prop="waterContent">
|
|
|
- <ws-input v-model="paymentList.natureOfGrainPurchase" placeholder="请输入购粮性质" maxlength="100" size="small" disabled />
|
|
|
+ <ws-input v-model="paymentList.qualityInspectionManagement.natureOfGrainPurchase" placeholder="请输入购粮性质" maxlength="100" size="small" disabled />
|
|
|
</ws-form-item>
|
|
|
- <ws-form-item v-if='paymentList.type=="干粮"' label="干粮单价" span="1" prop="waterContent">
|
|
|
+ <!-- <ws-form-item v-if='paymentList.type=="干粮"' label="干粮单价" span="1" prop="waterContent">
|
|
|
<ws-input v-model="paymentList.solidGrainPrice" placeholder="请输入干粮单价" maxlength="100" size="small" :disabled='disabled' />
|
|
|
+ </ws-form-item> -->
|
|
|
+ <ws-form-item v-if='paymentList.type=="潮粮"' label="纯重单价(元/公斤)" span="1" prop="tidalGrainPrice">
|
|
|
+ <ws-input v-model="paymentList.tidalGrainPrice" placeholder="请输入纯重单价" maxlength="100" size="small" disabled />
|
|
|
+ </ws-form-item>
|
|
|
+ <ws-form-item v-if='paymentList.type=="干粮"' label="干粮单价(元/公斤)" span="1" prop="waterContent">
|
|
|
+ <ws-input v-model="paymentList.qualityInspectionManagement.dryGrainPrice" placeholder="请输入干粮单价" maxlength="100" size="small" disabled />
|
|
|
</ws-form-item>
|
|
|
</ws-info-table>
|
|
|
<div class="titles">质检数据</div>
|
|
@@ -217,15 +223,15 @@
|
|
|
prop="waterContent"
|
|
|
class="formItem"
|
|
|
>
|
|
|
- <ws-input @input='grainMoney' v-model="paymentList.grainMoney" placeholder="请输入粮款" maxlength="100" size="small" :disabled='disabled'/>
|
|
|
+ <ws-input @input='grainMoney' v-model="paymentList.grainMoney" placeholder="请输入粮款" maxlength="100" size="small" disabled/>
|
|
|
</ws-form-item>
|
|
|
- <ws-form-item v-if='paymentList.type=="干粮"'
|
|
|
+ <ws-form-item v-if='paymentList.type=="干粮"'
|
|
|
label="粮款 = 净重 x 干粮单价 ="
|
|
|
span="1"
|
|
|
prop="waterContent"
|
|
|
class="formItem"
|
|
|
>
|
|
|
- <ws-input @input='grainMoney' v-model="paymentList.grainMoney" placeholder="请输入粮款" maxlength="100" size="small" :disabled='disabled'/>
|
|
|
+ <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
|
|
@@ -333,7 +339,7 @@
|
|
|
</ws-form-item>
|
|
|
<ws-form-item label="实际付款" span="1" prop="waterContent">
|
|
|
<ws-input
|
|
|
- @input='actualPayment'
|
|
|
+ @change='actualPayment'
|
|
|
v-model="paymentList.actualPayment"
|
|
|
placeholder="请输入实际付款"
|
|
|
maxlength="100"
|
|
@@ -403,7 +409,8 @@ export default {
|
|
|
qualityInspectionManagement:{
|
|
|
waterContent:'',
|
|
|
buckleWeightRatio:0,
|
|
|
- grainMoney:0
|
|
|
+ grainMoney:0,
|
|
|
+ waterMin:0,
|
|
|
}
|
|
|
},
|
|
|
disabled:false,
|
|
@@ -424,6 +431,7 @@ export default {
|
|
|
this.information = '结算'
|
|
|
}
|
|
|
this.getList()
|
|
|
+
|
|
|
},
|
|
|
methods: {
|
|
|
closeDialog(){
|
|
@@ -470,19 +478,29 @@ export default {
|
|
|
if(!this.paymentList.solidGrainPrice){
|
|
|
this.paymentList.solidGrainPrice=this.paymentList.qualityInspectionManagement.tidalGrainPrice/this.paymentList.base
|
|
|
}
|
|
|
- if(this.paymentList.type='潮粮'){
|
|
|
+ if(this.paymentList.type =='潮粮'){
|
|
|
this.paymentList.grainMoney=this.paymentList.qualityInspectionManagement.tidalGrainPrice*this.paymentList.weighingManagement.netWeight
|
|
|
+ this.paymentList.calculationPayable = this.paymentList.grainMoney
|
|
|
+ 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.solidGrainPrice*this.paymentList.weighingManagement.netWeight
|
|
|
+ this.paymentList.grainMoney = this.paymentList.qualityInspectionManagement.dryGrainPrice * this.paymentList.weighingManagement.netWeight
|
|
|
+ this.paymentList.calculationPayable = this.paymentList.grainMoney
|
|
|
+ this.paymentList.actualPayment = this.paymentList.calculationPayable
|
|
|
+ this.actualPayment( this.paymentList.actualPayment)
|
|
|
}
|
|
|
this.paymentList.grainMoney = this.paymentList.grainMoney.toFixed(2)
|
|
|
})
|
|
|
+
|
|
|
},
|
|
|
actualPayment(e){
|
|
|
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
|
|
|
+ this.paymentList.actualPayment = this.paymentList.calculationPayable
|
|
|
+ this.actualPayment( this.paymentList.actualPayment)
|
|
|
// this.paymentList.calculationPayable=num.toFixed(2)
|
|
|
},
|
|
|
/**
|
|
@@ -763,6 +781,9 @@ export default {
|
|
|
.formItem {
|
|
|
width: 70% !important;
|
|
|
}
|
|
|
+/deep/.ws-info-table .formItem .el-form-item__label{
|
|
|
+ width: 220px;
|
|
|
+}
|
|
|
/deep/.el-table .el-table__header .cell,
|
|
|
.el-table .el-table__body .cell {
|
|
|
text-align: center;
|