- 物料号:
${item.itemCode}
+ 物料号:
${item.itemCode}asjkdhfksjahfkljashfklsdh
托包装号:
${item.packingNumber}
@@ -184,44 +193,48 @@
// 获取采购收货指引单html
getPurchaseReceiptJobHtml() {
this.$nextTick(async () => {
- let str2 = ''
+ let str = ''
this.readFile(htmlFileUrl1, (htmlContent) => {
this.newHtmlContent1 = htmlContent
- str2 = `
-
-
-
-
- 发货单号: |
- ${this.data1.asnNumber} |
-
-
- 物料代码 |
- 供应商批次 |
- 检验数量 |
-
-
-
- strBody
-
-
-
-
- `
- 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); //替换物品代码
});
})
@@ -308,7 +321,7 @@
},
onReachBottom() {
if (this.tabIndex == 1) {
- if (this.showTableInspectDTOList.length != this.data1.inspectDTOList.length) {
+ if (this.showTableInspectDTOList != this.data1.inspectDTOList.length) {
this.getTableInspectDTOList()
}
} else {
@@ -323,7 +336,7 @@
\ No newline at end of file