lijingjia 6 months ago
commit 6499f22337

@ -121,7 +121,9 @@ const FnsaleId: any = await GetSaleUserList()
if (FnsaleId.succeeded) { if (FnsaleId.succeeded) {
ListData.saleId = [] ListData.saleId = []
FnsaleId.data.forEach((e) => { FnsaleId.data.forEach((e) => {
ListData.saleId.push({ label: e.userName, value: e.id }) console.log(e, 111)
ListData.saleId.push({ ...e, label: `${e.userName}/${e.userCode}`, value: e.id })
}) })
} }
const FnreceiptPlaceId: any = await GetClientPortSelectList() const FnreceiptPlaceId: any = await GetClientPortSelectList()
@ -1032,7 +1034,13 @@ export const searchFormSchema: FormSchema[] = [
options: ListData.saleId, options: ListData.saleId,
showSearch: true, showSearch: true,
filterOption: (input: string, option: any) => { filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 let RData = false
if (option.userName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.userCode.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
}
return RData
}, },
}, },
}, },
@ -1050,7 +1058,13 @@ export const searchFormSchema: FormSchema[] = [
options: ListData.saleId, options: ListData.saleId,
showSearch: true, showSearch: true,
filterOption: (input: string, option: any) => { filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 let RData = false
if (option.userName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.userCode.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
}
return RData
}, },
onChange: (e) => { onChange: (e) => {
if (e) { if (e) {
@ -1220,7 +1234,13 @@ export const searchFormSchema: FormSchema[] = [
options: ListData.saleId, options: ListData.saleId,
showSearch: true, showSearch: true,
filterOption: (input: string, option: any) => { filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 let RData = false
if (option.userName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.userCode.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
}
return RData
}, },
}, },
}, },
@ -1402,7 +1422,7 @@ export const basicInfoFormSchema: FormSchema[] = [
label: '结算方式', label: '结算方式',
component: 'Select', component: 'Select',
required: false, required: false,
dynamicDisabled: false, dynamicDisabled: true,
defaultValue: '', defaultValue: '',
colProps: { span: 4 }, colProps: { span: 4 },
componentProps: { componentProps: {
@ -1419,7 +1439,7 @@ export const basicInfoFormSchema: FormSchema[] = [
label: '结算日期', label: '结算日期',
component: 'DatePicker', component: 'DatePicker',
required: false, required: false,
dynamicDisabled: false, dynamicDisabled: true,
defaultValue: '', defaultValue: '',
colProps: { span: 4 }, colProps: { span: 4 },
componentProps: { componentProps: {
@ -1464,10 +1484,18 @@ export const basicInfoFormSchema: FormSchema[] = [
colProps: { span: 4 }, colProps: { span: 4 },
componentProps: { componentProps: {
allowClear: true, allowClear: true,
options: ListData.carrier, options: ListData.customername,
showSearch: true, showSearch: true,
filterOption: (input: string, option: any) => { filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 let RData = false
if (option.codeName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.shortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.enShortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
}
return RData
}, },
}, },
}, },
@ -1481,10 +1509,18 @@ export const basicInfoFormSchema: FormSchema[] = [
colProps: { span: 4 }, colProps: { span: 4 },
componentProps: { componentProps: {
allowClear: true, allowClear: true,
options: ListData.forwarderId, options: ListData.customername,
showSearch: true, showSearch: true,
filterOption: (input: string, option: any) => { filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 let RData = false
if (option.codeName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.shortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.enShortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
}
return RData
}, },
}, },
}, },
@ -1609,10 +1645,18 @@ export const basicInfoFormSchema: FormSchema[] = [
colProps: { span: 4 }, colProps: { span: 4 },
componentProps: { componentProps: {
allowClear: true, allowClear: true,
options: ListData.shipAgencyId, options: ListData.customername,
showSearch: true, showSearch: true,
filterOption: (input: string, option: any) => { filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 let RData = false
if (option.codeName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.shortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.enShortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
}
return RData
}, },
}, },
}, },
@ -1637,7 +1681,13 @@ export const basicInfoFormSchema: FormSchema[] = [
options: ListData.saleId, options: ListData.saleId,
showSearch: true, showSearch: true,
filterOption: (input: string, option: any) => { filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 let RData = false
if (option.userName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.userCode.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
}
return RData
}, },
onChange: (e) => { onChange: (e) => {
if (e) { if (e) {
@ -1666,7 +1716,13 @@ export const basicInfoFormSchema: FormSchema[] = [
options: ListData.saleId, options: ListData.saleId,
showSearch: true, showSearch: true,
filterOption: (input: string, option: any) => { filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 let RData = false
if (option.userName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.userCode.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
}
return RData
}, },
}, },
}, },
@ -1683,7 +1739,13 @@ export const basicInfoFormSchema: FormSchema[] = [
options: ListData.saleId, options: ListData.saleId,
showSearch: true, showSearch: true,
filterOption: (input: string, option: any) => { filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 let RData = false
if (option.userName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.userCode.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
}
return RData
}, },
}, },
}, },
@ -1700,7 +1762,13 @@ export const basicInfoFormSchema: FormSchema[] = [
options: ListData.saleId, options: ListData.saleId,
showSearch: true, showSearch: true,
filterOption: (input: string, option: any) => { filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 let RData = false
if (option.userName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.userCode.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
}
return RData
}, },
}, },
}, },
@ -1724,9 +1792,25 @@ export const basicInfoFormSchema: FormSchema[] = [
{ {
label: '海外客服', label: '海外客服',
field: 'foreignCustomerService', field: 'foreignCustomerService',
component: 'Input', component: 'Select',
required: false, required: false,
dynamicDisabled: false,
defaultValue: '',
colProps: { span: 4 }, colProps: { span: 4 },
componentProps: {
allowClear: true,
options: ListData.saleId,
showSearch: true,
filterOption: (input: string, option: any) => {
let RData = false
if (option.userName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.userCode.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
}
return RData
},
},
}, },
{ {
label: '所属部门', label: '所属部门',
@ -1915,11 +1999,19 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
defaultValue: '', defaultValue: '',
colProps: { span: 5 }, colProps: { span: 5 },
componentProps: { componentProps: {
options: ListData.yard,
allowClear: true, allowClear: true,
options: ListData.customername,
showSearch: true, showSearch: true,
filterOption: (input: string, option: any) => { filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 let RData = false
if (option.codeName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.shortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.enShortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
}
return RData
}, },
}, },
}, },
@ -2072,11 +2164,19 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
defaultValue: '', defaultValue: '',
colProps: { span: 5 }, colProps: { span: 5 },
componentProps: { componentProps: {
options: ListData.customser,
allowClear: true, allowClear: true,
options: ListData.customername,
showSearch: true, showSearch: true,
filterOption: (input: string, option: any) => { filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 let RData = false
if (option.codeName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.shortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.enShortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
}
return RData
}, },
}, },
}, },
@ -2145,11 +2245,19 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
defaultValue: '', defaultValue: '',
colProps: { span: 5 }, colProps: { span: 5 },
componentProps: { componentProps: {
options: ListData.trucker,
allowClear: true, allowClear: true,
options: ListData.customername,
showSearch: true, showSearch: true,
filterOption: (input: string, option: any) => { filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 let RData = false
if (option.codeName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.shortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.enShortName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
}
return RData
}, },
}, },
}, },
@ -2645,7 +2753,7 @@ export const cargoInfoFormSchema2: FormSchema[] = [
defaultValue: '', defaultValue: '',
colProps: { span: 6 }, colProps: { span: 6 },
componentProps: { componentProps: {
options: ListData.FngoodsName, options: ListData.goodsName,
allowClear: true, allowClear: true,
showSearch: true, showSearch: true,
filterOption: (input: string, option: any) => { filterOption: (input: string, option: any) => {
@ -3696,7 +3804,13 @@ export const BatchModificationFormSchema: FormSchema[] = [
options: ListData.saleId, options: ListData.saleId,
showSearch: true, showSearch: true,
filterOption: (input: string, option: any) => { filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 let RData = false
if (option.userName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.userCode.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
}
return RData
}, },
onChange: (e) => { onChange: (e) => {
if (e) { if (e) {
@ -3914,7 +4028,13 @@ export const BatchModificationFormSchema: FormSchema[] = [
options: ListData.saleId, options: ListData.saleId,
showSearch: true, showSearch: true,
filterOption: (input: string, option: any) => { filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 let RData = false
if (option.userName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.userCode.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
}
return RData
}, },
}, },
}, },
@ -3962,7 +4082,13 @@ export const BatchModificationFormSchema: FormSchema[] = [
options: ListData.saleId, options: ListData.saleId,
showSearch: true, showSearch: true,
filterOption: (input: string, option: any) => { filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 let RData = false
if (option.userName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.userCode.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
}
return RData
}, },
}, },
}, },
@ -4068,7 +4194,13 @@ export const BatchModificationFormSchema: FormSchema[] = [
options: ListData.saleId, options: ListData.saleId,
showSearch: true, showSearch: true,
filterOption: (input: string, option: any) => { filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 let RData = false
if (option.userName.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
} else if (option.userCode.toLowerCase().indexOf(input.toLowerCase()) >= 0) {
RData = true
}
return RData
}, },
}, },
}, },

