yanshishuju
wangwei 6 months ago
parent 307923f839
commit 76d7b41e85

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

Loading…
Cancel
Save