From 2c3c3c4079959587e058c5ef57a53e6093ea815e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BF=97=E5=9B=BD?= <854933521@qq.com> Date: Tue, 29 Oct 2024 10:14:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=94=B6=E8=B4=A7=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E6=B7=BB=E5=8A=A0=E5=AD=97=E6=AE=B5=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E9=A1=B5=E9=9D=A2=E6=A0=B7=E5=BC=8F=202024/8/9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hybrid/html/purchaseReceiptJob.html | 67 +++++++++ src/pages/pointPutawayJob/index.vue | 172 ++++++++++++++---------- 2 files changed, 171 insertions(+), 68 deletions(-) create mode 100644 src/hybrid/html/purchaseReceiptJob.html diff --git a/src/hybrid/html/purchaseReceiptJob.html b/src/hybrid/html/purchaseReceiptJob.html new file mode 100644 index 00000000..8238cb76 --- /dev/null +++ b/src/hybrid/html/purchaseReceiptJob.html @@ -0,0 +1,67 @@ + + + + + + + + + + + + mainBody + + \ No newline at end of file diff --git a/src/pages/pointPutawayJob/index.vue b/src/pages/pointPutawayJob/index.vue index f3e684ca..c68ab836 100644 --- a/src/pages/pointPutawayJob/index.vue +++ b/src/pages/pointPutawayJob/index.vue @@ -2,28 +2,37 @@ - 检验指引单 - 上架指引单 + 检验指引单 + 上架指引单 - + + Q - - - - - - - + + - - + + + + + + + + + + + + + + + @@ -34,7 +43,7 @@ - + 目标库位:{{item.toLocationCode}} @@ -59,7 +68,7 @@ -
发货单号:{{data1.asnNumber}}
物料代码供应商批次检验数量物料代码:{{item.itemCode}}
{{item.itemCode}}
物料名称{{item.itemName}}发货单号{{data1.asnNumber}}
供应商{{item.supplierCode}}批次 {{item.supplierBatch}}
到货数量{{item.quantityQty}}抽检数量 {{item.sampleQty}}
- - - - - - - - - - - - - strBody - -
发货单号:${this.data1.asnNumber}
物料代码供应商批次检验数量
- - - ` - let str1 = '' this.data1.inspectDTOList.forEach(item => { - str1 += ` - - ${item.itemCode} - ${item.supplierBatch} - ${item.sampleQty} - + str += ` +

+
+
Q
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
物料代码:${item.itemCode}
物料名称${item.itemName}发货单号${this.data1.asnNumber}
供应商${item.supplierCode}批次${item.supplierBatch}
到货数量${item.quantityQty}抽检数量${item.sampleQty}
+
+
` }) - str2 = str2.replace("strBody", str1) - console.log(335, str1) this.newHtmlContent1 = this.newHtmlContent1.replace( - "mainBody", str2); //替换物品代码 + "mainBody", str); //替换物品代码 }); }) @@ -232,7 +245,7 @@ export default { (this.currentPage - 1) * this.pageSize, this.currentPage * this.pageSize ) - if(array.length>0){ + if (array.length > 0) { this.showTableSubList = [...this.showTableSubList, ...array] this.currentPage += 1 } @@ -247,14 +260,14 @@ export default { (this.currentPage1 - 1) * this.pageSize1, this.currentPage1 * this.pageSize1 ) - if(array.length>0){ + if (array.length > 0) { this.showTableInspectDTOList = [...this.showTableInspectDTOList, ...array] this.currentPage1 += 1 } } else { this.showTableInspectDTOList = this.data1.inspectDTOList } - console.log(233,this.showTableInspectDTOList) + console.log(233, this.showTableInspectDTOList) } }, watch: { @@ -280,7 +293,7 @@ export default { }, async onShow() { // 获取上架指引单 - if(this.data.ids){ + if (this.data.ids) { await getJimuPutawayJobDetail({ masterIds: this.data.ids }).then(res => { @@ -289,29 +302,30 @@ export default { }) } // 获取采购收货指引单 - if(this.number){ + if (this.number) { await queryInspectionFreeFlag({ number: this.number }).then(async res1 => { this.data1 = res1.data - this.data1.inspectDTOList = this.data1.inspectDTOList.filter(item=>item.sampleQty>0) + this.data1.inspectDTOList = this.data1.inspectDTOList.filter(item => item.sampleQty > 0) // this.data1.inspectDTOList=[] - if(this.data1&&this.data1.inspectDTOList&&this.data1.inspectDTOList.length == 0){ - this.tabIndex =2 + if (this.data1 && this.data1.inspectDTOList && this.data1.inspectDTOList.length == 0) { + this.tabIndex = 2 } this.getTableInspectDTOList() }) } + this.getPointPutawayJobHtml() this.getPurchaseReceiptJobHtml() }, onReachBottom() { - if(this.tabIndex == 1){ - if(this.showTableInspectDTOList.length!=this.data1.inspectDTOList.length){ + if (this.tabIndex == 1) { + if (this.showTableInspectDTOList != this.data1.inspectDTOList.length) { this.getTableInspectDTOList() } - }else{ - if(this.showTableSubList.length!=this.data.sublist.length){ + } else { + if (this.showTableSubList.length != this.data.sublist.length) { this.getTableSubList() } } @@ -322,7 +336,7 @@ export default { \ No newline at end of file