123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- import CONFIG from "@/config";
- export default function useColumns() {
- const TableColumns = [
- {
- item: { width:100,key: "priceCode", title: "价格编码" },
- attr: {},
- },
- {
- item: { width:100,key: "supplierName", title: "供应商" },
- attr: {},
- },
- {
- item: { width:100,key: "puOrgName", title: "采购组织" },
- attr: {},
- },
- {
- item: { width:100,key: "currencyName", title: "币种" },
- attr: {},
- },
- {
- item: { width:100,key: "explainStr", title: "价格合理性说明" },
- attr: {},
- },
- {
- item: { width:100,key: "buyerName", title: "采购员" },
- attr: {},
- },
- {
- item: { width:100,key: "puDeptName", title: "采购部门" },
- attr: {},
- },
- {
- item: { width:100,key: "createByName", title: "创建人" },
- attr: {},
- },
- {
- item: { width:100,key: "source", title: "来源单据号" },
- attr: {},
- },
- {
- item: { width:100,key: "isEffective", title: "是否已推价格" },
- attr: {
- is: "el-dict-tag",
- dictName: "is_effective",
- },
- },
- {
- item: { width:100,key: "effectiveDate", title: "生效日期" },
- attr: {},
- },
- {
- item: { width:100,key: "file", title: "附件" },
- attr: { is: "el-file-preview" },
- },
- {
- item: { width:100,key: "sourceType", title: "来源单据类型" },
- attr: {},
- },
- {
- item: { width:100,key: "status", title: "单据状态" },
- attr: {
- is: "el-dict-tag",
- dictName: "sys_status",
- },
- },
- ];
- const TabColumns = [
- {
- item: {
- title: "物料信息表",
- width:100,key: "priceApplyItems",
- },
- attr: {
- value: [],
- },
- TableColumns: [
- {
- item: { width:100,key: "materialName", title: "物料名称" },
- attr: {},
- },
- { item: { width:100,key: "materialCode", title: "物料编码" }, attr: {} },
- { item: { width:100,key: "manufacturerName", title: "生产厂家" }, attr: {} },
- { item: { width:100,key: "specification", title: "规格" }, attr: {} },
- { item: { width:100,key: "model", title: "型号" }, attr: {} },
- {
- item: { width:100,key: "unitName", title: "单位" },
- attr: {},
- },
- {
- item: { width:100,key: "puUnitName", title: "采购单位" },
- attr: {},
- },
- {
- item: { width:100,key: "conversionRate", title: "采购换算率" },
- attr: {
- is: "el-computed-input-v2",
- formatter: (prop) => {
- return (prop * 1).toFixed(CONFIG.precision);
- },
- },
- },
- {
- item: { width:100,key: "tax", title: "税率%" },
- attr: {
- is: "el-computed-input-v2",
- formatter: (prop) => {
- return (prop * 1).toFixed(CONFIG.precision);
- },
- },
- },
- {
- item: { width:100,key: "taxPrice", title: "含税单价" },
- attr: {
- is: "el-computed-input-v2",
- formatter: (prop) => {
- return (prop * 1).toFixed(CONFIG.precision);
- },
- },
- },
- {
- item: { width:100,key: "price", title: "无税单价" },
- attr: {
- is: "el-computed-input-v2",
- formatter: (prop) => {
- return (prop * 1).toFixed(CONFIG.precision);
- },
- },
- },
- {
- item: { width:100,key: "currencyName", title: "币种" },
- attr: {},
- },
- {
- item: { width:100,key: "periodBegin", title: "价格有效期(起)" },
- attr: {},
- },
- {
- item: { width:100,key: "periodEnd", title: "价格有效期(止)" },
- attr: {},
- },
- {
- item: { width:100,key: "customerName", title: "客户" },
- attr: {},
- },
- { item: { width:100,key: "recentlyPrice", title: "最近价格" }, attr: {} },
- {
- item: { width:100,key: "isApprovalFirst", title: "首次报批" },
- attr: {
- is: "el-dict-tag",
- dictName: "is_effective",
- },
- },
- {
- item: { width:100,key: "isPriceAdjustment", 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: "isDistributionPrice", title: "配送价" },
- attr: {
- is: "el-dict-tag",
- dictName: "is_effective",
- },
- },
- { item: { width:100,key: "createByName", title: "创建人名称" }, attr: {} },
- { item: { width:100,key: "updateByName", title: "更新人名称" }, attr: {} },
- ],
- },
- ];
- return { TableColumns, TabColumns };
- }
|