lijingjia 3 months ago
commit 914890901d

@ -19,14 +19,14 @@
@click="closeModal" @click="closeModal"
>取消</a-button >取消</a-button
> >
<a-button <!-- <a-button
type="success" type="success"
:loading="loading" :loading="loading"
pre-icon="ant-design:check-outlined" pre-icon="ant-design:check-outlined"
style="margin-right: 0.8rem" style="margin-right: 0.8rem"
@click="handleSave(false)" @click="handleSave(false)"
>仅保存</a-button >仅保存</a-button
> > -->
<a-button <a-button
pre-icon="ant-design:check-circle-outlined" pre-icon="ant-design:check-circle-outlined"
type="primary" type="primary"

@ -299,25 +299,23 @@ export const searchFormSchema: FormSchema[] = [
{ {
field: 'etd', field: 'etd',
label: 'ETD', label: 'ETD',
component: 'DatePicker', component: 'RangePicker',
required: false,
dynamicDisabled: false,
colProps: { span: 4 }, colProps: { span: 4 },
defaultValue: '',
componentProps: { componentProps: {
showTime: false, allowClear: true,
style: 'width:100%',
valueFormat: 'YYYY-MM-DD 00:00:00',
}, },
}, },
{ {
field: 'eta', field: 'eta',
label: 'ETA', label: 'ETA',
component: 'DatePicker', component: 'RangePicker',
required: false,
dynamicDisabled: false,
colProps: { span: 4 }, colProps: { span: 4 },
defaultValue: '',
componentProps: { componentProps: {
showTime: false, allowClear: true,
style: 'width:100%',
valueFormat: 'YYYY-MM-DD 00:00:00',
}, },
}, },
] ]
@ -761,6 +759,18 @@ export const InfoColumns: BasicColumn[] = [
sorter: true, sorter: true,
width: 150, width: 150,
}, },
{
title: '变动来源',
dataIndex: 'changeSource',
sorter: true,
width: 150,
},
{
title: '业务类型',
dataIndex: 'ctnBizState',
sorter: true,
width: 150,
},
{ {
title: '箱来源', title: '箱来源',
dataIndex: 'ctnSource', dataIndex: 'ctnSource',

@ -485,7 +485,7 @@ export const formSchema: FormSchema[] = [
export const formSearchBoxSchema: FormSchema[] = [ export const formSearchBoxSchema: FormSchema[] = [
{ {
field: 'oldContainerOwner', field: 'oldContainerOwnerId',
label: '原箱主', label: '原箱主',
component: 'ApiSelect', component: 'ApiSelect',
required: false, required: false,
@ -499,7 +499,7 @@ export const formSearchBoxSchema: FormSchema[] = [
params: { code: 'leasing' }, params: { code: 'leasing' },
labelField: 'pinYinCode', labelField: 'pinYinCode',
showName: 'shortName', showName: 'shortName',
valueField: 'shortName', valueField: 'id',
resultField: 'data', resultField: 'data',
immediate: false, immediate: false,
filterOption: (input: string, option: any) => { filterOption: (input: string, option: any) => {

@ -430,6 +430,9 @@
const PortDict = ref([]) const PortDict = ref([])
const CtnFlowStateDict = ref([]) const CtnFlowStateDict = ref([])
const ctnsourceDict = ref([]) const ctnsourceDict = ref([])
const isOnlineDict = ref([])
const ctnBizStateDict = ref([])
const ctnStateDict = ref([])
// // // //
// const currencyDict = ref([]) // const currencyDict = ref([])
watchEffect(() => { watchEffect(() => {
@ -519,7 +522,21 @@
width: 120, width: 120,
data: 'ctnSourceId', data: 'ctnSourceId',
}, },
{
title: '是否上线ID',
width: 120,
data: 'isOnlineId',
},
{
title: '箱业务状态ID',
width: 120,
data: 'ctnBizStateId',
},
{
title: '箱状态ID',
width: 120,
data: 'ctnStateId',
},
// ----------------- // -----------------
// { // {
// title: '', // title: '',
@ -564,19 +581,71 @@
}) })
process(dict) process(dict)
}, },
readOnly: true,
}, },
{ {
title: '放箱单号', title: '是否上线',
width: 120, width: 120,
data: 'ctnReleaseNo', data: 'isOnline',
type: 'dropdown',
// (process)
source: async (query, process) => {
const res = isOnlineDict.value.length
? isOnlineDict.value
: await getDictOption('CM_IsOnlineEnum')
if (!isOnlineDict.value.length) isOnlineDict.value = res
const dict = res.map((res) => {
return res.label
})
process(dict)
},
}, },
{ {
title: '提箱日期', title: '箱业务状态',
width: 120, width: 120,
data: 'pickupDate', data: 'ctnBizState',
type: 'date', type: 'dropdown',
dateFormat: 'YYYY-MM-DD', // (process)
source: async (query, process) => {
const res = ctnBizStateDict.value.length
? ctnBizStateDict.value
: await getDictOption('CM_CtnBizState')
if (!ctnBizStateDict.value.length) ctnBizStateDict.value = res
const dict = res.map((res) => {
return res.label
})
process(dict)
},
},
{
title: '箱状态',
width: 120,
data: 'ctnState',
type: 'dropdown',
// (process)
source: async (query, process) => {
const res = ctnStateDict.value.length
? ctnStateDict.value
: await getDictOption('CM_CtnState')
if (!ctnStateDict.value.length) ctnStateDict.value = res
const dict = res.map((res) => {
return res.label
})
process(dict)
},
}, },
// {
// title: '',
// width: 120,
// data: 'ctnReleaseNo',
// },
// {
// title: '',
// width: 120,
// data: 'pickupDate',
// type: 'date',
// dateFormat: 'YYYY-MM-DD',
// },
{ {
title: '当前状态', title: '当前状态',
width: 120, width: 120,
@ -595,6 +664,7 @@
}) })
process(dict) process(dict)
}, },
readOnly: true,
}, },
{ {
title: '箱生产日期', title: '箱生产日期',
@ -602,6 +672,7 @@
data: 'productionDate', data: 'productionDate',
type: 'date', type: 'date',
dateFormat: 'YYYY-MM-DD', dateFormat: 'YYYY-MM-DD',
readOnly: true,
}, },
{ {
title: '箱皮重', title: '箱皮重',
@ -609,6 +680,7 @@
data: 'ctnWeight', data: 'ctnWeight',
type: 'numeric', type: 'numeric',
format: '0', format: '0',
readOnly: true,
}, },
{ {
title: '原始价格', title: '原始价格',
@ -616,6 +688,7 @@
data: 'ctnValue_Base', data: 'ctnValue_Base',
type: 'numeric', type: 'numeric',
format: '0', format: '0',
readOnly: true,
}, },
{ {
title: '购入成本', title: '购入成本',
@ -623,11 +696,20 @@
data: 'ctnValue_BuyingPrice', data: 'ctnValue_BuyingPrice',
type: 'numeric', type: 'numeric',
format: '0', format: '0',
readOnly: true,
},
{
title: '卖出价格',
width: 120,
data: 'ctnValue_SellPrice',
type: 'numeric',
format: '0',
readOnly: true,
}, },
{ {
title: '提箱港口', title: '当前港口',
width: 120, width: 120,
data: 'pickupPort', data: 'port',
type: 'dropdown', type: 'dropdown',
// (process) // (process)
source: async (query, process) => { source: async (query, process) => {
@ -664,7 +746,7 @@
fixedColumnsLeft: 1, fixedColumnsLeft: 1,
// //
hiddenColumns: { hiddenColumns: {
columns: [1, 2, 3, 4, 5, 6, 7], columns: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
indicators: true, indicators: true,
}, },
// //
@ -693,7 +775,7 @@
list.value[changes[0][0]]['ctnall'] = dict?.ctnName list.value[changes[0][0]]['ctnall'] = dict?.ctnName
list.value[changes[0][0]]['ctnCode'] = dict?.ediCode list.value[changes[0][0]]['ctnCode'] = dict?.ediCode
} }
if (changes[0][1] === 'pickupPort') { if (changes[0][1] === 'port') {
const res = PortDict.value.length const res = PortDict.value.length
? PortDict.value ? PortDict.value
: (await GetClientPortSelectList())?.data : (await GetClientPortSelectList())?.data
@ -703,10 +785,10 @@
}) })
if (item) dict = item[0] if (item) dict = item[0]
if (changes[0][1] === 'pickupPort') { if (changes[0][1] === 'port') {
list.value[changes[0][0]]['pickupPort'] = dict?.portName list.value[changes[0][0]]['port'] = dict?.portName
list.value[changes[0][0]]['pickupPortid'] = dict?.id list.value[changes[0][0]]['portid'] = dict?.id
list.value[changes[0][0]]['pickupPortCode'] = dict?.ediCode list.value[changes[0][0]]['portCode'] = dict?.ediCode
} }
} }
if (changes[0][1] === 'ctnSource') { if (changes[0][1] === 'ctnSource') {
@ -721,6 +803,43 @@
list.value[changes[0][0]]['ctnSource'] = dict?.label list.value[changes[0][0]]['ctnSource'] = dict?.label
list.value[changes[0][0]]['ctnSourceId'] = dict?.value list.value[changes[0][0]]['ctnSourceId'] = dict?.value
} }
if (changes[0][1] === 'isOnline') {
const res = isOnlineDict.value.length
? isOnlineDict.value
: await getDictOption('CM_IsOnlineEnum')
if (!isOnlineDict.value.length) isOnlineDict.value = res
const item = res.filter((item) => {
return item.label === changes[0][3]
})
if (item) dict = item[0]
list.value[changes[0][0]]['isOnline'] = dict?.label
list.value[changes[0][0]]['isOnlineId'] = dict?.value
}
if (changes[0][1] === 'ctnBizState') {
const res = ctnBizStateDict.value.length
? ctnBizStateDict.value
: await getDictOption('CM_CtnBizState')
if (!ctnBizStateDict.value.length) ctnBizStateDict.value = res
const item = res.filter((item) => {
return item.label === changes[0][3]
})
if (item) dict = item[0]
list.value[changes[0][0]]['ctnBizState'] = dict?.label
list.value[changes[0][0]]['ctnBizStateId'] = dict?.value
}
if (changes[0][1] === 'ctnState') {
const res = ctnStateDict.value.length
? ctnStateDict.value
: await getDictOption('CM_CtnState')
if (!ctnStateDict.value.length) ctnStateDict.value = res
const item = res.filter((item) => {
return item.label === changes[0][3]
})
if (item) dict = item[0]
list.value[changes[0][0]]['ctnState'] = dict?.label
list.value[changes[0][0]]['ctnStateId'] = dict?.value
}
if (changes[0][1] === 'ctnFlowState') { if (changes[0][1] === 'ctnFlowState') {
const res = CtnFlowStateDict.value.length const res = CtnFlowStateDict.value.length
? CtnFlowStateDict.value ? CtnFlowStateDict.value
@ -825,7 +944,7 @@
fixedColumnsLeft: 1, fixedColumnsLeft: 1,
// //
hiddenColumns: { hiddenColumns: {
columns: [1, 2, 3, 4, 5, 6, 7], columns: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
indicators: true, indicators: true,
}, },
// // // //

@ -19,14 +19,14 @@
@click="closeModal" @click="closeModal"
>取消</a-button >取消</a-button
> >
<a-button <!-- <a-button
type="success" type="success"
:loading="loading" :loading="loading"
pre-icon="ant-design:check-outlined" pre-icon="ant-design:check-outlined"
style="margin-right: 0.8rem" style="margin-right: 0.8rem"
@click="handleSave(false)" @click="handleSave(false)"
>仅保存</a-button >仅保存</a-button
> > -->
<a-button <a-button
pre-icon="ant-design:check-circle-outlined" pre-icon="ant-design:check-circle-outlined"
type="primary" type="primary"

@ -196,9 +196,16 @@ export const formSchema: FormSchema[] = [
field: 'cntrno', field: 'cntrno',
label: '集装箱号', label: '集装箱号',
component: 'InputTextArea', component: 'InputTextArea',
required: true, rules: [
{
required: true,
trigger: 'blur',
message: '请输入集装箱号',
},
],
colProps: { span: 24 }, colProps: { span: 24 },
componentProps: { componentProps: {
validateOnRuleChange: false,
placeholder: '请输入,多个箱号请以“,”逗号间隔', placeholder: '请输入,多个箱号请以“,”逗号间隔',
rows: 3, rows: 3,
}, },

@ -19,14 +19,14 @@
@click="closeModal" @click="closeModal"
>取消</a-button >取消</a-button
> >
<a-button <!-- <a-button
type="success" type="success"
:loading="loading" :loading="loading"
pre-icon="ant-design:check-outlined" pre-icon="ant-design:check-outlined"
style="margin-right: 0.8rem" style="margin-right: 0.8rem"
@click="handleSave(false)" @click="handleSave(false)"
>仅保存</a-button >仅保存</a-button
> > -->
<a-button <a-button
pre-icon="ant-design:check-circle-outlined" pre-icon="ant-design:check-circle-outlined"
type="primary" type="primary"

Loading…
Cancel
Save