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

2
mycomponents/qty/compareQty.vue

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

2
pages/count/coms/comCountDetailCard.vue

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

22
pages/count/job/countDetail.vue

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

Loading…
Cancel
Save