Browse Source

修改无计划完工 2024/8/3

hella_vue3
王志国 4 weeks ago
parent
commit
248212a279
  1. 4
      src/pages/fg/coms/comReceiptPopup.vue
  2. 50
      src/pages/fg/receiptByPlan.vue
  3. 7
      src/pages/fg/receiptNoPlan.vue

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

@ -156,7 +156,7 @@ export default {
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')
}, },
@ -281,7 +281,7 @@ export default {
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()
}, },

50
src/pages/fg/receiptByPlan.vue

@ -257,6 +257,8 @@ const commit = async () => {
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)
} }
const queryParams = { const queryParams = {
@ -407,55 +409,7 @@ const showErrorMessage = (message) => {
</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;

7
src/pages/fg/receiptNoPlan.vue

@ -244,6 +244,10 @@ export default {
}, },
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;
@ -299,10 +303,13 @@ export default {
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