完成93需求

This commit is contained in:
chenjinyang
2026-02-05 16:30:25 +08:00
parent f69de5e78f
commit dfdab41c00
30 changed files with 3104 additions and 18 deletions

View File

@@ -18,7 +18,7 @@
v-loading="loading"
:data="surgeryList"
border
row-key="id"
row-key="surgeryNo"
:row-class-name="getRowClassName"
height="calc(100vh - 250px)"
style="width: 100%"
@@ -758,7 +758,7 @@ function handleEdit(row) {
loadDoctorList()
}
getSurgeryDetail(row.id).then(res => {
getSurgeryDetail(row.surgeryNo).then(res => {
if (res.code === 200) {
console.log('【编辑手术】完整返回数据:', res.data)
console.log('【编辑手术】手术指征字段值:', res.data.surgeryIndication)
@@ -796,7 +796,7 @@ function handleEdit(row) {
// 查看
function handleView(row) {
viewOpen.value = true
getSurgeryDetail(row.id).then(res => {
getSurgeryDetail(row.surgeryNo).then(res => {
if (res.code === 200) {
console.log('【手术详情】完整返回数据:', res.data)
console.log('【手术详情】手术指征字段值:', res.data.surgeryIndication)
@@ -822,7 +822,7 @@ function handleDelete(row) {
if (row.statusEnum === 0) {
// 新开状态 - 直接删除
proxy.$modal.confirm('是否确认删除手术"' + row.surgeryName + '"?').then(() => {
return deleteSurgery(row.id)
return deleteSurgery(row.surgeryNo)
}).then(() => {
getList()
proxy.$modal.msgSuccess('删除成功')
@@ -833,7 +833,7 @@ function handleDelete(row) {
} else if (row.statusEnum === 1) {
// 已安排状态 - 更新为已取消
proxy.$modal.confirm('是否确认取消手术"' + row.surgeryName + '"?').then(() => {
return updateSurgeryStatus(row.id, 4) // 4 = 已取消
return updateSurgeryStatus(row.surgeryNo, 4) // 4 = 已取消
}).then(() => {
getList()
proxy.$modal.msgSuccess('手术已取消')