Commit 1d308a8e authored by 刘怀志's avatar 刘怀志

67471 挂号管理、病历管理,处方单中已被选择的药品、检查项目、治疗项目再次新增时应该还可以进行选择

parent 6c1393e7
......@@ -1743,9 +1743,10 @@ export default {
}
},
drugOptionsShow() {
// disabled: !this.stockDispenseOutboundList.every(drug => drug.drugId !== item.drugId)
console.log('drugListShow', this.stockDispenseOutboundList, this.drugOptions)
return this.drugOptions.map(item => {
return { ...item, disabled: !this.stockDispenseOutboundList.every(drug => drug.drugId !== item.drugId) }
return { ...item, disabled: false }
}
)
}
......@@ -1947,12 +1948,13 @@ export default {
console.log('finishSetDrugOthers', rowData)
},
changeTreatItemOptionsShow(type, row) {
// !this.treatManageBo.every(treat => {
// return treat.treatItemsId !== item.value
// })
this.treatItemOptionsShow = this.treatItemOptions.filter(item => item.type === type).map(item => {
return {
...item,
disabled: !this.treatManageBo.every(treat => {
return treat.treatItemsId !== item.value
})
disabled: false
}
})
console.log('this.treatItemOptionsQQQQQQQQQQQQQQQ', this.treatItemOptionsShow, this.treatManageBo)
......@@ -1976,15 +1978,16 @@ export default {
getCheckItemOptions(checkType, row) {
return new Promise(resolve => {
console.log('getCheckItemOptions', checkType, row)
// disabled: !this.checkManageBos.every(check => {
// return check.checkItemsId !== item.id.toString()
// })
listByType({ itemType: checkType }).then(res => {
this.checkItemOptions = res.rows.map(item => {
return {
label: item.name,
value: item.id.toString(),
payAmount: item.price,
disabled: !this.checkManageBos.every(check => {
return check.checkItemsId !== item.id.toString()
})
disabled: false
}
})
console.log('checkItemOptions!!!!!!!!!!!!!', this.checkItemOptions)
......
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