Browse Source

no message

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

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

@ -18,12 +18,13 @@ Component({
status: { type: Number, value: 0 }
},
data: {
valued: false,
focus: 0,
fileList: []
},
methods: {
setValues: function(value){
if(value && !this.data.fileList.length){
if(value && !this.data.valued){
this.data.item.settleUnitPrice = value.unitPrice
this.statAmount()
wx.nextTick(() => {
@ -36,6 +37,7 @@ Component({
}
this.setData({fileList: this.data.fileList})
}
this.data.valued = true
}
},
bindInput: function (e) {
@ -80,8 +82,10 @@ Component({
})
},
statAmount: function(){
this.data.item.settleWeight = this.data.item.netWeight
if(util.isEmpty(this.data.item.settleWeight) || Number(this.data.item.settleWeight) <= 0){
return
}
if(!util.isEmpty(this.data.item.deductWeight)){
this.data.item.settleWeight = math.minus(this.data.item.netWeight, this.data.item.deductWeight)
}

Loading…
Cancel
Save