海运出口详情bug

szh-new
lijingjia 3 months ago
parent 7bf8e98cac
commit 03f91f0017

@ -7,7 +7,7 @@
@menu-event="handleMenuEvent" @menu-event="handleMenuEvent"
> >
<div v-if="getIsTabs" :class="`${prefixCls}__info`" @contextmenu="handleContext"> <div v-if="getIsTabs" :class="`${prefixCls}__info`" @contextmenu="handleContext">
<span class="ml-1">{{ getTitle }}</span> <span class="ml-1">{{ RText(getTitle) }}</span>
</div> </div>
<span v-else :class="`${prefixCls}__extra-quick`" @click="handleContext"> <span v-else :class="`${prefixCls}__extra-quick`" @click="handleContext">
<Icon icon="ion:chevron-down" /> <Icon icon="ion:chevron-down" />
@ -46,29 +46,29 @@
const { tabItem: { meta } = {} } = props const { tabItem: { meta } = {} } = props
return meta && t(meta.title as string) return meta && t(meta.title as string)
}) })
// function RText(data) { function RText(data) {
// let Rdata = '' let Rdata = ''
// if (data == '-') { if (data == '海运出口-详情') {
// if (props.tabItem.query.isCopy) { if (props.tabItem.query.isCopy) {
// if (props.tabItem.query.copyId) { if (props.tabItem.query.copyId) {
// Rdata = `-${Number(props.tabItem.query.copyId) + 1}` Rdata = `海运出口-复制${Number(props.tabItem.query.copyId) + 1}`
// } else { } else {
// Rdata = '-' Rdata = '海运出口-复制'
// } }
// } else if (props.tabItem.query.mblno) { } else if (props.tabItem.query.mblno) {
// Rdata = `${props.tabItem.query.mblno}-` Rdata = `${props.tabItem.query.mblno}-详情`
// } else if (props.tabItem.query.customerNo) { } else if (props.tabItem.query.customerNo) {
// Rdata = `${props.tabItem.query.customerNo}-` Rdata = `${props.tabItem.query.customerNo}-详情`
// } else if (props.tabItem.query.addNum) { } else if (props.tabItem.query.addNum) {
// Rdata = '-' Rdata = '海运出口-新增'
// } else { } else {
// Rdata = '-' Rdata = '海运出口-详情'
// } }
// } else { } else {
// Rdata = data Rdata = data
// } }
// return Rdata return Rdata
// } }
const getIsTabs = computed(() => !props.isExtra) const getIsTabs = computed(() => !props.isExtra)
const getTrigger = computed((): ('contextmenu' | 'click' | 'hover')[] => const getTrigger = computed((): ('contextmenu' | 'click' | 'hover')[] =>
@ -94,7 +94,7 @@
getTrigger, getTrigger,
getIsTabs, getIsTabs,
getTitle, getTitle,
// RText, RText,
} }
}, },
}) })

