sunzehua 3 months ago
commit fc0e753b30

@ -449,6 +449,15 @@ export function GetClientFrtSelectList() {
}) })
} }
// 船公司下拉
export function GetCarrierSelectList(params) {
return request({
url: '/mainApi/ClientCommon/GetCarrierSelectList',
method: 'get',
params
})
}
/** /**
* api * api
*/ */

@ -1,3 +1,8 @@
/*
* @Desc:
* @Author: lijj
* @Date: 2024-07-17 08:39:50
*/
// @ts-ignore // @ts-ignore
import { request } from '/@/utils/request' import { request } from '/@/utils/request'
import { DataResult, PageRequest } from '/@/api/model/baseModel' import { DataResult, PageRequest } from '/@/api/model/baseModel'
@ -9,7 +14,7 @@ enum Api {
getRolePermission = '/mainApi/Role/GetRolePermission', getRolePermission = '/mainApi/Role/GetRolePermission',
updateRolePermission = '/mainApi/Role/UpdateClientRolePermission', updateRolePermission = '/mainApi/Role/UpdateClientRolePermission',
GetColumns = '/mainApi/Common/GetColumns', GetColumns = '/mainApi/Common/GetColumnsByClient',
GetTables = '/mainApi/Common/GetTables', GetTables = '/mainApi/Common/GetTables',
GetClientPermissionList = '/mainApi/Common/GetClientPermissionList', GetClientPermissionList = '/mainApi/Common/GetClientPermissionList',
} }

