Browse Source

修改无计划完工

hella_online_20240829
niexiting 2 months ago
parent
commit
9d76e00b8a
  1. 5
      src/pages/fg/coms/comReceiptPopup.vue
  2. 62
      src/pages/fg/receiptByPlan.vue
  3. 11
      src/pages/fg/receiptNoPlan.vue

5
src/pages/fg/coms/comReceiptPopup.vue

@ -188,7 +188,7 @@
this.initData();
this.planDate = getCurrDate()
// this.batch = getBatch8()
this.batch = this.planDate.replace('-', '');
this.batch = this.planDate.replace('-', '').replace('-', '');
this.$refs.popup.open('bottom')
},
@ -316,9 +316,8 @@
confirmSelectDate(data) {
this.planDate = data[0].label;
this.batch = this.planDate.replace('-', '');
this.batch = this.planDate.replace('-', '').replace('-', '');
this.afterSelectPlanData();
},
showSelectDate() {

62
src/pages/fg/receiptByPlan.vue

@ -295,11 +295,21 @@
//
let createProductputawaySwitch = getSwitchInfoByCode(
"CreateProductputawayRequestAfterProductreceiptRecordCreated")
// if (createProductputawaySwitch) {
// createPutawayRequestByPlan(list[0].requestNumber).then(res => {
// createInspectRequestByPlan(list[0].requestNumber)
// })
// }
//
if (createProductputawaySwitch) {
createPutawayRequestByPlan(list[0].requestNumber).then(res => {
createInspectRequestByPlan(list[0].requestNumber)
})
} else { //
createInspectRequestByPlan(list[0].requestNumber)
}
var queryParams = {
filters: [{
@ -469,57 +479,7 @@
</script>
<style scoped lang="scss">
page {
width: 100%;
height: 100%;
background-color: #fff;
}
.page-wraper {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
}
.header {
position: fixed;
/* #ifdef H5 */
/* #endif */
left: 0;
width: 100%;
background-color: #fff;
z-index: 10;
}
.page-footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
}
.page-main {
flex: 1;
position: relative;
}
.page-main-scroll {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
.page-main-list {
/* height: 80rpx;
line-height: 80rpx; */
text-align: center;
background: #e0e0e0;
}
.item {
background-color: #fff;

11
src/pages/fg/receiptNoPlan.vue

@ -243,6 +243,11 @@
},
submit() {
this.scanedQty = this.scanedQty + this.showList.length;
this.showList = [];
this.dataContent.handleQty = 0;
return;
if (this.allList.length == 0) {
this.showErrorMessage("请先扫描唯一码")
return;
@ -292,17 +297,19 @@
requestNumber: item.requestNumber
})
})
}
else {
} else {
throw new Error("提交失败")
}
let createProductputawaySwitch = getSwitchInfoByCode(
"CreateProductputawayRequestAfterProductreceiptRecordCreated")
//
if (createProductputawaySwitch) {
createPutawayRequestByPlan(list[0].requestNumber).then(res => {
createInspectRequestByPlan(list[0].requestNumber)
})
} else { //
createInspectRequestByPlan(list[0].requestNumber)
}
this.showCommitSuccessMessage("提交成功<br>生成装配收货记录<br>" + list[0].requestNumber, list)
this.scanedQty = this.scanedQty + this.showList.length;

Loading…
Cancel
Save