Commit 6e539507 authored by 芮自成's avatar 芮自成

问题修改

parent 64ecd2ec
......@@ -412,13 +412,16 @@ export default {
watch: {
'form.medicationCompliance': {
handler() {
let { currentMedicateCase, addMedicateCase } = this.form
let { currentMedicateCase, addMedicateCase, noComplianceReason } = this.form
if (currentMedicateCase) {
this.currentMedicateCase = JSON.parse(currentMedicateCase)
}
if (addMedicateCase) {
this.addMedicateCase = JSON.parse(addMedicateCase)
}
if (noComplianceReason) {
this.form.noComplianceReason = noComplianceReason.split(',').map(e => +e)
}
}
}
}
......
......@@ -111,8 +111,6 @@ export default {
let { id } = this.$route.query
if (this.diseaseInfo.diseaseType === 1) {
const hypertensionForm = await this.$refs.hypertensionForm.submit()
// console.log(666, hypertensionForm)
// return true
let fun = id ? updateHypertensionForm : addHypertensionForm
return await fun({
...hypertensionForm,
......
......@@ -1321,7 +1321,7 @@ export default {
...createdInfo
})
}).catch(e => {
console.warn('慢性肾病表单', e)
})
})
},
......
......@@ -1712,7 +1712,7 @@ export default {
...createdInfo
})
}).catch(e => {
console.warn('慢阻肺表单', e)
})
})
},
......
......@@ -1323,7 +1323,7 @@ export default {
...createdInfo
})
}).catch(e => {
console.warn('冠心病表单', e)
})
})
},
......
......@@ -1616,7 +1616,7 @@ export default {
...createdInfo
})
}).catch(e => {
console.warn('糖尿病表单', e)
})
})
},
......
......@@ -1321,7 +1321,7 @@ export default {
...createdInfo
})
}).catch(e => {
console.warn('血脂异常表单', e)
})
})
},
......
......@@ -1437,7 +1437,7 @@ export default {
...createdInfo
})
}).catch(e => {
console.warn('高血压表单', e)
})
})
},
......
......@@ -1321,7 +1321,7 @@ export default {
...createdInfo
})
}).catch(e => {
console.warn('脑卒中表单', e)
})
})
},
......
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