|
@@ -1,176 +1,109 @@
|
|
|
export const TableColumns = [
|
|
|
{
|
|
|
- key: "priceName",
|
|
|
- title: "价格名称",
|
|
|
- inputType: "Input",
|
|
|
- value: "价格申报单",
|
|
|
+ item: { key: "priceName", title: "价格名称" },
|
|
|
+ attr: { component: "el-input", value: "价格申报单" },
|
|
|
},
|
|
|
{
|
|
|
- key: "priceCode",
|
|
|
- title: "价格编码",
|
|
|
- inputType: "Input",
|
|
|
- disabled: true,
|
|
|
- readonly: true,
|
|
|
+ item: { key: "priceCode", title: "价格编码" },
|
|
|
+ attr: { component: "el-input", disabled: true, readonly: true },
|
|
|
},
|
|
|
{
|
|
|
- key: "supplierName",
|
|
|
- title: "供应商",
|
|
|
- inputType: "PopoverSelect",
|
|
|
- referName: "SUPPLIER_PARAM",
|
|
|
- valueKey: "name",
|
|
|
- dataMapping: {
|
|
|
- supplier: "id",
|
|
|
- supplierCode: "code",
|
|
|
- supplierName: "name",
|
|
|
+ item: { key: "supplierName", title: "供应商", require: true },
|
|
|
+ attr: {
|
|
|
+ component: "el-popover-select-v2",
|
|
|
+ valueKey: "name",
|
|
|
+ referName: "SUPPLIER_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ supplier: "id",
|
|
|
+ supplierCode: "code",
|
|
|
+ supplierName: "name",
|
|
|
+ },
|
|
|
},
|
|
|
- require: true,
|
|
|
},
|
|
|
- // {
|
|
|
- // key: "supplier",
|
|
|
- // title: "供应商编码",
|
|
|
- // inputType: "Input",
|
|
|
- // disabled: true,
|
|
|
- // readonly: true,
|
|
|
- // },
|
|
|
{
|
|
|
- key: "puOrgName",
|
|
|
- title: "采购组织",
|
|
|
- inputType: "PopoverSelect",
|
|
|
- referName: "ORG_PARAM",
|
|
|
- valueKey: "name",
|
|
|
- dataMapping: {
|
|
|
- puOrg: "id",
|
|
|
- puOrgCode: "code",
|
|
|
- puOrgName: "name",
|
|
|
+ item: { key: "puOrgName", title: "采购组织", require: true },
|
|
|
+ attr: {
|
|
|
+ component: "el-popover-select-v2",
|
|
|
+ valueKey: "name",
|
|
|
+ referName: "ORG_PARAM",
|
|
|
+ dataMapping: { puOrg: "id", puOrgCode: "code", puOrgName: "name" },
|
|
|
},
|
|
|
- require: true,
|
|
|
},
|
|
|
- // {
|
|
|
- // key: "puOrg",
|
|
|
- // title: "采购组织编码",
|
|
|
- // inputType: "Input",
|
|
|
- // disabled: true,
|
|
|
- // readonly: true,
|
|
|
- // },
|
|
|
{
|
|
|
- key: "currencyName",
|
|
|
- title: "币种",
|
|
|
- inputType: "PopoverSelect",
|
|
|
- referName: "CURRENCY_PARAM",
|
|
|
- dataMapping: {
|
|
|
- currency: "id",
|
|
|
- currencyCode: "code",
|
|
|
- currencyName: "name",
|
|
|
+ item: { key: "currencyName", title: "币种", require: true },
|
|
|
+ attr: {
|
|
|
+ component: "el-popover-select-v2",
|
|
|
+ valueKey: "name",
|
|
|
+ referName: "CURRENCY_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ currency: "id",
|
|
|
+ currencyCode: "code",
|
|
|
+ currencyName: "name",
|
|
|
+ },
|
|
|
},
|
|
|
- require: true,
|
|
|
},
|
|
|
- // {
|
|
|
- // key: "currency",
|
|
|
- // title: "币种编码",
|
|
|
- // inputType: "Input",
|
|
|
- // disabled: true,
|
|
|
- // readonly: true,
|
|
|
- // },
|
|
|
{
|
|
|
- key: "explainStr",
|
|
|
- title: "价格合理性说明",
|
|
|
- inputType: "Input",
|
|
|
- require: true,
|
|
|
+ item: { key: "explainStr", title: "价格合理性说明", require: true },
|
|
|
+ attr: { component: "el-input" },
|
|
|
},
|
|
|
{
|
|
|
- key: "buyerName",
|
|
|
- title: "采购员",
|
|
|
- inputType: "PopoverSelect",
|
|
|
- referName: "CONTACTS_PARAM",
|
|
|
- dataMapping: {
|
|
|
- buyer: "code",
|
|
|
- buyerName: "name",
|
|
|
+ item: { key: "buyerName", title: "采购员", require: true },
|
|
|
+ attr: {
|
|
|
+ component: "el-popover-select-v2",
|
|
|
+ valueKey: "name",
|
|
|
+ referName: "CONTACTS_PARAM",
|
|
|
+ dataMapping: { buyer: "code", buyerName: "name" },
|
|
|
},
|
|
|
- require: true,
|
|
|
},
|
|
|
- // {
|
|
|
- // key: "buyer",
|
|
|
- // title: "采购员编码",
|
|
|
- // inputType: "Input",
|
|
|
- // disabled: true,
|
|
|
- // readonly: true,
|
|
|
- // },
|
|
|
{
|
|
|
- key: "puDeptName",
|
|
|
- title: "采购部门",
|
|
|
- inputType: "PopoverSelect",
|
|
|
- referName: "DEPT_PARAM",
|
|
|
- dataMapping: {
|
|
|
- puDept: "id",
|
|
|
- puDeptCode: "code",
|
|
|
- puDeptName: "name",
|
|
|
+ item: { key: "puDeptName", title: "采购部门", require: true },
|
|
|
+ attr: {
|
|
|
+ component: "el-popover-select-v2",
|
|
|
+ valueKey: "name",
|
|
|
+ referName: "DEPT_PARAM",
|
|
|
+ dataMapping: { puDept: "id", puDeptCode: "code", puDeptName: "name" },
|
|
|
},
|
|
|
- require: true,
|
|
|
},
|
|
|
- // {
|
|
|
- // key: "puDept",
|
|
|
- // title: "采购部门编码",
|
|
|
- // inputType: "Input",
|
|
|
- // disabled: true,
|
|
|
- // readonly: true,
|
|
|
- // },
|
|
|
{
|
|
|
- key: "createByName",
|
|
|
- title: "创建人",
|
|
|
- inputType: "Input",
|
|
|
- disabled: true,
|
|
|
- readonly: true,
|
|
|
+ item: { key: "createByName", title: "创建人" },
|
|
|
+ attr: { component: "el-input", disabled: true, readonly: true },
|
|
|
},
|
|
|
{
|
|
|
- key: "source",
|
|
|
- title: "来源单据号",
|
|
|
- inputType: "Input",
|
|
|
- disabled: true,
|
|
|
- readonly: true,
|
|
|
+ item: { key: "source", title: "来源单据号" },
|
|
|
+ attr: { component: "el-input", disabled: true, readonly: true },
|
|
|
},
|
|
|
{
|
|
|
- key: "id",
|
|
|
- title: "来源单据id",
|
|
|
- inputType: "Input",
|
|
|
- disabled: true,
|
|
|
- readonly: true,
|
|
|
+ item: { key: "id", title: "来源单据id" },
|
|
|
+ attr: { component: "el-input", disabled: true, readonly: true },
|
|
|
},
|
|
|
{
|
|
|
- key: "isEffective",
|
|
|
- title: "是否已推价格",
|
|
|
- inputType: "Select",
|
|
|
- referName: "is_effective",
|
|
|
+ item: { key: "isEffective", title: "是否已推价格" },
|
|
|
+ attr: {
|
|
|
+ component: "el-select",
|
|
|
+ dictName: "is_effective",
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
- key: "effectiveDate",
|
|
|
- title: "生效日期",
|
|
|
- inputType: "Input",
|
|
|
- disabled: true,
|
|
|
- readonly: true,
|
|
|
+ item: { key: "effectiveDate", title: "生效日期" },
|
|
|
+ attr: { component: "el-input", disabled: true, readonly: true },
|
|
|
},
|
|
|
{
|
|
|
- key: "file",
|
|
|
- title: "附件",
|
|
|
- inputType: "Upload",
|
|
|
- span: 24,
|
|
|
- require: true,
|
|
|
- value: [],
|
|
|
+ item: { key: "file", title: "附件", require: true, span: 24 },
|
|
|
+ attr: { component: "file-upload" },
|
|
|
},
|
|
|
{
|
|
|
- key: "sourceType",
|
|
|
- title: "来源单据类型",
|
|
|
- inputType: "Input",
|
|
|
- disabled: true,
|
|
|
- readonly: true,
|
|
|
+ item: { key: "sourceType", title: "来源单据类型" },
|
|
|
+ attr: { component: "el-input", disabled: true, readonly: true },
|
|
|
},
|
|
|
{
|
|
|
- key: "status",
|
|
|
- title: "单据状态",
|
|
|
- inputType: "Select",
|
|
|
- referName: "sys_status",
|
|
|
- disabled: true,
|
|
|
- readonly: true,
|
|
|
- value: "0",
|
|
|
+ item: { key: "status", title: "单据状态" },
|
|
|
+ attr: {
|
|
|
+ component: "el-select",
|
|
|
+ dictName: "sys_status",
|
|
|
+ disabled: true,
|
|
|
+ readonly: true,
|
|
|
+ value: "0",
|
|
|
+ },
|
|
|
},
|
|
|
];
|
|
|
|
|
@@ -180,223 +113,163 @@ export const TabColumns = [
|
|
|
key: "priceApplyItems",
|
|
|
tableColumns: [
|
|
|
{
|
|
|
- title: "物料名称",
|
|
|
- key: "materialName",
|
|
|
- inputType: "PopoverSelect",
|
|
|
- width: 300,
|
|
|
- referName: "MATERIAL_PARAM",
|
|
|
- dataMapping: {
|
|
|
- model: "model",
|
|
|
- material: "id",
|
|
|
- materialCode: "code",
|
|
|
- materialName: "name",
|
|
|
- unitName: "unitIdName",
|
|
|
- puUnitName: "unitIdName",
|
|
|
- specification: "specification",
|
|
|
- manufacturer: "manufacturerId",
|
|
|
- manufacturerName: "manufacturerIdName",
|
|
|
+ item: { key: "materialName", title: "物料名称", require: true },
|
|
|
+ attr: {
|
|
|
+ component: "el-popover-select-v2",
|
|
|
+ valueKey: "name",
|
|
|
+ referName: "MATERIAL_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ model: "model",
|
|
|
+ material: "id",
|
|
|
+ materialCode: "code",
|
|
|
+ materialName: "name",
|
|
|
+ unitName: "unitIdName",
|
|
|
+ puUnitName: "unitIdName",
|
|
|
+ specification: "specification",
|
|
|
+ manufacturer: "manufacturerId",
|
|
|
+ manufacturerName: "manufacturerIdName",
|
|
|
+ },
|
|
|
},
|
|
|
- require: true,
|
|
|
- },
|
|
|
- { title: "物料编码", key: "materialCode" },
|
|
|
- // { title: "物料ID", key: "material" },
|
|
|
- {
|
|
|
- title: "生产厂家",
|
|
|
- key: "manufacturerName",
|
|
|
},
|
|
|
- // {
|
|
|
- // title: "生产厂家编码",
|
|
|
- // key: "manufacturer",
|
|
|
- // },
|
|
|
+ { item: { key: "materialCode", title: "物料编码" }, attr: {} },
|
|
|
+ { item: { key: "manufacturerName", title: "生产厂家" }, attr: {} },
|
|
|
+ { item: { key: "specification", title: "规格" }, attr: {} },
|
|
|
+ { item: { key: "model", title: "型号" }, attr: {} },
|
|
|
{
|
|
|
- title: "规格",
|
|
|
- key: "specification",
|
|
|
- },
|
|
|
- {
|
|
|
- title: "型号",
|
|
|
- key: "model",
|
|
|
- },
|
|
|
- {
|
|
|
- title: "单位",
|
|
|
- key: "unitName",
|
|
|
- inputType: "PopoverSelect",
|
|
|
- width: 300,
|
|
|
- referName: "UNIT_PARAM",
|
|
|
- dataMapping: {
|
|
|
- unit: "id",
|
|
|
- unitCode: "code",
|
|
|
- unitName: "name",
|
|
|
+ item: { key: "unitName", title: "单位" },
|
|
|
+ attr: {
|
|
|
+ component: "el-popover-select-v2",
|
|
|
+ valueKey: "name",
|
|
|
+ referName: "UNIT_PARAM",
|
|
|
+ dataMapping: { unit: "id", unitCode: "code", unitName: "name" },
|
|
|
},
|
|
|
},
|
|
|
- // {
|
|
|
- // title: "单位编码",
|
|
|
- // key: "unitCode",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // title: "单位ID",
|
|
|
- // key: "unit",
|
|
|
- // },
|
|
|
{
|
|
|
- title: "采购单位",
|
|
|
- key: "puUnitName",
|
|
|
- inputType: "PopoverSelect",
|
|
|
- width: 300,
|
|
|
- referName: "UNIT_PARAM",
|
|
|
- dataMapping: {
|
|
|
- puUnit: "id",
|
|
|
- puUnitCode: "code",
|
|
|
- puUnitName: "name",
|
|
|
+ item: { key: "puUnitName", title: "采购单位" },
|
|
|
+ attr: {
|
|
|
+ component: "el-popover-select-v2",
|
|
|
+ valueKey: "name",
|
|
|
+ referName: "UNIT_PARAM",
|
|
|
+ dataMapping: { puUnit: "id", puUnitCode: "code", puUnitName: "name" },
|
|
|
},
|
|
|
},
|
|
|
- // {
|
|
|
- // title: "采购单位编码",
|
|
|
- // key: "puUnitCode",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // title: "采购单位ID",
|
|
|
- // key: "puUnit",
|
|
|
- // },
|
|
|
{
|
|
|
- title: "采购换算率",
|
|
|
- key: "conversionRate",
|
|
|
- inputType: "InputNumber",
|
|
|
- width: 300,
|
|
|
- require: true,
|
|
|
- formatter: (prop) => (prop ? (prop * 1).toFixed(6) : null),
|
|
|
- },
|
|
|
- {
|
|
|
- title: "税率%",
|
|
|
- key: "tax",
|
|
|
- inputType: "PopoverSelect",
|
|
|
- referName: "TAX_RATE_PARAM",
|
|
|
- dataMapping: {
|
|
|
- tax: "ntaxrate",
|
|
|
+ item: { key: "conversionRate", title: "采购换算率", require: true },
|
|
|
+ attr: {
|
|
|
+ component: "el-input-number",
|
|
|
+ precision: 6,
|
|
|
+ formatter: (prop) => (prop ? (prop * 1).toFixed(6) : null),
|
|
|
},
|
|
|
- width: 300,
|
|
|
- require: true,
|
|
|
- formatter: (prop) => (prop ? (prop * 1).toFixed(6) : null),
|
|
|
- },
|
|
|
- {
|
|
|
- title: "含税单价",
|
|
|
- key: "taxPrice",
|
|
|
- inputType: "InputNumber",
|
|
|
- width: 300,
|
|
|
- require: true,
|
|
|
- formatter: (prop) => (prop ? (prop * 1).toFixed(6) : null),
|
|
|
},
|
|
|
{
|
|
|
- title: "无税单价",
|
|
|
- key: "price",
|
|
|
- inputType: "ComputedInput",
|
|
|
- width: 300,
|
|
|
- computed: (prop) => {
|
|
|
- const { tax, taxPrice } = prop;
|
|
|
- const newTax = Number(tax) / 100;
|
|
|
- const price = (taxPrice / (1 + newTax)).toFixed(6);
|
|
|
- return price === "NaN" ? null : price;
|
|
|
+ item: { key: "tax", title: "税率%", require: true },
|
|
|
+ attr: {
|
|
|
+ component: "el-popover-select-v2",
|
|
|
+ valueKey: "ntaxrate",
|
|
|
+ referName: "TAX_RATE_PARAM",
|
|
|
+ dataMapping: { tax: "ntaxrate" },
|
|
|
+ formatter: (prop) => (prop ? (prop * 1).toFixed(6) : null),
|
|
|
},
|
|
|
- require: true,
|
|
|
},
|
|
|
{
|
|
|
- key: "currencyName",
|
|
|
- title: "币种",
|
|
|
- inputType: "PopoverSelect",
|
|
|
- referName: "CURRENCY_PARAM",
|
|
|
- dataMapping: {
|
|
|
- currency: "id",
|
|
|
- currencyCode: "code",
|
|
|
- currencyName: "name",
|
|
|
+ item: { key: "taxPrice", title: "含税单价", require: true },
|
|
|
+ attr: {
|
|
|
+ component: "el-input-number",
|
|
|
+ precision: 6,
|
|
|
+ formatter: (prop) => (prop ? (prop * 1).toFixed(6) : null),
|
|
|
},
|
|
|
},
|
|
|
- // {
|
|
|
- // title: "币种编码",
|
|
|
- // key: "currencyCode",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // title: "币种ID",
|
|
|
- // key: "currency",
|
|
|
- // },
|
|
|
{
|
|
|
- key: "periodBegin",
|
|
|
- title: "价格有效期(起)",
|
|
|
- inputType: "DatePicker",
|
|
|
- valueFormat: "yyyy-MM-dd",
|
|
|
- value: new Date(),
|
|
|
- require: true,
|
|
|
- },
|
|
|
- {
|
|
|
- key: "periodEnd",
|
|
|
- title: "价格有效期(止)",
|
|
|
- inputType: "DatePicker",
|
|
|
- valueFormat: "yyyy-MM-dd",
|
|
|
- pickerOptions: {
|
|
|
- disabledDate(time) {
|
|
|
- return time.getTime() < Date.now() + 3600 * 1000 * 24 * 365;
|
|
|
+ item: { key: "price", title: "无税单价", require: true },
|
|
|
+ attr: {
|
|
|
+ component: "el-computed-input",
|
|
|
+ formatter: (prop) => {
|
|
|
+ const { tax, taxPrice } = prop;
|
|
|
+ const newTax = Number(tax) / 100;
|
|
|
+ const price = (taxPrice / (1 + newTax)).toFixed(6);
|
|
|
+ return price === "NaN" ? null : price;
|
|
|
},
|
|
|
},
|
|
|
- value: new Date(new Date().getTime() + 3600 * 1000 * 24 * 366),
|
|
|
- require: true,
|
|
|
},
|
|
|
{
|
|
|
- title: "客户",
|
|
|
- key: "customerName",
|
|
|
- inputType: "PopoverSelect",
|
|
|
- width: 300,
|
|
|
- referName: "CUSTOMER_PARAM",
|
|
|
- dataMapping: {
|
|
|
- customer: "id",
|
|
|
- customerCode: "code",
|
|
|
- customerName: "name",
|
|
|
+ item: { key: "currencyName", title: "币种" },
|
|
|
+ attr: {
|
|
|
+ component: "el-popover-select-v2",
|
|
|
+ valueKey: "name",
|
|
|
+ referName: "CURRENCY_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ currency: "id",
|
|
|
+ currencyCode: "code",
|
|
|
+ currencyName: "name",
|
|
|
+ },
|
|
|
},
|
|
|
},
|
|
|
- // {
|
|
|
- // title: "客户编码",
|
|
|
- // key: "customerCode",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // title: "客户ID",
|
|
|
- // key: "customer",
|
|
|
- // },
|
|
|
{
|
|
|
- title: "最近价格",
|
|
|
- key: "recentlyPrice",
|
|
|
+ item: { key: "periodBegin", title: "价格有效期(起)", require: true },
|
|
|
+ attr: {
|
|
|
+ component: "el-date-picker",
|
|
|
+ valueFormat: "yyyy-MM-dd",
|
|
|
+ value: new Date(),
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
- title: "首次报批",
|
|
|
- key: "isApprovalFirst",
|
|
|
- width: 300,
|
|
|
- inputType: "Select",
|
|
|
- referName: "is_effective",
|
|
|
+ item: { key: "periodEnd", title: "价格有效期(止)", require: true },
|
|
|
+ attr: {
|
|
|
+ component: "el-date-picker",
|
|
|
+ valueFormat: "yyyy-MM-dd",
|
|
|
+ pickerOptions: {
|
|
|
+ disabledDate(time) {
|
|
|
+ return time.getTime() < Date.now() + 3600 * 1000 * 24 * 365;
|
|
|
+ },
|
|
|
+ },
|
|
|
+
|
|
|
+ value: new Date(new Date().getTime() + 3600 * 1000 * 24 * 366),
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
- title: "价格调整",
|
|
|
- key: "isPriceAdjustment",
|
|
|
- width: 300,
|
|
|
- inputType: "Select",
|
|
|
- referName: "is_effective",
|
|
|
+ item: { key: "customerName", title: "客户" },
|
|
|
+ attr: {
|
|
|
+ component: "el-popover-select-v2",
|
|
|
+ valueKey: "name",
|
|
|
+ referName: "CUSTOMER_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ customer: "id",
|
|
|
+ customerCode: "code",
|
|
|
+ customerName: "name",
|
|
|
+ },
|
|
|
+ },
|
|
|
},
|
|
|
+ { item: { key: "recentlyPrice", title: "最近价格" }, attr: {} },
|
|
|
{
|
|
|
- key: "priceType",
|
|
|
- title: "价格类型",
|
|
|
- inputType: "Select",
|
|
|
- referName: "sys_price_type",
|
|
|
+ item: { key: "isApprovalFirst", title: "首次报批" },
|
|
|
+ attr: {
|
|
|
+ component: "el-select",
|
|
|
+ dictName: "is_effective",
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
- title: "配送价",
|
|
|
- key: "isDistributionPrice",
|
|
|
- width: 300,
|
|
|
- inputType: "Select",
|
|
|
- referName: "is_effective",
|
|
|
- require: true,
|
|
|
+ item: { key: "isPriceAdjustment", title: "价格调整" },
|
|
|
+ attr: {
|
|
|
+ component: "el-select",
|
|
|
+ dictName: "is_effective",
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
- title: "创建人名称",
|
|
|
- key: "createByName",
|
|
|
+ item: { key: "priceType", title: "价格类型" },
|
|
|
+ attr: {
|
|
|
+ component: "el-select",
|
|
|
+ dictName: "sys_price_type",
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
- title: "更新人名称",
|
|
|
- key: "updateByName",
|
|
|
+ item: { key: "isDistributionPrice", title: "配送价", require: true },
|
|
|
+ attr: {
|
|
|
+ component: "el-select",
|
|
|
+ dictName: "is_effective",
|
|
|
+ },
|
|
|
},
|
|
|
+ { item: { key: "createByName", title: "创建人名称" }, attr: {} },
|
|
|
+ { item: { key: "updateByName", title: "更新人名称" }, attr: {} },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
@@ -404,31 +277,50 @@ export const TabColumns = [
|
|
|
key: "priceApplyOrgs",
|
|
|
tableColumns: [
|
|
|
{
|
|
|
- title: "组织",
|
|
|
- key: "orgName",
|
|
|
- inputType: "PopoverSelect",
|
|
|
- referName: "ORG_PARAM",
|
|
|
- dataMapping: {
|
|
|
- org: "id",
|
|
|
- orgCode: "code",
|
|
|
- orgName: "name",
|
|
|
+ item: { key: "orgName", title: "组织", require: true, width: "auto" },
|
|
|
+ attr: {
|
|
|
+ component: "el-popover-select-v2",
|
|
|
+ valueKey: "name",
|
|
|
+ referName: "ORG_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ org: "id",
|
|
|
+ orgCode: "code",
|
|
|
+ orgName: "name",
|
|
|
+ },
|
|
|
},
|
|
|
- width: "auto",
|
|
|
},
|
|
|
- // { title: "组织编码", key: "org" },
|
|
|
- // { title: "组织ID", key: "org" },
|
|
|
{
|
|
|
- title: "创建人名称",
|
|
|
- key: "createByName",
|
|
|
- width: "auto",
|
|
|
+ item: { key: "createByName", title: "创建人名称", width: "auto" },
|
|
|
+ attr: {},
|
|
|
},
|
|
|
{
|
|
|
- title: "更新人名称",
|
|
|
- key: "updateByName",
|
|
|
- width: "auto",
|
|
|
+ item: { key: "updateByName", title: "更新人名称", width: "auto" },
|
|
|
+ attr: {},
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
];
|
|
|
|
|
|
+// console.log(
|
|
|
+// JSON.stringify(
|
|
|
+// TabColumns[0].tableColumns.map((item) => ({
|
|
|
+// item: { key: item.key, title: item.title, require: item.require },
|
|
|
+// attr: {
|
|
|
+// component: item.inputType,
|
|
|
+// dictName: item.referName,
|
|
|
+// referName: item.referName,
|
|
|
+// clearable: item.clearable,
|
|
|
+// dataMapping: item.dataMapping,
|
|
|
+// disabled: item.disabled,
|
|
|
+// readonly: item.readonly,
|
|
|
+// formatter: item.formatter,
|
|
|
+// valueFormat: item.valueFormat,
|
|
|
+// pickerOptions: item.pickerOptions,
|
|
|
+// computed: item.computed,
|
|
|
+// value: item.value,
|
|
|
+// },
|
|
|
+// }))
|
|
|
+// )
|
|
|
+// );
|
|
|
+
|
|
|
export default { TableColumns, TabColumns };
|