|
|
|
@ -23,7 +23,7 @@ Component({ |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
setValues: function(value){ |
|
|
|
if(value){ |
|
|
|
if(value && (util.isEmpty(this.data.item.settleUnitPrice) || Number(this.data.item.settleUnitPrice) <= 0)){ |
|
|
|
this.data.item.settleUnitPrice = value.unitPrice |
|
|
|
this.statAmount() |
|
|
|
wx.nextTick(() => { |
|
|
|
@ -80,6 +80,7 @@ Component({ |
|
|
|
}) |
|
|
|
}, |
|
|
|
statAmount: function(){ |
|
|
|
|
|
|
|
this.data.item.settleWeight = this.data.item.netWeight |
|
|
|
if(!util.isEmpty(this.data.item.deductWeight)){ |
|
|
|
this.data.item.settleWeight = math.minus(this.data.item.netWeight, this.data.item.deductWeight) |
|
|
|
|