From 64d26d9d9311347b2f92e77d1baad5c384c83755 Mon Sep 17 00:00:00 2001 From: Yangk Date: Thu, 12 Mar 2026 17:40:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(flightBooking):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=9C=BA=E7=A5=A8=E9=A2=84=E8=AE=A2=E8=A1=A8=E5=8D=95=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E6=A0=87=E7=AD=BE=E5=92=8C=E9=AA=8C=E8=AF=81=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将机票预订编号字段标签统一改为流程编号 - 为附件字段添加必填验证规则 - 为文件上传组件添加禁用状态支持 --- src/components/FileUpload/index.vue | 4 ++-- src/views/oa/crm/flightBooking/edit.vue | 8 +++++--- src/views/oa/crm/flightBooking/index.vue | 14 +++++++------- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index 6bba054..c8a08e0 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -35,8 +35,8 @@
  • {{ getFileName(file.name) }}
    - 下载 - 删除 + 下载 + 删除
  • diff --git a/src/views/oa/crm/flightBooking/edit.vue b/src/views/oa/crm/flightBooking/edit.vue index 4e4c78d..eb0015c 100644 --- a/src/views/oa/crm/flightBooking/edit.vue +++ b/src/views/oa/crm/flightBooking/edit.vue @@ -17,7 +17,7 @@ - + @@ -71,6 +71,7 @@ >({ flightAmount: [ { required: true, message: '机票金额不能为空', trigger: 'blur' }, { validator: validateAmount, trigger: ['blur', 'change'] } // 添加自定义验证 - ] + ], + ossId: [{ required: true, message: '请上传机票折扣信息页面截图', trigger: 'blur' }] } }); @@ -361,7 +363,7 @@ const submitForm = (status: string, mode: boolean) => { } else { // 验证不通过时,立即恢复按钮状态 buttonLoading.value = false; - proxy?.$modal.msgWarning('s请检查表单填写是否正确'); + proxy?.$modal.msgWarning('请检查表单填写是否正确'); } }); }; diff --git a/src/views/oa/crm/flightBooking/index.vue b/src/views/oa/crm/flightBooking/index.vue index 8d074d4..281e4ae 100644 --- a/src/views/oa/crm/flightBooking/index.vue +++ b/src/views/oa/crm/flightBooking/index.vue @@ -4,8 +4,8 @@
    - - + + @@ -68,7 +68,7 @@ - + @@ -116,8 +116,8 @@ - - + + @@ -203,7 +203,7 @@ const dialog = reactive({ const columns = ref([ { key: 0, label: `机票预订ID`, visible: false }, { key: 1, label: `租户编号`, visible: true }, - { key: 2, label: `机票预订编号`, visible: true }, + { key: 2, label: `流程编号`, visible: true }, { key: 3, label: `乘机人ID`, visible: false }, { key: 4, label: `乘机人姓名`, visible: true }, { key: 5, label: `出行日期`, visible: true }, @@ -392,7 +392,7 @@ const submitForm = () => { /** 删除按钮操作 */ const handleDelete = async (row?: FlightBookingVO) => { const _bookingIds = row?.bookingId || ids.value; - await proxy?.$modal.confirm('是否确认删除机票预订编号为"' + _bookingIds + '"的数据项?').finally(() => (loading.value = false)); + await proxy?.$modal.confirm('是否确认删除流程编号为"' + _bookingIds + '"的数据项?').finally(() => (loading.value = false)); await delFlightBooking(_bookingIds); proxy?.$modal.msgSuccess('删除成功'); await getList();