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 @@ /> - + @@ -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") }} + + + +
+ +
+