加油信息计算总价
This commit is contained in:
parent
0d7e63ddb3
commit
4980abdc76
|
|
@ -643,8 +643,8 @@ export default {
|
||||||
},
|
},
|
||||||
formOptions2:{
|
formOptions2:{
|
||||||
items: [
|
items: [
|
||||||
{field: "oil_consumption_number", title: '油耗数量', span: 6, itemRender: {name: '$input', props: {type: "number"}, events: { input: this.handleInputNumber } }},
|
{field: "oil_consumption_number", title: '油耗数量', span: 6, itemRender: {name: '$input', props: {type: "number"}, events: { input: this.handleInputNumber,blur:this.handleOilTotalPrice } }},
|
||||||
{field: "oil_consumption_price", title: '油耗单价', span: 6, itemRender: {name: '$input', props: {type: "number"}, events: { input: this.handleInputNumber } }},
|
{field: "oil_consumption_price", title: '油耗单价', span: 6, itemRender: {name: '$input', props: {type: "number"}, events: { input: this.handleInputNumber,blur:this.handleOilTotalPrice } }},
|
||||||
{field: "oil_consumption_total_price", title: '油耗总价', span: 6, itemRender: {name: '$input', props: {type: "number"}, events: { input: this.handleInputNumber }}},
|
{field: "oil_consumption_total_price", title: '油耗总价', span: 6, itemRender: {name: '$input', props: {type: "number"}, events: { input: this.handleInputNumber }}},
|
||||||
{
|
{
|
||||||
field: 'oil_consumption_date',
|
field: 'oil_consumption_date',
|
||||||
|
|
@ -974,6 +974,9 @@ export default {
|
||||||
handleTotalPric1(){
|
handleTotalPric1(){
|
||||||
this.formOptions.data.train_number[this.nowIndex]['total_price'] = this.formOptions.data.train_number[this.nowIndex]['customer_warehousing_tonnage']*this.formOptions.data.train_number[this.nowIndex]['unit_price']
|
this.formOptions.data.train_number[this.nowIndex]['total_price'] = this.formOptions.data.train_number[this.nowIndex]['customer_warehousing_tonnage']*this.formOptions.data.train_number[this.nowIndex]['unit_price']
|
||||||
},
|
},
|
||||||
|
handleOilTotalPrice(){
|
||||||
|
this.formOptions.data.oil_consumption['oil_consumption_total_price'] = this.formOptions.data.oil_consumption['oil_consumption_number']*this.formOptions.data.oil_consumption['oil_consumption_price'];
|
||||||
|
},
|
||||||
// 保存
|
// 保存
|
||||||
ok() {
|
ok() {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue