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

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

parent 981f5aae
...@@ -514,8 +514,9 @@ export default { ...@@ -514,8 +514,9 @@ export default {
...mapGetters(['deptId', 'name']), ...mapGetters(['deptId', 'name']),
cItemOptions() { cItemOptions() {
return (checkType) => { 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]) { if (this.checkItemOptions[checkType]) {
console.log()
return this.checkItemOptions[checkType].map(item => { return this.checkItemOptions[checkType].map(item => {
return { return {
...item, ...item,
...@@ -595,13 +596,11 @@ export default { ...@@ -595,13 +596,11 @@ export default {
* @Author: 刘 * @Author: 刘
* @Date: 2023-07-06 09:34:50 * @Date: 2023-07-06 09:34:50
*/ */
async setCheckItemOptions() { setCheckItemOptions() {
const options = {} this.dict.type.check_type.forEach(item => {
for (const checkTypeKey in this.dict.type.check_type) { listByType({ itemType: item.value }).then(res => {
const item = this.dict.type.check_type[checkTypeKey] const temp = {}
console.log('KKKKKKKKKKKKKKKKKKK', checkTypeKey, item) temp[item.value] = res.rows.map(item => {
const res = await listByType({ itemType: item.value })
options[item.value] = res.rows.map(item => {
return { return {
label: item.name, label: item.name,
value: item.id, value: item.id,
...@@ -609,11 +608,10 @@ export default { ...@@ -609,11 +608,10 @@ export default {
devicePrice: item.hospitalPlatformPrice devicePrice: item.hospitalPlatformPrice
} }
}) })
console.log('MMMMMMMMMMMMMMMMMMMM', options) this.checkItemOptions = { ...Object.assign(this.checkItemOptions, temp) }
this.checkKeys = Object.keys(this.checkItemOptions).length this.checkKeys = Object.keys(this.checkItemOptions).length
} })
this.checkItemOptions = { ...options } })
console.log('dddddddddddddddddddddddd', this.checkItemOptions)
}, },
getDrugList() { getDrugList() {
drugList({ status: '1' }).then(res => { 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