|
@@ -122,7 +122,7 @@
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!-- 重量(吨) -->
|
|
<!-- 重量(吨) -->
|
|
<ws-form-item label="重量(吨)" span="1" prop="weight">
|
|
<ws-form-item label="重量(吨)" span="1" prop="weight">
|
|
- <ws-input v-model="deptBudgetList.weight" maxlength="100" size="small" placeholder="请输入重量(吨)" />
|
|
|
|
|
|
+ <ws-input v-model="deptBudgetList.weight" @input="weightchange" maxlength="100" size="small" placeholder="请输入重量(吨)" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!-- 交货日期(起) -->
|
|
<!-- 交货日期(起) -->
|
|
<ws-form-item label="交货日期(起)" span="1" prop="deliveryDateStart">
|
|
<ws-form-item label="交货日期(起)" span="1" prop="deliveryDateStart">
|
|
@@ -144,13 +144,15 @@
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!-- 合同单价(元/吨) -->
|
|
<!-- 合同单价(元/吨) -->
|
|
<ws-form-item class="readonly" label="合同单价(元/吨)" span="1" prop="unitContractPrice" v-if="deptBudgetList.priceType == '定价采购'">
|
|
<ws-form-item class="readonly" label="合同单价(元/吨)" span="1" prop="unitContractPrice" v-if="deptBudgetList.priceType == '定价采购'">
|
|
- <span v-if="deptBudgetList.unitContractPrice != 'null'">{{
|
|
|
|
- deptBudgetList.unitContractPrice
|
|
|
|
- }}</span>
|
|
|
|
|
|
+ <ws-input @input="pricechange" v-model="deptBudgetList.unitContractPrice" placeholder="请输入合同单价"
|
|
|
|
+ maxlength="100" size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!-- 合同总价(元) -->
|
|
<!-- 合同总价(元) -->
|
|
<ws-form-item label="合同总价(元)" span="1" prop="totalContractPrice" v-if="deptBudgetList.priceType == '定价采购'">
|
|
<ws-form-item label="合同总价(元)" span="1" prop="totalContractPrice" v-if="deptBudgetList.priceType == '定价采购'">
|
|
- <ws-input v-model="deptBudgetList.totalContractPrice" maxlength="100" placeholder="请输入合同单价" size="small" />
|
|
|
|
|
|
+ <span v-if="deptBudgetList.totalContractPrice != 'null'">{{
|
|
|
|
+ deptBudgetList.totalContractPrice
|
|
|
|
+ }}</span>
|
|
|
|
+
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!-- 货源所在地区 -->
|
|
<!-- 货源所在地区 -->
|
|
<ws-form-item label="货源所在地区" span="1" prop="packingMethod">
|
|
<ws-form-item label="货源所在地区" span="1" prop="packingMethod">
|
|
@@ -579,6 +581,17 @@
|
|
this.feedbackLeaders.unshift(_obj)
|
|
this.feedbackLeaders.unshift(_obj)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ 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
|
|
|
|
+ }
|
|
|
|
+ },
|
|
addClick() {
|
|
addClick() {
|
|
this.unitList.push({
|
|
this.unitList.push({
|
|
flag: 'add',
|
|
flag: 'add',
|