From 621bbd242a97d137ccf0bf1500b3997c68db4956 Mon Sep 17 00:00:00 2001 From: lijingjia Date: Tue, 22 Oct 2024 18:22:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=AF=E5=8F=A3=E5=B8=A6=E5=87=BA=E5=9B=BD?= =?UTF-8?q?=E5=AE=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CostEntry/actionBar.vue | 2 +- .../CostEntry/components/historyDrawer.vue | 32 +++++++++++++++++-- src/components/CostEntry/feeTable.vue | 1 - src/layouts/default/setting/SettingDrawer.tsx | 4 +-- .../operation/seaexport/detail/index.vue | 10 ++++-- .../seaexport/detail/modules/baseInfo.tsx | 10 +++--- 6 files changed, 45 insertions(+), 14 deletions(-) diff --git a/src/components/CostEntry/actionBar.vue b/src/components/CostEntry/actionBar.vue index c66a8ca3..cef1b1e1 100644 --- a/src/components/CostEntry/actionBar.vue +++ b/src/components/CostEntry/actionBar.vue @@ -132,7 +132,7 @@ - + diff --git a/src/components/CostEntry/components/historyDrawer.vue b/src/components/CostEntry/components/historyDrawer.vue index 05868418..9c6ce015 100644 --- a/src/components/CostEntry/components/historyDrawer.vue +++ b/src/components/CostEntry/components/historyDrawer.vue @@ -22,8 +22,8 @@ @register="registerTable" @row-click="onRowClick" > -
-

费用明细 引入结算对象

+
+

费用明细 引入结算对象

{ + // 订舱口 + if (item.customerType == 'booking') { + item.customerName = props.details.forwarder + item.customerId = props.details.forwarderId + } + // 委托单位 + if (item.customerType == 'controller') { + item.customerName = props.details.customerName + item.customerId = props.details.customerId + } + // 场站 + if (item.customerType == 'yard') { + item.customerName = props.details.yard + item.customerId = props.details.yardId + } + }) + } + console.log(props.details) + data.forEach(item => { + item.id = 0 + }) + return emits('submit', data) } const historyChange = (v) => { diff --git a/src/components/CostEntry/feeTable.vue b/src/components/CostEntry/feeTable.vue index 4cfb6597..8fb9fadf 100644 --- a/src/components/CostEntry/feeTable.vue +++ b/src/components/CostEntry/feeTable.vue @@ -776,7 +776,6 @@ SubmitFee(postData) .then((res) => { loading.value = false - createMessage.success(res.message) // 刷新统计表格数据 emits('refreshStatic') init() diff --git a/src/layouts/default/setting/SettingDrawer.tsx b/src/layouts/default/setting/SettingDrawer.tsx index 119bca4f..286510b3 100644 --- a/src/layouts/default/setting/SettingDrawer.tsx +++ b/src/layouts/default/setting/SettingDrawer.tsx @@ -378,8 +378,8 @@ export default defineComponent({ width={330} class="setting-drawer" > - {unref(getShowDarkModeToggle) && {() => t('layout.setting.darkMode')}} - {unref(getShowDarkModeToggle) && } + {/* {unref(getShowDarkModeToggle) && {() => t('layout.setting.darkMode')}} + {unref(getShowDarkModeToggle) && } */} {() => t('layout.setting.sysTheme')} {renderMainTheme()} {() => t('layout.setting.headerTheme')} diff --git a/src/views/operation/seaexport/detail/index.vue b/src/views/operation/seaexport/detail/index.vue index 6de0e3fa..6eaf7117 100644 --- a/src/views/operation/seaexport/detail/index.vue +++ b/src/views/operation/seaexport/detail/index.vue @@ -1147,9 +1147,10 @@ // } // 订舱审核 const approveDc = async (remark) => { - const flag = await save('dc') - if (flag || flag === undefined) { - if (!remark) { + if (!remark) { + // 审批通过判断是否是最后一个审批人 + const flag = await save('dc') + if (flag || flag === undefined) { IsLastMarker({ bsType: 1, bsId: id.value, @@ -1170,6 +1171,9 @@ } }) } + } else { + // 驳回 + seaExportTaskAudit(remark, false) } } // 审单接口 diff --git a/src/views/operation/seaexport/detail/modules/baseInfo.tsx b/src/views/operation/seaexport/detail/modules/baseInfo.tsx index 5ad1bfc7..534cde11 100644 --- a/src/views/operation/seaexport/detail/modules/baseInfo.tsx +++ b/src/views/operation/seaexport/detail/modules/baseInfo.tsx @@ -931,10 +931,10 @@ export const mailingInfoFormSchemaR: FormSchema[] = [ ? formActionType.linkageForm({ key: 'dischargePortCode', value: obj }) : null formModel.dischargePortId = obj.id - formModel.dischargePort = obj.portName + formModel.dischargePort = obj.portName + ',' + obj.countryEnName // 带出交货地 formModel.deliveryPlaceId = obj.id - formModel.deliveryPlace = obj.portName + formModel.deliveryPlace = obj.portName + ',' + obj.countryEnName formModel.deliveryPlaceCode = e } if (!e && !obj) { @@ -967,7 +967,7 @@ export const mailingInfoFormSchemaR: FormSchema[] = [ onChange: (e, obj) => { if (e && obj) { formModel.deliveryPlaceId = obj.id - formModel.deliveryPlace = obj.portName + formModel.deliveryPlace = obj.portName + ',' + obj.countryEnName } if (!e && !obj) { formModel.deliveryPlaceId = null @@ -995,7 +995,7 @@ export const mailingInfoFormSchemaR: FormSchema[] = [ showName: 'ediCode', onChange: (e, obj) => { if (e && obj) { - formModel.receiptPlace = obj.portName + formModel.receiptPlace = obj.portName + ',' + obj.countryEnName formModel.receiptPlaceId = obj.id } if (!e && !obj) { @@ -1027,7 +1027,7 @@ export const mailingInfoFormSchemaR: FormSchema[] = [ onChange: (e, obj) => { if (e && obj) { formModel.transPortId = obj.id - formModel.transPort = obj.portName + formModel.transPort = obj.portName + ',' + obj.countryEnName } if (!e && !obj) { formModel.transPortId = null