From 0249ef7d2cb6a1692d700d192449bfc63ef4f5c6 Mon Sep 17 00:00:00 2001 From: "2358328281@qq.com" <邮箱地址> Date: Mon, 22 Jun 2026 16:18:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BC=96=E8=BE=91=E5=B7=A5?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/service/modular/admin/index.js | 4 + src/views/admin/hospitals/list.vue | 17 +- src/views/admin/orders/detail.vue | 684 ++++++++++++++++++++++++++++- 3 files changed, 696 insertions(+), 9 deletions(-) diff --git a/src/service/modular/admin/index.js b/src/service/modular/admin/index.js index 3c30265..af29b4b 100644 --- a/src/service/modular/admin/index.js +++ b/src/service/modular/admin/index.js @@ -17,6 +17,10 @@ export const createAdminOrder = (formData) => { export const processAdminOrder = (id, data) => { return kcRequest.request(`/admin/orders/${id}/process`, "put", data); }; +// 编辑工单(multipart/form-data,承载附件 files) +export const updateAdminOrder = (id, formData) => { + return kcRequest.uploadFile(`/admin/orders/${id}`, formData, true, "PUT"); +}; // ============== 医院信息 ============== export const getAdminHospitals = (params) => { diff --git a/src/views/admin/hospitals/list.vue b/src/views/admin/hospitals/list.vue index 6295a57..198b039 100644 --- a/src/views/admin/hospitals/list.vue +++ b/src/views/admin/hospitals/list.vue @@ -39,7 +39,7 @@ /> - + {{ formatUsageYears(row.signDate) }} @@ -118,6 +118,14 @@ const pageSize = ref(10); const loading = ref(false); const filters = reactive({ keyword: "", category: "" }); +const getPhoneMinWidth = () => { + const rootStyle = getComputedStyle(document.documentElement); + const remBase = parseFloat(rootStyle.fontSize) || 16; + const elFontSizeBase = parseFloat(rootStyle.getPropertyValue('--el-font-size-base')) || 1; + const minWidthRem = remBase * elFontSizeBase * 12 * 0.56 + 24; // 10个数字 + padding,数字实际更窄 + return `${minWidthRem.toFixed(4)}px`; +}; + const formatDate = (v) => (v ? dayjs(v).format("YYYY-MM-DD") : "—"); // 从签约日期到今天的使用年限,按"X年X天"展示 @@ -206,4 +214,11 @@ onMounted(loadList); height: 80vh; border: 0; } + +:deep(.contact-phone) { + // width: 120em !important; + .cell { + white-space: nowrap; + } +} diff --git a/src/views/admin/orders/detail.vue b/src/views/admin/orders/detail.vue index 9986063..170c84b 100644 --- a/src/views/admin/orders/detail.vue +++ b/src/views/admin/orders/detail.vue @@ -14,12 +14,12 @@ {{ detail.status }} - {{ $t('btn.process') }} + {{ $t('btn.edit') }} @@ -71,6 +71,179 @@ + + + + + + + + + + + + + + + {{ $t("label.colorTag") }} + + + + + + + + + + + + + + + + + + + + 高 + 中 + 低 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ $t("btn.upload") }} + + + {{ $t("label.attachmentTip") }} + + + + + + + {{ $t("common.cancel") }} + {{ $t("common.save") }} + + +