diff --git a/src/store/modules/app.ts b/src/store/modules/app.ts index b1175d42..203ed1ad 100644 --- a/src/store/modules/app.ts +++ b/src/store/modules/app.ts @@ -16,7 +16,7 @@ import { Persistent } from '/@/utils/cache/persistent' import { darkMode } from '/@/settings/designSetting' import { resetRouter } from '/@/router' import { deepMerge } from '/@/utils' - +import { useRouter } from 'vue-router' interface AppState { darkMode?: ThemeEnum // Page loading status diff --git a/src/views/operation/seaexport/api/BookingLedger.js b/src/views/operation/seaexport/api/BookingLedger.js index bfceda0a..76b29f8a 100644 --- a/src/views/operation/seaexport/api/BookingLedger.js +++ b/src/views/operation/seaexport/api/BookingLedger.js @@ -27,9 +27,9 @@ export function BookingOrderGet(parameter) { // 业务单据批量删除 (Auth) export function SeaExportBatchDel(parameter) { return request({ - url: `/opApi/SeaExport/SeaExportBatchDel${parameter}`, - method: 'get', - // params: parameter, + url: `/opApi/SeaExport/SeaExportBatchDel`, + method: 'post', + data: parameter, }) } // 批量编辑 (Auth) @@ -572,7 +572,6 @@ export function GetFile(parameter) { */ export function AddFile(params) { - console.log(params) return request({ url: '/BookingOrder/addFile', method: 'post', diff --git a/src/views/operation/seaexport/asd.json b/src/views/operation/seaexport/asd.json index ae4c0308..73e78ec0 100644 --- a/src/views/operation/seaexport/asd.json +++ b/src/views/operation/seaexport/asd.json @@ -1,20 +1,50 @@ - -The Level field is required -The TaxNo field is required -The CtnType field is required -The RMBBank field is required -The StlDate field is required -The StlName field is required -The USDBank field is required -The AuditNote field is required -The RMBAccount field is required -The USDAccount field is required -The CarrierList field is required -The InvoiceBank field is required -The RMBOnlineNO field is required -The USDOnlineNO field is required -The StlMiddleDate field is required -The InvoiceStlDate field is required -The StlFirstHalfDate field is required -The CustomAttributes1 field is required -The CustomAttributes2 field is required. \ No newline at end of file +{ + "YardTel": "", + "YardATTN": "", + "InnerVoyno": "", + "AgentContent": "", + "TemperatureSet": "", + "yard": "1788484097849561088", + "carrier": "", + "forwarder": "", + "forwarderId": "", + "Lane": "", + "laneId": "", + "hblno": "", + "saleId": "", + "customser": "", + "trucker": "", + "loadPortId": "", + "dischargePortId": "", + "vessel": "", + "voyno": "", + "etd": "", + "agentId": "", + "blType": "", + "doc": "", + "closingDate": "", + "contractNo": "", + "serviceContractNo": "", + "customerService": "", + "closeDocDate": "", + "sourceId": "", + "shipAgencyId": "", + "operatorId": "", + "destination": "", + "destinationId": "", + "atd": "", + "hsCode": "", + "deliveryPlace": "", + "orderNo": "", + "issuePlace": "", + "issueDate": "", + "saleDeptId": "", + "customername": "", + "accountDate": "", + "Sale": "", + "saleOrgId": "", + "cargoId": "", + "agent": "", + "Remark": "", + "ids": ["1780891904372772864", "1783794830388891648"] +} diff --git a/src/views/operation/seaexport/columns.tsx b/src/views/operation/seaexport/columns.tsx index 151d6968..c331694d 100644 --- a/src/views/operation/seaexport/columns.tsx +++ b/src/views/operation/seaexport/columns.tsx @@ -56,8 +56,6 @@ const Fncustomername: any = await GetControllerClientList() if (Fncustomername.succeeded) { ListData.customername = [] Fncustomername.data.forEach((e) => { - console.log(e) - ListData.customername.push({ label: `${e.codeName}/${e.shortName}`, value: e.id, ...e }) }) } @@ -121,8 +119,6 @@ const FnsaleId: any = await GetSaleUserList() if (FnsaleId.succeeded) { ListData.saleId = [] FnsaleId.data.forEach((e) => { - console.log(e, 111) - ListData.saleId.push({ ...e, label: `${e.userName}/${e.userCode}`, value: e.id }) }) } @@ -207,14 +203,14 @@ const FnprepareAt: any = await GetClientPortSelectList() if (FnprepareAt.succeeded) { ListData.prepareAt = [] FnprepareAt.data.forEach((e) => { - ListData.prepareAt.push({ label: e.cnName, value: e.id }) + ListData.prepareAt.push({ ...e, label: `${e.portName}/${e.ediCode}`, value: e.id }) }) } const FnpayableAt: any = await GetClientPortSelectList() if (FnpayableAt.succeeded) { ListData.payableAt = [] FnpayableAt.data.forEach((e) => { - ListData.payableAt.push({ label: e.cnName, value: e.id }) + ListData.payableAt.push({ ...e, label: `${e.portName}/${e.ediCode}`, value: e.id }) }) } const Fnservice: any = await GetServiceSelectList() @@ -1872,8 +1868,6 @@ export const mailingInfoFormSchemaL: FormSchema[] = [ return { label: '发货人', onChange: (e) => { - console.log(e) - formModel[`shipper${e.type}`] = e.res }, } @@ -3641,77 +3635,116 @@ export const BatchModificationFormSchema: FormSchema[] = [ label: '场站联系方式', field: 'YardTel', component: 'Input', - defaultValue: '', + show: false, }, { label: '场站联系人', field: 'YardATTN', component: 'Input', - defaultValue: '', + show: false, }, { label: '', field: 'InnerVoyno', component: 'Input', - defaultValue: '', + show: false, }, { label: '', field: 'AgentContent', component: 'Input', - defaultValue: '', + show: false, }, { label: '', field: 'TemperatureSet', component: 'Input', - defaultValue: '', + show: false, }, - { + label: '', field: 'yard', + component: 'Input', + + show: false, + }, + { + field: 'yardId', label: '场站', component: 'Select', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, - componentProps: { - options: ListData.yard, - allowClear: true, - showSearch: true, - filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 - }, + componentProps: ({ schema, tableAction, formActionType, formModel }) => { + return { + options: ListData.yard, + allowClear: true, + showSearch: true, + filterOption: (input: string, option: any) => { + return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }, + onChange: (e) => { + if (e) { + ListData.yard.forEach((item) => { + if (item.value == e) { + formModel.yard = item.label + } + }) + } else { + formModel.yard = '' + } + }, + } }, }, { - label: '船公司', + label: '', field: 'carrier', + component: 'Input', + + show: false, + }, + { + label: '船公司', + field: 'carrierId', component: 'Select', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, - componentProps: { - allowClear: true, - options: ListData.carrier, - showSearch: true, - filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 - }, + componentProps: ({ schema, tableAction, formActionType, formModel }) => { + return { + options: ListData.carrier, + allowClear: true, + showSearch: true, + filterOption: (input: string, option: any) => { + return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + }, + onChange: (e) => { + if (e) { + ListData.carrier.forEach((item) => { + if (item.value == e) { + formModel.carrier = item.label + } + }) + } else { + formModel.carrier = '' + } + }, + } }, }, { label: '订舱代理', field: 'forwarder', component: 'Input', - defaultValue: '', + show: false, }, { @@ -3720,7 +3753,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Select', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: ({ schema, tableAction, formActionType, formModel }) => { return { @@ -3748,7 +3781,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ label: '船司航线', field: 'Lane', component: 'Input', - defaultValue: '', + show: false, }, { @@ -3757,7 +3790,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Select', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: ({ schema, tableAction, formActionType, formModel }) => { return { @@ -3787,7 +3820,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Input', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, }, { @@ -3796,7 +3829,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Select', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: ({ schema, tableAction, formActionType, formModel }) => { return { @@ -3832,7 +3865,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Select', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: { options: ListData.customser, @@ -3849,7 +3882,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Select', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: { options: ListData.trucker, @@ -3866,7 +3899,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Select', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: ({ schema, tableAction, formActionType, formModel }) => { return { @@ -3903,7 +3936,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Select', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: ({ schema, tableAction, formActionType, formModel }) => { return { @@ -3940,7 +3973,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Select', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: { allowClear: true, @@ -3957,7 +3990,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Select', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: { allowClear: true, @@ -3974,7 +4007,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'DatePicker', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: { showTime: true, @@ -3987,7 +4020,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Select', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: { options: ListData.agentId, @@ -4004,7 +4037,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Select', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: { options: ListData.blType, @@ -4021,7 +4054,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Select', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: { allowClear: true, @@ -4044,7 +4077,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'DatePicker', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: { showTime: true, @@ -4057,7 +4090,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Input', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, }, { @@ -4066,7 +4099,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Input', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, }, { @@ -4075,7 +4108,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Select', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: { allowClear: true, @@ -4098,7 +4131,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'DatePicker', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: { showTime: true, @@ -4111,7 +4144,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Select', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: ({ schema, tableAction, formActionType, formModel }) => { return { @@ -4163,7 +4196,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Select', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: { allowClear: true, @@ -4187,7 +4220,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Select', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: { allowClear: true, @@ -4210,7 +4243,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Select', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: ({ schema, tableAction, formActionType, formModel }) => { return { @@ -4238,7 +4271,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ label: '目的地代码', field: 'destinationId', component: 'Input', - defaultValue: '', + required: false, colProps: { span: 4 }, }, @@ -4248,7 +4281,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'DatePicker', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: { showTime: true, @@ -4260,7 +4293,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ field: 'hsCode', component: 'Input', required: false, - defaultValue: '', + colProps: { span: 3 }, }, { @@ -4269,7 +4302,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Select', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: ({ schema, tableAction, formActionType, formModel }) => { return { @@ -4316,14 +4349,14 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Input', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, }, { label: '签单地点', field: 'issuePlace', component: 'Input', - defaultValue: '', + required: false, colProps: { span: 4 }, }, @@ -4333,7 +4366,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'DatePicker', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: { showTime: true, @@ -4346,7 +4379,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Select', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: { allowClear: true, @@ -4363,7 +4396,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Select', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: { allowClear: true, @@ -4390,7 +4423,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'MonthPicker', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: { valueFormat: 'YYYY-MM', @@ -4400,7 +4433,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ label: '船司航线', field: 'Sale', component: 'Input', - defaultValue: '', + show: false, }, { @@ -4409,7 +4442,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Select', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: ({ schema, tableAction, formActionType, formModel }) => { return { @@ -4439,7 +4472,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'Select', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 4 }, componentProps: { options: ListData.cargoId, @@ -4456,7 +4489,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'InputTextArea', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 12 }, componentProps: { rows: 3, @@ -4468,7 +4501,7 @@ export const BatchModificationFormSchema: FormSchema[] = [ component: 'InputTextArea', required: false, dynamicDisabled: false, - defaultValue: '', + colProps: { span: 12 }, componentProps: { rows: 3, diff --git a/src/views/operation/seaexport/detail/modules/goodsTable.vue b/src/views/operation/seaexport/detail/modules/goodsTable.vue index 4f77550a..d0babeee 100644 --- a/src/views/operation/seaexport/detail/modules/goodsTable.vue +++ b/src/views/operation/seaexport/detail/modules/goodsTable.vue @@ -75,7 +75,7 @@