Browse Source

修改无计划完工

hella_online_20240829
niexiting 2 months ago
parent
commit
9d76e00b8a
  1. 5
      src/pages/fg/coms/comReceiptPopup.vue
  2. 60
      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.initData();
this.planDate = getCurrDate() this.planDate = getCurrDate()
// this.batch = getBatch8() // this.batch = getBatch8()
this.batch = this.planDate.replace('-', ''); this.batch = this.planDate.replace('-', '').replace('-', '');
this.$refs.popup.open('bottom') this.$refs.popup.open('bottom')
}, },
@ -316,9 +316,8 @@
confirmSelectDate(data) { confirmSelectDate(data) {
this.planDate = data[0].label; this.planDate = data[0].label;
this.batch = this.planDate.replace('-', ''); this.batch = this.planDate.replace('-', '').replace('-', '');
this.afterSelectPlanData(); this.afterSelectPlanData();
}, },
showSelectDate() { showSelectDate() {

60
src/pages/fg/receiptByPlan.vue

@ -295,12 +295,22 @@
// //
let createProductputawaySwitch = getSwitchInfoByCode( let createProductputawaySwitch = getSwitchInfoByCode(
"CreateProductputawayRequestAfterProductreceiptRecordCreated") "CreateProductputawayRequestAfterProductreceiptRecordCreated")
// if (createProductputawaySwitch) {
// createPutawayRequestByPlan(list[0].requestNumber).then(res => {
// createInspectRequestByPlan(list[0].requestNumber)
// })
// }
//
if (createProductputawaySwitch) { if (createProductputawaySwitch) {
createPutawayRequestByPlan(list[0].requestNumber).then(res => { createPutawayRequestByPlan(list[0].requestNumber).then(res => {
createInspectRequestByPlan(list[0].requestNumber) createInspectRequestByPlan(list[0].requestNumber)
}) })
} else { //
createInspectRequestByPlan(list[0].requestNumber)
} }
var queryParams = { var queryParams = {
filters: [{ filters: [{
column: "plan_type", column: "plan_type",
@ -469,57 +479,7 @@
</script> </script>
<style scoped lang="scss"> <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 { .item {
background-color: #fff; background-color: #fff;

11
src/pages/fg/receiptNoPlan.vue

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

Loading…
Cancel
Save