|
@ -35,6 +35,9 @@ |
|
|
<td>抽检数量</td> |
|
|
<td>抽检数量</td> |
|
|
<td>{{item.sampleQty}}</td> |
|
|
<td>{{item.sampleQty}}</td> |
|
|
</tr> |
|
|
</tr> |
|
|
|
|
|
<tr v-if="!item.haveInspectionRequest"> |
|
|
|
|
|
<td colspan='4' style="color:#ff0000;font-weight: bold;font-size: 15px;">未生成检验申请</td> |
|
|
|
|
|
</tr> |
|
|
</tbody> |
|
|
</tbody> |
|
|
</table> |
|
|
</table> |
|
|
</view> |
|
|
</view> |
|
@ -76,6 +79,7 @@ |
|
|
</button> |
|
|
</button> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -197,6 +201,46 @@ |
|
|
this.readFile(htmlFileUrl1, (htmlContent) => { |
|
|
this.readFile(htmlFileUrl1, (htmlContent) => { |
|
|
this.newHtmlContent1 = htmlContent |
|
|
this.newHtmlContent1 = htmlContent |
|
|
this.data1.inspectDTOList.forEach(item => { |
|
|
this.data1.inspectDTOList.forEach(item => { |
|
|
|
|
|
if(!item.haveInspectionRequest){ |
|
|
|
|
|
str += ` |
|
|
|
|
|
<div class="box" style="page-break-before:always;"><br /> |
|
|
|
|
|
<div class="relative" > |
|
|
|
|
|
<div class="q">Q</div> |
|
|
|
|
|
<table border='1'> |
|
|
|
|
|
<thead> |
|
|
|
|
|
<tr class='top1'> |
|
|
|
|
|
<th>物料代码:</th> |
|
|
|
|
|
<th colspan='3'>${item.itemCode}</th> |
|
|
|
|
|
</tr> |
|
|
|
|
|
</thead> |
|
|
|
|
|
<tbody> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td>物料名称</td> |
|
|
|
|
|
<td>${item.itemName}</td> |
|
|
|
|
|
<td>发货单号</td> |
|
|
|
|
|
<td>${this.data1.asnNumber}</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td>供应商</td> |
|
|
|
|
|
<td>${item.supplierCode}</td> |
|
|
|
|
|
<td>供应商批次</td> |
|
|
|
|
|
<td>${item.supplierBatch}</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td>到货数量</td> |
|
|
|
|
|
<td>${item.quantityQty}</td> |
|
|
|
|
|
<td>抽检数量</td> |
|
|
|
|
|
<td>${item.sampleQty}</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
<tr> |
|
|
|
|
|
<td colspan='4' style="color:#ff0000;font-weight: bold;font-size: 15px;">未生成检验申请</td> |
|
|
|
|
|
</tr> |
|
|
|
|
|
</tbody> |
|
|
|
|
|
</table> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
` |
|
|
|
|
|
}else{ |
|
|
str += ` |
|
|
str += ` |
|
|
<div class="box" style="page-break-before:always;"><br /> |
|
|
<div class="box" style="page-break-before:always;"><br /> |
|
|
<div class="relative" > |
|
|
<div class="relative" > |
|
@ -232,6 +276,8 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
` |
|
|
` |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
this.newHtmlContent1 = this.newHtmlContent1.replace( |
|
|
this.newHtmlContent1 = this.newHtmlContent1.replace( |
|
|
"mainBody", str); //替换物品代码 |
|
|
"mainBody", str); //替换物品代码 |
|
@ -268,7 +314,14 @@ |
|
|
this.showTableInspectDTOList = this.data1.inspectDTOList |
|
|
this.showTableInspectDTOList = this.data1.inspectDTOList |
|
|
} |
|
|
} |
|
|
console.log(233, this.showTableInspectDTOList) |
|
|
console.log(233, this.showTableInspectDTOList) |
|
|
|
|
|
}, |
|
|
|
|
|
showMessage(message) { |
|
|
|
|
|
this.$refs.comMessage.showMessage(message, res => { |
|
|
|
|
|
if (res) { |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
watch: { |
|
|
watch: { |
|
|
isLoadFinish: { |
|
|
isLoadFinish: { |
|
@ -306,14 +359,21 @@ |
|
|
await queryInspectionFreeFlag({ |
|
|
await queryInspectionFreeFlag({ |
|
|
number: this.number |
|
|
number: this.number |
|
|
}).then(async res1 => { |
|
|
}).then(async res1 => { |
|
|
|
|
|
console.log(444,res1) |
|
|
this.data1 = res1.data |
|
|
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){ |
|
|
if(this.data1&&this.data1.inspectDTOList&&this.data1.inspectDTOList.length == 0){ |
|
|
this.tabIndex =2 |
|
|
this.tabIndex =2 |
|
|
} |
|
|
} |
|
|
this.getTableInspectDTOList() |
|
|
this.getTableInspectDTOList() |
|
|
}) |
|
|
}) |
|
|
|
|
|
.catch(error=>{ |
|
|
|
|
|
this.$refs.comMessage.showMessage(error, res => { |
|
|
|
|
|
if (res) { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.getPointPutawayJobHtml() |
|
|
this.getPointPutawayJobHtml() |
|
|