Browse Source

盘点任务bug

hella_online_20240829
wangyufei 3 months ago
parent
commit
1591a96398
  1. 6
      src/mycomponents/balance/balanceSelect.vue
  2. 4
      src/pages/count/job/countJob.vue
  3. 4
      src/pages/count/record/countRecord.vue

6
src/mycomponents/balance/balanceSelect.vue

@ -37,7 +37,13 @@
}, },
methods: { methods: {
openPopup(items) { openPopup(items) {
if(Array.isArray(items)){
this.balanceItems = items; this.balanceItems = items;
}else{
this.balanceItems = [items];
}
this.$refs['popupItems'].open("center"); this.$refs['popupItems'].open("center");
}, },

4
src/pages/count/job/countJob.vue

@ -184,7 +184,7 @@
openJobDetail(item) { openJobDetail(item) {
uni.navigateTo({ uni.navigateTo({
url: './countDetail?id=' + item.masterId + '&status=' + item.status url: './countDetail?id=' + item.id + '&status=' + item.status
}); });
}, },
@ -203,7 +203,7 @@
this.$refs.comMessage.showQuestionMessage("确定要放弃当前任务?", this.$refs.comMessage.showQuestionMessage("确定要放弃当前任务?",
res => { res => {
if (res) { if (res) {
this.cancleJob(dataContent.masterId); this.cancleJob(dataContent.id);
} }
}); });
} }

4
src/pages/count/record/countRecord.vue

@ -151,8 +151,8 @@
calcHandleQty() { calcHandleQty() {
for (let item of this.detailSource) { for (let item of this.detailSource) {
item.handleQty = new Decimal(0).toNumber(); item.handleQty = 0;
item.qty = new Decimal(0).toNumber(); item.qty = 0;
for (let detail of item.subList) { for (let detail of item.subList) {
if(detail!=undefined){ if(detail!=undefined){
if(detail.scaned){ if(detail.scaned){

Loading…
Cancel
Save