客户属性字典更换

zth
lijingjia 1 week ago
parent c96a0d8350
commit 9f2f370328

@ -616,7 +616,7 @@
source: async (query, process) => {
const res = ContainerOwnerDict.value.length
? ContainerOwnerDict.value
: (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
: (await GetSupplierListByCode({ code: 'leasing' }))?.data
if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
const dict = res.map((res) => {
return res.pinYinCode
@ -753,7 +753,7 @@
if (changes[0][1] === 'oldContainerOwner') {
const res = ContainerOwnerDict.value.length
? ContainerOwnerDict.value
: (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
: (await GetSupplierListByCode({ code: 'leasing' }))?.data
if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
const item = res.filter((item) => {
return item.pinYinCode === changes[0][3]
@ -765,7 +765,7 @@
if (changes[0][1] === 'CtnFlowStateId') {
const res = CtnFlowStateDict.value.length
? CtnFlowStateDict.value
: (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
: (await GetSupplierListByCode({ code: 'leasing' }))?.data
if (!CtnFlowStateDict.value.length) CtnFlowStateDict.value = res
const item = res.filter((item) => {
return item.pinYinCode === changes[0][3]

@ -137,7 +137,7 @@ export const searchFormSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',
@ -232,7 +232,7 @@ export const formSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',
@ -335,7 +335,7 @@ export const formSearchBoxSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',

@ -229,7 +229,7 @@ export const searchFormSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',
@ -563,7 +563,7 @@ export const formSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',

@ -516,7 +516,7 @@
// source: async (query, process) => {
// const res = ContainerOwnerDict.value.length
// ? ContainerOwnerDict.value
// : (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
// : (await GetSupplierListByCode({ code: 'leasing' }))?.data
// if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
// const dict = res.map((res) => {
// return res.pinYinCode
@ -626,7 +626,7 @@
if (changes[0][1] === 'oldContainerOwner') {
const res = ContainerOwnerDict.value.length
? ContainerOwnerDict.value
: (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
: (await GetSupplierListByCode({ code: 'leasing' }))?.data
if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
const item = res.filter((item) => {
return item.pinYinCode === changes[0][3]

@ -136,7 +136,7 @@ export const searchFormSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',
@ -251,7 +251,7 @@ export const formSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'id',

@ -679,7 +679,7 @@
// source: async (query, process) => {
// const res = ContainerOwnerDict.value.length
// ? ContainerOwnerDict.value
// : (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
// : (await GetSupplierListByCode({ code: 'leasing' }))?.data
// if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
// const dict = res.map((res) => {
// return res.pinYinCode
@ -870,7 +870,7 @@
if (changes[0][1] === 'oldContainerOwner') {
const res = ContainerOwnerDict.value.length
? ContainerOwnerDict.value
: (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
: (await GetSupplierListByCode({ code: 'leasing' }))?.data
if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
const item = res.filter((item) => {
return item.pinYinCode === changes[0][3]
@ -991,7 +991,7 @@
// source: async (query, process) => {
// const res = ContainerOwnerDict.value.length
// ? ContainerOwnerDict.value
// : (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
// : (await GetSupplierListByCode({ code: 'leasing' }))?.data
// if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
// const dict = res.map((res) => {
// return res.pinYinCode
@ -1172,7 +1172,7 @@
if (changes[0][1] === 'oldContainerOwner') {
const res = ContainerOwnerDict.value.length
? ContainerOwnerDict.value
: (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
: (await GetSupplierListByCode({ code: 'leasing' }))?.data
if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
const item = res.filter((item) => {
return item.pinYinCode === changes[0][3]

@ -198,7 +198,7 @@ export const searchFormSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',
@ -446,7 +446,7 @@ export const formSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',
@ -541,7 +541,7 @@ export const formSearchBoxSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'id',
@ -565,7 +565,7 @@ export const formSearchBoxSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetCtnSelectList,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'ctnName',
showName: 'ctnName',
valueField: 'ctnName',

@ -623,7 +623,7 @@
source: async (query, process) => {
const res = ContainerOwnerDict.value.length
? ContainerOwnerDict.value
: (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
: (await GetSupplierListByCode({ code: 'leasing' }))?.data
if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
const dict = res.map((res) => {
return res.pinYinCode
@ -853,7 +853,7 @@
if (changes[0][1] === 'oldContainerOwner') {
const res = ContainerOwnerDict.value.length
? ContainerOwnerDict.value
: (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
: (await GetSupplierListByCode({ code: 'leasing' }))?.data
if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
const item = res.filter((item) => {
return item.pinYinCode === changes[0][3]

@ -170,7 +170,7 @@ export const searchFormSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',
@ -406,7 +406,7 @@ export const formSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',
@ -501,13 +501,13 @@ export const formSearchBoxSchema: FormSchema[] = [
// required: false,
// dynamicDisabled: false,
// colProps: { span: 6 },
// // api: GetSupplierListByCode({ code: 'isLeasing' }),
// // api: GetSupplierListByCode({ code: 'leasing' }),
// componentProps: ({ formModel }) => {
// return {
// allowClear: true,
// showSearch: true,
// api: GetSupplierListByCode({ code: 'isLeasing' }),
// params: { code: 'isLeasing' },
// api: GetSupplierListByCode({ code: 'leasing' }),
// params: { code: 'leasing' },
// labelField: 'pinYinCode',
// showName: 'shortName',
// valueField: 'shortName',
@ -591,7 +591,7 @@ export const formSearchBoxSchema: FormSchema[] = [
// allowClear: true,
// showSearch: true,
// api: GetSupplierListByCode,
// params: { code: 'isLeasing' },
// params: { code: 'leasing' },
// labelField: 'pinYinCode',
// showName: 'shortName',
// valueField: 'shortName',

@ -569,7 +569,7 @@
source: async (query, process) => {
const res = ContainerOwnerDict.value.length
? ContainerOwnerDict.value
: (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
: (await GetSupplierListByCode({ code: 'leasing' }))?.data
if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
const dict = res.map((res) => {
return res.pinYinCode
@ -796,7 +796,7 @@
if (changes[0][1] === 'oldContainerOwner') {
const res = ContainerOwnerDict.value.length
? ContainerOwnerDict.value
: (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
: (await GetSupplierListByCode({ code: 'leasing' }))?.data
if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
const item = res.filter((item) => {
return item.pinYinCode === changes[0][3]

@ -174,7 +174,7 @@ export const searchFormSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',
@ -410,7 +410,7 @@ export const formSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',
@ -504,7 +504,7 @@ export const formSearchBoxSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',

@ -695,7 +695,7 @@
// source: async (query, process) => {
// const res = ContainerOwnerDict.value.length
// ? ContainerOwnerDict.value
// : (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
// : (await GetSupplierListByCode({ code: 'leasing' }))?.data
// if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
// const dict = res.map((res) => {
// return res.pinYinCode
@ -897,7 +897,7 @@
if (changes[0][1] === 'ctnOwner') {
const res = ContainerOwnerDict.value.length
? ContainerOwnerDict.value
: (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
: (await GetSupplierListByCode({ code: 'leasing' }))?.data
if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
const item = res.filter((item) => {
return item.pinYinCode === changes[0][3]
@ -1032,7 +1032,7 @@
// source: async (query, process) => {
// const res = ContainerOwnerDict.value.length
// ? ContainerOwnerDict.value
// : (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
// : (await GetSupplierListByCode({ code: 'leasing' }))?.data
// if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
// const dict = res.map((res) => {
// return res.pinYinCode
@ -1234,7 +1234,7 @@
if (changes[0][1] === 'ctnOwner') {
const res = ContainerOwnerDict.value.length
? ContainerOwnerDict.value
: (await GetSupplierListByCode({ code: 'isLeasing' }))?.data
: (await GetSupplierListByCode({ code: 'leasing' }))?.data
if (!ContainerOwnerDict.value.length) ContainerOwnerDict.value = res
const item = res.filter((item) => {
return item.pinYinCode === changes[0][3]

@ -207,7 +207,7 @@ export const searchFormSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',
@ -454,7 +454,7 @@ export const formSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',
@ -543,13 +543,13 @@ export const formSearchBoxSchema: FormSchema[] = [
required: false,
dynamicDisabled: false,
colProps: { span: 6 },
// api: GetSupplierListByCode({ code: 'isLeasing' }),
// api: GetSupplierListByCode({ code: 'leasing' }),
componentProps: ({ formModel }) => {
return {
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',

@ -198,7 +198,7 @@ export const formSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',

@ -337,7 +337,7 @@ export const formSchema: FormSchema[] = [
allowClear: true,
showSearch: true,
api: GetSupplierListByCode,
params: { code: 'isLeasing' },
params: { code: 'leasing' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',

@ -1,23 +0,0 @@
[
{ "label": "船公司", "value": "isCarrier" },
{ "label": "订舱口", "value": "isBooking" },
{ "label": "场站", "value": "isYard" },
{ "label": "车队", "value": "isTruck" },
{ "label": "委托单位", "value": "isController" },
{ "label": "报关行", "value": "isCustom" },
{ "label": "代理(国外)", "value": "isAgent" },
{ "label": "代理(国内)", "value": "isAgentCn" },
{ "label": "快递公司", "value": "isExpress" },
{ "label": "航空公司", "value": "isAirLines" },
{ "label": "国外发货人", "value": "isShipper" },
{ "label": "通知人", "value": "isNotifyParty" },
{ "label": "仓库", "value": "isWareHouse" },
{ "label": "码头", "value": "isWharf" },
{ "label": "保险公司", "value": "isInsurer" },
{ "label": "租箱公司", "value": "isLeasing" },
{ "label": "贸易代理", "value": "isTradingAgency" },
{ "label": "其他", "value": "isOther" },
{ "label": "船代", "value": "isShipAgency" },
{ "label": "经营单位", "value": "isEnterprise" },
{ "label": "国内发货人", "value": "isShipperCn" }
]

@ -613,7 +613,7 @@ export const searchFormSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isBooking' },
params: { code: 'booking' },
labelField: 'pinYinCode',
showName: 'description',
valueField: 'id',
@ -1006,7 +1006,7 @@ export const formSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isBooking' },
params: { code: 'booking' },
labelField: 'pinYinCode',
showName: 'description',
valueField: 'id',

@ -638,7 +638,7 @@ export const searchFormSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isBooking' },
params: { code: 'booking' },
labelField: 'pinYinCode',
showName: 'description',
valueField: 'id',
@ -920,7 +920,7 @@ export const viewSearchFormSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isBooking' },
params: { code: 'booking' },
labelField: 'pinYinCode',
showName: 'description',
valueField: 'id',
@ -1321,7 +1321,7 @@ export const formSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isBooking' },
params: { code: 'booking' },
labelField: 'pinYinCode',
showName: 'description',
valueField: 'id',

@ -302,7 +302,7 @@ export const searchFormSchema: FormSchema[] = [
componentProps: () => {
return {
api: GetSupplierListByCode,
params: { code: 'isContract' },
params: { code: 'contract' },
labelField: 'pinYinCode',
valueField: 'id',
showName: 'shortName',
@ -327,7 +327,7 @@ export const searchFormSchema: FormSchema[] = [
componentProps: () => {
return {
api: GetSupplierListByCode,
params: { code: 'isBooking' },
params: { code: 'booking' },
labelField: 'pinYinCode',
valueField: 'forwarderId',
showName: 'description',

@ -276,7 +276,7 @@ export const formSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isTruck' },
params: { code: 'truck' },
labelField: 'pinYinCode',
valueField: 'shortName',
showName: 'description',
@ -488,7 +488,7 @@ export const formSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isYard' },
params: { code: 'yard' },
labelField: 'pinYinCode',
showName: 'description',
valueField: 'shortName',
@ -703,7 +703,7 @@ export const formSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isYard' },
params: { code: 'yard' },
labelField: 'pinYinCode',
showName: 'description',
valueField: 'shortName',

@ -437,7 +437,7 @@ export const formSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isYard' },
params: { code: 'yard' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',

@ -214,7 +214,7 @@ export const basicInfoFormSchema: FormSchema[] = [
componentProps: ({ formModel, formActionType }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isContract' },
params: { code: 'contract' },
labelField: 'pinYinCode',
valueField: 'shortName',
showName: 'shortName',
@ -327,7 +327,7 @@ export const basicInfoFormSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isBooking' },
params: { code: 'booking' },
labelField: 'pinYinCode',
valueField: 'shortName',
showName: 'description',
@ -2748,7 +2748,7 @@ export const otherInfoFormSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isTruck' },
params: { code: 'truck' },
labelField: 'pinYinCode',
valueField: 'shortName',
showName: 'description',
@ -2782,7 +2782,7 @@ export const otherInfoFormSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isAgent' },
params: { code: 'agent' },
labelField: 'pinYinCode',
showName: 'description',
valueField: 'shortName',
@ -2811,7 +2811,7 @@ export const otherInfoFormSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isYard' },
params: { code: 'yard' },
labelField: 'pinYinCode',
showName: 'description',
valueField: 'shortName',
@ -2846,7 +2846,7 @@ export const otherInfoFormSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isShipagency' },
params: { code: 'shipagency' },
labelField: 'pinYinCode',
showName: 'description',
valueField: 'shortName',
@ -2881,7 +2881,7 @@ export const otherInfoFormSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isCustom' },
params: { code: 'custom' },
labelField: 'pinYinCode',
valueField: 'shortName',
showName: 'description',

@ -614,7 +614,7 @@ export const yardSchema: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isYard' },
params: { code: 'yard' },
labelField: 'pinYinCode',
placeholder: '场站',
showName: 'shortName',

@ -374,7 +374,7 @@ export const formSchema1: FormSchema[] = [
componentProps: ({ formModel }) => {
return {
api: GetSupplierListByCode,
params: { code: 'isAgent' },
params: { code: 'agent' },
labelField: 'pinYinCode',
showName: 'shortName',
valueField: 'shortName',

Loading…
Cancel
Save