This commit is contained in:
liushuai
2019-01-14 10:40:03 +08:00
parent b66b3cd65c
commit fc5ddc54fd
7 changed files with 176 additions and 18 deletions

View File

@@ -236,9 +236,13 @@ export default {
if (res[0].result === '0') {
this.$notify.error(`${drawingNum}导入失败`)
}
if (res[0].result === '2') {
this.$notify.error(`${drawingNum}导入重复`)
}
} else {
const response = await importPurcharse(establishment, proofread, review, date, this.projectName, machineNum, machineName, componentName, componentNum, groupNum, contractNum, totalNum, pageNum, drawingNum, name, type, material, spareNum, useNum, manufacturer, remarks, classificationCode)
const res = response.data
console.log(res)
if (res[0].result === '0') {
this.$notify.error(`${drawingNum}导入失败`)
}