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
*/

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

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

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

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

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

@ -7,7 +7,7 @@ const res: API.DataResult = await GetLanesSelectList()
if (res.succeeded) {
LanesSelectList = []
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 = []
@ -247,15 +247,35 @@ export const formSchema: FormSchema[] = [
label: '航线',
component: 'Select',
colProps: { span: 12 },
defaultValue: '',
componentProps: {
options: LanesSelectList,
allowClear: true,
showSearch: true,
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
},
},
required: true,
componentProps: ({ formModel }) => {
return {
options: LanesSelectList,
allowClear: false,
showSearch: true,
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',

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

@ -1181,21 +1181,6 @@ export const columns: BasicColumn[] = [
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: '二程航次',
dataIndex: 'voyno2N',

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

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

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

@ -211,7 +211,21 @@
} else {
//
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)

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

Loading…
Cancel
Save