|
|
|
@ -1614,6 +1614,7 @@ |
|
|
|
templateName: this.detailData.templateName, |
|
|
|
itemList: this.itemSelections1, |
|
|
|
itemType: this.detailData.itemType, |
|
|
|
createBy: this.$store.state.user.name, |
|
|
|
} |
|
|
|
addItemDetails(inData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
@ -1622,6 +1623,11 @@ |
|
|
|
this.itemList2 = data.row2 |
|
|
|
}) |
|
|
|
this.itemSelections1 = [] |
|
|
|
this.$message({ |
|
|
|
message: '新增成功', |
|
|
|
type: 'success', |
|
|
|
duration: 1500 |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
@ -1642,7 +1648,8 @@ |
|
|
|
templateId: this.detailData.templateId, |
|
|
|
templateName: this.detailData.templateName, |
|
|
|
itemList: this.itemSelections2, |
|
|
|
itemType: this.detailData.itemType |
|
|
|
itemType: this.detailData.itemType, |
|
|
|
createBy: this.$store.state.user.name, |
|
|
|
} |
|
|
|
delItemDetails(inData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
@ -1651,6 +1658,11 @@ |
|
|
|
this.itemList2 = data.row2 |
|
|
|
}) |
|
|
|
this.itemSelections2 = [] |
|
|
|
this.$message({ |
|
|
|
message: '删除成功', |
|
|
|
type: 'success', |
|
|
|
duration: 1500 |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
@ -1679,7 +1691,7 @@ |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
delItemDetails(row).then(({data}) => { |
|
|
|
delItemDetails(Object.assign({}, row, {createBy: this.$store.state.user.name})).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
templateDetailsSearch(this.detailData).then(({data}) => { |
|
|
|
this.detailList = data.rows |
|
|
|
|