Merge branch 'zth' into dev

szh-new
张同海 3 months ago
commit 758fa53013

@ -3,7 +3,7 @@ import { Tag } from 'ant-design-vue'
import { GetClientListByCode, GetCarrierSelectList, GetClientPortSelectList } from '/@/api/common' import { GetClientListByCode, GetCarrierSelectList, GetClientPortSelectList } from '/@/api/common'
export const columns: BasicColumn[] = [ export const columns: BasicColumn[] = [
{ {
title: '承运商', title: '船公司',
dataIndex: 'carrier', dataIndex: 'carrier',
sorter: true, sorter: true,
width: 150, width: 150,
@ -21,7 +21,7 @@ export const columns: BasicColumn[] = [
width: 200, width: 200,
}, },
{ {
title: '放舱方式名称', title: '放舱方式',
dataIndex: 'releaseTypeName', dataIndex: 'releaseTypeName',
sorter: true, sorter: true,
width: 200, width: 200,
@ -30,7 +30,7 @@ export const columns: BasicColumn[] = [
export const searchFormSchema: FormSchema[] = [ export const searchFormSchema: FormSchema[] = [
{ {
label: '承运商', label: '船公司',
field: 'carrier', field: 'carrier',
labelSlot: 'carrierId', labelSlot: 'carrierId',
component: 'ApiSelect', component: 'ApiSelect',
@ -120,7 +120,7 @@ export const formSchema: FormSchema[] = [
show: false, show: false,
}, },
{ {
label: '承运商', label: '船公司',
field: 'carrier', field: 'carrier',
labelSlot: 'carrierId', labelSlot: 'carrierId',
component: 'ApiSelect', component: 'ApiSelect',
@ -145,6 +145,7 @@ export const formSchema: FormSchema[] = [
formModel.carrierId = '' formModel.carrierId = ''
} }
}, },
getPopupContainer: () => document.body,
} }
}, },
}, },
@ -187,6 +188,7 @@ export const formSchema: FormSchema[] = [
formModel.customerName = '' formModel.customerName = ''
} }
}, },
getPopupContainer: () => document.body,
} }
}, },
}, },
@ -207,6 +209,7 @@ export const formSchema: FormSchema[] = [
showName: 'pinYinCode', showName: 'pinYinCode',
valueField: 'ediCode', valueField: 'ediCode',
immediate: true, immediate: true,
getPopupContainer: () => document.body,
} }
}, },
}, },

@ -814,3 +814,44 @@ export const EditformSchema: FormSchema[] = [
}, },
}, },
] ]
export const EditformSchema2: FormSchema[] = [
{
field: 'farCode',
label: '财务应收账款代码',
component: 'DEdit',
defaultValue: '',
colProps: { span: 8 },
componentProps: (e) => {
return {
onEdit: () => {
const { formActionType } = e
formActionType ? formActionType.linkageForm(e) : null
},
}
},
},
{
field: 'fapCode',
label: '财务应付账款代码',
component: 'DEdit',
defaultValue: '',
colProps: { span: 8 },
componentProps: (e) => {
return {
onEdit: () => {
const { formActionType } = e
formActionType ? formActionType.linkageForm(e) : null
},
}
},
},
{
field: 'Divider',
component: 'Divider',
label: '',
colProps: { span: 24 },
componentProps: {
class: 'infoclientDivider',
},
},
]

