Contract_Manage_Vue/src/views/contract/config/procurementContract.js
2025-10-16 14:53:58 +08:00

333 lines
8.3 KiB
JavaScript

// import { FormItemType } from "../../../components/HForm/enum";
// 模型类型增删改查接口配置
export const typeUrls = {
list: "/system/modelType/list",
add: "/system/modelType",
edit: "/system/modelType",
delete: "/system/modelType",
};
// 搜索栏配置
export const searchItems = [
{ label: "", prop: "keyword", placeholder: "媒体位置/乙方姓名/项目编号/项目名称", isExtend: false },
{ label: "客户名称", prop: "clientId", placeholder: "请选择", type: 'selector', isExtend: true, available: false },
{ label: "媒介部门", prop: "mediaDeptId", placeholder: "请选择", type: 'selector', isExtend: true, available: false },
{ label: "城市", prop: "cityId", placeholder: "请选择", type: 'multiSelector', isExtend: true, available: false},
{ label: "媒体类型", prop: "mediaId", placeholder: "请选择", type: 'selector', isExtend: true, available: false},
{ label: "时间范围", prop: "timesRange", placeholder: "请选择", isExtend: true, available: false },
{ label: "甲方", prop: "firstId", placeholder: "请选择", isExtend: true, available: false },
// { label: "乙方", prop: "secondName", placeholder: "请选择", isExtend: true, available: false },
{ label: "是否逾期", prop: "isOverdue", placeholder: "请选择", type: 'selector', isExtend: true, available: false },
];
// 模型增删改查接口配置
export const tableUrls = {
list: "/system/model/list",
add: "/system/model",
edit: "/system/model",
delete: "/system/model",
import: "/system/model/import",
export: "/system/model/export",
};
// 模型表格列配置
export const tableColumns = [
{
title: "序号",
dataIndex: "serial",
isShowCheck: true,
fixed: "left",
width: [55, 55],
customRender: (_, __, index) => {
console.log(
"%c [ index ]-43",
"font-size:13px; background:pink; color:#bf2c9f;",
index
);
return index;
},
},
{
title: "项目合同基本信息",
dataIndex: "projContractBaseInfo",
align: "center",
isShowCheck: false,
children: [
// { title: "序号", customRender: (_, __, index) => index + 1, isShowCheck: true, width: 49 },
// { title: "序号", dataIndex: "serial", isShowCheck: true, fixed: 'left', width: [49, 49] },
{
title: "项目编号",
dataIndex: "projNumber",
dataIndexType: "ordinary",
align: "center",
isCheck: false,
isWarp: true,
width: [130, 150],
},
{
title: "项目名称",
dataIndex: "projName",
dataIndexType: "ordinary",
align: "center",
isCheck: false,
isWarp: true,
width: [190, 210],
},
{
title: "媒介部门",
dataIndex: "mediaDeptId",
dataIndexType: "ordinary",
align: "center",
isCheck: false,
width: [120, 140],
},
{
title: "合同编号",
dataIndex: "contractNumber",
dataIndexType: "ordinary",
align: "center",
isCheck: false,
isWarp: true,
width: [130, 150],
},
{
title: "客户名称",
dataIndex: "clientId",
dataIndexType: "ordinary",
align: "center",
isCheck: false,
width: [78, 102],
},
{
title: "城市",
dataIndex: "cityId",
dataIndexType: "media",
align: "center",
isCheck: false,
width: [190, 210],
},
{
title: "媒体类型",
dataIndex: "mediaId",
dataIndexType: "media",
align: "center",
isCheck: false,
width: [82, 102],
},
{
title: "媒体位置",
dataIndex: "mediaPosition",
dataIndexType: "media",
align: "center",
isCheck: false,
isWarp: true,
width: [190, 210],
},
{
title: "数量",
dataIndex: "accountNumber",
dataIndexType: "media",
align: "center",
isCheck: false,
width: [88, 108],
},
{
title: "发布频次",
dataIndex: "releaseFrequency",
dataIndexType: "media",
align: "center",
isCheck: false,
width: [120, 142],
},
{
title: "上刊时间",
dataIndex: "upTime",
dataIndexType: "media",
align: "right",
isCheck: false,
width: [112, 132],
},
{
title: "下刊时间",
dataIndex: "downTime",
dataIndexType: "media",
align: "right",
isCheck: false,
width: [112, 132],
},
{
title: "周期",
dataIndex: "period",
dataIndexType: "media",
isCheck: false,
align: "center",
width: [58, 78],
},
],
},
{
title: "发布金额",
dataIndex: "invoiceAmount",
align: "center",
isShowCheck: false,
children: [
{
title: "刊例价",
dataIndex: "printPrice",
dataIndexType: "media",
align: "right",
isCheck: false,
width: [130, 150],
},
{
title: "折扣",
dataIndex: "discount",
dataIndexType: "media",
align: "right",
isCheck: false,
width: [78, 102],
},
{
title: "媒体费",
dataIndex: "mediaFee",
dataIndexType: "media",
align: "right",
isCheck: false,
width: [190, 210],
},
{
title: "制作费",
dataIndex: "productFee",
dataIndexType: "media",
align: "right",
isCheck: false,
width: [190, 210],
},
],
},
{
title: "",
dataIndex: "secondary",
align: "center",
isShowCheck: false,
children: [
{
title: "甲方名称",
dataIndex: "firstName",
dataIndexType: "ordinary",
align: "center",
isCheck: false,
width: [172, 192],
},
{
title: "乙方名称",
dataIndex: "secondName",
dataIndexType: "ordinary",
align: "center",
isCheck: false,
width: [172, 192],
},
{
title: "合同金额",
dataIndex: "contractMoney",
dataIndexType: "ordinary",
align: "right",
isCheck: false,
type: "money",
width: [190, 210],
},
{
title: "发票类型",
dataIndex: "invoiceId",
dataIndexType: "ordinary",
align: "center",
isCheck: false,
width: [142, 162],
},
{
title: "税率",
dataIndex: "taxPoints",
dataIndexType: "ordinary",
align: "center",
isCheck: false,
width: [102, 122],
},
{
title: "发票内容",
dataIndex: "invoiceContent",
dataIndexType: "ordinary",
align: "center",
isCheck: false,
width: [182, 202],
},
{
title: "签订日期",
dataIndex: "signTime",
dataIndexType: "ordinary",
align: "right",
isCheck: false,
width: [112, 132],
},
{
title: "合同附件",
dataIndex: "contractAccess",
dataIndexType: "ordinary",
align: "center",
isCheck: false,
width: [78, 102],
},
{
title: "上刊",
dataIndex: "upPrint",
dataIndexType: "ordinary",
align: "center",
isCheck: false,
width: [78, 102],
},
{
title: "换刊",
dataIndex: "exchangePrint",
dataIndexType: "ordinary",
align: "center",
isCheck: false,
width: [78, 102],
},
{
title: "下刊",
dataIndex: "nextPrint",
dataIndexType: "ordinary",
align: "center",
isCheck: false,
width: [78, 102],
},
{
title: "媒体链条附件",
dataIndex: "mediaLink",
dataIndexType: "ordinary",
align: "center",
isCheck: false,
width: [102, 132],
},
{
title: "状态",
dataIndex: "state",
dataIndexType: "ordinary",
align: "center",
isCheck: false,
width: [58, 78],
},
],
},
{
title: "操作",
dataIndex: "action",
isShowCheck: true,
isCheck: false,
align: "center",
fixed: "right",
width: 48,
},
];