Browse Source

no message

feature/v1.5
xpz2018 4 years ago
parent
commit
7c5fb98f21
1 changed files with 2 additions and 1 deletions
  1. 3
      pages/process/outside-item/index.js

3
pages/process/outside-item/index.js

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

Loading…
Cancel
Save