|
|
@ -696,7 +696,9 @@
|
|
|
|
@close="closeSelectDrugLevelVisible"
|
|
|
|
@close="closeSelectDrugLevelVisible"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
<el-form :model="filterQueryDrugLevel" class="query-form" label-width="100px">
|
|
|
|
<el-form :rules="formRulesSelectedDrug" :model="filterQueryDrugLevel" class="query-form" label-width="100px"
|
|
|
|
|
|
|
|
ref="formSelectedDrug"
|
|
|
|
|
|
|
|
>
|
|
|
|
<el-row>
|
|
|
|
<el-row>
|
|
|
|
<el-col :span="4">
|
|
|
|
<el-col :span="4">
|
|
|
|
<el-form-item label="层级标识:">
|
|
|
|
<el-form-item label="层级标识:">
|
|
|
@ -704,8 +706,8 @@
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="4">
|
|
|
|
<el-col :span="4">
|
|
|
|
<el-form-item label="通用名称:">
|
|
|
|
<el-form-item label="药品通用名:" prop="cpmctymc">
|
|
|
|
<el-input v-model="filterQueryDrugLevel.cpmctymc" placeholder="请输入通用名称" clearable></el-input>
|
|
|
|
<el-input v-model="filterQueryDrugLevel.cpmctymc" placeholder="请输入药品通用名" clearable></el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="4">
|
|
|
|
<el-col :span="4">
|
|
|
@ -912,7 +914,12 @@ export default {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
detailSort: [
|
|
|
|
detailSort: [
|
|
|
|
{ required: true, message: '请选择明细分类', trigger: 'blur' }
|
|
|
|
{ required: true, message: '请选择明细分类', trigger: 'blur' }
|
|
|
|
],
|
|
|
|
]
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
formRulesSelectedDrug: {
|
|
|
|
|
|
|
|
cpmctymc: [
|
|
|
|
|
|
|
|
{ required: true, message: '请输入药品通用名', trigger: 'blur' }
|
|
|
|
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
detailList: [
|
|
|
|
detailList: [
|
|
|
|
// 初始化一个空对象或包含默认值的对象
|
|
|
|
// 初始化一个空对象或包含默认值的对象
|
|
|
@ -946,7 +953,7 @@ export default {
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
|
limit: 20,
|
|
|
|
limit: 20,
|
|
|
|
total: 0,
|
|
|
|
total: 0,
|
|
|
|
approvalNum: "",
|
|
|
|
approvalNum: ''
|
|
|
|
},
|
|
|
|
},
|
|
|
|
isSpecial: false
|
|
|
|
isSpecial: false
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1180,6 +1187,10 @@ export default {
|
|
|
|
this.selectDrugLevel()
|
|
|
|
this.selectDrugLevel()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selectDrugLevel() {
|
|
|
|
selectDrugLevel() {
|
|
|
|
|
|
|
|
this.selectDrugLevelVisible = true
|
|
|
|
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
|
|
this.$refs['formSelectedDrug'].validate((valid) => {
|
|
|
|
|
|
|
|
if (valid) {
|
|
|
|
this.filterQueryDrugLevel.uuid = this.newProductData.uuid
|
|
|
|
this.filterQueryDrugLevel.uuid = this.newProductData.uuid
|
|
|
|
this.filterQueryDrugLevel.ybbm = this.newProductData.ybbm
|
|
|
|
this.filterQueryDrugLevel.ybbm = this.newProductData.ybbm
|
|
|
|
//获取分页列表
|
|
|
|
//获取分页列表
|
|
|
@ -1188,10 +1199,14 @@ export default {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
this.selectDrugLevelList = response.data.list || []
|
|
|
|
this.selectDrugLevelList = response.data.list || []
|
|
|
|
this.filterQueryDrugLevel.total = response.data.total || 0
|
|
|
|
this.filterQueryDrugLevel.total = response.data.total || 0
|
|
|
|
this.selectDrugLevelVisible = true
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catch(() => {
|
|
|
|
}).catch(() => {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}, 500)
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selectDrugLevelItem(row) {
|
|
|
|
selectDrugLevelItem(row) {
|
|
|
|
this.filterQueryDrugLevel.uuid = this.newProductData.uuid
|
|
|
|
this.filterQueryDrugLevel.uuid = this.newProductData.uuid
|
|
|
@ -1212,7 +1227,6 @@ export default {
|
|
|
|
}).catch(() => {
|
|
|
|
}).catch(() => {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
,
|
|
|
|
,
|
|
|
|
|
|
|
|
|
|
|
@ -1440,12 +1454,12 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
//自动去除小数
|
|
|
|
//自动去除小数
|
|
|
|
handleInput(index, value, type) {
|
|
|
|
handleInput(index, value, type) {
|
|
|
|
const intValue = parseInt(value, 10);
|
|
|
|
const intValue = parseInt(value, 10)
|
|
|
|
// 更新行的数据
|
|
|
|
// 更新行的数据
|
|
|
|
if (type == 1) {
|
|
|
|
if (type == 1) {
|
|
|
|
this.$set(this.detailList[index], 'packLevel', intValue);
|
|
|
|
this.$set(this.detailList[index], 'packLevel', intValue)
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$set(this.detailList[index], 'bhxjsl', intValue);
|
|
|
|
this.$set(this.detailList[index], 'bhxjsl', intValue)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|