@ -34,7 +34,7 @@
type="Content" type="Content"
:openToCDB="true" :openToCDB="true"
@getTextareaChange="getTextareaChange" @getTextareaChange="getTextareaChange"
:height="174.5" :height="140"
/> />
<div class="line-count" id="consignee-scroll-right" v-if="Content.length > 0"> <div class="line-count" id="consignee-scroll-right" v-if="Content.length > 0">
<div v-for="(num, index) in Content.split('\n')" :key="index">{{ num.length }}</div> <div v-for="(num, index) in Content.split('\n')" :key="index">{{ num.length }}</div>

@ -76,22 +76,6 @@
</div> </div>
<div v-if="tableLoaded"> <div v-if="tableLoaded">
<hot-table ref="hotTb" :data="list" :settings="settings"></hot-table> <hot-table ref="hotTb" :data="list" :settings="settings"></hot-table>
<!-- <BasicTable @register="register" @row-dbClick="EditRow" @edit-row-end="EditRowEnd" /> -->
<!-- rowKeyFieldName="rowKey" -->
<!-- <vxe-table
:columns="columns"
:table-data="tableData"
borderY
ref="tableRef"
style="min-width: 970"
:cell-autofill-option="cellAutofillOption"
:editOption="editOption"
:rowKeyFieldName="rowKeyName"
:rowStyleOption="rowStyleOption"
:checkbox-option="checkboxOption"
:clipboard-option="clipboardOption"
:cellSelectionOption="cellSelectionOption"
/> -->
<div class="table-no-data" v-if="tableData.length === 0"></div> <div class="table-no-data" v-if="tableData.length === 0"></div>
</div> </div>
<div class="loading" v-else> ...</div> <div class="loading" v-else> ...</div>
@ -128,17 +112,7 @@
:settings="moreSettings" :settings="moreSettings"
v-if="moreSelectLoad" v-if="moreSelectLoad"
></hot-table> ></hot-table>
<!-- <ve-table
:columns="childColumns"
:table-data="childTableData"
borderY
:cell-autofill-option="cellAutofillOption"
:editOption="editChildOption"
rowKeyFieldName="rowKey"
:rowStyleOption="rowStyleOption"
:checkbox-option="checkChildboxOption"
:clipboard-option="clipboardChildOption"
/> -->
<!-- <div class="table-no-data" v-else></div> --> <!-- <div class="table-no-data" v-else></div> -->
</div> </div>
</a-spin> </a-spin>
@ -203,6 +177,7 @@
import { useRoute } from 'vue-router' import { useRoute } from 'vue-router'
import { HotTable } from '@handsontable/vue3' import { HotTable } from '@handsontable/vue3'
import { getDictDropDown } from '/@/api/common' import { getDictDropDown } from '/@/api/common'
import { GetPackageSelectList } from '/@/views/operation/seaexport/api/BookingLedger'
const route = useRoute() const route = useRoute()
const props = defineProps({ const props = defineProps({
details: { type: Object, default: {} }, details: { type: Object, default: {} },
@ -268,6 +243,8 @@
const dataSource = ref<any>([]) const dataSource = ref<any>([])
// //
const ctnDict = ref([]) const ctnDict = ref([])
//
const kindPkgsDict = ref([])
// //
const feeDict = ref([]) const feeDict = ref([])
// //
@ -290,11 +267,11 @@
className: 'htCenter', className: 'htCenter',
readOnly: false, readOnly: false,
}, },
{ // {
title: '箱型代码', // title: '',
width: 120, // width: 120,
data: 'ctnCode', // data: 'ctnCode',
}, // },
{ {
title: '箱型', title: '箱型',
width: 120, width: 120,
@ -340,6 +317,18 @@
title: '包装', title: '包装',
width: 80, width: 80,
data: 'kindPkgs', data: 'kindPkgs',
type: 'dropdown',
// (process)
source: async (query, process) => {
const res = kindPkgsDict.value.length
? kindPkgsDict.value
: (await GetPackageSelectList())?.data
if (!kindPkgsDict.value.length) kindPkgsDict.value = res
const dict = res.map((res) => {
return res.packageName
})
process(dict)
},
}, },
{ {
title: '毛重', title: '毛重',
@ -366,6 +355,17 @@
title: '称重方式', title: '称重方式',
width: 80, width: 80,
data: 'weightType', data: 'weightType',
type: 'dropdown',
source: async (query, process) => {
const res = ctnDict.value.length
? ctnDict.value
: (await getDictDropDown({ code: 'weight_type' }))?.data
if (!ctnDict.value.length) ctnDict.value = res
const dict = res.map((res) => {
return res.name
})
process(dict)
},
}, },
{ {
title: '称重重量', title: '称重重量',
@ -1670,88 +1670,6 @@
const childModelSelectIndex: Ref<any> = ref(null) const childModelSelectIndex: Ref<any> = ref(null)
const childTableData: Ref<any> = ref([]) const childTableData: Ref<any> = ref([])
const selectChildArr = ref([]) const selectChildArr = ref([])
const childColumns = ref([
{
field: '',
key: 'checkbox',
type: 'checkbox',
title: '',
width: 40,
operationColumn: true,
align: 'center',
},
{
field: 'pkgs',
key: 'pkgs',
title: '件数',
align: 'left',
edit: true,
},
{
field: 'kindpkgs',
key: 'kindpkgs',
title: '包装',
align: 'left',
edit: false,
width: 130,
// renderBodyCell: ({ row, column, rowIndex }, h) => {
// return (
// <a-select
// show-search
// value={row['kindpkgs']}
// option-filter-prop="children"
// style="width: 120px"
// on-change={(val) => {
// const data = this.packageList[val]
// row['kindpkgs'] = data.name
// childTableData.value[rowIndex].kindpkgs = data.name
// this.$forceUpdate()
// }}
// >
// {this.packageList.map((item, index) => {
// return <a-select-option value={index}>{item.name}</a-select-option>
// })}
// </a-select-option>
// )
// },
},
{
field: 'kgs',
key: 'kgs',
title: '毛重',
align: 'left',
edit: true,
},
{
field: 'cbm',
key: 'cbm',
title: '尺码',
align: 'left',
edit: true,
},
{
field: 'hscode',
key: 'hscode',
title: 'HS代码',
align: 'left',
edit: true,
},
{
field: 'marks',
key: 'marks',
title: '唛头',
align: 'left',
edit: true,
},
{
field: 'description',
key: 'description',
title: '货描',
align: 'left',
width: '25%',
edit: true,
},
])
const editChildOption = ref({ const editChildOption = ref({
beforeCellValueChange: ({ row, column, changeValue }) => { beforeCellValueChange: ({ row, column, changeValue }) => {
if ( if (

Loading…
Cancel
Save