|
@@ -155,7 +155,7 @@
|
|
|
</ws-form-item>
|
|
|
<!--重量(吨)-->
|
|
|
<ws-form-item label="重量(吨)" span="1" prop="contractNo">
|
|
|
- <ws-input v-model="deptBudgetList.weight" placeholder="请输入重量(吨)" maxlength="100" size="small" />
|
|
|
+ <ws-input v-model="deptBudgetList.weight" @input="weightchange" placeholder="请输入重量(吨)" maxlength="100" size="small" />
|
|
|
</ws-form-item>
|
|
|
<!--交货日期(起)-->
|
|
|
<ws-form-item label="交货日期(起)" span="1" prop="deliveryDateStart">
|
|
@@ -179,14 +179,15 @@
|
|
|
</ws-form-item>
|
|
|
<!--合同单价(元/吨)-->
|
|
|
<ws-form-item label="合同单价(元/吨)" span="1" prop="contractNo" v-if="deptBudgetList.priceType == '定价销售'">
|
|
|
- <div class="unchanged">
|
|
|
- {{ deptBudgetList.unitContractPrice }}
|
|
|
- </div>
|
|
|
- <span class="unchangeable">*</span>
|
|
|
+ <ws-input @input="pricechange" v-model="deptBudgetList.unitContractPrice" placeholder="请输入合同单价"
|
|
|
+ maxlength="100" size="small" />
|
|
|
</ws-form-item>
|
|
|
<!--合同总价-->
|
|
|
<ws-form-item label="合同总价" span="1" prop="totalContractPrice" v-if="deptBudgetList.priceType == '定价销售'">
|
|
|
- <ws-input v-model="deptBudgetList.totalContractPrice" placeholder="请输入合同总价" maxlength="100" size="small" />
|
|
|
+ <div class="unchanged">
|
|
|
+ {{ deptBudgetList.totalContractPrice }}
|
|
|
+ </div>
|
|
|
+ <span class="unchangeable">*</span>
|
|
|
</ws-form-item>
|
|
|
<!--签订日期-->
|
|
|
<ws-form-item label="签订日期" span="1" prop="signingDate" v-if="deptBudgetList.agreementType=='销售合同'">
|
|
@@ -677,6 +678,17 @@
|
|
|
this.pleaseChoose = ''
|
|
|
})
|
|
|
},
|
|
|
+ weightchange(e) {
|
|
|
+ if(this.deptBudgetList.unitContractPrice){
|
|
|
+ this.deptBudgetList.totalContractPrice = e * this.deptBudgetList.unitContractPrice
|
|
|
+ }
|
|
|
+ this.deptBudgetList.finalTradingVolume = e
|
|
|
+ },
|
|
|
+ pricechange(e) {
|
|
|
+ if(this.deptBudgetList.weight){
|
|
|
+ this.deptBudgetList.totalContractPrice = e * this.deptBudgetList.weight
|
|
|
+ }
|
|
|
+ },
|
|
|
saveClick(item, index) {
|
|
|
// console.log(item)
|
|
|
|