From 728ff095cb8ad03f2941acaef9ccaf6e4f772414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wei=5F=E4=BD=B3?= Date: Mon, 24 Nov 2025 16:21:57 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=88=97=E8=A1=A8=E8=AF=A6=E6=83=85=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=BC=A0=E9=80=92=E5=B9=B6=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E5=8F=B7=E5=AD=97=E6=AE=B5=EF=BC=8C=E5=90=8C?= =?UTF-8?q?=E6=97=B6=E6=9B=B4=E6=96=B0=E5=AE=A1=E6=A0=B8=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E8=AE=A1=E7=AE=97=E6=B5=81=E7=A8=8B=E4=B8=BA=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/api/index.js | 2 + .../user-list/LimitSettingModal.vue | 13 +- .../user-list/UserDetailModal.vue | 218 +++++++++++----- .../views/user-management/user-list/index.vue | 62 ++--- .../audit/components/AuditDetail.vue | 237 +++++++++--------- web/src/views/valuation/audit/index.vue | 6 +- 6 files changed, 320 insertions(+), 218 deletions(-) diff --git a/web/src/api/index.js b/web/src/api/index.js index 8a2be22..2ac5b1c 100644 --- a/web/src/api/index.js +++ b/web/src/api/index.js @@ -52,6 +52,8 @@ export default { getInvoiceById: (params = {}) => request.get(`/transactions/receipts/${params.id}`, { params }), // 后端接口要求请求体包裹在 data 字段下 sendInvoice: (data = {}) => request.post('/transactions/send-email', { data }), + // invoice headers + getInvoiceHeaders: (params = {}) => request.get('/invoice/list', { params }), // valuation (估值评估) getValuationList: (params = {}) => request.get('/valuations/', { params }), getValuationById: (params = {}) => request.get(`/valuations/${params.valuation_id || params.id}`), diff --git a/web/src/views/user-management/user-list/LimitSettingModal.vue b/web/src/views/user-management/user-list/LimitSettingModal.vue index 9836279..bb312ef 100644 --- a/web/src/views/user-management/user-list/LimitSettingModal.vue +++ b/web/src/views/user-management/user-list/LimitSettingModal.vue @@ -45,11 +45,20 @@ watch(() => props.userData, (newData) => { // 保存设置 function handleSave() { + const oldVal = currentRemaining.value + const newVal = Number(limitForm.value.targetCount || 0) + const changeStr = `(${oldVal} > ${newVal})` + const separator = ' || ' + + const finalRemark = limitForm.value.remark + ? `${limitForm.value.remark}${separator}${changeStr}` + : changeStr + const data = { user_id: props.userData.id, - target_count: Number(limitForm.value.targetCount || 0), + target_count: newVal, op_type: limitForm.value.quotaType, - remark: limitForm.value.remark + remark: finalRemark } emit('save', data) } diff --git a/web/src/views/user-management/user-list/UserDetailModal.vue b/web/src/views/user-management/user-list/UserDetailModal.vue index e3a2247..582aa65 100644 --- a/web/src/views/user-management/user-list/UserDetailModal.vue +++ b/web/src/views/user-management/user-list/UserDetailModal.vue @@ -1,39 +1,38 @@