|
|
|
@ -158,7 +158,7 @@
|
|
|
|
|
import { registerAllModules } from 'handsontable/registry'
|
|
|
|
|
registerAllModules()
|
|
|
|
|
import 'handsontable/dist/handsontable.full.css'
|
|
|
|
|
import { formSchema, formSearchBoxSchema } from './columns'
|
|
|
|
|
import { formSchema } from './columns'
|
|
|
|
|
import {
|
|
|
|
|
GetCtnSelectList,
|
|
|
|
|
GetClientPortSelectList,
|
|
|
|
@ -498,11 +498,6 @@
|
|
|
|
|
width: 120,
|
|
|
|
|
data: 'dropoffPortCode',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '租箱客户ID',
|
|
|
|
|
width: 120,
|
|
|
|
|
data: 'rentCustomerId',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '租箱业务ID',
|
|
|
|
|
width: 120,
|
|
|
|
@ -538,9 +533,9 @@
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '租箱客户',
|
|
|
|
|
title: '原箱主',
|
|
|
|
|
width: 120,
|
|
|
|
|
data: 'rentCustomerName',
|
|
|
|
|
data: 'oldContainerOwner',
|
|
|
|
|
type: 'dropdown',
|
|
|
|
|
// 下拉框数据,可以同步或者异步返回(异步需要process返回)
|
|
|
|
|
source: async (query, process) => {
|
|
|
|
@ -655,6 +650,7 @@
|
|
|
|
|
data: 'dropoffDate',
|
|
|
|
|
type: 'date',
|
|
|
|
|
dateFormat: 'YYYY-MM-DD',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '起租地点',
|
|
|
|
@ -691,6 +687,7 @@
|
|
|
|
|
width: 120,
|
|
|
|
|
data: 'dropoffPort',
|
|
|
|
|
type: 'dropdown',
|
|
|
|
|
readOnly: true,
|
|
|
|
|
// 下拉框数据,可以同步或者异步返回(异步需要process返回)
|
|
|
|
|
source: async (query, process) => {
|
|
|
|
|
const res = (await GetClientPortSelectList({ queryKey: query }))?.data
|
|
|
|
@ -735,7 +732,7 @@
|
|
|
|
|
fixedColumnsLeft: 1,
|
|
|
|
|
// 需要隐藏的列
|
|
|
|
|
hiddenColumns: {
|
|
|
|
|
columns: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
|
|
|
|
|
columns: [1, 2, 3, 4, 5, 6, 7, 8, 9],
|
|
|
|
|
indicators: true,
|
|
|
|
|
},
|
|
|
|
|
// 控制回车移动
|
|
|
|
@ -764,7 +761,7 @@
|
|
|
|
|
list.value[changes[0][0]]['ctnall'] = dict?.ctnName
|
|
|
|
|
list.value[changes[0][0]]['ctnCode'] = dict?.ediCode
|
|
|
|
|
}
|
|
|
|
|
if (changes[0][1] === 'rentCustomerName') {
|
|
|
|
|
if (changes[0][1] === 'oldContainerOwner') {
|
|
|
|
|
const res = ContainerOwnerDict.value.length
|
|
|
|
|
? ContainerOwnerDict.value
|
|
|
|
|
: (await GetClientListByCode({ code: 'leasing' }))?.data
|
|
|
|
@ -773,8 +770,8 @@
|
|
|
|
|
return item.pinYinCode === changes[0][3]
|
|
|
|
|
})
|
|
|
|
|
if (item) dict = item[0]
|
|
|
|
|
list.value[changes[0][0]]['rentCustomerName'] = dict?.pinYinCode
|
|
|
|
|
list.value[changes[0][0]]['rentCustomerId'] = dict?.id
|
|
|
|
|
list.value[changes[0][0]]['oldContainerOwner'] = dict?.pinYinCode
|
|
|
|
|
list.value[changes[0][0]]['oldContainerOwnerId'] = dict?.id
|
|
|
|
|
}
|
|
|
|
|
if (changes[0][1] === 'rentDirect') {
|
|
|
|
|
const res = rentDirectDict.value.length
|
|
|
|
|