🔀 合并主干 master 到 dev
This commit is contained in:
@@ -170,6 +170,7 @@ export const paymentApplicationOption = ({
|
||||
{ label: '当前处理人', prop: 'currentProcessor', minWidth: 120, formatter: textFormatter },
|
||||
{ label: '金蝶单据号', prop: 'kingdeeBillNo', minWidth: 130, formatter: textFormatter },
|
||||
{ label: '金蝶单据状态', prop: 'kingdeeStatusName', slot: true, minWidth: 130 },
|
||||
{ label: '已指定应付', prop: 'kingdeeAssignStatus', slot: true, minWidth: 120 },
|
||||
{ label: '金蝶锁状态', prop: 'kingdeeLockStatus', slot: true, minWidth: 150 },
|
||||
{ label: '附件同步', prop: 'attachmentSyncStatusName', minWidth: 100, formatter: textFormatter },
|
||||
],
|
||||
|
||||
@@ -89,24 +89,28 @@ const COLUMN_EXTRA = {
|
||||
},
|
||||
kingdeeLockStatus: { slot: true },
|
||||
kingdeeWriteOffStatus: { slot: true },
|
||||
kingdeeAssignStatus: { slot: true },
|
||||
createTime: { width: 180 },
|
||||
};
|
||||
|
||||
const buildTableColumns = () =>
|
||||
formalSettlementTableColumns.map(column => {
|
||||
const extra = { ...(COLUMN_EXTRA[column.prop] || {}) };
|
||||
if (column.money) {
|
||||
extra.formatter = moneyFormatter;
|
||||
extra.align = 'right';
|
||||
}
|
||||
// link / status 标记的列统一走单元格插槽
|
||||
if (column.link || column.status) extra.slot = true;
|
||||
// 插槽列不挂兜底 formatter:avue 中 formatter 会覆盖单元格插槽渲染
|
||||
if (!extra.slot && !extra.formatter) extra.formatter = textFormatter;
|
||||
return { ...column, ...extra };
|
||||
});
|
||||
// 已指定应付仅付款结算单(先票后款 A302-6)有,收款结算单不展示
|
||||
const buildTableColumns = settlementType =>
|
||||
formalSettlementTableColumns
|
||||
.filter(column => !(settlementType === 'receivable' && column.prop === 'kingdeeAssignStatus'))
|
||||
.map(column => {
|
||||
const extra = { ...(COLUMN_EXTRA[column.prop] || {}) };
|
||||
if (column.money) {
|
||||
extra.formatter = moneyFormatter;
|
||||
extra.align = 'right';
|
||||
}
|
||||
// link / status 标记的列统一走单元格插槽
|
||||
if (column.link || column.status) extra.slot = true;
|
||||
// 插槽列不挂兜底 formatter:avue 中 formatter 会覆盖单元格插槽渲染
|
||||
if (!extra.slot && !extra.formatter) extra.formatter = textFormatter;
|
||||
return { ...column, ...extra };
|
||||
});
|
||||
|
||||
export const formalSettlementOption = () => ({
|
||||
export const formalSettlementOption = (settlementType = '') => ({
|
||||
height: 'auto',
|
||||
calcHeight: 32,
|
||||
tip: false,
|
||||
@@ -114,7 +118,7 @@ export const formalSettlementOption = () => ({
|
||||
emptyBtnText: '重置',
|
||||
searchShow: true,
|
||||
searchIcon: true,
|
||||
searchLabelWidth: 88,
|
||||
searchLabelWidth: 100,
|
||||
// 查询/重置紧跟首行 4 个条件(4×5 + 菜单 4 = 24),不再独占下一整行
|
||||
searchMenuSpan: 4,
|
||||
searchIndex: 4,
|
||||
@@ -168,7 +172,7 @@ export const formalSettlementOption = () => ({
|
||||
type: 'daterange',
|
||||
}),
|
||||
// ---------- 表格列(部分兼搜索项) ----------
|
||||
...buildTableColumns(),
|
||||
...buildTableColumns(settlementType),
|
||||
],
|
||||
});
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ export const formalSettlementTableColumns = [
|
||||
{ label: '金蝶单据状态', prop: 'kingdeeSyncStatus', minWidth: 135 },
|
||||
{ label: '金蝶冲销状态', prop: 'kingdeeWriteOffStatus', minWidth: 135 },
|
||||
{ label: '金蝶锁状态', prop: 'kingdeeLockStatus', minWidth: 150 },
|
||||
{ label: '已指定应付', prop: 'kingdeeAssignStatus', minWidth: 120 },
|
||||
{ label: '附件同步', prop: 'attachmentSyncStatusName', minWidth: 100 },
|
||||
{ label: '创建人', prop: 'createUserName', minWidth: 110 },
|
||||
{ label: '创建时间', prop: 'createTime', minWidth: 170 },
|
||||
|
||||
@@ -8,8 +8,20 @@ export const preSettlementFormFields = [
|
||||
{ label: '合同名称', prop: 'contractId', type: 'contract', required: true },
|
||||
{ label: '合同编号', prop: 'contractNo', readonly: true },
|
||||
{ label: '项目名称', prop: 'projectName', readonly: true },
|
||||
{ label: '收款方', prop: 'payeeName', readonly: true },
|
||||
{ label: '付款方', prop: 'payerName', readonly: true },
|
||||
{
|
||||
label: '收款方',
|
||||
prop: 'payeeName',
|
||||
type: 'select',
|
||||
optionsKey: 'payeeOptions',
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
label: '付款方',
|
||||
prop: 'payerName',
|
||||
type: 'select',
|
||||
optionsKey: 'payerOptions',
|
||||
required: true,
|
||||
},
|
||||
{ label: '结算类型', prop: 'settlementType', readonly: true },
|
||||
{ label: '结算金额', prop: 'settlementAmount', readonly: true, money: true },
|
||||
{ label: '业务模式', prop: 'businessModel', type: 'select', optionsKey: 'businessModelOptions' },
|
||||
@@ -24,6 +36,8 @@ export const preSettlementFormFields = [
|
||||
|
||||
export const preSettlementFormRules = {
|
||||
contractId: [{ required: true, message: '请选择合同名称', trigger: 'change' }],
|
||||
payeeName: [{ required: true, message: '请选择收款方', trigger: 'change' }],
|
||||
payerName: [{ required: true, message: '请选择付款方', trigger: 'change' }],
|
||||
exchangeRateDate: [
|
||||
{
|
||||
validator: (_rule, value, callback, source) => {
|
||||
|
||||
Reference in New Issue
Block a user