Commit f37ba89b authored by 刘怀志's avatar 刘怀志

68565 挂号管理-开具处方点击提交后,再点击开具处方时,检查项目显示成数字了

parent 981f5aae
......@@ -514,8 +514,9 @@ export default {
...mapGetters(['deptId', 'name']),
cItemOptions() {
return (checkType) => {
console.log('checkType', checkType, JSON.stringify(this.checkItemOptions), this.checkItemOptions[checkType.toString()])
console.log('checkType', this.prescribingForm.inspect, this.checkItemOptions, this.checkItemOptions[checkType])
if (this.checkItemOptions[checkType]) {
console.log()
return this.checkItemOptions[checkType].map(item => {
return {
...item,
......@@ -595,25 +596,22 @@ export default {
* @Author: 刘
* @Date: 2023-07-06 09:34:50
*/
async setCheckItemOptions() {
const options = {}
for (const checkTypeKey in this.dict.type.check_type) {
const item = this.dict.type.check_type[checkTypeKey]
console.log('KKKKKKKKKKKKKKKKKKK', checkTypeKey, item)
const res = await listByType({ itemType: item.value })
options[item.value] = res.rows.map(item => {
return {
label: item.name,
value: item.id,
payAmount: item.price,
devicePrice: item.hospitalPlatformPrice
}
setCheckItemOptions() {
this.dict.type.check_type.forEach(item => {
listByType({ itemType: item.value }).then(res => {
const temp = {}
temp[item.value] = res.rows.map(item => {
return {
label: item.name,
value: item.id,
payAmount: item.price,
devicePrice: item.hospitalPlatformPrice
}
})
this.checkItemOptions = { ...Object.assign(this.checkItemOptions, temp) }
this.checkKeys = Object.keys(this.checkItemOptions).length
})
console.log('MMMMMMMMMMMMMMMMMMMM', options)
this.checkKeys = Object.keys(this.checkItemOptions).length
}
this.checkItemOptions = { ...options }
console.log('dddddddddddddddddddddddd', this.checkItemOptions)
})
},
getDrugList() {
drugList({ status: '1' }).then(res => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment