From 1a1c9874a2ec23af3ee67deb31c6c5f786a5ef73 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Fri, 16 Aug 2024 17:00:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E6=89=93=E5=8D=B0=E5=8D=95?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E5=8F=98=E6=B7=BB=E5=8A=A0=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E6=A3=80=E9=AA=8C=E6=96=B9=E6=A1=88=E5=92=8C=E6=A3=80=E9=AA=8C?= =?UTF-8?q?=E9=98=B6=E6=AE=B5=E4=B8=8D=E5=AD=98=E5=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/pointPutawayJob/index.vue | 200 +++++++++++++--------------- 1 file changed, 89 insertions(+), 111 deletions(-) diff --git a/src/pages/pointPutawayJob/index.vue b/src/pages/pointPutawayJob/index.vue index dab39818..baefd393 100644 --- a/src/pages/pointPutawayJob/index.vue +++ b/src/pages/pointPutawayJob/index.vue @@ -5,10 +5,11 @@ 检验指引单 上架指引单 - + - - Q + + Q @@ -35,8 +36,14 @@ - - + + + + + + + +
抽检数量 {{item.sampleQty}}
未生成检验申请
未生成检验申请
没有检验方案
检验阶段不存在
@@ -123,7 +130,7 @@ currentPage1: 1, pageSize1: 20, number: '', - isHaveOn: false,//显示上架指引单 + isHaveOn: false, //显示上架指引单 // isHaveInspect:false,//显示检验指引单 } }, @@ -201,83 +208,52 @@ this.readFile(htmlFileUrl1, (htmlContent) => { this.newHtmlContent1 = htmlContent this.data1.inspectDTOList.forEach(item => { - if(!item.haveInspectionRequest){ - str += ` -

-
-
Q
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
物料代码:${item.itemCode}
物料名称${item.itemName}发货单号${this.data1.asnNumber}
供应商${item.supplierCode}供应商批次${item.supplierBatch}
到货数量${item.quantityQty}抽检数量${item.sampleQty}
未生成检验申请
-
-
- ` - }else{ - str += ` -

-
-
Q
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
物料代码:${item.itemCode}
物料名称${item.itemName}发货单号${this.data1.asnNumber}
供应商${item.supplierCode}供应商批次${item.supplierBatch}
到货数量${item.quantityQty}抽检数量${item.sampleQty}
-
-
- ` + let str1 = ` +

+
+
Q
+ + + + + + + + + + + + + + + + + + + + + + + + + + + ` + let str2 = `` + if(item.haveInspectionRequest==='0'){ + str2 =`` + }else if(item.haveInspectionRequest==='2'){ + str2 =`` + }else if(item.haveInspectionRequest==='3'){ + str2 =`` } - + let str3 = ` + +
物料代码:${item.itemCode}
物料名称${item.itemName}发货单号${this.data1.asnNumber}
供应商${item.supplierCode}供应商批次${item.supplierBatch}
到货数量${item.quantityQty}抽检数量${item.sampleQty}
未生成检验申请
没有检验方案
检验阶段不存在
+
+
+ ` + str += str1 + str2+ str3 }) this.newHtmlContent1 = this.newHtmlContent1.replace( "mainBody", str); //替换物品代码 @@ -318,7 +294,7 @@ showMessage(message) { this.$refs.comMessage.showMessage(message, res => { if (res) { - + } }); }, @@ -346,7 +322,7 @@ }, async onShow() { // 获取上架指引单 - if(this.data.ids){ + if (this.data.ids) { await getJimuPutawayJobDetail({ masterIds: this.data.ids }).then(res => { @@ -355,27 +331,26 @@ }) } // 获取采购收货指引单 - if(this.number){ + if (this.number) { await queryInspectionFreeFlag({ - number: this.number - }).then(async res1 => { - console.log(444,res1) - this.data1 = res1.data - this.data1.inspectDTOList = this.data1.inspectDTOList.filter(item=>item.sampleQty>0) - if(this.data1&&this.data1.inspectDTOList&&this.data1.inspectDTOList.length == 0){ - this.tabIndex =2 - } - this.getTableInspectDTOList() - }) - .catch(error=>{ - this.$refs.comMessage.showMessage(error, res => { - if (res) { - + number: this.number + }).then(async res1 => { + this.data1 = res1.data + this.data1.inspectDTOList = this.data1.inspectDTOList.filter(item => item.sampleQty >0) + if (this.data1 && this.data1.inspectDTOList && this.data1.inspectDTOList.length == 0) { + this.tabIndex = 2 } - }); - }) + this.getTableInspectDTOList() + }) + .catch(error => { + this.$refs.comMessage.showMessage(error, res => { + if (res) { + + } + }); + }) } - + this.getPointPutawayJobHtml() this.getPurchaseReceiptJobHtml() }, @@ -531,11 +506,13 @@ td { padding: 10px; - &:nth-child(2n){ - width:290rpx; + + &:nth-child(2n) { + width: 290rpx; } - &:nth-child(2n+1){ - width:160rpx; + + &:nth-child(2n+1) { + width: 160rpx; } } @@ -563,17 +540,18 @@ border-bottom: 4rpx solid rgb(60, 156, 255); } } - .relative{ + + .relative { margin-bottom: 20rpx; position: relative; } - - .q{ + + .q { position: absolute; left: 50%; - top:50%; + top: 50%; font-size: 400rpx; - transform: translate(-50% ,-50%); + transform: translate(-50%, -50%); color: rgba(0, 0, 0, 0.1); } \ No newline at end of file