diff --git a/src/store/modules/configOptions.ts b/src/store/modules/configOptions.ts index 63b8cfd1..7b5d9188 100644 --- a/src/store/modules/configOptions.ts +++ b/src/store/modules/configOptions.ts @@ -25,7 +25,7 @@ import { GetCodeCountryList, GetClientGoodsList, GetYardClientList, - GetControllerClientList + GetControllerClientList, } from '/@/views/operation/seaexport/api/BookingLedger' import { getList } from '/@/views/flowcenter/flowInstances/api' import { @@ -33,7 +33,7 @@ import { GetClientListByCode, GetCtnSelectList, GetTenantParamSelectList, - getOrgList + getOrgList, } from '/@/api/common/index' import { getClientBankList } from '/@/views/baseinfo/infoclient/api' export default { @@ -185,7 +185,7 @@ export default { return res.data }) }, - // 国家 + // 国家地区 GetCodeCountryList: () => { return GetCodeCountryList().then((res) => { return res.data diff --git a/src/store/modules/options.ts b/src/store/modules/options.ts index 8149930c..11a986a9 100644 --- a/src/store/modules/options.ts +++ b/src/store/modules/options.ts @@ -46,7 +46,7 @@ export const useOptionsStore = defineStore({ GetFeeCurrencySelectList: null, // 用户表 GetUserList: null, - // 国家 + // 国家地区 GetCodeCountryList: null, // 车队 GetTruckClientList: null, @@ -67,7 +67,7 @@ export const useOptionsStore = defineStore({ // 场站 GetYardClientList: null, // 委托单位 - GetControllerClientList: null + GetControllerClientList: null, }), getters: { // 通过code获取下拉字典(code)就是接口尾部单词 diff --git a/src/views/baseinfo/clientflowtemplate/columns.tsx b/src/views/baseinfo/clientflowtemplate/columns.tsx index c2d11516..8bc7326b 100644 --- a/src/views/baseinfo/clientflowtemplate/columns.tsx +++ b/src/views/baseinfo/clientflowtemplate/columns.tsx @@ -92,17 +92,16 @@ export const formSchema: FormSchema[] = [ { field: 'status', label: '是否启用', - component: 'RadioButtonGroup', - defaultValue: 1, - colProps: { span: 12 }, + component: 'Switch', + colProps: { span: 6 }, + defaultValue: 0, componentProps: { - options: [ - { label: '是', value: 0 }, - { label: '否', value: 1 }, - ], + checkedChildren: '启用', + checkedValue: 0, + unCheckedChildren: '禁用', + unCheckedValue: 1, }, }, - { field: 'columnView', label: '关联表', diff --git a/src/views/baseinfo/country/TenantAuditStepModal.vue b/src/views/baseinfo/country/TenantAuditStepModal.vue index b3326ccb..fa7f8c76 100644 --- a/src/views/baseinfo/country/TenantAuditStepModal.vue +++ b/src/views/baseinfo/country/TenantAuditStepModal.vue @@ -79,7 +79,7 @@ setModalProps({ loading: false }) }) - const getTitle = computed(() => (!unref(isUpdate) ? '新增国家信息' : '编辑国家信息')) + const getTitle = computed(() => (!unref(isUpdate) ? '新增国家地区信息' : '编辑国家地区信息')) async function handleSave(exit) { try { diff --git a/src/views/baseinfo/country/columns.tsx b/src/views/baseinfo/country/columns.tsx index c58a87da..07304880 100644 --- a/src/views/baseinfo/country/columns.tsx +++ b/src/views/baseinfo/country/columns.tsx @@ -2,17 +2,17 @@ import { BasicColumn, FormSchema } from '/@/components/Table' import { Tag } from 'ant-design-vue' export const columns: BasicColumn[] = [ { - title: '国家唯一代码', + title: '国家地区唯一代码', dataIndex: 'countryCode', width: 150, }, { - title: '国家名称', + title: '国家地区名称', dataIndex: 'countryName', width: 200, }, { - title: '国家英文名称', + title: '国家地区英文名称', dataIndex: 'countryEnName', width: 200, }, @@ -37,12 +37,12 @@ export const columns: BasicColumn[] = [ width: 200, }, { - title: '国家3字代码', + title: '国家地区3字代码', dataIndex: 'countryCode3', width: 200, }, { - title: '国家描述', + title: '国家地区描述', dataIndex: 'explain', width: 200, }, @@ -74,7 +74,7 @@ export const columns: BasicColumn[] = [ export const searchFormSchema: FormSchema[] = [ { field: 'CountryName', - label: '国家名称', + label: '国家地区名称', component: 'Input', colProps: { span: 6 }, }, @@ -89,7 +89,7 @@ export const formSchema: FormSchema[] = [ }, { field: 'countryCode', - label: '国家唯一代码', + label: '国家地区唯一代码', component: 'Input', required: true, colProps: { span: 12 }, @@ -99,14 +99,14 @@ export const formSchema: FormSchema[] = [ }, { field: 'countryName', - label: '国家名称', + label: '国家地区名称', component: 'Input', required: true, colProps: { span: 12 }, }, { field: 'countryEnName', - label: '国家英文名称', + label: '国家地区英文名称', component: 'Input', colProps: { span: 12 }, @@ -139,14 +139,14 @@ export const formSchema: FormSchema[] = [ }, { field: 'countryCode3', - label: '国家3字代码', + label: '国家地区3字代码', component: 'Input', colProps: { span: 12 }, }, { field: 'explain', - label: '国家描述', + label: '国家地区描述', component: 'InputTextArea', colProps: { span: 12 }, diff --git a/src/views/baseinfo/country/index.vue b/src/views/baseinfo/country/index.vue index bcf54225..5e966411 100644 --- a/src/views/baseinfo/country/index.vue +++ b/src/views/baseinfo/country/index.vue @@ -20,7 +20,7 @@ - 导入国家信息 + 导入国家地区信息 + diff --git a/src/views/baseinfo/infoclient/EditColumns.tsx b/src/views/baseinfo/infoclient/EditColumns.tsx index 150197ce..9a7f6bd6 100644 --- a/src/views/baseinfo/infoclient/EditColumns.tsx +++ b/src/views/baseinfo/infoclient/EditColumns.tsx @@ -321,7 +321,7 @@ export const EditformSchema: FormSchema[] = [ }, { field: 'country', - label: '国家', + label: '国家地区', component: 'DEdit', colProps: { span: 4 }, defaultValue: '', diff --git a/src/views/baseinfo/infoclient/TenantAuditStepModal.vue b/src/views/baseinfo/infoclient/TenantAuditStepModal.vue index 328c65fc..e0c0621d 100644 --- a/src/views/baseinfo/infoclient/TenantAuditStepModal.vue +++ b/src/views/baseinfo/infoclient/TenantAuditStepModal.vue @@ -415,13 +415,12 @@ 'isContract', ] if (CustomerOrSupplier.value == 'isCustomer') { - console.log('客户') updateSchema({ label: '客户属性', field: 'ArrclientTag', component: 'ApiSelect', colProps: { span: 12 }, - defaultValue: 'isController', + defaultValue: ['isController'], componentProps: () => { return { api: () => { @@ -446,8 +445,8 @@ } }, }) + setFieldsValue({ ArrclientTag: ['isController'] }) } else if (CustomerOrSupplier.value == 'isSupplier') { - console.log('供应商') updateSchema({ label: '客户属性', field: 'ArrclientTag', @@ -478,14 +477,14 @@ } }, }) + setFieldsValue({ ArrclientTag: [] }) } else if (CustomerOrSupplier.value == 'isCustomerAndisSupplier') { - console.log('供应商及客户') updateSchema({ label: '客户属性', field: 'ArrclientTag', component: 'ApiSelect', colProps: { span: 12 }, - defaultValue: 'isController', + defaultValue: ['isController'], componentProps: ({ formModel }) => { return { api: () => { @@ -504,6 +503,7 @@ } }, }) + setFieldsValue({ ArrclientTag: ['isController'] }) } } function ChangeCustomerOrSupplier() { diff --git a/src/views/baseinfo/infoclient/api.ts b/src/views/baseinfo/infoclient/api.ts index de95a7e5..c5af1d1e 100644 --- a/src/views/baseinfo/infoclient/api.ts +++ b/src/views/baseinfo/infoclient/api.ts @@ -105,7 +105,7 @@ export function getClientSourceSelectList(query) { params: query, }) } -// 获取国家信息下拉列表-客户端 (Auth) +// 获取国家地区信息下拉列表-客户端 (Auth) export function getClientCountrySelectList(query) { return request({ url: Api.GetClientCountrySelectList, diff --git a/src/views/baseinfo/infoclient/columns.tsx b/src/views/baseinfo/infoclient/columns.tsx index 2fe91769..80313921 100644 --- a/src/views/baseinfo/infoclient/columns.tsx +++ b/src/views/baseinfo/infoclient/columns.tsx @@ -201,7 +201,7 @@ export const columns: BasicColumn[] = [ width: 150, }, { - title: '国家', + title: '国家地区', dataIndex: 'country', sorter: true, width: 150, @@ -371,7 +371,7 @@ export const searchFormSchema: FormSchema[] = [ }, { field: 'country', - label: '国家', + label: '国家地区', component: 'Select', colProps: { span: 4 }, componentProps: () => { @@ -695,7 +695,7 @@ export const formSchema: FormSchema[] = [ }, { field: 'country', - label: '国家', + label: '国家地区', component: 'Select', colProps: { span: 4 }, @@ -1545,14 +1545,14 @@ export const CADformSchema: FormSchema[] = [ }, { field: 'countryName', - label: '国家名称', + label: '国家地区名称', component: 'Input', colProps: { span: 6 }, show: false, }, { field: 'countryId', - label: '国家', + label: '国家地区', component: 'Select', colProps: { span: 6 }, diff --git a/src/views/baseinfo/infoclientAudit/columns.tsx b/src/views/baseinfo/infoclientAudit/columns.tsx index 3c7581c7..5482c028 100644 --- a/src/views/baseinfo/infoclientAudit/columns.tsx +++ b/src/views/baseinfo/infoclientAudit/columns.tsx @@ -203,7 +203,7 @@ export const columns: BasicColumn[] = [ width: 150, }, { - title: '国家', + title: '国家地区', dataIndex: 'country', sorter: true, width: 150, diff --git a/src/views/baseinfo/port/columns.tsx b/src/views/baseinfo/port/columns.tsx index 2045ea96..f71bb700 100644 --- a/src/views/baseinfo/port/columns.tsx +++ b/src/views/baseinfo/port/columns.tsx @@ -40,7 +40,7 @@ export const columns: BasicColumn[] = [ width: 200, }, { - title: '国家名称', + title: '国家地区名称', dataIndex: 'countryName', sorter: true, width: 200, @@ -73,7 +73,7 @@ export const columns: BasicColumn[] = [ }, }, // { - // title: '国家', + // title: '国家地区', // dataIndex: 'countryId', // sorter: true, // width: 200, @@ -138,7 +138,7 @@ export const columns: BasicColumn[] = [ export const searchFormSchema: FormSchema[] = [ { - field: 'CnName:portName:ediCode', + field: 'cnName:portName:ediCode', label: '港口名称', component: 'Input', colProps: { span: 4 }, @@ -149,7 +149,7 @@ export const searchFormSchema: FormSchema[] = [ { field: 'countryId', - label: '国家', + label: '国家地区', component: 'Select', colProps: { span: 4 }, defaultValue: '', @@ -205,7 +205,7 @@ export const formSchema: FormSchema[] = [ }, { field: 'countryName', - label: '国家名称', + label: '国家地区名称', component: 'Input', colProps: { span: 12 }, show: false, @@ -235,7 +235,7 @@ export const formSchema: FormSchema[] = [ }, { field: 'countryId', - label: '国家', + label: '国家地区', component: 'Select', colProps: { span: 12 }, defaultValue: '', diff --git a/src/views/baseinfo/port/index.vue b/src/views/baseinfo/port/index.vue index 9f86a9f5..f84fde0e 100644 --- a/src/views/baseinfo/port/index.vue +++ b/src/views/baseinfo/port/index.vue @@ -76,7 +76,9 @@ }) }, beforeFetch: (p) => { - return formatParams(p) + let RData = formatParams(p) + RData.queryCondition = RData.queryCondition.replace(`{"Key":1,"Value"`, `{"Key":0,"Value"`) + return RData }, columns, formConfig: { diff --git a/src/views/baseinfo/sendReciveTem/columns.tsx b/src/views/baseinfo/sendReciveTem/columns.tsx index a320e16b..1a73f658 100644 --- a/src/views/baseinfo/sendReciveTem/columns.tsx +++ b/src/views/baseinfo/sendReciveTem/columns.tsx @@ -36,7 +36,7 @@ export const columns: BasicColumn[] = [ width: 200, }, { - title: '国家', + title: '国家地区', dataIndex: 'countryName', sorter: true, width: 200, @@ -57,9 +57,9 @@ export const columns: BasicColumn[] = [ if (record.type) { RData = record.type } - RData = RData.replace("1", "收货人") - RData = RData.replace("2", "发货人") - RData = RData.replace("3", "通知人") + RData = RData.replace('1', '收货人') + RData = RData.replace('2', '发货人') + RData = RData.replace('3', '通知人') return RData }, }, @@ -125,7 +125,7 @@ export const formSchema: FormSchema[] = [ colProps: { span: 12 }, }, { - label: '国家code', + label: '国家地区code', field: 'countryName', component: 'Input', defaultValue: '', @@ -133,7 +133,7 @@ export const formSchema: FormSchema[] = [ }, { field: 'country', - label: '国家', + label: '国家地区', component: 'Select', required: false, dynamicDisabled: false, @@ -203,6 +203,6 @@ export const formSchema: FormSchema[] = [ field: 'content', label: '模版内容', component: 'InputTextArea', - colProps: { span: 24 } + colProps: { span: 24 }, }, ] diff --git a/src/views/baseinfo/shipping/columns.tsx b/src/views/baseinfo/shipping/columns.tsx index 76c47150..2dcbc419 100644 --- a/src/views/baseinfo/shipping/columns.tsx +++ b/src/views/baseinfo/shipping/columns.tsx @@ -24,7 +24,7 @@ export const columns: BasicColumn[] = [ width: 150, }, { - title: '国家', + title: '国家地区', dataIndex: 'countryName', width: 120, }, @@ -114,7 +114,7 @@ export const formSchema: FormSchema[] = [ }, { field: 'countryId', - label: '国家', + label: '国家地区', required: true, component: 'Select', colProps: { span: 12 }, @@ -138,7 +138,7 @@ export const formSchema: FormSchema[] = [ }, { field: 'countryName', - label: '国家名称', + label: '国家地区名称', show: false, component: 'Input', }, diff --git a/src/views/bookingcabin/CabinInventory/columns.tsx b/src/views/bookingcabin/CabinInventory/columns.tsx index 974da678..f11e6fe9 100644 --- a/src/views/bookingcabin/CabinInventory/columns.tsx +++ b/src/views/bookingcabin/CabinInventory/columns.tsx @@ -1,15 +1,17 @@ - import { ref } from 'vue' import { BasicColumn, FormSchema } from '/@/components/Table' -import { GetCarrierlist, GetClientPortSelectList } from '/@/views/operation/seaexport/api/BookingLedger' -import { GetCtnSelectList,GetCarrierSelectList } from '/@/api/common' +import { + GetCarrierlist, + GetClientPortSelectList, +} from '/@/views/operation/seaexport/api/BookingLedger' +import { GetCtnSelectList, GetCarrierSelectList } from '/@/api/common' import { getDictOption } from '/@/utils/dictUtil' import { useOptionsStore } from '/@/store/modules/options' const optionsStore = useOptionsStore() const FnblType = ref([]) const FncargoId = ref([]) -getDictOption('bl_type').then(res => { +getDictOption('bl_type').then((res) => { FncargoId.value = res }) export const searchFormSchema: FormSchema[] = [ @@ -34,7 +36,7 @@ export const searchFormSchema: FormSchema[] = [ colProps: { span: 4 }, componentProps: { allowClear: true, - } + }, }, { field: 'PORTLOAD', @@ -51,11 +53,9 @@ export const searchFormSchema: FormSchema[] = [ valueField: 'ediCode', showName: 'ediCode', immediate: false, - onChange: (e, obj) => { - - } + onChange: (e, obj) => {}, } - } + }, }, { field: 'carrier', @@ -85,9 +85,9 @@ export const searchFormSchema: FormSchema[] = [ api: GetCtnSelectList, labelField: 'ctnName', valueField: 'ediCode', - resultField: 'data' + resultField: 'data', } - } + }, }, { field: 'etA_START', @@ -98,7 +98,7 @@ export const searchFormSchema: FormSchema[] = [ colProps: { span: 4 }, componentProps: { allowClear: true, - } + }, }, { field: 'etA_END', @@ -109,7 +109,7 @@ export const searchFormSchema: FormSchema[] = [ colProps: { span: 4 }, componentProps: { allowClear: true, - } + }, }, { @@ -129,15 +129,13 @@ export const searchFormSchema: FormSchema[] = [ showName: 'ediCode', valueField: 'ediCode', immediate: false, - onChange: (e, obj) => { - - } + onChange: (e, obj) => {}, } - } + }, }, { field: 'PORTDISCHARGE_COUNTRY_CODE', - label: '国家', + label: '国家地区', component: 'Input', colProps: { span: 4 }, }, @@ -162,25 +160,25 @@ export const columns: BasicColumn[] = [ title: '订舱抬头', align: 'center', width: 200, - dataIndex: 'bookingParty' + dataIndex: 'bookingParty', }, { title: '合约号', align: 'center', width: 100, - dataIndex: 'contractNo' + dataIndex: 'contractNo', }, { title: '订舱方式', align: 'center', width: 100, - dataIndex: 'bookingSlotTypeName' + dataIndex: 'bookingSlotTypeName', }, { title: '总库存', align: 'center', width: 100, - dataIndex: 'totalOrders' + dataIndex: 'totalOrders', }, { title: '剩余库存', @@ -192,55 +190,55 @@ export const columns: BasicColumn[] = [ title: '取消库存', align: 'center', width: 100, - dataIndex: 'cancelNum' + dataIndex: 'cancelNum', }, { title: '收货地', align: 'center', width: 100, - dataIndex: 'placeReceipt' + dataIndex: 'placeReceipt', }, { title: '交货地', align: 'center', width: 100, - dataIndex: 'placeDelivery' + dataIndex: 'placeDelivery', }, { title: '装货港', align: 'center', width: 100, - dataIndex: 'portLoad' + dataIndex: 'portLoad', }, { title: '卸货港', align: 'center', width: 100, - dataIndex: 'portDischarge' + dataIndex: 'portDischarge', }, { - title: '卸货港国家', + title: '卸货港国家地区', align: 'center', width: 100, - dataIndex: 'portDischargeCountry' + dataIndex: 'portDischargeCountry', }, { title: '航线', align: 'center', width: 100, - dataIndex: 'laneName' + dataIndex: 'laneName', }, { title: '箱型箱量', align: 'center', width: 100, - dataIndex: 'ctnStat' + dataIndex: 'ctnStat', }, { title: '剩余箱型箱量', align: 'center', width: 110, - dataIndex: 'remainCtnStat' + dataIndex: 'remainCtnStat', }, { title: 'ETD', @@ -258,8 +256,6 @@ export const columns: BasicColumn[] = [ title: '船公司', align: 'center', width: 150, - dataIndex: 'carrier' - } + dataIndex: 'carrier', + }, ] - - diff --git a/src/views/bookingcabin/CabinManagement/columns.tsx b/src/views/bookingcabin/CabinManagement/columns.tsx index 55610878..784db641 100644 --- a/src/views/bookingcabin/CabinManagement/columns.tsx +++ b/src/views/bookingcabin/CabinManagement/columns.tsx @@ -533,7 +533,7 @@ export const columns: BasicColumn[] = [ customCell: sharedOnCell, }, { - title: '卸货港国家', + title: '卸货港国家地区', align: 'center', width: 180, dataIndex: 'portDischargeCountry', diff --git a/src/views/finance/paymentSettlement/detail/components/applyInfoColumns.tsx b/src/views/finance/paymentSettlement/detail/components/applyInfoColumns.tsx index 199e1925..1293ed93 100644 --- a/src/views/finance/paymentSettlement/detail/components/applyInfoColumns.tsx +++ b/src/views/finance/paymentSettlement/detail/components/applyInfoColumns.tsx @@ -1,7 +1,7 @@ /* * @Author: lijingjia lijj_xl@163.com * @Date: 2024-06-21 16:59:01 - * @Description: + * @Description: */ import { commentProps } from 'ant-design-vue/lib/comment' import { BasicColumn, FormSchema } from '/@/components/Table' @@ -64,11 +64,11 @@ export const columns: BasicColumn[] = [ dataIndex: 'originalCurrency', width: 100, }, -// { -// title: '原始汇率', -// dataIndex: 'originalCurrency', -// width: 200, -// }, + // { + // title: '原始汇率', + // dataIndex: 'originalCurrency', + // width: 200, + // }, { title: '折算汇率', dataIndex: 'exchangeRate', @@ -79,11 +79,11 @@ export const columns: BasicColumn[] = [ dataIndex: 'originalAmount', width: 100, }, -// { -// title: '进项/销项税率', -// dataIndex: 'originalCurrency', -// width: 200, -// }, + // { + // title: '进项/销项税率', + // dataIndex: 'originalCurrency', + // width: 200, + // }, { title: '揽货人', dataIndex: 'note', @@ -99,8 +99,8 @@ export const columns: BasicColumn[] = [ export const searchFormSchema: FormSchema[] = [ { field: 'CountryName', - label: '国家名称', + label: '国家地区名称', component: 'Input', - colProps: { span: 6 } - } + colProps: { span: 6 }, + }, ] diff --git a/src/views/operation/paidApply/detail/components/applyInfoColumns.tsx b/src/views/operation/paidApply/detail/components/applyInfoColumns.tsx index 199e1925..1293ed93 100644 --- a/src/views/operation/paidApply/detail/components/applyInfoColumns.tsx +++ b/src/views/operation/paidApply/detail/components/applyInfoColumns.tsx @@ -1,7 +1,7 @@ /* * @Author: lijingjia lijj_xl@163.com * @Date: 2024-06-21 16:59:01 - * @Description: + * @Description: */ import { commentProps } from 'ant-design-vue/lib/comment' import { BasicColumn, FormSchema } from '/@/components/Table' @@ -64,11 +64,11 @@ export const columns: BasicColumn[] = [ dataIndex: 'originalCurrency', width: 100, }, -// { -// title: '原始汇率', -// dataIndex: 'originalCurrency', -// width: 200, -// }, + // { + // title: '原始汇率', + // dataIndex: 'originalCurrency', + // width: 200, + // }, { title: '折算汇率', dataIndex: 'exchangeRate', @@ -79,11 +79,11 @@ export const columns: BasicColumn[] = [ dataIndex: 'originalAmount', width: 100, }, -// { -// title: '进项/销项税率', -// dataIndex: 'originalCurrency', -// width: 200, -// }, + // { + // title: '进项/销项税率', + // dataIndex: 'originalCurrency', + // width: 200, + // }, { title: '揽货人', dataIndex: 'note', @@ -99,8 +99,8 @@ export const columns: BasicColumn[] = [ export const searchFormSchema: FormSchema[] = [ { field: 'CountryName', - label: '国家名称', + label: '国家地区名称', component: 'Input', - colProps: { span: 6 } - } + colProps: { span: 6 }, + }, ] diff --git a/src/views/operation/seaexport/api/BookingLedger.js b/src/views/operation/seaexport/api/BookingLedger.js index a2384467..06d88a60 100644 --- a/src/views/operation/seaexport/api/BookingLedger.js +++ b/src/views/operation/seaexport/api/BookingLedger.js @@ -610,7 +610,7 @@ export function GetShippingBillTemplateSelectList(parameter) { params: parameter, }) } -//获取国家信息下拉列表-客户端 (Auth) +//获取国家地区信息下拉列表-客户端 (Auth) export function GetClientCountrySelectList(parameter) { return request({ url: '/mainApi/Common/GetClientCountrySelectList', @@ -652,7 +652,7 @@ export function GetFactorySelectList(parameter) { params: parameter, }) } -// 获取国家下拉列表-客户端 (Auth) +// 获取国家地区下拉列表-客户端 (Auth) export function GetCodeCountryList(parameter) { return request({ url: '/mainApi/CodeCountry/GetCodeCountrySelectList', @@ -2067,7 +2067,7 @@ export function Withdraw(data) { return request({ url: '/opApi/SeaExportTask/Withdraw', method: 'post', - data + data, }) } @@ -2076,7 +2076,7 @@ export function SeaExportTaskAudit(data) { return request({ url: '/opApi/SeaExportTask/Audit', method: 'post', - data + data, }) } @@ -2085,7 +2085,7 @@ export function RefreshYGT(data) { return request({ url: '/opApi/SeaExport/RefreshYGT', method: 'post', - data + data, }) } @@ -2094,7 +2094,7 @@ export function GetClientGoodsList(params) { return request({ url: '/mainApi/ClientCommon/GetClientGoodsList', method: 'get', - params + params, }) } @@ -2103,7 +2103,7 @@ export function BatchDelBusinessOrderContact(data) { return request({ url: '/opApi/BusinessOrderContact/BatchDelBusinessOrderContact', method: 'post', - data + data, }) } @@ -2112,7 +2112,7 @@ export function GetAvailableBookingSlots(data) { return request({ url: '/opApi/BookingSlotService/GetAvailableBookingSlots', method: 'post', - data + data, }) } @@ -2121,7 +2121,7 @@ export function BringInBookingSlotToOrder(data) { return request({ url: '/opApi/BookingSlotService/BringInBookingSlotToOrder', method: 'post', - data + data, }) } @@ -2130,7 +2130,7 @@ export function SetTaskStatus(data) { return request({ url: '/opApi/SeaExportTask/SetTaskStatus', method: 'post', - data + data, }) } @@ -2138,7 +2138,7 @@ export function SetTaskStatus(data) { export function AutomaticBooking(id) { return request({ url: '/opApi/SeaExportTask/AutomaticBooking?businessId=' + id, - method: 'post' + method: 'post', }) } @@ -2147,7 +2147,7 @@ export function GetSeaExportLogList(params) { return request({ url: '/opApi/SeaExport/GetSeaExportLogList', method: 'get', - params + params, }) } @@ -2156,7 +2156,7 @@ export function PrintShippingOrderLetterPDF(params) { return request({ url: '/opApi/SeaExport/PrintShippingOrderLetterPDF', method: 'get', - params + params, }) } @@ -2165,7 +2165,7 @@ export function GetBookingContractNoList(params) { return request({ url: '/mainApi/ClientCommon/GetBookingContractNoList', method: 'get', - params + params, }) } @@ -2174,7 +2174,7 @@ export function BatchDelBusinessCtnPrice(data) { return request({ url: '/opApi/BusinessCtnPrice/BatchDelBusinessCtnPrice', method: 'post', - data + data, }) } @@ -2183,7 +2183,7 @@ export function GetClientPortInfoByCode(params) { return request({ url: '/mainApi/ClientCommon/GetClientPortInfoByCode', method: 'get', - params + params, }) } @@ -2192,7 +2192,7 @@ export function GetShippingBillShortList(params) { return request({ url: '/opApi/ShippingBill/GetShippingBillShortList', method: 'post', - params + params, }) } @@ -2210,7 +2210,7 @@ export function CreateMultipleTask(data) { return request({ url: '/opApi/SeaExportTask/CreateMultipleTask', method: 'post', - data + data, }) } @@ -2219,7 +2219,7 @@ export function SubmitAudit(data) { return request({ url: '/opApi/SeaExportTask/SubmitAudit', method: 'post', - data + data, }) } @@ -2228,7 +2228,7 @@ export function GetChangeOrderStatus(params) { return request({ url: '/opApi/SeaExportRefund/GetChangeOrderStatus', method: 'get', - params + params, }) } @@ -2237,7 +2237,7 @@ export function CreateChangeTaskAsync(data) { return request({ url: '/opApi/SeaExportRefund/CreateChangeTaskAsync', method: 'post', - data + data, }) } @@ -2246,6 +2246,6 @@ export function IsLastMarker(params) { return request({ url: '/mainApi/ClientFlowInstance/IsLastMarker', method: 'get', - params + params, }) } diff --git a/src/views/operation/seaexport/detail/components/ladingInfo.tsx b/src/views/operation/seaexport/detail/components/ladingInfo.tsx index 267f3ea5..00d69a4f 100644 --- a/src/views/operation/seaexport/detail/components/ladingInfo.tsx +++ b/src/views/operation/seaexport/detail/components/ladingInfo.tsx @@ -1,7 +1,12 @@ import { FormSchema, BasicColumn } from '/@/components/Table' import { useOptionsStore } from '/@/store/modules/options' import { GetClientListByCode } from '/@/api/common' -import { GetPackageSelectList, GetShippingBillTemplateSelectList, GetClientPortSelectList, GetVesselSelectList } from '/@/views/operation/seaexport/api/BookingLedger' +import { + GetPackageSelectList, + GetShippingBillTemplateSelectList, + GetClientPortSelectList, + GetVesselSelectList, +} from '/@/views/operation/seaexport/api/BookingLedger' import { useMessage } from '/@/hooks/web/useMessage' const { createMessage } = useMessage() const optionsStore = useOptionsStore() @@ -70,9 +75,9 @@ export const formSchema1: FormSchema[] = [ slice: [30, 35, 40], onCut: (v) => { formModel.shipperContent = v - } + }, } - } + }, }, { label: '', @@ -124,9 +129,9 @@ export const formSchema1: FormSchema[] = [ slice: [30, 35, 40], onCut: (v) => { formModel.consigneeContent = v - } + }, } - } + }, }, { label: '', @@ -181,9 +186,9 @@ export const formSchema1: FormSchema[] = [ slice: [30, 35, 40], onCut: (v) => { formModel.notifyPartyContent = v - } + }, } - } + }, }, { label: '', @@ -236,9 +241,9 @@ export const formSchema1: FormSchema[] = [ if (!e && !obj) { formModel.agentId = '' } - } + }, } - } + }, }, { field: 'agentContent', @@ -249,9 +254,9 @@ export const formSchema1: FormSchema[] = [ // defaultValue: '', colProps: { span: 24 }, componentProps: { - rows: 5 - } - } + rows: 5, + }, + }, ] // 下面的表单2 @@ -265,7 +270,7 @@ export const formSchema2: FormSchema[] = [ componentProps: { allowClear: true, valueFormat: 'YYYY-MM-DD', - } + }, }, { field: 'eta', @@ -275,8 +280,8 @@ export const formSchema2: FormSchema[] = [ defaultValue: null, componentProps: { allowClear: true, - valueFormat: 'YYYY-MM-DD' - } + valueFormat: 'YYYY-MM-DD', + }, }, { label: '', @@ -307,9 +312,9 @@ export const formSchema2: FormSchema[] = [ if (!e && !obj) { formModel.vesselId = null } - } + }, } - } + }, }, { label: '船司航次', @@ -392,10 +397,10 @@ export const formSchema2: FormSchema[] = [ componentProps: ({ formModel }) => { return { oninput: () => { - formModel.loadPort = formModel.loadPort.replace(/[\u4e00-\u9fa5]/ig,'') - } + formModel.loadPort = formModel.loadPort.replace(/[\u4e00-\u9fa5]/gi, '') + }, } - } + }, }, { label: '', @@ -412,10 +417,10 @@ export const formSchema2: FormSchema[] = [ componentProps: ({ formModel }) => { return { oninput: () => { - formModel.dischargePort = formModel.dischargePort.replace(/[\u4e00-\u9fa5]/ig,'') - } + formModel.dischargePort = formModel.dischargePort.replace(/[\u4e00-\u9fa5]/gi, '') + }, } - } + }, }, { label: '', @@ -490,10 +495,10 @@ export const formSchema2: FormSchema[] = [ componentProps: ({ formModel }) => { return { oninput: () => { - formModel.deliveryPlace = formModel.deliveryPlace.replace(/[\u4e00-\u9fa5]/ig,'') - } + formModel.deliveryPlace = formModel.deliveryPlace.replace(/[\u4e00-\u9fa5]/gi, '') + }, } - } + }, }, { label: '', @@ -510,10 +515,10 @@ export const formSchema2: FormSchema[] = [ componentProps: ({ formModel }) => { return { oninput: () => { - formModel.receiptPlace = formModel.receiptPlace.replace(/[\u4e00-\u9fa5]/ig,'') - } + formModel.receiptPlace = formModel.receiptPlace.replace(/[\u4e00-\u9fa5]/gi, '') + }, } - } + }, }, { label: '', @@ -568,17 +573,17 @@ export const formSchema2: FormSchema[] = [ componentProps: ({ formModel }) => { return { oninput: () => { - formModel.transPort = formModel.transPort.replace(/[\u4e00-\u9fa5]/ig,'') - } + formModel.transPort = formModel.transPort.replace(/[\u4e00-\u9fa5]/gi, '') + }, } - } + }, }, { label: '', field: 'transPortId', component: 'Input', show: false, - } + }, ] // 箱数或件数表单 @@ -609,7 +614,7 @@ export const formSchema3: FormSchema[] = [ } formModel.pkgs = pkgs formActionType ? formActionType.submit() : null - } + }, } }, }, @@ -618,20 +623,20 @@ export const formSchema3: FormSchema[] = [ field: 'pkgs', component: 'Input', colProps: { span: 12 }, - dynamicDisabled: true + dynamicDisabled: true, }, { label: '包装', field: 'kindPkgsName', component: 'Input', colProps: { span: 12 }, - dynamicDisabled: true + dynamicDisabled: true, }, { label: '', field: 'kindPkgs', component: 'Input', - show: false + show: false, }, { label: '毛重(公斤)', @@ -656,7 +661,7 @@ export const formSchema3: FormSchema[] = [ } } formModel.kgs = pkgs - } + }, } }, }, @@ -664,7 +669,7 @@ export const formSchema3: FormSchema[] = [ label: '总总量(KGS)', field: 'kgs', component: 'Input', - colProps: { span: 24 } + colProps: { span: 24 }, }, { label: '尺码(立方米)', @@ -689,7 +694,7 @@ export const formSchema3: FormSchema[] = [ } } formModel.cbm = pkgs - } + }, } }, }, @@ -697,8 +702,8 @@ export const formSchema3: FormSchema[] = [ label: '总尺码(CBM)', field: 'cbm', component: 'Input', - colProps: { span: 24 } - } + colProps: { span: 24 }, + }, ] export const formSchema4: FormSchema[] = [ @@ -727,9 +732,9 @@ export const formSchema4: FormSchema[] = [ valueField: 'id', filterOption: (input: string, option: any) => { return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 - } + }, } - } + }, }, { field: 'issueDate', @@ -745,16 +750,16 @@ export const formSchema4: FormSchema[] = [ valueFormat: 'YYYY-MM-DD', onChange: (e) => { formActionType ? formActionType.linkageForm(e) : null - } + }, } - } + }, }, { label: '签单地点', field: 'issuePlace', component: 'Input', required: false, - colProps: { span: 6 } + colProps: { span: 6 }, }, { field: 'noBill', @@ -795,9 +800,9 @@ export const formSchema4: FormSchema[] = [ if (e && obj) { formActionType ? formActionType.linkageForm(e) : null } - } + }, } - } + }, }, { label: '', @@ -836,7 +841,7 @@ export const formSchema4: FormSchema[] = [ formModel.prepareAtId = null formModel.prepareAtCode = null } - } + }, } }, }, @@ -844,13 +849,13 @@ export const formSchema4: FormSchema[] = [ label: '', field: 'payableAtId', component: 'Input', - show: false + show: false, }, { label: '', field: 'payableAtCode', component: 'Input', - show: false + show: false, }, { field: 'payableAt', @@ -877,9 +882,9 @@ export const formSchema4: FormSchema[] = [ formModel.payableAtId = null formModel.payableAtCode = null } - } + }, } - } + }, }, { field: 'service', @@ -898,9 +903,9 @@ export const formSchema4: FormSchema[] = [ valueField: 'id', filterOption: (input: string, option: any) => { return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 - } + }, } - } + }, }, { label: '其他备注', @@ -909,8 +914,8 @@ export const formSchema4: FormSchema[] = [ required: false, colProps: { span: 12 }, componentProps: { - autoSize: { minRows: 3, maxRows: 3 } - } + autoSize: { minRows: 3, maxRows: 3 }, + }, }, { label: '备注', @@ -919,8 +924,8 @@ export const formSchema4: FormSchema[] = [ required: false, colProps: { span: 12 }, componentProps: { - autoSize: { minRows: 3, maxRows: 3 } - } + autoSize: { minRows: 3, maxRows: 3 }, + }, }, ] @@ -931,7 +936,7 @@ export const formSchema5: FormSchema[] = [ field: 'mblno', component: 'Input', defaultValue: '', - colProps: { span: 12 } + colProps: { span: 12 }, }, { label: '分提单号', @@ -939,8 +944,8 @@ export const formSchema5: FormSchema[] = [ component: 'Input', required: true, defaultValue: null, - colProps: { span: 12 } - } + colProps: { span: 12 }, + }, ] // 历史提单表格 @@ -1008,8 +1013,8 @@ export const searchFormSchema: FormSchema[] = [ componentProps: { allowClear: true, valueFormat: 'YYYY-MM-DD', - } - } + }, + }, ] // 其他信息表单 @@ -1019,85 +1024,85 @@ export const formSchema6: FormSchema[] = [ field: 'shipperCode', component: 'Input', defaultValue: '', - colProps: { span: 12 } + colProps: { span: 12 }, }, { - label: '国家代码', + label: '国家地区代码', field: 'shipperCountry', component: 'Input', defaultValue: '', - colProps: { span: 12 } + colProps: { span: 12 }, }, { label: '电话', field: 'shipperTel', component: 'Input', defaultValue: '', - colProps: { span: 12 } + colProps: { span: 12 }, }, { label: '邮箱', field: 'shipperEmail', component: 'Input', defaultValue: '', - colProps: { span: 12 } + colProps: { span: 12 }, }, { label: '企业代码', field: 'consigneeCode', component: 'Input', defaultValue: '', - colProps: { span: 12 } + colProps: { span: 12 }, }, { - label: '国家代码', + label: '国家地区代码', field: 'consigneeCountry', component: 'Input', defaultValue: '', - colProps: { span: 12 } + colProps: { span: 12 }, }, { label: '电话', field: 'consigneeTel', component: 'Input', defaultValue: '', - colProps: { span: 12 } + colProps: { span: 12 }, }, { label: '邮箱', field: 'consigneeEmail', component: 'Input', defaultValue: '', - colProps: { span: 12 } + colProps: { span: 12 }, }, { label: '企业代码', field: 'notifyPartyCode', component: 'Input', defaultValue: '', - colProps: { span: 12 } + colProps: { span: 12 }, }, { - label: '国家代码', + label: '国家地区代码', field: 'notifyPartyCountry', component: 'Input', defaultValue: '', - colProps: { span: 12 } + colProps: { span: 12 }, }, { label: '电话', field: 'notifyPartyTel', component: 'Input', defaultValue: '', - colProps: { span: 12 } + colProps: { span: 12 }, }, { label: '邮箱', field: 'notifyPartyEmail', component: 'Input', defaultValue: '', - colProps: { span: 12 } - } + colProps: { span: 12 }, + }, ] // 仓位列表 @@ -1110,7 +1115,7 @@ export const storageColumns: BasicColumn[] = [ { title: '箱型箱量(余量)', dataIndex: 'ctnStat', - width: 120 + width: 120, }, { title: '合约号', @@ -1155,13 +1160,13 @@ export const storageColumns: BasicColumn[] = [ { title: '交货地', dataIndex: 'placeDelivery', - width: 150 + width: 150, }, { title: '订舱编号', dataIndex: 'slotNo', - width: 150 - } + width: 150, + }, ] // 仓位表格过滤表单 @@ -1170,30 +1175,30 @@ export const storageSearchFormSchema: FormSchema[] = [ field: 'portLoad', label: '装货地', component: 'Input', - colProps: { span: 4 } + colProps: { span: 4 }, }, { field: 'placeDelivery', label: '交货地', component: 'Input', - colProps: { span: 4 } + colProps: { span: 4 }, }, { field: 'vessel', label: '船名', component: 'Input', - colProps: { span: 4 } + colProps: { span: 4 }, }, { field: 'voyno', label: '航次', component: 'Input', - colProps: { span: 4 } + colProps: { span: 4 }, }, { field: 'slotNo', label: '编号', component: 'Input', - colProps: { span: 4 } + colProps: { span: 4 }, }, -] \ No newline at end of file +] diff --git a/src/views/operation/seaexport/detail/modules/preOrder.tsx b/src/views/operation/seaexport/detail/modules/preOrder.tsx index b08193f6..2ddeab30 100644 --- a/src/views/operation/seaexport/detail/modules/preOrder.tsx +++ b/src/views/operation/seaexport/detail/modules/preOrder.tsx @@ -18,12 +18,12 @@ export const baseSchema: FormSchema[] = [ field: 'id', show: false, defaultValue: '0', - component: 'Input' + component: 'Input', }, { field: 'isPart', show: false, - component: 'Input' + component: 'Input', }, { field: 'mblno', @@ -36,7 +36,7 @@ export const baseSchema: FormSchema[] = [ show: ({ values }) => { return !values.isPart }, - colProps: { span: 4 } + colProps: { span: 4 }, }, { field: 'hblno', @@ -49,23 +49,23 @@ export const baseSchema: FormSchema[] = [ componentProps: ({ formActionType }) => { return { onChange: (e, obj) => { - if(e){ + if (e) { formActionType ? formActionType.linkageForm(e.target.value) : null } - } + }, } }, - colProps: { span: 4 } + colProps: { span: 4 }, }, { field: 'vesselId', show: false, - component: 'Input' + component: 'Input', }, { field: 'innerVoyno', show: false, - component: 'Input' + component: 'Input', }, { label: '船名', @@ -106,7 +106,7 @@ export const baseSchema: FormSchema[] = [ labelField: 'voyNo', valueField: 'voyNo', resultField: 'data', - immediate: false + immediate: false, } }, }, @@ -134,14 +134,14 @@ export const baseSchema: FormSchema[] = [ if (!e && !obj) { formModel.shipAgencyId = '' } - } + }, } - } + }, }, { field: 'carrierId', show: false, - component: 'Input' + component: 'Input', }, { label: '船公司', @@ -165,9 +165,9 @@ export const baseSchema: FormSchema[] = [ if (!e && !obj) { formModel.carrierId = '' } - } + }, } - } + }, }, { field: 'etd', @@ -178,7 +178,7 @@ export const baseSchema: FormSchema[] = [ colProps: { span: 4 }, componentProps: { allowClear: true, - valueFormat: 'YYYY-MM-DD' + valueFormat: 'YYYY-MM-DD', }, }, { @@ -205,15 +205,15 @@ export const baseSchema: FormSchema[] = [ formModel.loadPortId = null formModel.loadPort = null } - } + }, } - } + }, }, { field: 'loadPort', label: '装货港', component: 'Input', - colProps: { span: 4 } + colProps: { span: 4 }, }, { field: 'loadPortId', @@ -245,15 +245,15 @@ export const baseSchema: FormSchema[] = [ formModel.dischargePortId = null formModel.dischargePort = null } - } + }, } - } + }, }, { field: 'dischargePort', label: '卸货港', component: 'Input', - colProps: { span: 4 } + colProps: { span: 4 }, }, { field: 'dischargePortId', @@ -286,15 +286,15 @@ export const baseSchema: FormSchema[] = [ formModel.receiptPladeliveryPlacece = null formModel.deliveryPlaceId = null } - } + }, } - } + }, }, { field: 'deliveryPlace', label: '收货地', component: 'Input', - colProps: { span: 4 } + colProps: { span: 4 }, }, { field: 'deliveryPlaceId', @@ -306,7 +306,7 @@ export const baseSchema: FormSchema[] = [ field: 'remark', label: '备注', component: 'Input', - colProps: { span: 24 } + colProps: { span: 24 }, }, ] // 收发通 @@ -353,9 +353,9 @@ export const mailingSchema: FormSchema[] = [ formModel.shipperContent = null formModel.shipper = '' } - } + }, } - } + }, }, { label: '', @@ -398,15 +398,15 @@ export const mailingSchema: FormSchema[] = [ formModel.consignee = null formModel.consigneeContent = '' } - } + }, } - } + }, }, { label: '', field: 'notifyPartyId', component: 'Input', - show: false + show: false, }, { label: '通知人', @@ -443,49 +443,49 @@ export const mailingSchema: FormSchema[] = [ formModel.notifyPartyContent = null formModel.notifyParty = '' } - } + }, } - } + }, }, { field: 'shipperName', label: '名称', component: 'Input', - colProps: { span: 8 } + colProps: { span: 8 }, }, { field: 'consigneeName', label: '名称', component: 'Input', - colProps: { span: 8 } + colProps: { span: 8 }, }, { field: 'notifyPartyName', label: '名称', component: 'Input', - colProps: { span: 8 } + colProps: { span: 8 }, }, { field: 'shipperAddress', label: '地址', component: 'Input', - colProps: { span: 8 } + colProps: { span: 8 }, }, { field: 'consigneeAddress', label: '地址', component: 'Input', - colProps: { span: 8 } + colProps: { span: 8 }, }, { field: 'notifyPartyAddress', label: '地址', component: 'Input', - colProps: { span: 8 } + colProps: { span: 8 }, }, { field: 'shipperCountry', - label: '国家', + label: '国家地区', component: 'Select', componentProps: ({ formModel }) => { return { @@ -497,7 +497,7 @@ export const mailingSchema: FormSchema[] = [ value: 'countryCode', }, filterOption: (input: string, option: any) => { - return option.showName.toLowerCase().indexOf(input.toLowerCase()) >= 0; + return option.showName.toLowerCase().indexOf(input.toLowerCase()) >= 0 }, onChange: (e, obj) => { if (e && obj) { @@ -509,22 +509,22 @@ export const mailingSchema: FormSchema[] = [ }, } }, - colProps: { span: 4 } + colProps: { span: 4 }, }, { field: 'shipperCountryName', component: 'Input', - show: false + show: false, }, { field: 'shipperCountryTel', label: '电话', component: 'Input', - colProps: { span: 4 } + colProps: { span: 4 }, }, { field: 'consigneeCountry', - label: '国家', + label: '国家地区', component: 'Select', componentProps: ({ formModel }) => { return { @@ -549,22 +549,22 @@ export const mailingSchema: FormSchema[] = [ }, } }, - colProps: { span: 4 } + colProps: { span: 4 }, }, { field: 'consigneeCountryName', component: 'Input', - show: false + show: false, }, { field: 'consigneeCountryTel', label: '电话', component: 'Input', - colProps: { span: 4 } + colProps: { span: 4 }, }, { field: 'notifyPartyCountry', - label: '国家', + label: '国家地区', component: 'Select', componentProps: ({ formModel }) => { return { @@ -588,18 +588,18 @@ export const mailingSchema: FormSchema[] = [ }, } }, - colProps: { span: 4 } + colProps: { span: 4 }, }, { field: 'notifyPartyCountryName', component: 'Input', - show: false + show: false, }, { field: 'notifyPartyCountryTel', label: '电话', component: 'Input', - colProps: { span: 4 } + colProps: { span: 4 }, }, ] // 场站 @@ -631,20 +631,21 @@ export const yardSchema: FormSchema[] = [ if (!e && !obj) { formModel.yardId = '' } - } + }, } - } + }, }, ] - function getCountryList() { - const arr = localStorage.getItem('ds-country') ? JSON.parse(localStorage.getItem('ds-country')) : [] + const arr = localStorage.getItem('ds-country') + ? JSON.parse(localStorage.getItem('ds-country')) + : [] if (arr.length > 0) { countryList = arr } else { - GetClientCountrySelectList().then(res => { - res.data.forEach(item=>{ + GetClientCountrySelectList().then((res) => { + res.data.forEach((item) => { item.showName = item.countryName + '/' + item.countryCode }) countryList = res.data diff --git a/src/views/operation/seaexport/detail/modules/preOrder.vue b/src/views/operation/seaexport/detail/modules/preOrder.vue index 69f11655..e9a1f98f 100644 --- a/src/views/operation/seaexport/detail/modules/preOrder.vue +++ b/src/views/operation/seaexport/detail/modules/preOrder.vue @@ -1,14 +1,17 @@