@ -127,6 +127,7 @@ export function updateFormItem(updateSchema, formNo) {
getFormSetInfoByModule({ permissionId: permissionsInfo().permissionId, formNo }).then(res => { getFormSetInfoByModule({ permissionId: permissionsInfo().permissionId, formNo }).then(res => {
if (res?.data?.content) { if (res?.data?.content) {
const content = JSON.parse(res.data.content) const content = JSON.parse(res.data.content)
console.log(content)
updateSchema(content.columns) updateSchema(content.columns)
} }
}) })

@ -20,7 +20,7 @@ export default {
// Number of pages that can be selected // Number of pages that can be selected
pageSizeOptions: ['10', '20', '50', '80', '100'], pageSizeOptions: ['10', '20', '50', '80', '100'],
// Default display quantity on one page // Default display quantity on one page
defaultPageSize: 20, defaultPageSize: 100,
// Default Size // Default Size
defaultSize: 'small', defaultSize: 'small',
// Custom general sort function // Custom general sort function

@ -1,4 +1,8 @@
import { BasicColumn, FormSchema } from '/@/components/Table' import { BasicColumn, FormSchema } from '/@/components/Table'
import {
GetCustomerServiceList,
GetVouchingClerkList
} from '/@/views/operation/seaexport/api/BookingLedger'
import { Tag } from 'ant-design-vue' import { Tag } from 'ant-design-vue'
export const columns: BasicColumn[] = [ export const columns: BasicColumn[] = [
{ {
@ -21,19 +25,19 @@ export const columns: BasicColumn[] = [
}, },
{ {
title: '默认操作员', title: '默认操作员',
dataIndex: 'operator', dataIndex: 'operatorName',
sorter: true, sorter: true,
width: 200, width: 200,
}, },
{ {
title: '默认单证', title: '默认单证',
dataIndex: 'vouchingClerk', dataIndex: 'vouchingClerkName',
sorter: true, sorter: true,
width: 200, width: 200,
}, },
{ {
title: '默认客服', title: '默认客服',
dataIndex: 'customerService', dataIndex: 'customerServiceName',
sorter: true, sorter: true,
width: 200, width: 200,
}, },
@ -112,31 +116,99 @@ export const formSchema: FormSchema[] = [
colProps: { span: 12 }, colProps: { span: 12 },
}, },
{ {
field: 'operator', field: 'operatorName',
label: '默认操作员', label: '默认操作员',
component: 'ApiSelect',
colProps: { span: 12 },
componentProps: ({ formModel }) => {
return {
api: GetCustomerServiceList,
labelField: 'pinYinCode',
valueField: 'userName',
showName: 'userName',
immediate: false,
resultField: 'data',
onChange: (e, obj) => {
if (e && obj) {
formModel.operator = obj.id
}
if (!e && !obj) {
formModel.operator = null
}
}
}
}
},
{
field: 'operator',
label: '',
component: 'Input', component: 'Input',
show: false
},
{
field: 'vouchingClerkName',
label: '默认单证',
component: 'ApiSelect',
colProps: { span: 12 }, colProps: { span: 12 },
componentProps: ({ formModel }) => {
return {
api: GetVouchingClerkList,
labelField: 'pinYinCode',
valueField: 'userName',
showName: 'userName',
immediate: false,
resultField: 'data',
onChange: (e, obj) => {
if (e && obj) {
formModel.vouchingClerk = obj.id
}
if (!e && !obj) {
formModel.vouchingClerk = null
}
}
}
}
}, },
{ {
field: 'vouchingClerk', field: 'vouchingClerk',
label: '默认单证', label: '',
component: 'Input', component: 'Input',
show: false
},
{
field: 'customerServiceName',
label: '默认客服',
component: 'ApiSelect',
colProps: { span: 12 }, colProps: { span: 12 },
componentProps: ({ formModel }) => {
return {
api: GetCustomerServiceList,
labelField: 'pinYinCode',
valueField: 'userName',
showName: 'userName',
immediate: false,
resultField: 'data',
onChange: (e, obj) => {
if (e && obj) {
formModel.customerService = obj.id
}
if (!e && !obj) {
formModel.customerService = null
}
}
}
}
}, },
{ {
field: 'customerService', field: 'customerService',
label: '默认客服', label: '',
component: 'Input', component: 'Input',
show: false
colProps: { span: 12 },
}, },
{ {
field: 'ediCode', field: 'ediCode',
label: 'EDI代码', label: 'EDI代码',
component: 'Input', component: 'Input',
colProps: { span: 12 }, colProps: { span: 12 },
}, },
{ {

@ -53,7 +53,7 @@
const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({ const [registerForm, { resetFields, setFieldsValue, validate }] = useForm({
labelWidth: 100, labelWidth: 100,
schemas: formSchema, schemas: formSchema,
showActionButtonGroup: false, showActionButtonGroup: false
}) })
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {

@ -7,7 +7,7 @@ const res: API.DataResult = await GetLanesSelectList()
if (res.succeeded) { if (res.succeeded) {
LanesSelectList = [] LanesSelectList = []
res.data.forEach((e) => { res.data.forEach((e) => {
LanesSelectList.push({ label: e.laneName, value: e.id }) LanesSelectList.push({ label: e.laneName, value: e.id, code: e.ediCode })
}) })
} }
let CountrySelectList = [] let CountrySelectList = []
@ -247,15 +247,35 @@ export const formSchema: FormSchema[] = [
label: '航线', label: '航线',
component: 'Select', component: 'Select',
colProps: { span: 12 }, colProps: { span: 12 },
defaultValue: '', required: true,
componentProps: { componentProps: ({ formModel }) => {
options: LanesSelectList, return {
allowClear: true, options: LanesSelectList,
showSearch: true, allowClear: false,
filterOption: (input: string, option: any) => { showSearch: true,
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0 filterOption: (input: string, option: any) => {
}, return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
}, },
onChange: (v, obj) => {
if (v && obj) {
formModel.lane = obj.label
formModel.laneCode = obj.code
}
}
}
}
},
{
field: 'lane',
label: '',
component: 'Input',
show: false
},
{
field: 'laneCode',
label: '',
component: 'Input',
show: false
}, },
{ {
field: 'ediCode', field: 'ediCode',

@ -5,7 +5,7 @@ enum Api {
list = '/mainApi/ClientFlowInstance/GetFlowInstanceList', list = '/mainApi/ClientFlowInstance/GetFlowInstanceList',
EditFlowTemplate = '/mainApi/ClientFlowTemplate/EditFlowTemplate', EditFlowTemplate = '/mainApi/ClientFlowTemplate/EditFlowTemplate',
GetTables = '/mainApi/Common/GetTables', GetTables = '/mainApi/Common/GetTables',
GetColumns = '/mainApi/Common/GetColumns', GetColumns = '/mainApi/Common/GetColumnsByClient',
GetFlowInstanceInfo = '/mainApi/ClientFlowInstance/GetFlowInstanceInfo', GetFlowInstanceInfo = '/mainApi/ClientFlowInstance/GetFlowInstanceInfo',
AuditFlowInstance = '/mainApi/ClientFlowInstance/AuditFlowInstance', AuditFlowInstance = '/mainApi/ClientFlowInstance/AuditFlowInstance',
getClientPermissionTreeList = '/mainApi/Common/GetClientPermissionTreeList', getClientPermissionTreeList = '/mainApi/Common/GetClientPermissionTreeList',

@ -1181,21 +1181,6 @@ export const columns: BasicColumn[] = [
return RData return RData
}, },
}, },
{
dataIndex: 'vessel2N',
title: '船名',
sorter: true,
width: 150,
customRender: ({ record }) => {
let RData = ''
// ListData.vessel.forEach((item) => {
// if (item.value == record.vessel2N) {
// RData = item.label
// }
// })
return RData
},
},
{ {
title: '二程航次', title: '二程航次',
dataIndex: 'voyno2N', dataIndex: 'voyno2N',

@ -329,6 +329,7 @@
if (!res.data.ctnPriceInfo.length) { if (!res.data.ctnPriceInfo.length) {
res.data.ctnPriceInfo = [{}] res.data.ctnPriceInfo = [{}]
} }
bookingDetails.value = res.data
appStore.settopDown(false) appStore.settopDown(false)
inPageLoading.value = false inPageLoading.value = false
// //

@ -5,7 +5,7 @@ import { ref, unref } from 'vue'
import { BasicColumn, FormSchema } from '/@/components/Table' import { BasicColumn, FormSchema } from '/@/components/Table'
import { getDictOption } from '/@/utils/dictUtil' import { getDictOption } from '/@/utils/dictUtil'
// 下拉框数据接口 // 下拉框数据接口
import { GetClientListByCode } from '/@/api/common' import { GetClientListByCode, GetCarrierSelectList } from '/@/api/common'
import { import {
GetPackageSelectList, GetPackageSelectList,
GetOrderContactListByClientId, GetOrderContactListByClientId,
@ -234,11 +234,10 @@ export const basicInfoFormSchema: FormSchema[] = [
colProps: { span: 5 }, colProps: { span: 5 },
componentProps: ({ formModel }) => { componentProps: ({ formModel }) => {
return { return {
api: GetClientListByCode, api: GetCarrierSelectList,
params: { code: 'carrier' },
labelField: 'pinYinCode', labelField: 'pinYinCode',
showName: 'shortName', showName: 'cnName',
valueField: 'shortName', valueField: 'cnName',
resultField: 'data', resultField: 'data',
immediate: false, immediate: false,
onChange: (e, obj) => { onChange: (e, obj) => {
@ -274,7 +273,7 @@ export const basicInfoFormSchema: FormSchema[] = [
componentProps: ({ formModel }) => { componentProps: ({ formModel }) => {
return { return {
api: GetClientListByCode, api: GetClientListByCode,
params: { code: 'agentcn' }, params: { code: 'booking' },
labelField: 'pinYinCode', labelField: 'pinYinCode',
valueField: 'shortName', valueField: 'shortName',
showName: 'shortName', showName: 'shortName',
@ -754,7 +753,6 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
} }
}, },
}, },
{ {
label: '船司航线', label: '船司航线',
field: 'carrierLane', field: 'carrierLane',
@ -762,18 +760,16 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
colProps: { span: 5 }, colProps: { span: 5 },
}, },
{ {
field: 'closeDocDate', field: 'openPortDate',
label: '开港时间', label: '开港时间',
component: 'DatePicker', component: 'DatePicker',
required: false, required: false,
dynamicDisabled: false, dynamicDisabled: false,
// defaultValue: '',
colProps: { span: 5 }, colProps: { span: 5 },
componentProps: { componentProps: {
showTime: true,
allowClear: true, allowClear: true,
valueFormat: 'YYYY-MM-DD HH:mm' valueFormat: 'YYYY-MM-DD HH:mm'
} },
}, },
{ {
label: '装货港', label: '装货港',
@ -1687,7 +1683,7 @@ export const cargoInfoFormSchema1: FormSchema[] = [
component: 'InputTextArea', component: 'InputTextArea',
required: false, required: false,
dynamicDisabled: false, dynamicDisabled: false,
defaultValue: 'N.M', defaultValue: 'N/M',
colProps: { colProps: {
span: 10, span: 10,
}, },

@ -18,7 +18,7 @@
</a-button> </a-button>
</ConfigForm> </ConfigForm>
<div> <div>
<input ref="customerNoRef" 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>
@ -238,7 +238,7 @@
} }
.customerNo { .customerNo {
font-weight: 600; font-weight: 600;
width: 68px min-width: 68px;
} }
.icon-bianji1 { .icon-bianji1 {
font-size: 10px; font-size: 10px;

@ -211,7 +211,21 @@
} else { } else {
// //
temFlag.value = true temFlag.value = true
temForm.templateName = null let content = ''
if (key == 'shipper') {
content = model.shipperContent
} else if (key == 'consignee') {
content = model.consigneeContent
} else {
content = model.notifyPartyContent
}
if (content) {
const index = content.indexOf("\n");
const firstline = content.substring(0, index);
temForm.templateName = firstline
} else {
temForm.templateName = null
}
} }
} }
const form = ref(null) const form = ref(null)

@ -1,11 +1,12 @@
import { BasicColumn, FormSchema } from '/@/components/Table' import { BasicColumn, FormSchema } from '/@/components/Table'
import { getTables, getColumns, getClientPermissionList } from '/@/api/system/role' import { getTables, getColumns, getClientPermissionList } from '/@/api/system/role'
import { GetTablesByClient } from '/@/views/baseinfo/clientflowtemplate/api'
import { h, ref } from 'vue' import { h, ref } from 'vue'
import ConditionFilter from './Condition/index.vue' import ConditionFilter from './Condition/index.vue'
import { Field } from '/@/components/Render/interface' import { Field } from '/@/components/Render/interface'
import { Tag } from 'ant-design-vue' import { Tag } from 'ant-design-vue'
const columnViewData = [] const columnViewData = []
const res: API.DataResult = await getTables() const res: API.DataResult = await GetTablesByClient()
if (res.succeeded) { if (res.succeeded) {
res.data.forEach((item) => { res.data.forEach((item) => {
columnViewData.push({ columnViewData.push({

Loading…
Cancel
Save