diff --git a/src/views/operation/seaexport/columns.tsx b/src/views/operation/seaexport/columns.tsx index def55fa2..151d6968 100644 --- a/src/views/operation/seaexport/columns.tsx +++ b/src/views/operation/seaexport/columns.tsx @@ -121,7 +121,9 @@ const FnsaleId: any = await GetSaleUserList() if (FnsaleId.succeeded) { ListData.saleId = [] FnsaleId.data.forEach((e) => { - ListData.saleId.push({ label: e.userName, value: e.id }) + console.log(e, 111) + + ListData.saleId.push({ ...e, label: `${e.userName}/${e.userCode}`, value: e.id }) }) } const FnreceiptPlaceId: any = await GetClientPortSelectList() @@ -1032,7 +1034,13 @@ export const searchFormSchema: FormSchema[] = [ options: ListData.saleId, showSearch: true, filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + let RData = false + if (option.userName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } else if (option.userCode.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } + return RData }, }, }, @@ -1050,7 +1058,13 @@ export const searchFormSchema: FormSchema[] = [ options: ListData.saleId, showSearch: true, filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + let RData = false + if (option.userName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } else if (option.userCode.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } + return RData }, onChange: (e) => { if (e) { @@ -1220,7 +1234,13 @@ export const searchFormSchema: FormSchema[] = [ options: ListData.saleId, showSearch: true, filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + let RData = false + if (option.userName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } else if (option.userCode.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } + return RData }, }, }, @@ -1402,7 +1422,7 @@ export const basicInfoFormSchema: FormSchema[] = [ label: '结算方式', component: 'Select', required: false, - dynamicDisabled: false, + dynamicDisabled: true, defaultValue: '', colProps: { span: 4 }, componentProps: { @@ -1419,7 +1439,7 @@ export const basicInfoFormSchema: FormSchema[] = [ label: '结算日期', component: 'DatePicker', required: false, - dynamicDisabled: false, + dynamicDisabled: true, defaultValue: '', colProps: { span: 4 }, componentProps: { @@ -1464,10 +1484,18 @@ export const basicInfoFormSchema: FormSchema[] = [ colProps: { span: 4 }, componentProps: { allowClear: true, - options: ListData.carrier, + options: ListData.customername, showSearch: true, filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + let RData = false + if (option.codeName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } else if (option.shortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } else if (option.enShortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } + return RData }, }, }, @@ -1481,10 +1509,18 @@ export const basicInfoFormSchema: FormSchema[] = [ colProps: { span: 4 }, componentProps: { allowClear: true, - options: ListData.forwarderId, + options: ListData.customername, showSearch: true, filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + let RData = false + if (option.codeName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } else if (option.shortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } else if (option.enShortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } + return RData }, }, }, @@ -1609,10 +1645,18 @@ export const basicInfoFormSchema: FormSchema[] = [ colProps: { span: 4 }, componentProps: { allowClear: true, - options: ListData.shipAgencyId, + options: ListData.customername, showSearch: true, filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + let RData = false + if (option.codeName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } else if (option.shortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } else if (option.enShortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } + return RData }, }, }, @@ -1637,7 +1681,13 @@ export const basicInfoFormSchema: FormSchema[] = [ options: ListData.saleId, showSearch: true, filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + let RData = false + if (option.userName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } else if (option.userCode.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } + return RData }, onChange: (e) => { if (e) { @@ -1666,7 +1716,13 @@ export const basicInfoFormSchema: FormSchema[] = [ options: ListData.saleId, showSearch: true, filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + let RData = false + if (option.userName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } else if (option.userCode.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } + return RData }, }, }, @@ -1683,7 +1739,13 @@ export const basicInfoFormSchema: FormSchema[] = [ options: ListData.saleId, showSearch: true, filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + let RData = false + if (option.userName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } else if (option.userCode.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } + return RData }, }, }, @@ -1700,7 +1762,13 @@ export const basicInfoFormSchema: FormSchema[] = [ options: ListData.saleId, showSearch: true, filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + let RData = false + if (option.userName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } else if (option.userCode.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } + return RData }, }, }, @@ -1724,9 +1792,25 @@ export const basicInfoFormSchema: FormSchema[] = [ { label: '海外客服', field: 'foreignCustomerService', - component: 'Input', + component: 'Select', required: false, + dynamicDisabled: false, + defaultValue: '', colProps: { span: 4 }, + componentProps: { + allowClear: true, + options: ListData.saleId, + showSearch: true, + filterOption: (input: string, option: any) => { + let RData = false + if (option.userName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } else if (option.userCode.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } + return RData + }, + }, }, { label: '所属部门', @@ -1915,11 +1999,19 @@ export const mailingInfoFormSchemaR: FormSchema[] = [ defaultValue: '', colProps: { span: 5 }, componentProps: { - options: ListData.yard, allowClear: true, + options: ListData.customername, showSearch: true, filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + let RData = false + if (option.codeName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } else if (option.shortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } else if (option.enShortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } + return RData }, }, }, @@ -2072,11 +2164,19 @@ export const mailingInfoFormSchemaR: FormSchema[] = [ defaultValue: '', colProps: { span: 5 }, componentProps: { - options: ListData.customser, allowClear: true, + options: ListData.customername, showSearch: true, filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + let RData = false + if (option.codeName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } else if (option.shortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } else if (option.enShortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } + return RData }, }, }, @@ -2145,11 +2245,19 @@ export const mailingInfoFormSchemaR: FormSchema[] = [ defaultValue: '', colProps: { span: 5 }, componentProps: { - options: ListData.trucker, allowClear: true, + options: ListData.customername, showSearch: true, filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + let RData = false + if (option.codeName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } else if (option.shortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } else if (option.enShortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } + return RData }, }, }, @@ -2645,7 +2753,7 @@ export const cargoInfoFormSchema2: FormSchema[] = [ defaultValue: '', colProps: { span: 6 }, componentProps: { - options: ListData.FngoodsName, + options: ListData.goodsName, allowClear: true, showSearch: true, filterOption: (input: string, option: any) => { @@ -3696,7 +3804,13 @@ export const BatchModificationFormSchema: FormSchema[] = [ options: ListData.saleId, showSearch: true, filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + let RData = false + if (option.userName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } else if (option.userCode.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } + return RData }, onChange: (e) => { if (e) { @@ -3914,7 +4028,13 @@ export const BatchModificationFormSchema: FormSchema[] = [ options: ListData.saleId, showSearch: true, filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + let RData = false + if (option.userName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } else if (option.userCode.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } + return RData }, }, }, @@ -3962,7 +4082,13 @@ export const BatchModificationFormSchema: FormSchema[] = [ options: ListData.saleId, showSearch: true, filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + let RData = false + if (option.userName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } else if (option.userCode.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } + return RData }, }, }, @@ -4068,7 +4194,13 @@ export const BatchModificationFormSchema: FormSchema[] = [ options: ListData.saleId, showSearch: true, filterOption: (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 + let RData = false + if (option.userName.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } else if (option.userCode.toLowerCase().indexOf(input.toLowerCase()) >= 0) { + RData = true + } + return RData }, }, }, diff --git a/src/views/operation/seaexport/components/SelectTextArea.vue b/src/views/operation/seaexport/components/SelectTextArea.vue index 7ad40bef..63294a04 100644 --- a/src/views/operation/seaexport/components/SelectTextArea.vue +++ b/src/views/operation/seaexport/components/SelectTextArea.vue @@ -34,7 +34,7 @@ type="Content" :openToCDB="true" @getTextareaChange="getTextareaChange" - :height="174.5" + :height="140" />