数据存储优化

szh-new
lijingjia 6 months ago
commit c550d114b1

@ -75,13 +75,13 @@
type: Array, type: Array,
default: () => { default: () => {
return [] return []
} },
}, },
// ID // ID
id: { id: {
type: String, type: String,
default: '' default: '',
} },
}) })
const emits = defineEmits(['broInsert']) const emits = defineEmits(['broInsert'])
// //
@ -110,7 +110,7 @@
feeEnName: '', feeEnName: '',
quantity: 1, quantity: 1,
exchangeRate: 1, exchangeRate: 1,
feeType: props.tbType == 'receive' ? 1 : 2 feeType: props.tbType == 'receive' ? 1 : 2,
} }
// //
const list = ref([]) const list = ref([])
@ -159,7 +159,7 @@
if (!feeDict.value.length) feeDict.value = res if (!feeDict.value.length) feeDict.value = res
console.log(res) console.log(res)
const dict = res.map((res) => { const dict = res.map((res) => {
return res.code + '-' +res.name return res.code + '-' + res.name
}) })
process(dict) process(dict)
}, },
@ -199,13 +199,13 @@
type: 'dropdown', type: 'dropdown',
source: async (query, process) => { source: async (query, process) => {
// //
const rowIndex = hotTb.value.hotInstance.getActiveEditor().row const rowIndex = hotTb.value.hotInstance.getActiveEditor().row
const code = list.value[rowIndex - 1].customerType const code = list.value[rowIndex - 1].customerType
console.log(list.value[rowIndex - 1]) console.log(list.value[rowIndex - 1])
if (code) { if (code) {
GetClientListByCode({ code }).then(res => { GetClientListByCode({ code }).then((res) => {
const { data } = res const { data } = res
data.forEach(item => { data.forEach((item) => {
item['label'] = item.shortName item['label'] = item.shortName
item['value'] = item.codeName item['value'] = item.codeName
}) })
@ -216,7 +216,7 @@
process(dict) process(dict)
}) })
} else { } else {
createMessage.warning("请先选择客户类别!") createMessage.warning('请先选择客户类别!')
process([]) process([])
} }
}, },
@ -267,7 +267,7 @@
width: 120, width: 120,
data: 'noTaxPrice', data: 'noTaxPrice',
type: 'numeric', type: 'numeric',
readOnly: true readOnly: true,
}, },
{ {
title: '不含税金额', title: '不含税金额',
@ -275,7 +275,7 @@
data: 'noTaxAmount', data: 'noTaxAmount',
type: 'numeric', type: 'numeric',
format: '0.00', format: '0.00',
readOnly: true readOnly: true,
}, },
{ {
title: '金额', title: '金额',
@ -359,8 +359,9 @@
title: '录入人', title: '录入人',
width: 100, width: 100,
data: 'createByName', data: 'createByName',
readOnly: true readOnly: true,
}, { },
{
title: '录入日期', title: '录入日期',
width: 100, width: 100,
data: 'createTime', data: 'createTime',
@ -388,13 +389,15 @@
title: '修改人', title: '修改人',
width: 100, width: 100,
data: 'updateByName', data: 'updateByName',
readOnly: true readOnly: true,
}, { },
{
title: '修改日期', title: '修改日期',
width: 100, width: 100,
data: 'updateTime', data: 'updateTime',
readOnly: true readOnly: true,
}, { },
{
title: '发票申请金额', title: '发票申请金额',
width: 100, width: 100,
data: 'orderInvoiceAmount', data: 'orderInvoiceAmount',
@ -429,9 +432,9 @@
rowHeights: 32, rowHeights: 32,
fixedColumnsLeft: 1, fixedColumnsLeft: 1,
// //
hiddenColumns: { hiddenColumns: {
columns: [1, 2], columns: [1, 2],
indicators: true indicators: true,
}, },
// //
enterMoves: 'row', enterMoves: 'row',
@ -528,34 +531,54 @@
// //
if (changes[0][1] === 'noTaxPrice') { if (changes[0][1] === 'noTaxPrice') {
// //
list.value[index].unitPrice = Number((changes[0][3] || 0) * ((list.value[index].taxRate || 0) / 100 + 1)).toFixed(6) list.value[index].unitPrice = Number(
(changes[0][3] || 0) * ((list.value[index].taxRate || 0) / 100 + 1),
).toFixed(6)
// //
list.value[index].amount = Number((list.value[index].unitPrice || 0) * (list.value[index].quantity || 0)).toFixed(6) list.value[index].amount = Number(
(list.value[index].unitPrice || 0) * (list.value[index].quantity || 0),
).toFixed(6)
// //
list.value[index].noTaxAmount = Number((changes[0][3] || 0) * (list.value[index].quantity || 0)).toFixed(6) list.value[index].noTaxAmount = Number(
(changes[0][3] || 0) * (list.value[index].quantity || 0),
).toFixed(6)
} }
// //
if (changes[0][1] === 'unitPrice') { if (changes[0][1] === 'unitPrice') {
// //
list.value[index].noTaxPrice = Number((changes[0][3] || 0) / ((list.value[index].taxRate || 0) / 100 + 1)).toFixed(6) list.value[index].noTaxPrice = Number(
(changes[0][3] || 0) / ((list.value[index].taxRate || 0) / 100 + 1),
).toFixed(6)
// //
list.value[index].amount = Number((changes[0][3] || 0) * (list.value[index].quantity || 0)).toFixed(6) list.value[index].amount = Number(
(changes[0][3] || 0) * (list.value[index].quantity || 0),
).toFixed(6)
// //
list.value[index].noTaxAmount = Number((list.value[index].noTaxPrice || 0) * (list.value[index].quantity || 0)).toFixed(6) list.value[index].noTaxAmount = Number(
(list.value[index].noTaxPrice || 0) * (list.value[index].quantity || 0),
).toFixed(6)
} }
// //
if (changes[0][1] === 'quantity') { if (changes[0][1] === 'quantity') {
// //
list.value[index].amount = Number((changes[0][3] || 0) * (list.value[index].unitPrice || 0)).toFixed(6) list.value[index].amount = Number(
(changes[0][3] || 0) * (list.value[index].unitPrice || 0),
).toFixed(6)
// //
list.value[index].noTaxAmount = Number((changes[0][3] || 0) * (list.value[index].noTaxPrice || 0)).toFixed(6) list.value[index].noTaxAmount = Number(
(changes[0][3] || 0) * (list.value[index].noTaxPrice || 0),
).toFixed(6)
} }
// //
if (changes[0][1] === 'taxRate') { if (changes[0][1] === 'taxRate') {
// //
list.value[index].noTaxPrice = Number((list.value[index].unitPrice || 0) / ((changes[0][3] || 0) / 100 + 1)).toFixed(6) list.value[index].noTaxPrice = Number(
(list.value[index].unitPrice || 0) / ((changes[0][3] || 0) / 100 + 1),
).toFixed(6)
// //
list.value[index].noTaxAmount = Number((list.value[index].noTaxPrice || 0) * (list.value[index].quantity || 0)).toFixed(6) list.value[index].noTaxAmount = Number(
(list.value[index].noTaxPrice || 0) * (list.value[index].quantity || 0),
).toFixed(6)
} }
} }
}, },
@ -567,62 +590,70 @@
items: list.value.filter((res) => { items: list.value.filter((res) => {
return res.feeStatus == 1 return res.feeStatus == 1
}), }),
businessType: 1 businessType: 1,
} }
loading.value = true loading.value = true
SubmitFee(postData).then(res => { SubmitFee(postData)
loading.value = false .then((res) => {
init() loading.value = false
createMessage.success(res.message) init()
}).catch(() => { createMessage.success(res.message)
loading.value = false })
}) .catch(() => {
loading.value = false
})
} }
// //
const submit = (arr) => { const submit = (arr) => {
loading.value = true loading.value = true
const ids = [] const ids = []
arr.forEach(res => { arr.forEach((res) => {
if (res.id) ids.push(res.id) if (res.id) ids.push(res.id)
}) })
if (ids.length == arr.length) { if (ids.length == arr.length) {
ApplyAudit({ id: '', ids }).then(res => { ApplyAudit({ id: '', ids })
loading.value = false .then((res) => {
createMessage.success(res.message) loading.value = false
init() createMessage.success(res.message)
}).catch(() => { init()
loading.value = false })
}) .catch(() => {
loading.value = false
})
} else { } else {
const postData = { const postData = {
BusinessId: props.id, BusinessId: props.id,
items: arr items: arr,
} }
SubmitFee(postData).then(res => { SubmitFee(postData).then((res) => {
const { data } = res const { data } = res
const ids = data.map(item => { const ids = data.map((item) => {
return item.id return item.id
}) })
ApplyAudit({ ids }).then(res => { ApplyAudit({ ids })
loading.value = false .then((res) => {
createMessage.success(res.message) loading.value = false
init() createMessage.success(res.message)
}).catch(() => { init()
loading.value = false })
}) .catch(() => {
loading.value = false
})
}) })
} }
} }
// //
const revoke = (ids) => { const revoke = (ids) => {
loading.value = true loading.value = true
Withdraw({ ids }).then(res => { Withdraw({ ids })
loading.value = false .then((res) => {
createMessage.success(res.message) loading.value = false
init() createMessage.success(res.message)
}).catch(() => { init()
loading.value = false })
}) .catch(() => {
loading.value = false
})
} }
// //
const cancelEdit = () => { const cancelEdit = () => {
@ -700,68 +731,69 @@
pageCondition: { pageCondition: {
pageIndex: 1, pageIndex: 1,
pageSize: 1000, pageSize: 1000,
sortConditions: [] sortConditions: [],
}, },
queryCondition: JSON.stringify([ queryCondition: JSON.stringify([
{ FieldName: 'BusinessId', FieldValue: props.id, ConditionalType: 1 }, { FieldName: 'BusinessId', FieldValue: props.id, ConditionalType: 1 },
{ FieldName: 'FeeType', FieldValue: props.tbType == 'receive' ? 1 : 2, ConditionalType: 1 }, { FieldName: 'FeeType', FieldValue: props.tbType == 'receive' ? 1 : 2, ConditionalType: 1 },
]) ]),
} }
GetList(postData).then(res => { GetList(postData)
loading.value = false .then((res) => {
const { data } = res loading.value = false
data.forEach((item, index) => { const { data } = res
item['feeStatusText'] = feeStatusList[item.feeStatus] data.forEach((item, index) => {
if (item.createTime) item.createTime = item.createTime.split(' ')[0] item['feeStatusText'] = feeStatusList[item.feeStatus]
if (item.auditDate) item.auditDate = item.auditDate.split(' ')[0] if (item.createTime) item.createTime = item.createTime.split(' ')[0]
if (item.updateTime) item.updateTime = item.updateTime.split(' ')[0] if (item.auditDate) item.auditDate = item.auditDate.split(' ')[0]
if (item.updateTime == '1900-01-01') item.updateTime = '' if (item.updateTime) item.updateTime = item.updateTime.split(' ')[0]
}) if (item.updateTime == '1900-01-01') item.updateTime = ''
list.value = data
// 使
oldData = JSON.parse(JSON.stringify(data))
if (data.length != 0) {
hotTb.value.hotInstance.updateSettings({
cells: function(row, col) {
//
const props = { readOnly: true }
// STATUS=0
// STATUS=1
// STATUS=2
// (STATUS=3)
// (STATUS=4)
// (STATUS=5)
// STATUS=6
// STATUS=7
// STATUS=8
// STATUS=9
if (data[row]?.feeStatus != 1 && col != 0) {
//
if (data[row]?.feeStatus == 0) {
props['className'] = 'hot-green'
}
if (data[row]?.feeStatus == 2) {
props['className'] = 'hot-yellow'
}
if (data[row]?.feeStatus == 7) {
props['className'] = 'hot-red'
}
return props
} else {
return
}
}
}) })
} list.value = data
hotTb.value.hotInstance.loadData(list.value) // 使
}) oldData = JSON.parse(JSON.stringify(data))
.catch(() => { if (data.length != 0) {
loading.value = false hotTb.value.hotInstance.updateSettings({
}) cells: function (row, col) {
//
const props = { readOnly: true }
// STATUS=0
// STATUS=1
// STATUS=2
// (STATUS=3)
// (STATUS=4)
// (STATUS=5)
// STATUS=6
// STATUS=7
// STATUS=8
// STATUS=9
if (data[row]?.feeStatus != 1 && col != 0) {
//
if (data[row]?.feeStatus == 0) {
props['className'] = 'hot-green'
}
if (data[row]?.feeStatus == 2) {
props['className'] = 'hot-yellow'
}
if (data[row]?.feeStatus == 7) {
props['className'] = 'hot-red'
}
return props
} else {
return
}
},
})
}
hotTb.value.hotInstance.loadData(list.value)
})
.catch(() => {
loading.value = false
})
} }
onMounted(() => { onMounted(() => {
const hot = hotTb.value.hotInstance const hot = hotTb.value.hotInstance
hot.addHook('afterOnCellMouseDown', function(event, coords, TD) {}) hot.addHook('afterOnCellMouseDown', function (event, coords, TD) {})
// //
hot.addHook('beforeKeyDown', function (event) { hot.addHook('beforeKeyDown', function (event) {
// 'Enter' // 'Enter'
@ -797,13 +829,13 @@
row.forEach((item) => { row.forEach((item) => {
list.value.push(item) list.value.push(item)
}) })
} },
) )
watch( watch(
() => props.id, () => props.id,
() => { () => {
init() init()
} },
) )
watch( watch(
list.value, list.value,

@ -7,14 +7,15 @@
height: 28px; height: 28px;
line-height: 26px; line-height: 26px;
color: #000; color: #000;
font-size: 12px !important;
.iconfont { .iconfont {
margin-right: 6px; margin-right: 6px;
font-size: 14px !important;
} }
span { span {
&.iconfont{ &.iconfont{
font-size: 18px !important; font-size: 16px !important;
} }
} }
&:hover { &:hover {

@ -17,5 +17,6 @@
@import url('/@/styles/buttonGroup.scss'); @import url('/@/styles/buttonGroup.scss');
.nav { .nav {
margin-top: 20px !important; margin-top: 20px !important;
padding: 0 2px;
} }
</style> </style>

@ -381,8 +381,12 @@
height: calc(100vh - 366px); height: calc(100vh - 366px);
.ant-table-body { .ant-table-body {
max-height: none !important; max-height: none !important;
.ant-table-expanded-row-fixed { height: calc(100% - 50px) !important;
height: calc(100vh - 365px); .ant-table-placeholder {
display: none;
.ant-table-expanded-row-fixed {
height: calc(100vh - 365px);
}
} }
} }
} }

@ -158,17 +158,49 @@
} }
}) })
if (ToRType) { if (ToRType) {
othercondition.push({ //
FieldName: e, if (Array.isArray(data[e])) {
FieldValue: data[e], othercondition.push(
ConditionalType: 1, {
}) FieldName: e,
FieldValue: data[e][0],
ConditionalType: 3,
},
{
FieldName: e,
FieldValue: data[e][1],
ConditionalType: 5,
},
)
} else {
othercondition.push({
FieldName: e,
FieldValue: data[e],
ConditionalType: 1,
})
}
} else { } else {
condition.push({ //
FieldName: e, if (Array.isArray(data[e])) {
FieldValue: data[e], condition.push(
ConditionalType: 1, {
}) FieldName: e,
FieldValue: data[e][0],
ConditionalType: 3,
},
{
FieldName: e,
FieldValue: data[e][1],
ConditionalType: 5,
},
)
} else {
condition.push({
FieldName: e,
FieldValue: data[e],
ConditionalType: 1,
})
}
} }
} }
}) })

