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