bug 445 497 565

This commit is contained in:
Ranyunqiao
2026-05-25 15:49:49 +08:00
parent 232577caaa
commit 5132de3680
13 changed files with 316 additions and 177 deletions

View File

@@ -25,9 +25,9 @@ export function getAdviceBaseInfo(queryParams) {
/**
* 保存处方(单条)
* @param {Object} data - 处方数据
* @param {String} adviceOpType - 医嘱操作类型:'0'=保存草稿,'1'=签发医嘱
* @param {String} adviceOpType - 医嘱操作类型:'1'=保存草稿(SAVE_ADVICE)'2'=签发(SIGN_ADVICE)
*/
export function savePrescription(data, adviceOpType = '0') {
export function savePrescription(data, adviceOpType = '1') {
return request({
url: '/doctor-station/advice/save-advice',
method: 'post',

View File

@@ -1174,7 +1174,9 @@ function handleSaveSign(row, index) {
cleanRow.sourceBillNo = props.patientInfo.sourceBillNo;
}
// 🔧 门诊计费场景:保存为草稿,让药品出现在临时医嘱弹窗"已引用计费药品(待生成医嘱)"中
const adviceOpType = props.patientInfo.sourceBillNo ? '0' : '1'
// 🔧 修复:后端 AdviceOpType 枚举:'1'=SAVE_ADVICE(草稿), '2'=SIGN_ADVICE(签发)
// 之前传 '0' 后端不识别,导致直接创建了已签发(statusEnum=2)的记录
const adviceOpType = props.patientInfo.sourceBillNo ? '1' : '1'
savePrescription({ adviceSaveList: [cleanRow] }, adviceOpType).then((res) => {
if (res.code === 200) {
proxy.$modal.msgSuccess('保存成功');