@ -7,14 +7,36 @@ import {
GetFeeCodeSelectList, GetFeeCodeSelectList,
GetFeeCurrencySelectList, GetFeeCurrencySelectList,
} from '/@/views/operation/CustomerReconciliation/api.js' } from '/@/views/operation/CustomerReconciliation/api.js'
import {
GetClientStlModeSelectList,
GetVesselSelectList,
GetVoynoSelectList,
GetAgentCnClientList,
GetClientPortSelectList,
} from '/@/views/operation/seaexport/api/BookingLedger.js'
import { GetClientListByCode } from '/@/api/common'
import { billTypeData } from '/@/views/operation/CustomerReconciliation/detail/detailColumns' import { billTypeData } from '/@/views/operation/CustomerReconciliation/detail/detailColumns'
export const RQueryArr = ['currency'] export const TFData = [
{ value: true, label: '是' },
{ value: false, label: '否' },
]
export const RQueryArr = [
'customerId',
'createTime',
'billType',
'isDebit',
'stlName',
'currency',
'feeName',
'forwarderId',
'dischargePortId',
'loadPortId',
]
// 表单 // 表单
export const schemas: FormSchema[] = [ export const schemas: FormSchema[] = [
{ field: 'mblno', component: 'Input', label: '主提单号', colProps: { span: 4 } },
{ {
label: '币别', label: '费用对象',
field: 'currency', field: 'customerId',
component: 'ApiSelect', component: 'ApiSelect',
required: false, required: false,
dynamicDisabled: false, dynamicDisabled: false,
@ -23,14 +45,14 @@ export const schemas: FormSchema[] = [
return { return {
api: () => { api: () => {
return new Promise((resolve) => { return new Promise((resolve) => {
GetFeeCurrencySelectList().then((res) => { GetClientListByCode().then((res) => {
console.log(res, 111111111111111111111111) console.log(res)
resolve(res) resolve(res)
}) })
}) })
}, },
immediate: false, immediate: false,
labelField: 'name', labelField: 'shortName',
valueField: 'codeName', valueField: 'codeName',
resultField: 'data', resultField: 'data',
filterOption: (input: string, option: any) => { filterOption: (input: string, option: any) => {
@ -39,39 +61,35 @@ export const schemas: FormSchema[] = [
} }
}, },
}, },
// { {
// label: '费用对象', field: 'customNo',
// field: 'customerId', component: 'Input',
// component: 'ApiSelect', label: '编号检索',
// required: false, dynamicDisabled: false,
// dynamicDisabled: false, colProps: { span: 4 },
// colProps: { span: 4 }, },
// componentProps: () => { {
// return { field: 'etd',
// api: () => { label: '业务日期',
// return new Promise((resolve) => { component: 'RangePicker',
// GetFeeCodeSelectList().then((res) => { required: false,
// res.data.forEach((item) => { dynamicDisabled: false,
// item.label = item.code + '-' + item.name colProps: { span: 7 },
// }) componentProps: {
// resolve(res) allowClear: true,
// }) },
// }) },
// }, {
// immediate: false, field: 'createTime',
// valueField: 'id', label: '费用日期',
// resultField: 'data', component: 'RangePicker',
// filterOption: (input: string, option: any) => { required: false,
// return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 dynamicDisabled: false,
// }, colProps: { span: 6 },
// } componentProps: {
// }, allowClear: true,
// }, },
// { field: 'field1', component: 'Input', label: '编号检索', colProps: { span: 4 } }, },
// { field: 'field2', component: 'DatePicker', label: '从业务日期', colProps: { span: 4 } },
// { field: 'field3', component: 'DatePicker', label: '到业务日期', colProps: { span: 3 } },
// { field: 'field4', component: 'DatePicker', label: '从费用日期', colProps: { span: 3 } },
// { field: 'field5', component: 'DatePicker', label: '到费用日期', colProps: { span: 3 } },
{ {
field: 'CZ', field: 'CZ',
component: 'Button', component: 'Button',
@ -89,52 +107,130 @@ export const schemas: FormSchema[] = [
} }
}, },
}, },
// { {
// field: 'billType', field: 'billType',
// component: 'Select', component: 'Select',
// componentProps: { componentProps: {
// options: billTypeData, options: billTypeData,
// }, },
// label: '收付类型', label: '收付类型',
// colProps: { span: 2 }, colProps: { span: 2 },
// }, },
{
// { field: 'field7', component: 'Select', label: 'FRT', colProps: { span: 2 } }, field: 'isDebit',
// { field: 'field7', component: 'Select', label: '包含已到账', colProps: { span: 2 } }, component: 'Select',
// { field: 'field7', component: 'Select', label: '是否开票', colProps: { span: 2 } }, label: '是否对账',
// { field: 'field7', component: 'Select', label: '是否垫付', colProps: { span: 2 } }, dynamicDisabled: false,
// { field: 'field6', component: 'Select', label: '委托单位', colProps: { span: 3 } }, colProps: { span: 2 },
// { componentProps: {
// label: '费用名称', options: TFData,
// field: 'field9', },
// component: 'ApiSelect', },
// required: false, {
// dynamicDisabled: false, label: '结算方式',
// colProps: { span: 3 }, field: 'stlName',
component: 'ApiSelect',
// componentProps: () => { required: false,
// return { dynamicDisabled: false,
// api: () => { colProps: { span: 4 },
// return new Promise((resolve) => { componentProps: () => {
// GetFeeCodeSelectList().then((res) => { return {
// res.data.forEach((item) => { api: GetClientStlModeSelectList,
// item.label = item.code + '-' + item.name immediate: false,
// }) labelField: 'stlName',
// resolve(res) valueField: 'id',
// }) resultField: 'data',
// }) filterOption: (input: string, option: any) => {
// }, return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
// immediate: false, },
// valueField: 'id', }
// resultField: 'data', },
// mode: 'multiple', },
// filterOption: (input: string, option: any) => { {
// return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 label: '币别',
// }, field: 'currency',
// } component: 'ApiSelect',
// }, required: false,
// }, dynamicDisabled: false,
// { field: 'field9', component: 'Select', label: '费用范围', colProps: { span: 3 } }, colProps: { span: 3 },
componentProps: () => {
return {
api: GetFeeCurrencySelectList,
immediate: false,
labelField: 'name',
valueField: 'codeName',
resultField: 'data',
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
}
},
},
{
label: '费用名称',
field: 'feeName',
component: 'ApiSelect',
required: false,
dynamicDisabled: false,
colProps: { span: 4 },
componentProps: () => {
return {
api: () => {
return new Promise((resolve) => {
GetFeeCodeSelectList().then((res) => {
res.data.forEach((item) => {
item.label = item.code + '-' + item.name
})
resolve(res)
})
})
},
immediate: false,
valueField: 'id',
resultField: 'data',
// mode: 'multiple',
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
}
},
},
{
field: 'isSeaFreight',
component: 'Select',
label: '是否海运费',
dynamicDisabled: false,
colProps: { span: 3 },
componentProps: ({ formModel }) => {
return {
options: TFData,
onchange: (e) => {
if (e) {
formModel.feeName = '海运费'
}
},
}
},
},
{
label: '船名',
field: 'vessel',
component: 'ApiSelect',
required: false,
dynamicDisabled: false,
colProps: { span: 3 },
componentProps: () => {
return {
api: GetVesselSelectList,
labelField: 'vesselName',
valueField: 'id',
resultField: 'data',
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
}
},
},
{ {
field: 'CS', field: 'CS',
component: 'Button', component: 'Button',
@ -152,15 +248,112 @@ export const schemas: FormSchema[] = [
} }
}, },
}, },
// { field: 'field9', component: 'Select', label: '船名', colProps: { span: 4 } },
// { field: 'field9', component: 'Input', label: '航次', colProps: { span: 4 } }, {
// { field: 'field7', component: 'Select', label: '含海运费业务', colProps: { span: 2 } }, label: '航次',
// { field: 'field7', component: 'Switch', label: '记忆查询', colProps: { span: 2 } }, field: 'voyno',
// { field: 'field9', component: 'Select', label: '港口(国外)', colProps: { span: 3 } }, component: 'ApiSelect',
// { field: 'field9', component: 'Select', label: '港口(国内)', colProps: { span: 3 } }, required: false,
// { field: 'field9', component: 'Select', label: '国外代理', colProps: { span: 3 } }, dynamicDisabled: false,
colProps: { span: 4 },
componentProps: () => {
return {
api: GetVoynoSelectList,
immediate: false,
labelField: 'voyNo',
valueField: 'id',
resultField: 'data',
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
}
},
},
{
label: '国外代理',
field: 'forwarderId',
component: 'ApiSelect',
required: false,
dynamicDisabled: false,
colProps: { span: 4 },
componentProps: ({ formModel }) => {
return {
api: GetAgentCnClientList,
labelField: 'shortName',
valueField: 'id',
resultField: 'data',
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
onChange: (e, obj) => {
if (e) {
formModel.forwarder = obj.label
} else {
formModel.forwarder = ''
}
},
}
},
},
{
label: '港口(国外)',
field: 'dischargePortId',
component: 'ApiSelect',
required: false,
dynamicDisabled: false,
colProps: { span: 3 },
componentProps: () => {
return {
api: () => {
return new Promise((resolve) => {
GetClientPortSelectList().then((res) => {
res.data.forEach((item) => {
if (item.ediCode) item.cnName = item.ediCode + '/' + item.cnName
})
resolve(res)
})
})
},
immediate: false,
labelField: 'cnName',
valueField: 'id',
resultField: 'data',
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
}
},
},
{
label: '港口(国内)',
field: 'loadPortId',
component: 'ApiSelect',
required: false,
dynamicDisabled: false,
colProps: { span: 4 },
componentProps: () => {
return {
api: () => {
return new Promise((resolve) => {
GetClientPortSelectList().then((res) => {
res.data.forEach((item) => {
if (item.ediCode) item.cnName = item.ediCode + '/' + item.cnName
})
resolve(res)
})
})
},
immediate: false,
labelField: 'cnName',
valueField: 'id',
resultField: 'data',
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
}
},
},
] ]
//左列表
export const columnsL: BasicColumn[] = [ export const columnsL: BasicColumn[] = [
{ title: '业务类型', dataIndex: 'businessTypeName', align: 'left' }, { title: '业务类型', dataIndex: 'businessTypeName', align: 'left' },
{ title: '委托单位', dataIndex: 'customerName', align: 'left' }, { title: '委托单位', dataIndex: 'customerName', align: 'left' },

@ -62,7 +62,7 @@
@visibleChange="handleVisibleChange" @visibleChange="handleVisibleChange"
@confirm="openPreOrderFun" @confirm="openPreOrderFun"
> >
<button> <span class="iconfont icon-yunshu1" style="font-size: 14px"></span> 舱单 </button> <button> <span class="iconfont icon-yunshu1" style="font-size: 14px"></span> 舱单</button>
</a-popconfirm> </a-popconfirm>
<!-- <button @click="openModel('paper')"> <!-- <button @click="openModel('paper')">
<span class="iconfont icon-zhizhishu" style="font-size: 18px"></span>下货纸 <span class="iconfont icon-zhizhishu" style="font-size: 18px"></span>下货纸

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save