|
@ -41,9 +41,9 @@ |
|
|
<td>抽检数量</td> |
|
|
<td>抽检数量</td> |
|
|
<td>{{item.sampleQty}}</td> |
|
|
<td>{{item.sampleQty}}</td> |
|
|
</tr> |
|
|
</tr> |
|
|
<tr v-if="!item.haveInspectionRequest"> |
|
|
<!-- <tr v-if="!item.haveInspectionRequest"> |
|
|
<td colspan='4' style="color:#ff0000;font-weight: bold;font-size: 15px;">未生成检验申请</td> |
|
|
<td colspan='4' style="color:#ff0000;font-weight: bold;font-size: 15px;">未生成检验申请</td> |
|
|
</tr> |
|
|
</tr> --> |
|
|
</tbody> |
|
|
</tbody> |
|
|
</table> |
|
|
</table> |
|
|
</view> |
|
|
</view> |
|
@ -207,46 +207,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){ |
|
|
// if(!item.haveInspectionRequest){ |
|
|
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" > |
|
|
<div class="q">Q</div> |
|
|
// <div class="q">Q</div> |
|
|
<table border='1'> |
|
|
// <table border='1'> |
|
|
<thead> |
|
|
// <thead> |
|
|
<tr class='top1'> |
|
|
// <tr class='top1'> |
|
|
<th>物料代码:</th> |
|
|
// <th>物料代码:</th> |
|
|
<th colspan='3'>${item.itemCode}</th> |
|
|
// <th colspan='3'>${item.itemCode}</th> |
|
|
</tr> |
|
|
// </tr> |
|
|
</thead> |
|
|
// </thead> |
|
|
<tbody> |
|
|
// <tbody> |
|
|
<tr> |
|
|
// <tr> |
|
|
<td>物料名称</td> |
|
|
// <td>物料名称</td> |
|
|
<td>${item.itemName}</td> |
|
|
// <td>${item.itemName}</td> |
|
|
<td>发货单号</td> |
|
|
// <td>发货单号</td> |
|
|
<td>${this.data1.asnNumber}</td> |
|
|
// <td>${this.data1.asnNumber}</td> |
|
|
</tr> |
|
|
// </tr> |
|
|
<tr> |
|
|
// <tr> |
|
|
<td>供应商</td> |
|
|
// <td>供应商</td> |
|
|
<td>${item.supplierCode}</td> |
|
|
// <td>${item.supplierCode}</td> |
|
|
<td>供应商批次</td> |
|
|
// <td>供应商批次</td> |
|
|
<td>${item.supplierBatch}</td> |
|
|
// <td>${item.supplierBatch}</td> |
|
|
</tr> |
|
|
// </tr> |
|
|
<tr> |
|
|
// <tr> |
|
|
<td>到货数量</td> |
|
|
// <td>到货数量</td> |
|
|
<td>${item.quantityQty}</td> |
|
|
// <td>${item.quantityQty}</td> |
|
|
<td>抽检数量</td> |
|
|
// <td>抽检数量</td> |
|
|
<td>${item.sampleQty}</td> |
|
|
// <td>${item.sampleQty}</td> |
|
|
</tr> |
|
|
// </tr> |
|
|
<tr> |
|
|
// <tr> |
|
|
<td colspan='4' style="color:#ff0000;font-weight: bold;font-size: 15px;">未生成检验申请</td> |
|
|
// <td colspan='4' style="color:#ff0000;font-weight: bold;font-size: 15px;">未生成检验申请</td> |
|
|
</tr> |
|
|
// </tr> |
|
|
</tbody> |
|
|
// </tbody> |
|
|
</table> |
|
|
// </table> |
|
|
</div> |
|
|
// </div> |
|
|
</div> |
|
|
// </div> |
|
|
` |
|
|
// ` |
|
|
}else{ |
|
|
// }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" > |
|
@ -282,7 +282,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
` |
|
|
` |
|
|
} |
|
|
// } |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
this.newHtmlContent1 = this.newHtmlContent1.replace( |
|
|
this.newHtmlContent1 = this.newHtmlContent1.replace( |
|
@ -372,13 +372,14 @@ |
|
|
this.tabIndex =2 |
|
|
this.tabIndex =2 |
|
|
} |
|
|
} |
|
|
this.getTableInspectDTOList() |
|
|
this.getTableInspectDTOList() |
|
|
}).catch(error=>{ |
|
|
|
|
|
this.$refs.comMessage.showMessage(error, res => { |
|
|
|
|
|
if (res) { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}) |
|
|
}) |
|
|
|
|
|
// .catch(error=>{ |
|
|
|
|
|
// this.$refs.comMessage.showMessage(error, res => { |
|
|
|
|
|
// if (res) { |
|
|
|
|
|
|
|
|
|
|
|
// } |
|
|
|
|
|
// }); |
|
|
|
|
|
// }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
this.getPointPutawayJobHtml() |
|
|
this.getPointPutawayJobHtml() |
|
|