|
|
|
@ -545,6 +545,7 @@ import {
|
|
|
|
|
delDrugLevel,
|
|
|
|
|
updateLevelDrug, calculateDistCount, calculateUseCount
|
|
|
|
|
} from '@/api/basic/product/drugUdiinfos'
|
|
|
|
|
import {isBlank} from "@/utils/strUtil";
|
|
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
getYbDrugDetail, removeRl, thirdSysDetail
|
|
|
|
@ -605,6 +606,7 @@ export default {
|
|
|
|
|
status: false,
|
|
|
|
|
relId: null,
|
|
|
|
|
drugLevelLists: [],
|
|
|
|
|
productId:null,
|
|
|
|
|
|
|
|
|
|
useLevelDi: null,
|
|
|
|
|
distributeLevelDi: null,
|
|
|
|
@ -834,15 +836,16 @@ export default {
|
|
|
|
|
|
|
|
|
|
//层级保存
|
|
|
|
|
levelSave(row) {
|
|
|
|
|
if (row.nameCode == null) {
|
|
|
|
|
console.log("djdjdjjd",row)
|
|
|
|
|
if (isBlank(row.nameCode)) {
|
|
|
|
|
this.$message.error('层级标识不能为空')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (row.packLevel == null) {
|
|
|
|
|
if (isBlank(row.packLevel)) {
|
|
|
|
|
this.$message.error('包装级别不能为空')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (row.packUnit == null) {
|
|
|
|
|
if (isBlank(row.packUnit)) {
|
|
|
|
|
this.$message.error('层级单位不能为空')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
@ -854,7 +857,8 @@ export default {
|
|
|
|
|
bhxjcpbm: row.bhxjcpbm,
|
|
|
|
|
bhxjsl: row.bhxjsl,
|
|
|
|
|
relId: this.newProductData.id,
|
|
|
|
|
uuid: this.newProductData.uuid
|
|
|
|
|
uuid: this.newProductData.uuid,
|
|
|
|
|
productId:this.newProductData.productId
|
|
|
|
|
}
|
|
|
|
|
updateLevelDrug(editQuery).then(res => {
|
|
|
|
|
this.saveLoading = false
|
|
|
|
@ -885,6 +889,7 @@ export default {
|
|
|
|
|
rowDisabled: false,
|
|
|
|
|
isUpDisabled: true
|
|
|
|
|
})
|
|
|
|
|
this.newProductData.productId = null
|
|
|
|
|
this.selectedIndex = this.detailList.length - 1
|
|
|
|
|
this.isSave = false
|
|
|
|
|
},
|
|
|
|
|