[门诊医生站-中医处方] 中医处方头信息(费用性质、频次、天数、付数等)在保存并重新进入后回显为空
This commit is contained in:
wangjian963
2026-06-23 17:38:36 +08:00
parent a69951900a
commit 9b5b861653

View File

@@ -713,7 +713,7 @@ async function getListInfo(addNewRow) {
prescription.chineseHerbsDoseQuantity = firstItem.chineseHerbsDoseQuantity;
}
if (firstItem.sufferingFlag !== undefined && firstItem.sufferingFlag !== null) {
prescription.sufferingFlag = firstItem.sufferingFlag;
prescription.sufferingFlag = String(firstItem.sufferingFlag);
}
if (firstItem.dosageInstruction !== undefined && firstItem.dosageInstruction !== null) {
prescription.dosageInstruction = firstItem.dosageInstruction;
@@ -1255,7 +1255,10 @@ function handleSaveBatch(pIndex) {
proxy.$modal.msgWarning('请输入付数');
return;
}
saveTcmAdvice({ adviceSaveList: saveList }).then((res) => {
saveTcmAdvice({
adviceSaveList: saveList,
sufferingFlag: Number(prescription.sufferingFlag),
}).then((res) => {
if (res.code === 200) {
proxy.$modal.msgSuccess('保存成功');
getListInfo(true);