@ -528,7 +528,7 @@ export const columns: BasicColumn[] = [
width: 150, width: 150,
}, },
{ {
title: '订舱代理', title: '订舱',
dataIndex: 'forwarder', dataIndex: 'forwarder',
sorter: true, sorter: true,
width: 150, width: 150,
@ -1412,13 +1412,13 @@ export const BatchModificationFormSchema: FormSchema[] = [
}, },
}, },
{ {
label: '订舱代理', label: '',
field: 'forwarder', field: 'forwarder',
component: 'Input', component: 'Input',
show: false, show: false,
}, },
{ {
label: '订舱代理', label: '订舱',
field: 'forwarderId', field: 'forwarderId',
component: 'ApiSelect', component: 'ApiSelect',
required: false, required: false,

@ -768,6 +768,7 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
colProps: { span: 5 }, colProps: { span: 5 },
componentProps: { componentProps: {
allowClear: true, allowClear: true,
showTime: true,
valueFormat: 'YYYY-MM-DD HH:mm' valueFormat: 'YYYY-MM-DD HH:mm'
}, },
}, },
@ -1721,8 +1722,9 @@ export const cargoInfoFormSchema2: FormSchema[] = [
componentProps: ({ formModel }) => { componentProps: ({ formModel }) => {
return { return {
api: GetClientGoodsList, api: GetClientGoodsList,
labelField: 'goodName', labelField: 'pinYinCode',
valueField: 'goodName', valueField: 'goodName',
showName: 'goodName',
immediate: false, immediate: false,
resultField: 'data', resultField: 'data',
onChange: (v, obj) => { onChange: (v, obj) => {
@ -2292,12 +2294,9 @@ export const otherInfoFormSchema: FormSchema[] = [
component: 'ApiSelect', component: 'ApiSelect',
required: false, required: false,
dynamicDisabled: false, dynamicDisabled: false,
// defaultValue: '',
colProps: { span: 12 }, colProps: { span: 12 },
componentProps: ({ formActionType, formModel }) => { componentProps: ({ formModel }) => {
return { return {
allowClear: true,
showSearch: true,
option: optionsStore.getOptionsByCode('GetClientSourceSelectList'), option: optionsStore.getOptionsByCode('GetClientSourceSelectList'),
labelField: 'sourceName', labelField: 'sourceName',
valueField: 'id', valueField: 'id',
@ -2307,53 +2306,52 @@ export const otherInfoFormSchema: FormSchema[] = [
onChange: async (e, obj) => { onChange: async (e, obj) => {
if (e && obj) { if (e && obj) {
formModel.sourceCode = obj.sourceCode formModel.sourceCode = obj.sourceCode
formModel.sourceDetailId = null
formModel.sourceDetailName = null
} }
if (!e && !obj) { if (!e && !obj) {
formModel.sourceCode = null formModel.sourceCode = null
} }
if (e) { },
if (formActionType) { }
const { updateSchema } = formActionType },
let Arr: any = [] },
await GetClientSourceDetailSelectList({ id: e }).then((res) => { {
res.data.forEach((item) => {
Arr.push({ label: item.detailName, value: item.id })
})
})
updateSchema({
label: '来源明细', label: '来源明细',
field: 'sourceDetailId', field: 'sourceDetailName',
component: 'Select', component: 'ApiSelect',
required: false, required: false,
dynamicDisabled: ({ values }) => { dynamicDisabled: ({ values }) => {
return !values.sourceId return !values.sourceId
}, },
colProps: { span: 12 }, colProps: { span: 12 },
componentProps: { componentProps: ({ formModel }) => {
allowClear: true, return {
options: Arr, api: GetClientSourceDetailSelectList,
showSearch: true, params: {
filterOption: (input: string, option: any) => { id: formModel.sourceId
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
}, },
}) immediate: false,
labelField: 'detailName',
valueField: 'detailName',
resultField: 'data',
onChange: (v, obj) => {
if (v && obj) {
console.log(obj)
formModel.sourceDetailId = obj.id
}
if (!v && !obj) {
formModel.sourceDetailId = null
}
} }
} }
formModel.sourceDetailId = ''
},
} }
},
}, },
{ {
label: '来源明细', label: '',
field: 'sourceDetailId', field: 'sourceDetailId',
component: 'Select', component: 'Input',
required: false, show: false,
dynamicDisabled: ({ values }) => {
return !values.sourceId
},
colProps: { span: 12 },
}, },
{ {
label: '', label: '',

@ -18,7 +18,7 @@
</a-button> </a-button>
</ConfigForm> </ConfigForm>
<div> <div>
<input ref="customerNoRef" :style="{width: `${formData.customerNo.length * 7}px`}" class="customerNo" v-model="formData.customerNo"/> <input ref="customerNoRef" :style="{width: `${formData.customerNo?.length * 7}px`}" class="customerNo" v-model="formData.customerNo"/>
<span @click="editCustomerNo" class="iconfont icon-bianji1"></span> <span @click="editCustomerNo" class="iconfont icon-bianji1"></span>
<Divider type="vertical"/> <Divider type="vertical"/>
<a-dropdown> <a-dropdown>

@ -449,7 +449,7 @@ const [registerTable, { reload, getForm, setLoading, getSelectRows }] = useTable
}) })
function editColumns(row) { function editColumns(row) {
if (row.mblno) { if (row.mblno) {
go(`/BookingDetail?id=${row.id}&source=edit`) go(`/BookingDetail?id=${row.id}&source=edit&mblno=${row.mblno}`)
} else { } else {
go(`/BookingDetail?id=${row.id}&customerNo=${row.customerNo}&source=edit`) go(`/BookingDetail?id=${row.id}&customerNo=${row.customerNo}&source=edit`)
} }

@ -266,7 +266,7 @@ export default {
{ field: 'shipagency', label: 'SHIPAGENCY', width: 160, title: '船代', showHeaderOverflow: true, sortable: true }, { field: 'shipagency', label: 'SHIPAGENCY', width: 160, title: '船代', showHeaderOverflow: true, sortable: true },
{ field: 'custno', label: 'CUSTNO', width: 160, title: '订舱编号', showHeaderOverflow: true, sortable: true, slots: { default: 'custno' } }, { field: 'custno', label: 'CUSTNO', width: 160, title: '订舱编号', showHeaderOverflow: true, sortable: true, slots: { default: 'custno' } },
// { field: 'vgm', label: 'VGM', width: 120, title: 'VGM', showHeaderOverflow: true }, // { field: 'vgm', label: 'VGM', width: 120, title: 'VGM', showHeaderOverflow: true },
{ field: 'forwarder', label: 'FORWARDER', width: 120, title: '订舱代理', showHeaderOverflow: true, sortable: true }, { field: 'forwarder', label: 'FORWARDER', width: 120, title: '订舱', showHeaderOverflow: true, sortable: true },
// { field: 'bookingStatus', label: 'BOOKINGSTATUS', width: 120, title: '订舱状态', showHeaderOverflow: true }, // { field: 'bookingStatus', label: 'BOOKINGSTATUS', width: 120, title: '订舱状态', showHeaderOverflow: true },
{ {
field: 'freightpayer', field: 'freightpayer',
@ -533,7 +533,7 @@ export default {
showLabel: 'enName', showLabel: 'enName',
showLabel2: 'cnName' showLabel2: 'cnName'
}, },
{ title: '订舱代理', align: 'center', width: 120, label: 'FORWARDER', type: 'complete', showLabel: 'shortName' }, { title: '订舱', align: 'center', width: 120, label: 'FORWARDER', type: 'complete', showLabel: 'shortName' },
{ {
title: '场站', title: '场站',
align: 'center', align: 'center',

Loading…
Cancel
Save