Merge remote-tracking branch 'origin/dev' into ljj_dev

szh-new
lijingjia 3 months ago
commit 28cf830aed

@ -640,11 +640,12 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
{ {
field: 'etd', field: 'etd',
label: '开船日期', label: '开船日期',
labelSlot: 'etd',
component: 'DatePicker', component: 'DatePicker',
rules: [{ required: true, message: '请选择开船日期' }], rules: [{ required: true, message: '请选择开船日期' }],
dynamicDisabled: false, dynamicDisabled: false,
defaultValue: undefined, defaultValue: undefined,
colProps: { span: 5 }, colProps: { className: 'edt-picker ant-col ant-col-5' },
componentProps: { componentProps: {
allowClear: true, allowClear: true,
valueFormat: 'YYYY-MM-DD', valueFormat: 'YYYY-MM-DD',
@ -680,10 +681,11 @@ export const mailingInfoFormSchemaR: FormSchema[] = [
field: 'atd', field: 'atd',
label: '计费日(PRICEDATE)', label: '计费日(PRICEDATE)',
component: 'DatePicker', component: 'DatePicker',
labelSlot: 'atd',
required: false, required: false,
dynamicDisabled: false, dynamicDisabled: false,
// defaultValue: '', // defaultValue: '',
colProps: { span: 5 }, colProps: { className: 'atd-picker ant-col ant-col-5' },
componentProps: { componentProps: {
allowClear: true, allowClear: true,
valueFormat: 'YYYY-MM-DD', valueFormat: 'YYYY-MM-DD',

@ -72,7 +72,16 @@
<div style="position: relative;"> <div style="position: relative;">
<h4>运输信息</h4> <h4>运输信息</h4>
</div> </div>
<BasicForm class="auto" @register="registerFormR" @linkageForm="linkageForm" /> <BasicForm class="auto" @register="registerFormR" @linkageForm="linkageForm">
<!-- 开船日期 -->
<template #etd="{ model }">
<span class="week-day">{{ getWeekday(model.etd) }}</span>
</template>
<!-- 计费日 -->
<template #atd="{ model }">
<span class="week-day">{{ getWeekday(model.atd) }}</span>
</template>
</BasicForm>
</div> </div>
</div> </div>
</template> </template>
@ -121,6 +130,14 @@
console.log(notifyPartyList.value) console.log(notifyPartyList.value)
}) })
} }
//
const getWeekday = (dateStr) => {
if (!dateStr) return
const weekDays = ['周日', '周一', '周二', '周三', '周四', '周五', '周六']
const date = new Date(dateStr)
const weekday = date.getDay()
return weekDays[weekday]
}
// //
const openContactModal = () => { const openContactModal = () => {
twoFlag.value = true twoFlag.value = true
@ -295,6 +312,28 @@
height: 102px; height: 102px;
} }
} }
.edt-picker {
.ant-form-item-label {
overflow: visible;
}
.week-day {
position: relative;
top: 23.5px;
left: 12px;
z-index: 10;
}
}
.atd-picker {
.ant-form-item-label {
overflow: visible;
}
.week-day {
position: relative;
top: 23.5px;
left: -28px;
z-index: 10;
}
}
.ant-divider-horizontal { .ant-divider-horizontal {
margin: 8px 0 8px!important; margin: 8px 0 8px!important;
background: #E8EBED; background: #E8EBED;

@ -65,6 +65,16 @@ export const columns: BasicColumn[] = [
return text return text
}, },
}, },
{
title: '默认机构',
dataIndex: 'defaultOrgName',
width: 140,
},
{
title: '默认部门',
dataIndex: 'deptName',
width: 140,
},
{ {
title: '手机号', title: '手机号',
dataIndex: 'phone', dataIndex: 'phone',
@ -115,6 +125,38 @@ export const searchFormSchema: FormSchema[] = [
component: 'Input', component: 'Input',
colProps: { span: 4 }, colProps: { span: 4 },
}, },
{
field: 'defaultOrgId',
label: '默认机构',
component: 'Select',
colProps: { span: 4 },
componentProps: () => {
return {
options: orgIds.value,
resultField: 'data',
showSearch: true,
filterOption: (input: string, option: any) => {
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
}
}
}
},
{
field: 'deptId',
label: '默认部门',
component: 'ApiSelect',
colProps: { span: 4 },
componentProps: () => {
return {
api: getDeptList,
params: { orgId: null },
labelField: 'orgName',
valueField: 'id',
resultField: 'data',
immediate: false
}
},
},
] ]
export const formSchema: FormSchema[] = [ export const formSchema: FormSchema[] = [
{ {

@ -77,13 +77,14 @@
showTableSetting: true, showTableSetting: true,
bordered: true, bordered: true,
showIndexColumn: true, showIndexColumn: true,
canResize: false, canResize: true,
resizeHeightOffset: 15,
actionColumn: { actionColumn: {
width: 80, width: 80,
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',
fixed: 'right', fixed: 'right'
}, }
}) })
function handleCreate() { function handleCreate() {

Loading…
Cancel
Save