Browse Source

修改盘点数量显示

wms3.0_pda
lijuncheng 9 months ago
parent
commit
93e03fc975
  1. 6
      mycomponents/qty/CountQtyEdit.vue
  2. 2
      mycomponents/qty/compareQty.vue
  3. 2
      pages/count/coms/comCountDetailCard.vue
  4. 22
      pages/count/job/countDetail.vue

6
mycomponents/qty/CountQtyEdit.vue

@ -98,7 +98,7 @@
data() {
return {
allQty: 0,
stdCount: 1,
stdCount: 0,
stateData: 0,
balanceQty: 0,
inventoryStatus: "",
@ -192,7 +192,9 @@
}, 1000)
},
calcQty(val) {
this.allQty = val * this.dataContent.stdPackQty;
if(val>0){
this.allQty = val * Number(this.dataContent.stdPackQty);
}
},
setValue() {
this.dataContent.handleQty = Number(this.allQty)

2
mycomponents/qty/compareQty.vue

@ -3,7 +3,7 @@
<view class="uni-flex uni-row ">
<status v-show="isShowStatus" :status='dataContent.inventoryStatus'></status>
<view class="uni-flex uni-row center">
<view >
<view v-if ="Number(handleQty)>0">
<view v-if="Number(recommendQty)>Number(handleQty)" class="text_greater">
{{Number(handleQty)}}
</view>

2
pages/count/coms/comCountDetailCard.vue

@ -131,7 +131,7 @@
if (res) {
// this.dataContent.subList.splice(index, 1)
item.scaned = false;
item.record = null;
item.handleQty = 0;
this.$emit('removePack')
}
});

22
pages/count/job/countDetail.vue

@ -514,17 +514,17 @@
});
var params = this.setParams()
console.log("提交参数", JSON.stringify(params));
countJobSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
this.showCommitSuccessMessage("提交成功<br>生成盘点记录<br>" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
}).catch(error => {
uni.hideLoading()
this.showErrorMessage(error)
})
// countJobSubmit(params).then(res => {
// uni.hideLoading()
// if (res.data) {
// this.showCommitSuccessMessage("<br><br>" + res.data)
// } else {
// this.showErrorMessage("[" + res.msg + "]")
// }
// }).catch(error => {
// uni.hideLoading()
// this.showErrorMessage(error)
// })
},

Loading…
Cancel
Save