Browse Source

装配收货任务

hella_vue3
lijuncheng 8 months ago
parent
commit
1ec30743b1
  1. 24
      src/pages/inventoryMove/coms/comMoveRecord.vue
  2. 11
      src/pages/productReceipt/job/fgProductReceiptDetail.vue
  3. 20
      src/pages/productReceipt/job/fgProductReceiptJob.vue
  4. 20
      src/pages/productReceipt/job/productReceiptJob.vue
  5. 11
      src/pages/productReceipt/job/scrapReceiptJob.vue
  6. 17
      src/pages/productReceipt/job/semiProductReceiptJob.vue

24
src/pages/inventoryMove/coms/comMoveRecord.vue

@ -337,18 +337,18 @@
this.managementList = res.list;
var params = this.setParams()
console.log("提交" + JSON.stringify(params))
inventoryMoveRecordSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
this.showCommitSuccessMessage("提交成功<br>生成" + this.title + "<br>" +
res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
}).catch(error => {
uni.hideLoading()
this.showErrorMessage(error)
})
// inventoryMoveRecordSubmit(params).then(res => {
// uni.hideLoading()
// if (res.data) {
// this.showCommitSuccessMessage("<br>" + this.title + "<br>" +
// res.data)
// } else {
// this.showErrorMessage("[" + res.msg + "]")
// }
// }).catch(error => {
// uni.hideLoading()
// this.showErrorMessage(error)
// })
} else {
uni.hideLoading();

11
src/pages/productReceipt/job/fgProductReceiptDetail.vue

@ -211,6 +211,7 @@
result.uom = item.uom;
if (item.subList.length > 0) {
let subItem = item.subList[0];
subItem.scaned=true;
if (subItem.fgList == undefined) {
subItem.fgList = [];
}
@ -365,7 +366,6 @@
setParams() {
var subList = []
var creator = this.$store.state.user.id
this.detailSource.forEach(item => {
item.subList.forEach(detail => {
if (detail.scaned) {
@ -376,6 +376,13 @@
detail.toContainerNumber = '';
detail.toInventoryStatus = detail.inventoryStatus
detail.toLocationCode = this.toLocationCode
if(detail.fgList){
detail.fgList.forEach(res=>{
res.outsideItemCode =res.itemCode
res.outsideProduceDate = res.productDate
res.outsideSerialNumber =res.order
})
}
subList.push(detail)
}
})
@ -429,7 +436,7 @@
showQuestionMessage(hint,callback){
this.$refs.comMessage.showQuestionMessage(hint, res => {
if (res) {
callback()
callback(true)
}
});
}

20
src/pages/productReceipt/job/fgProductReceiptJob.vue

@ -17,11 +17,27 @@
};
},
onShow() {
if(this.$refs.productreceiptjob!=undefined){
this.$refs.productreceiptjob.refresh();
}
},
mounted() {
this.$refs.productreceiptjob.getList("refresh");
onPullDownRefresh() {
this.$refs.productreceiptjob.refresh();
},
onReachBottom() {
this.$refs.productreceiptjob.onReach();
},
onNavigationBarButtonTap(e) {
if (e.index === 0) {
this.$refs.productreceiptjob.toHome();
} else if (e.index == 1) {
this.$refs.productreceiptjob.openFilter();
}
},
methods: {
}

20
src/pages/productReceipt/job/productReceiptJob.vue

@ -83,6 +83,11 @@
this.detailGiveupOptions = getDetailGiveupOption();
},
mounted() {
this.getList('refresh');
},
onReachBottom() {
//
if (this.loadingType == 'loading' || this.loadingType == 'nomore') {
@ -116,6 +121,9 @@
},
methods: {
refresh(){
this.getList('refresh');
},
getList(type) {
let that = this;
uni.showLoading({
@ -308,6 +316,18 @@
}
});
},
openFilter() {
this.$refs.filter.openFilter();
},
toHome() {
goHome()
},
onReach(){
if (this.loadingType == 'loading' || this.loadingType == 'nomore') {
return;
}
this.getList("more");
}
}
}
</script>

11
src/pages/productReceipt/job/scrapReceiptJob.vue

@ -18,8 +18,15 @@
};
},
mounted() {
this.$refs.productreceiptjob.getList("refresh");
onPullDownRefresh() {
this.$refs.productreceiptjob.refresh();
},
onNavigationBarButtonTap(e) {
if (e.index === 0) {
this.$refs.productreceiptjob.toHome();
} else if (e.index == 1) {
this.$refs.productreceiptjob.openFilter();
}
},
methods: {

17
src/pages/productReceipt/job/semiProductReceiptJob.vue

@ -18,8 +18,21 @@
};
},
mounted() {
this.$refs.productreceiptjob.getList("refresh");
onShow() {
if(this.$refs.productreceiptjob!=undefined){
this.$refs.productreceiptjob.refresh();
}
},
onPullDownRefresh() {
this.$refs.productreceiptjob.refresh();
},
onNavigationBarButtonTap(e) {
if (e.index === 0) {
this.$refs.productreceiptjob.toHome();
} else if (e.index == 1) {
this.$refs.productreceiptjob.openFilter();
}
},
methods: {

Loading…
Cancel
Save