From 285fcf0d5001c914e6fc8e2ad1390454b67f512a Mon Sep 17 00:00:00 2001 From: sunzehua Date: Tue, 13 Aug 2024 15:48:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=88=B1=E4=BD=8D=E6=A0=87?= =?UTF-8?q?=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bookingcabin/CabinManagement/columns.tsx | 46 ++-- .../CabinManagement/detail/index.vue | 177 +++++++-------- .../bookingcabin/CabinManagement/index.vue | 8 +- .../bookingcabin/ContractnoList/columns.tsx | 51 +++-- .../bookingcabin/cabinBooking/columns.tsx | 14 +- src/views/bookingcabin/generation/index.vue | 166 +++++++------- src/views/operation/invoiceApply/api.js | 16 ++ src/views/operation/invoiceApply/columns.tsx | 24 +- .../invoiceApply/detail/InvoiceDetails.vue | 17 +- .../invoiceApply/detail/feeTable.vue | 206 ++++++++++++++---- .../operation/invoiceApply/detail/index.vue | 69 ++++-- 11 files changed, 477 insertions(+), 317 deletions(-) diff --git a/src/views/bookingcabin/CabinManagement/columns.tsx b/src/views/bookingcabin/CabinManagement/columns.tsx index b2477733..af246bdc 100644 --- a/src/views/bookingcabin/CabinManagement/columns.tsx +++ b/src/views/bookingcabin/CabinManagement/columns.tsx @@ -4,6 +4,7 @@ import { useOptionsStore } from '/@/store/modules/options' import { SlotFlags } from '@vue/shared' import { getOptions } from '/@/hooks/dict' import { BookingLabelList } from './api' +import { GetClientListByCode } from '/@/api/common' const optionsStore = useOptionsStore() import { GetCarrierlist, @@ -162,15 +163,13 @@ export const searchFormSchema: FormSchema[] = [ colProps: { span: 4 }, componentProps: ({ formModel }) => { return { - api: GetCarrierlist, - immediate: false, - labelField: 'shortName', - valueField: 'id', + api: GetClientListByCode, + params: { code: 'carrier' }, + labelField: 'pinYinCode', + showName: 'shortName', + valueField: 'shortName', resultField: 'data', - filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 - }, - onChange: (e, obj) => {}, + immediate: false, } }, }, @@ -836,8 +835,8 @@ export const detialForm: FormSchema[] = [ colProps: { span: 4 }, }, { - label: '船公司名称', - field: 'carrier', + label: '船公司id', + field: 'carrierId', component: 'Input', defaultValue: null, show: false, @@ -850,23 +849,32 @@ export const detialForm: FormSchema[] = [ show: false, }, { - field: 'carrierId', + field: 'carrier', label: '船公司', + labelSlot: 'carrierId', component: 'ApiSelect', required: false, dynamicDisabled: false, colProps: { span: 4 }, componentProps: ({ formModel }) => { return { - api: GetCarrierlist, - immediate: false, - labelField: 'shortName', - valueField: 'id', + api: GetClientListByCode, + params: { code: 'carrier' }, + labelField: 'pinYinCode', + showName: 'shortName', + valueField: 'shortName', resultField: 'data', - filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 - }, - onChange: (e, obj) => {}, + immediate: false, + onChange: (e, obj) => { + if (e && obj) { + formModel.carrierId = obj.id + formModel.carrierCode = obj.codeName + } + if (!e && !obj) { + formModel.carrierId = '' + formModel.carrierCode = '' + } + } } }, }, diff --git a/src/views/bookingcabin/CabinManagement/detail/index.vue b/src/views/bookingcabin/CabinManagement/detail/index.vue index b34f7d40..993436e9 100644 --- a/src/views/bookingcabin/CabinManagement/detail/index.vue +++ b/src/views/bookingcabin/CabinManagement/detail/index.vue @@ -7,34 +7,34 @@ 保存 - -
+ v-if="type === 'edit' && form.bookingSlotSaleInfoList.length && form.bookingSlotSaleInfoList.length > 0"> 关联订舱
委托单位
- @@ -48,7 +48,7 @@
客服
- - {{ item1.userName }} + {{ item1.pinYinCode }}
@@ -65,7 +65,7 @@
销售
- - {{ item1.userName }} + {{ item1.pinYinCode }}
@@ -82,7 +82,7 @@
操作
- - {{ item.userName }} + {{ item.pinYinCode }}
@@ -99,7 +99,7 @@
单证
- - {{ item.userName }} + {{ item.pinYinCode }}
@@ -116,7 +116,7 @@
商务
- - {{ item.userName }} + {{ item.pinYinCode }}
@@ -135,20 +135,20 @@
品名
- +
卖价
+ v-model:value="item.sellingPrice" />
销售日期
- +
@@ -165,7 +165,7 @@
- {{ type === 'Edit' ? '舱位修改' : '舱位新增' }} + {{ type === 'edit' ? '舱位修改' : '舱位新增' }} 已拆票