|
|
@ -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
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|