-
Q
-
-
-
- 物料代码: |
- ${item.itemCode} |
-
-
-
-
- 物料名称 |
- ${item.itemName} |
- 发货单号 |
- ${this.data1.asnNumber} |
-
-
- 供应商 |
- ${item.supplierCode} |
- 批次 |
- ${item.supplierBatch} |
-
-
- 到货数量 |
- ${item.quantityQty} |
- 抽检数量 |
- ${item.sampleQty} |
-
-
-
+ let str1 = `
+
+
+
Q
+
+
+
发货单号
+
${this.data1.asnNumber}
+
+
+
物料代码
+
${item.itemCode}
+
+
物料名称
+
${item.itemName}
+
+
+
供应商
+
${item.supplierCode}
+
+
+
供应商批次
+
${item.supplierBatch}
+
+
+
到货数量
+
${item.quantityQty}
+
+
+
抽检数量
+
${item.sampleQty}
+
+ `
+ let str2 = ``
+ if (item.haveInspectionRequest === '0') {
+ str2 = `
+
`
+ } else if (item.haveInspectionRequest === '2') {
+ str2 = `
+
`
+ } else if (item.haveInspectionRequest === '3') {
+ str2 = `
+
`
+ }
+ let str3 = `
- `
+
+
+ `
+ str += str1 + str2 + str3
})
this.newHtmlContent1 = this.newHtmlContent1.replace(
"mainBody", str); //替换物品代码
});
-
+ // #endif
})
},
getTableSubList() {
@@ -252,7 +296,6 @@ export default {
} else {
this.showTableSubList = this.data.sublist
}
- // console.log(233,this.showTableSubList)
},
getTableInspectDTOList() {
if (this.data1.inspectDTOList.length > this.pageSize1) {
@@ -267,8 +310,14 @@ export default {
} else {
this.showTableInspectDTOList = this.data1.inspectDTOList
}
- console.log(233, this.showTableInspectDTOList)
- }
+ },
+ showMessage(message) {
+ this.$refs.comMessage.showMessage(message, res => {
+ if (res) {
+
+ }
+ });
+ },
},
watch: {
isLoadFinish: {
@@ -301,19 +350,30 @@ export default {
this.getTableSubList()
})
}
- // 获取采购收货指引单
+
+ if (this.data.ids && !this.number) {
+ this.tabIndex = 2
+ }
+ // 获取采购收货检验指引单
if (this.number) {
await queryInspectionFreeFlag({
number: this.number
}).then(async res1 => {
this.data1 = res1.data
- 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) {
+ this.data1.inspectDTOList = this.data1.inspectDTOList.filter(item => item.sampleQty >
+ 0)
+ if (this.data1 && this.data1.inspectDTOList && this.data1.inspectDTOList.length == 0 && this.data.ids) {
this.tabIndex = 2
}
this.getTableInspectDTOList()
})
+ .catch(error => {
+ this.$refs.comMessage.showMessage(error, res => {
+ if (res) {
+
+ }
+ });
+ })
}
this.getPointPutawayJobHtml()
@@ -338,61 +398,51 @@ export default {
\ No newline at end of file