diff --git a/src/api/request2.js b/src/api/request2.js index b65693b1..2f8668c8 100644 --- a/src/api/request2.js +++ b/src/api/request2.js @@ -4068,6 +4068,57 @@ export function scrapRecordSubmit(params) { }); } +/** + * 隔离收货 记录列表 + * @param {*} params + */ +export function getProductreceiptRecordList(params) { + return request({ + url: baseApi + "/wms/productreceipt-record-detail/senior", + method: "post", + data: params, + }); +} + +/** + * 隔离收货 记录详情 + * @param {*} params + */ + +export function getProductreceiptRecordDetail(id) { + return request({ + url: baseApi + "/wms/productreceipt-record-detail/page?masterId=" + id, + method: "get", + data: {}, + }); +} + +/** + * 隔离收货 拒收 + * @param {*} params + */ + +export function productreceiptRecordRefuse(id) { + return request({ + url: baseApi + "/wms/productreceipt-record-main/refuse?id=" + id, + method: "put", + data: {}, + }); +} + +/** + * 隔离收货 接收 + * @param {*} params + */ + +export function productreceiptRecordReceive(id) { + return request({ + url: baseApi + "/wms/productreceipt-record-main/receive?id=" + id, + method: "put", + data: {}, + }); +} + /** diff --git a/src/pages.json b/src/pages.json index 86ae76ec..d536f2e5 100644 --- a/src/pages.json +++ b/src/pages.json @@ -1161,6 +1161,40 @@ "enablePullDownRefresh": false } }, + + { + "path": "pages/productReceipt/record/recordList", + "style": { + "navigationBarTitleText": "隔离报工接收确认", + "enablePullDownRefresh": true, + "titleNView": { + // "autoBackButton": "true", + "buttons": [ + // 右边按钮 + { + "float": "right", + "fontSize": "58rpx", //按钮上文字的大小 + "text": "\ue696", + "fontSrc": "/static/ali_icon/iconfont.ttf" + }, + { + + "float": "right", + "fontSize": "52rpx", //按钮上文字的大小 + "text": "\ue6e2", + "fontSrc": "/static/ali_icon/iconfont.ttf" + } + ] + } + } + }, + { + "path": "pages/productReceipt/record/recordListDetail", + "style": { + "navigationBarTitleText": "隔离报工接收确认详情", + "enablePullDownRefresh": false + } + } { "path": "pages/productPutaway/job/semiProductPutawayJob", @@ -1966,6 +2000,34 @@ } } }, + { + "path": "pages/inventoryMove/job/holdToWipMoveJob", + "style": { + "navigationBarTitleText": "隔离转线边", + "enablePullDownRefresh": true, + "titleNView": { + // "autoBackButton": "true", + "buttons": [ + // 右边按钮 + { + "float": "right", + "fontSize": "58rpx", //按钮上文字的大小 + "text": "\ue696", + "fontSrc": "/static/ali_icon/iconfont.ttf" + + }, + { + "float": "right", + "fontSize": "52rpx", //按钮上文字的大小 + "text": "\ue6e2", + "fontSrc": "/static/ali_icon/iconfont.ttf" + } + ] + } + } + }, + + { "path": "pages/inventoryMove/job/holdToScrapMoveJob", "style": { diff --git a/src/pages/inventoryMove/job/holdToWipMoveJob.vue b/src/pages/inventoryMove/job/holdToWipMoveJob.vue new file mode 100644 index 00000000..e6679c4e --- /dev/null +++ b/src/pages/inventoryMove/job/holdToWipMoveJob.vue @@ -0,0 +1,57 @@ + + + + + diff --git a/src/pages/inventoryMove/job/inventoryMoveDetail.vue b/src/pages/inventoryMove/job/inventoryMoveDetail.vue index 7d7fc400..bfb802c4 100644 --- a/src/pages/inventoryMove/job/inventoryMoveDetail.vue +++ b/src/pages/inventoryMove/job/inventoryMoveDetail.vue @@ -12,9 +12,8 @@ - @@ -60,7 +59,7 @@ import { getDirectoryItemArray, } from '@/common/directory.js'; - + import { goHome, navigateBack, @@ -102,7 +101,7 @@ toInventoryStatus: '', jobStatus: "", title: '', - toLocationAreaTypeList:[] + toLocationAreaTypeList: [] }; }, props: { @@ -168,6 +167,10 @@ name = "隔离转合格"; this.toLocationCode = ''; this.toInventoryStatus = 'OK'; + } else if (this.businessTypeCode == "HoldToWip") { + name = "隔离转线边"; + this.toLocationCode = ''; + this.toInventoryStatus = 'OK'; } else if (this.businessTypeCode == "HoldToScrap") { name = "隔离转报废"; this.toLocationCode = 'SCRAP'; @@ -362,7 +365,7 @@ this.showErrorMessage("扫描数为0,请先扫描") return; } - + //允许部分提交 //扫描数量和任务数量相等,直接提交 if (this.scanCount == this.subList.length) { @@ -375,31 +378,32 @@ } else { //不允许部分提交,提示 this.$refs.comMessage.showErrorMessage("任务明细未全部完成,不允许部分提交!", res => { - if (res) { - this.openScanPopup(); - } - }); + if (res) { + this.openScanPopup(); + } + }); } } }, - checkCount(){ + checkCount() { // 提交的数量和任务数量不一致提示 let str = '' this.detailSource.forEach((item) => { item.subList.forEach(cur => { if (cur.qty != cur.handleQty) { - var tempHandleQty =0 - if(cur.handleQty){ - tempHandleQty=cur.handleQty - }else { - tempHandleQty =0 + var tempHandleQty = 0 + if (cur.handleQty) { + tempHandleQty = cur.handleQty + } else { + tempHandleQty = 0 } - str += `包装号【${cur.packingNumber}】提交数量【${tempHandleQty}】与任务物料数量【${cur.qty}】不一致\n` + str += + `包装号【${cur.packingNumber}】提交数量【${tempHandleQty}】与任务物料数量【${cur.qty}】不一致\n` } }) }) if (str) { - str = '任务明细未全部完成,是否提交?\n'+str + str = '任务明细未全部完成,是否提交?\n' + str this.$refs.comMessage.showQuestionMessage1(str, 'red', res => { if (res) { this.submitJob() @@ -429,10 +433,10 @@ uni.hideLoading() if (res.data) { let showTitle = this.title - if(this.title.indexOf('任务')==this.title.length-2){ - showTitle = this.title.replace('任务','') + if (this.title.indexOf('任务') == this.title.length - 2) { + showTitle = this.title.replace('任务', '') } - this.showCommitSuccessMessage("提交成功\n生成"+showTitle+"记录\n" + res.data) + this.showCommitSuccessMessage("提交成功\n生成" + showTitle + "记录\n" + res.data) } else { this.showErrorMessage("提交失败[" + res.msg + "]") } diff --git a/src/pages/productReceipt/record/recordList.vue b/src/pages/productReceipt/record/recordList.vue new file mode 100644 index 00000000..fd1221a6 --- /dev/null +++ b/src/pages/productReceipt/record/recordList.vue @@ -0,0 +1,354 @@ + + + + + \ No newline at end of file diff --git a/src/pages/productReceipt/record/recordListDetail.vue b/src/pages/productReceipt/record/recordListDetail.vue new file mode 100644 index 00000000..a1cf6464 --- /dev/null +++ b/src/pages/productReceipt/record/recordListDetail.vue @@ -0,0 +1,430 @@ + + + + + \ No newline at end of file