yanshishuju
wangwei 6 months ago
parent 307923f839
commit 76d7b41e85

@ -665,7 +665,7 @@ export default {
},
detailList: [
//
{nameCode: '', packLevel: null, bhxjsl: null, isDisabled: false, isUpDisabled: true, rowDisabled: false}
{productId: null ,nameCode: '', packLevel: null, bhxjsl: null, isDisabled: false, isUpDisabled: true, rowDisabled: false}
],
status: false,
rowDisabled: false,
@ -837,7 +837,7 @@ export default {
//
levelSave(row) {
console.log("djdjdjjd",row)
if (isBlank(row.nameCode)) {
this.$message.error('层级标识不能为空')
return
@ -850,6 +850,7 @@ export default {
this.$message.error('层级单位不能为空')
return
}
console.log("djfjfjjf",row.productId)
let editQuery = {
nameCode: row.nameCode,
packLevel: row.packLevel,
@ -859,7 +860,7 @@ export default {
bhxjsl: row.bhxjsl,
relId: this.newProductData.id,
uuid: this.newProductData.uuid,
productId:this.newProductData.productId
productId:row.productId
}
updateLevelDrug(editQuery).then(res => {
this.saveLoading = false
@ -867,9 +868,7 @@ export default {
this.isSave = true
this.$message.success('保存成功!')
this.selectedIndex = null
if (this.newProductData.id != null) {
this.getDetailList()
}
this.getDetailList()
} else {
this.isSave = true
this.$message.error(res.message)
@ -897,6 +896,7 @@ export default {
rowChange(index, val) {
this.selectedIndex = index
this.isSave = false
},

Loading…
Cancel
Save