@ -15,7 +15,7 @@ export const columns: BasicColumn[] = [
width: 200, width: 200,
}, },
{ {
title: '放舱方式名称', title: '放舱方式',
dataIndex: 'releaseTypeName', dataIndex: 'releaseTypeName',
sorter: true, sorter: true,
width: 200, width: 200,
@ -54,7 +54,6 @@ export const searchFormSchema: FormSchema[] = [
label: '起运港', label: '起运港',
field: 'loadingPort', field: 'loadingPort',
component: 'ApiSelect', component: 'ApiSelect',
colProps: { span: 4 }, colProps: { span: 4 },
componentProps: () => { componentProps: () => {
return { return {
@ -151,6 +150,7 @@ export const formSchema: FormSchema[] = [
showName: 'pinYinCode', showName: 'pinYinCode',
valueField: 'ediCode', valueField: 'ediCode',
immediate: true, immediate: true,
getPopupContainer: () => document.body,
} }
}, },
}, },

@ -80,9 +80,9 @@
<a-tab-pane key="2" tab="财务账期信息"> <a-tab-pane key="2" tab="财务账期信息">
<div> <div>
<p class="title">财务信息</p> <p class="title">财务信息</p>
<BasicForm @register="registerForm2" /> <BasicForm @register="registerForm2" @linkageForm="linkageForm2" />
<div class="FlexTable"> <div class="FlexTable">
<div class="HotTable"> <!-- <div class="HotTable">
<div> <div>
<span class="title Fapiao">发票信息</span> <span class="title Fapiao">发票信息</span>
<a-button type="link" @click="TableAdd" class="pl0"> <a-button type="link" @click="TableAdd" class="pl0">
@ -117,11 +117,11 @@
/> />
</hot-table> </hot-table>
</div> </div>
</div> </div> -->
<div class="BTable"> <div class="BTable">
<BasicTable @register="registerTable" @row-dbClick="EditRow" :maxHeight="140"> <BasicTable @register="registerTable" @row-dbClick="EditRow" :maxHeight="140">
<template #tableTitle> <template #tableTitle>
<span class="title">银行信息</span> <span class="title">银行/发票信息</span>
<a-button <a-button
type="link" type="link"
@click="addboxLine({ id: rowId })" @click="addboxLine({ id: rowId })"
@ -198,7 +198,7 @@
import { BasicModal, useModalInner } from '/@/components/Modal' import { BasicModal, useModalInner } from '/@/components/Modal'
import { BasicForm, useForm } from '/@/components/Form/index' import { BasicForm, useForm } from '/@/components/Form/index'
import { formSchema, formSchema2, Tablecolumns } from './columns' import { formSchema, formSchema2, Tablecolumns } from './columns'
import { EditformSchema } from './EditColumns' import { EditformSchema, EditformSchema2 } from './EditColumns'
import { import {
editCodeGoodsType, editCodeGoodsType,
getCodeGoodsTypeInfo, getCodeGoodsTypeInfo,
@ -249,6 +249,19 @@
activeKey.value = oval activeKey.value = oval
notification.warning({ message: '请先保存!', duration: 3 }) notification.warning({ message: '请先保存!', duration: 3 })
} }
if (rowId.value && Number(nval) == 2) {
console.log(formSchema2, EditformSchema2)
formSchema2.forEach((item) => {
if (item.show !== false && item.component !== 'Divider') {
EditformSchema2.forEach((item2) => {
if (item.field == item2.field) {
updateSchema1(item2)
}
})
}
})
}
}) })
watch( watch(
rowId, rowId,
@ -311,6 +324,7 @@
} }
}) })
} }
const [ const [
registerForm2, registerForm2,
{ {
@ -318,12 +332,20 @@
getFieldsValue: getFieldsValue1, getFieldsValue: getFieldsValue1,
setFieldsValue: setFieldsValue1, setFieldsValue: setFieldsValue1,
validate: validate1, validate: validate1,
updateSchema: updateSchema1,
}, },
] = useForm({ ] = useForm({
labelWidth: 140, labelWidth: 140,
schemas: formSchema2, schemas: formSchema2,
showActionButtonGroup: false, showActionButtonGroup: false,
}) })
const linkageForm2 = (e) => {
formSchema2.forEach((item) => {
if (item.field == e.schema.field) {
updateSchema1(item)
}
})
}
// const dataSource = ref<any>([]) // const dataSource = ref<any>([])
// //
const [registerTable, { reload, setTableData, getPaginationRef, getDataSource, getSelectRows }] = const [registerTable, { reload, setTableData, getPaginationRef, getDataSource, getSelectRows }] =
@ -960,29 +982,29 @@
} }
} }
.FlexTable { .FlexTable {
display: flex; // display: flex;
:deep(.HotTable) { // :deep(.HotTable) {
width: 33%; // width: 33%;
> div { // > div {
&:nth-child(1) { // &:nth-child(1) {
padding: 14px 8px 8px 8px; // padding: 14px 8px 8px 8px;
display: flex; // display: flex;
.Fapiao { // .Fapiao {
// flex: 1; // // flex: 1;
margin-right: 10px; // margin-right: 10px;
} // }
} // }
} // }
.handsontableInput { // .handsontableInput {
height: 40.5px !important; // height: 40.5px !important;
line-height: 40.5px !important; // line-height: 40.5px !important;
} // }
} // }
.BTable { // .BTable {
height: 153px; // height: 153px;
margin-left: 15px; // margin-left: 15px;
width: 66%; // width: 66%;
} // }
} }
:deep(.handsontable) { :deep(.handsontable) {
.htCore { .htCore {

@ -838,6 +838,16 @@ export const formSchema: FormSchema[] = [
} }
}, },
}, },
{
field: 'blContent',
label: '提单信息',
component: 'InputTextArea',
defaultValue: '',
colProps: { span: 12 },
componentProps: {
rows: 4,
},
},
{ {
field: 'Divider3', field: 'Divider3',
component: 'Divider', component: 'Divider',
@ -1170,7 +1180,7 @@ export const formSchema: FormSchema[] = [
field: 'saleOrgId', field: 'saleOrgId',
label: '分公司', label: '分公司',
component: 'Select', component: 'Select',
colProps: { span: 8 }, colProps: { span: 12 },
componentProps: ({ formModel }) => { componentProps: ({ formModel }) => {
return { return {
options: OrgList, options: OrgList,
@ -1189,12 +1199,15 @@ export const formSchema: FormSchema[] = [
}, },
}, },
{ {
label: '', label: '推送设置',
field: 'Space1', field: 'notifications',
component: 'Space', component: 'Select',
defaultValue: '', colProps: { span: 12 },
colProps: { componentProps: {
span: 16, options: notificationsData,
allowClear: true,
mode: 'multiple',
class: 'NoLimitHeight',
}, },
}, },
{ {
@ -1220,28 +1233,6 @@ export const formSchema: FormSchema[] = [
} }
}, },
}, },
{
label: '推送设置',
field: 'notifications',
component: 'Select',
colProps: { span: 12 },
componentProps: {
options: notificationsData,
allowClear: true,
mode: 'multiple',
class: 'NoLimitHeight',
},
},
{
field: 'blContent',
label: '提单信息',
component: 'InputTextArea',
defaultValue: '',
colProps: { span: 12 },
componentProps: {
rows: 4,
},
},
{ {
field: 'note', field: 'note',
label: '备注', label: '备注',
@ -1252,6 +1243,15 @@ export const formSchema: FormSchema[] = [
rows: 4, rows: 4,
}, },
}, },
// {
// label: '',
// field: 'Space1',
// component: 'Space',
// defaultValue: '',
// colProps: {
// span: 16,
// },
// },
] ]
export const formSchema2: FormSchema[] = [ export const formSchema2: FormSchema[] = [
@ -1269,6 +1269,15 @@ export const formSchema2: FormSchema[] = [
defaultValue: '', defaultValue: '',
colProps: { span: 8 }, colProps: { span: 8 },
}, },
{
field: 'Divider',
component: 'Divider',
label: '',
colProps: { span: 24 },
componentProps: {
class: 'infoclientDivider',
},
},
] ]
export const form3columns: BasicColumn[] = [ export const form3columns: BasicColumn[] = [

@ -236,200 +236,55 @@ export const formSchema: FormSchema[] = [
label: '姓名', label: '姓名',
component: 'Input', component: 'Input',
required: true, required: true,
colProps: { span: 12 }, colProps: { span: 8 },
}, },
{ {
field: 'enName', field: 'enName',
label: '英文名', label: '英文名',
component: 'Input', component: 'Input',
required: true, required: true,
colProps: { span: 12 }, colProps: { span: 8 },
},
// {
// field: 'codeName',
// label: '代码',
// component: 'Input',
// required: true,
// colProps: { span: 12 },
// componentProps: {
// maxlength: 6,
// },
// },
// {
// field: 'shortName',
// label: '简称',
// component: 'Input',
// required: true,
// colProps: { span: 12 },
// },
{
field: 'address',
label: '通讯地址',
component: 'Input',
colProps: { span: 12 },
defaultValue: '',
}, },
{ {
field: 'email', field: 'email',
label: '邮箱', label: '邮箱',
component: 'Input', component: 'Input',
colProps: { span: 12 }, colProps: { span: 8 },
defaultValue: 0, defaultValue: 0,
}, },
{ {
field: 'mobile', field: 'mobile',
label: '手机', label: '手机',
component: 'Input', component: 'Input',
colProps: { span: 12 }, colProps: { span: 8 },
defaultValue: 0, defaultValue: 0,
}, },
{ {
field: 'tel', field: 'tel',
label: '电话', label: '电话',
component: 'Input', component: 'Input',
colProps: { span: 12 }, colProps: { span: 8 },
defaultValue: 0, defaultValue: 0,
}, },
// {
// field: 'fax',
// label: '传真',
// component: 'Input',
// colProps: { span: 12 },
// defaultValue: 0,
// },
{ {
field: 'qq', field: 'qq',
label: 'QQ', label: 'QQ',
component: 'Input', component: 'Input',
colProps: { span: 12 }, colProps: { span: 8 },
defaultValue: '', defaultValue: '',
}, },
// {
// label: '船公司名称',
// field: 'carrier',
// component: 'Input',
// show: false,
// },
// {
// label: '船公司',
// field: 'carrierId',
// labelSlot: 'carrierId',
// component: 'ApiSelect',
// required: false,
// dynamicDisabled: false,
// colProps: { span: 12 },
// componentProps: ({ formModel }) => {
// return {
// allowClear: true,
// showSearch: true,
// api: () => {
// return new Promise((resolve) => {
// const arr = getOptions('carrier')
// resolve(arr)
// })
// },
// labelField: 'name',
// showName: 'shortName',
// valueField: 'id',
// filterOption: (input: string, option: any) => {
// return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
// },
// onChange: (e, obj) => {
// if (obj) {
// formModel.carrier = obj.label
// } else {
// formModel.carrier = ''
// }
// },
// }
// },
// },
{
field: 'isDefault',
label: '默认联系人',
component: 'Switch',
colProps: { span: 12 },
defaultValue: false,
componentProps: {
checkedChildren: '是',
unCheckedChildren: '否',
},
},
{
field: 'isOperator',
label: '是否为操作',
component: 'Switch',
colProps: { span: 12 },
defaultValue: false,
componentProps: {
checkedChildren: '是',
unCheckedChildren: '否',
},
},
{
field: 'isFinancialStaff',
label: '是否为财务',
component: 'Switch',
colProps: { span: 12 },
defaultValue: false,
componentProps: {
checkedChildren: '是',
unCheckedChildren: '否',
},
},
{
field: 'isSaleMan',
label: '是否为销售',
component: 'Switch',
colProps: { span: 12 },
defaultValue: false,
componentProps: {
checkedChildren: '是',
unCheckedChildren: '否',
},
},
// {
// field: 'isOther',
// label: '是否为其他',
// component: 'RadioButtonGroup',
// defaultValue: false,
// colProps: { span: 12 },
// componentProps: {
// options: [
// { label: '是', value: true },
// { label: '否', value: false },
// ],
// },
// },
{ {
field: 'isInsurance', field: 'address',
label: '是否保险联系人', label: '通讯地址',
component: 'Switch', component: 'Input',
colProps: { span: 12 }, colProps: { span: 16 },
defaultValue: false, defaultValue: '',
componentProps: {
checkedChildren: '是',
unCheckedChildren: '否',
},
},
{
field: 'isCheckAccount',
label: '是否对账联系人',
component: 'Switch',
colProps: { span: 12 },
defaultValue: false,
componentProps: {
checkedChildren: '是',
unCheckedChildren: '否',
},
}, },
{ {
field: 'anniversary1', field: 'anniversary1',
label: '提醒日期1', label: '提醒日期1',
component: 'DatePicker', component: 'DatePicker',
colProps: { span: 12 }, colProps: { span: 8 },
defaultValue: '', defaultValue: '',
componentProps: { componentProps: {
showTime: false, showTime: false,
@ -440,7 +295,7 @@ export const formSchema: FormSchema[] = [
field: 'anniversary2', field: 'anniversary2',
label: '提醒日期2', label: '提醒日期2',
component: 'DatePicker', component: 'DatePicker',
colProps: { span: 12 }, colProps: { span: 8 },
defaultValue: '', defaultValue: '',
componentProps: { componentProps: {
showTime: false, showTime: false,
@ -451,16 +306,72 @@ export const formSchema: FormSchema[] = [
field: 'anniversaryNote1', field: 'anniversaryNote1',
label: '提醒备注1', label: '提醒备注1',
component: 'Input', component: 'Input',
colProps: { span: 12 }, colProps: { span: 8 },
}, },
{ {
field: 'anniversaryNote2', field: 'anniversaryNote2',
label: '提醒备注2', label: '提醒备注2',
component: 'Input', component: 'Input',
colProps: { span: 12 }, colProps: { span: 8 },
}, },
// {
// field: 'isOperator',
// label: '是否为操作',
// component: 'Switch',
// colProps: { span: 12 },
// defaultValue: false,
// componentProps: {
// checkedChildren: '是',
// unCheckedChildren: '否',
// },
// },
// {
// field: 'isFinancialStaff',
// label: '是否为财务',
// component: 'Switch',
// colProps: { span: 12 },
// defaultValue: false,
// componentProps: {
// checkedChildren: '是',
// unCheckedChildren: '否',
// },
// },
// {
// field: 'isSaleMan',
// label: '是否为销售',
// component: 'Switch',
// colProps: { span: 12 },
// defaultValue: false,
// componentProps: {
// checkedChildren: '是',
// unCheckedChildren: '否',
// },
// },
// {
// field: 'isInsurance',
// label: '是否保险联系人',
// component: 'Switch',
// colProps: { span: 12 },
// defaultValue: false,
// componentProps: {
// checkedChildren: '是',
// unCheckedChildren: '否',
// },
// },
// {
// field: 'isCheckAccount',
// label: '是否对账联系人',
// component: 'Switch',
// colProps: { span: 12 },
// defaultValue: false,
// componentProps: {
// checkedChildren: '是',
// unCheckedChildren: '否',
// },
// },
{ {
label: '岗位', label: '岗位类型',
field: 'jobs', field: 'jobs',
component: 'ApiSelect', component: 'ApiSelect',
colProps: { span: 12 }, colProps: { span: 12 },
@ -488,7 +399,18 @@ export const formSchema: FormSchema[] = [
component: 'InputTextArea', component: 'InputTextArea',
colProps: { span: 12 }, colProps: { span: 12 },
componentProps: { componentProps: {
rows: 2, rows: 1,
},
},
{
field: 'isDefault',
label: '默认联系人',
component: 'Switch',
colProps: { span: 8 },
defaultValue: false,
componentProps: {
checkedChildren: '是',
unCheckedChildren: '否',
}, },
}, },
{ {
@ -496,7 +418,7 @@ export const formSchema: FormSchema[] = [
label: '是否可用', label: '是否可用',
component: 'Switch', component: 'Switch',
defaultValue: 0, defaultValue: 0,
colProps: { span: 12 }, colProps: { span: 8 },
componentProps: { componentProps: {
checkedChildren: '是', checkedChildren: '是',
checkedValue: 0, checkedValue: 0,
@ -504,4 +426,81 @@ export const formSchema: FormSchema[] = [
unCheckedValue: 1, unCheckedValue: 1,
}, },
}, },
// {
// field: 'isOther',
// label: '是否为其他',
// component: 'RadioButtonGroup',
// defaultValue: false,
// colProps: { span: 12 },
// componentProps: {
// options: [
// { label: '是', value: true },
// { label: '否', value: false },
// ],
// },
// },
// {
// field: 'codeName',
// label: '代码',
// component: 'Input',
// required: true,
// colProps: { span: 12 },
// componentProps: {
// maxlength: 6,
// },
// },
// {
// field: 'shortName',
// label: '简称',
// component: 'Input',
// required: true,
// colProps: { span: 12 },
// },
// {
// field: 'fax',
// label: '传真',
// component: 'Input',
// colProps: { span: 12 },
// defaultValue: 0,
// },
// {
// label: '船公司名称',
// field: 'carrier',
// component: 'Input',
// show: false,
// },
// {
// label: '船公司',
// field: 'carrierId',
// labelSlot: 'carrierId',
// component: 'ApiSelect',
// required: false,
// dynamicDisabled: false,
// colProps: { span: 12 },
// componentProps: ({ formModel }) => {
// return {
// allowClear: true,
// showSearch: true,
// api: () => {
// return new Promise((resolve) => {
// const arr = getOptions('carrier')
// resolve(arr)
// })
// },
// labelField: 'name',
// showName: 'shortName',
// valueField: 'id',
// filterOption: (input: string, option: any) => {
// return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
// },
// onChange: (e, obj) => {
// if (obj) {
// formModel.carrier = obj.label
// } else {
// formModel.carrier = ''
// }
// },
// }
// },
// },
] ]

@ -201,7 +201,7 @@ export const formSchema: FormSchema[] = [
label: '业务类型', label: '业务类型',
required: true, required: true,
component: 'Select', component: 'Select',
colProps: { span: 12 }, colProps: { span: 8 },
defaultValue: '1', defaultValue: '1',
componentProps: { componentProps: {
options: ListData.businessType, options: ListData.businessType,
@ -216,7 +216,7 @@ export const formSchema: FormSchema[] = [
field: 'saleId', field: 'saleId',
label: '揽货人', label: '揽货人',
component: 'Select', component: 'Select',
colProps: { span: 12 }, colProps: { span: 8 },
defaultValue: '', defaultValue: '',
componentProps: { componentProps: {
options: SaleUserList, options: SaleUserList,
@ -231,7 +231,7 @@ export const formSchema: FormSchema[] = [
field: 'sourceId', field: 'sourceId',
label: '业务来源', label: '业务来源',
component: 'Select', component: 'Select',
colProps: { span: 12 }, colProps: { span: 8 },
defaultValue: '', defaultValue: '',
componentProps: { componentProps: {
options: ClientSourceList, options: ClientSourceList,
@ -246,7 +246,7 @@ export const formSchema: FormSchema[] = [
field: 'beginDate', field: 'beginDate',
label: '合同生效日期', label: '合同生效日期',
component: 'DatePicker', component: 'DatePicker',
colProps: { span: 12 }, colProps: { span: 8 },
defaultValue: '', defaultValue: '',
componentProps: { componentProps: {
showTime: false, showTime: false,
@ -257,19 +257,18 @@ export const formSchema: FormSchema[] = [
field: 'endDate', field: 'endDate',
label: '合同结束日期', label: '合同结束日期',
component: 'DatePicker', component: 'DatePicker',
colProps: { span: 12 }, colProps: { span: 8 },
defaultValue: '', defaultValue: '',
componentProps: { componentProps: {
showTime: false, showTime: false,
style: 'width:100%', style: 'width:100%',
}, },
}, },
{ {
field: 'accountStartDate', field: 'accountStartDate',
label: '账期起算标准', label: '账期起算标准',
component: 'Select', component: 'Select',
colProps: { span: 12 }, colProps: { span: 8 },
defaultValue: '', defaultValue: '',
componentProps: { componentProps: {
options: accountStartDateList, options: accountStartDateList,
@ -280,59 +279,12 @@ export const formSchema: FormSchema[] = [
}, },
}, },
}, },
{
field: 'allowAmount',
label: '信用额度',
required: true,
component: 'InputNumber',
colProps: { span: 12 },
defaultValue: 0,
},
{
field: 'commissionRate',
label: '运杂费比例',
component: 'InputNumber',
colProps: { span: 12 },
defaultValue: '',
},
{
field: 'note',
label: '备注',
component: 'Input',
colProps: { span: 24 },
componentProps: {
rows: 2,
},
},
{
field: 'isSpecial',
label: '特批放单客户',
component: 'Switch',
colProps: { span: 12 },
componentProps: {
checkedChildren: '是',
unCheckedChildren: '否',
},
},
{
field: 'status',
label: '是否可用',
component: 'Switch',
defaultValue: 0,
colProps: { span: 12 },
componentProps: {
checkedChildren: '是',
checkedValue: 0,
unCheckedChildren: '否',
unCheckedValue: 1,
},
},
{ {
field: 'accountType', field: 'accountType',
label: '账期', label: '账期',
required: true, required: true,
component: 'Select', component: 'Select',
colProps: { span: 12 }, colProps: { span: 8 },
defaultValue: '', defaultValue: '',
componentProps: ({ formModel }) => { componentProps: ({ formModel }) => {
return { return {
@ -351,11 +303,28 @@ export const formSchema: FormSchema[] = [
} }
}, },
}, },
{
label: '',
field: 'Space1',
component: 'Space',
defaultValue: '',
ifShow: ({ values }) => {
return RaccountTypeLabel(values) == '' ||
RaccountTypeLabel(values) == '三月结' ||
RaccountTypeLabel(values) == '旬结' ||
RaccountTypeLabel(values) == '票结'
? true
: false
},
colProps: {
span: 16,
},
},
{ {
field: 'accountMonth', field: 'accountMonth',
label: '间隔月份', label: '间隔月份',
component: 'InputNumber', component: 'InputNumber',
colProps: { span: 12 }, colProps: { span: 8 },
required: true, required: true,
ifShow: ({ values }) => { ifShow: ({ values }) => {
return RaccountTypeLabel(values) == '月结' ? true : false return RaccountTypeLabel(values) == '月结' ? true : false
@ -369,7 +338,7 @@ export const formSchema: FormSchema[] = [
field: 'accountDays', field: 'accountDays',
label: '账期日期', label: '账期日期',
component: 'InputNumber', component: 'InputNumber',
colProps: { span: 12 }, colProps: { span: 8 },
ifShow: ({ values }) => { ifShow: ({ values }) => {
return RaccountTypeLabel(values) == '月结' ? true : false return RaccountTypeLabel(values) == '月结' ? true : false
}, },
@ -383,7 +352,7 @@ export const formSchema: FormSchema[] = [
field: 'accountDays', field: 'accountDays',
label: '账期日期', label: '账期日期',
component: 'InputNumber', component: 'InputNumber',
colProps: { span: 12 }, colProps: { span: 8 },
required: true, required: true,
ifShow: ({ values }) => { ifShow: ({ values }) => {
return RaccountTypeLabel(values) == '约定天数' ? true : false return RaccountTypeLabel(values) == '约定天数' ? true : false
@ -394,11 +363,23 @@ export const formSchema: FormSchema[] = [
max: 31, max: 31,
}, },
}, },
{
label: '',
field: 'Space1',
component: 'Space',
defaultValue: '',
ifShow: ({ values }) => {
return RaccountTypeLabel(values) == '约定天数' ? true : false
},
colProps: {
span: 8,
},
},
{ {
field: 'accountFirstHalf', field: 'accountFirstHalf',
label: '上半月', label: '上半月',
component: 'InputNumber', component: 'InputNumber',
colProps: { span: 12 }, colProps: { span: 8 },
required: true, required: true,
ifShow: ({ values }) => { ifShow: ({ values }) => {
@ -414,7 +395,7 @@ export const formSchema: FormSchema[] = [
field: 'accountSecondHalf', field: 'accountSecondHalf',
label: '下半月', label: '下半月',
component: 'InputNumber', component: 'InputNumber',
colProps: { span: 12 }, colProps: { span: 8 },
required: true, required: true,
ifShow: ({ values }) => { ifShow: ({ values }) => {
return RaccountTypeLabel(values) == '半月结' ? true : false return RaccountTypeLabel(values) == '半月结' ? true : false
@ -425,4 +406,51 @@ export const formSchema: FormSchema[] = [
max: 31, max: 31,
}, },
}, },
{
field: 'allowAmount',
label: '信用额度',
required: true,
component: 'InputNumber',
colProps: { span: 8 },
defaultValue: 0,
},
{
field: 'commissionRate',
label: '运杂费比例',
component: 'InputNumber',
colProps: { span: 8 },
defaultValue: '',
},
{
field: 'note',
label: '备注',
component: 'Input',
colProps: { span: 8 },
componentProps: {
rows: 1,
},
},
{
field: 'isSpecial',
label: '特批放单客户',
component: 'Switch',
colProps: { span: 8 },
componentProps: {
checkedChildren: '是',
unCheckedChildren: '否',
},
},
{
field: 'status',
label: '是否可用',
component: 'Switch',
defaultValue: 0,
colProps: { span: 8 },
componentProps: {
checkedChildren: '是',
checkedValue: 0,
unCheckedChildren: '否',
unCheckedValue: 1,
},
},
] ]

@ -38,8 +38,8 @@
const res: API.DataResult = await GetFeeTemplateList(p) const res: API.DataResult = await GetFeeTemplateList(p)
// //
const dicts = await getDictOption('business_type') const dicts = await getDictOption('business_type')
res?.data.forEach(row => { res?.data.forEach((row) => {
dicts.forEach(item => { dicts.forEach((item) => {
if (item.value == row.opType) { if (item.value == row.opType) {
row.opTypeName = item.label row.opTypeName = item.label
} }

Loading…
Cancel
Save