123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- import CONFIG from "@/config";
- export default function useColumns() {
- const TableColumns = [
- {
- item: { width:100,key: "puOrgName", title: "采购组织" },
- attr: {},
- },
- { item: { width:100,key: "materialName", title: "物料" }, attr: {} },
- { item: { width:100,key: "materialCode", title: "物料编码" }, attr: {} },
- { item: { width:100,key: "materialClassifyName", title: "物料一级分类" }, attr: {} },
- { item: { width:100,key: "manufacturerName", title: "生产厂家名称" }, attr: {} },
- { item: { width:100,key: "model", title: "物料型号" }, attr: {} },
- { item: { width:100,key: "specification", title: "物料规格" }, attr: {} },
- {
- item: { width:100,key: "supplierName", title: "供应商名称" },
- attr: {},
- },
- { item: { width:100,key: "customerName", title: "客户" }, attr: {} },
- {
- item: { width:100,key: "taxPrice", title: "主含税单价" },
- attr: {
- is: "el-computed-input-v2",
- formatter: (prop) => {
- return (prop * 1);
- },
- },
- },
- { item: { width:100,key: "unitName", title: "主单位" }, attr: {} },
- { item: { width:100,key: "effectiveDate", title: "价格生效日期" }, attr: {} },
- { item: { width:100,key: "endDate", title: "价格失效日期" }, attr: {} },
- { item: { width:100,key: "buyerName", title: "采购员" }, attr: {} },
- { item: { width:100,key: "source", title: "来源单据" }, attr: {
- is: "el-dict-tag",
- dictName: "price_source",
- } },
- {
- item: { width:100,key: "convertRate", title: "换算率" },
- attr: {
- is: "el-computed-input-v2",
- formatter: (prop) => {
- return (prop * 1);
- },
- },
- },
- {
- item: { width:100,key: "status", title: "有效状态" },
- attr: { is: "el-dict-tag", dictName: "is_effective" },
- },
- {
- item: { width:100,key: "enableStatus", title: "启用状态" },
- attr: { is: "el-dict-tag", dictName: "is_effective" },
- },
- {
- item: { width:100,key: "materialStatus", title: "物料启用状态" },
- attr: { is: "el-dict-tag", dictName: "is_effective" },
- },
- {
- item: { width:100,key: "isDistribution", title: "配送价" },
- attr: { is: "el-dict-tag", dictName: "is_effective" },
- },
- {
- item: { width:100,key: "priceType", title: "价格类型" },
- attr: { is: "el-dict-tag", dictName: "sys_price_type" },
- },
- { item: { width:100,key: "expiryEarly", title: "效期预警" }, attr: {} },
- { item: { width:100,key: "priority", title: "含税/无税优先" }, attr: {} },
- { item: { width:100,key: "createByName", title: "创建人" }, attr: {} },
- { item: { width:100,key: "updateByName", title: "更新人名称" }, attr: {} },
- ].map(({ item, attr }) => ({
- attr,
- item: { ...item, hidden: true, fixed: false },
- }));
- return { TableColumns };
- }
|