|
@@ -115,6 +115,13 @@ export default function useColumns() {
|
|
|
},
|
|
|
TableColumns: [
|
|
|
{
|
|
|
+ item: { key: "materialCode", title: "物料编码", required: true },
|
|
|
+ attr: {
|
|
|
+ is: "el-input",
|
|
|
+ clearable: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
item: { key: "materialName", title: "物料名称", required: true },
|
|
|
attr: {
|
|
|
is: "el-popover-select-v2",
|
|
@@ -136,18 +143,11 @@ export default function useColumns() {
|
|
|
},
|
|
|
},
|
|
|
},
|
|
|
- {
|
|
|
- item: { key: "materialCode", title: "物料编码", required: true },
|
|
|
- attr: {
|
|
|
- is: "el-input",
|
|
|
- clearable: true,
|
|
|
- },
|
|
|
- },
|
|
|
- { item: { key: "manufacturerName", title: "生产厂家" }, attr: {} },
|
|
|
{ item: { key: "specification", title: "规格" }, attr: {} },
|
|
|
{ item: { key: "model", title: "型号" }, attr: {} },
|
|
|
+ { item: { key: "manufacturerName", title: "生产厂家" }, attr: {} },
|
|
|
{
|
|
|
- item: { key: "unitName", title: "单位", hidden: false },
|
|
|
+ item: { key: "unitName", title: "单位" },
|
|
|
attr: {
|
|
|
is: "el-popover-select-v2",
|
|
|
valueKey: "name",
|
|
@@ -155,19 +155,19 @@ export default function useColumns() {
|
|
|
dataMapping: { unit: "id", unitCode: "code", unitName: "name" },
|
|
|
},
|
|
|
},
|
|
|
- {
|
|
|
- item: { key: "puUnitName", title: "采购单位", hidden: false },
|
|
|
- attr: {
|
|
|
- is: "el-popover-select-v2",
|
|
|
- valueKey: "name",
|
|
|
- referName: "UNIT_PARAM",
|
|
|
- dataMapping: {
|
|
|
- puUnit: "id",
|
|
|
- puUnitCode: "code",
|
|
|
- puUnitName: "name",
|
|
|
- },
|
|
|
- },
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // item: { key: "puUnitName", title: "采购单位", hidden: false },
|
|
|
+ // attr: {
|
|
|
+ // is: "el-popover-select-v2",
|
|
|
+ // valueKey: "name",
|
|
|
+ // referName: "UNIT_PARAM",
|
|
|
+ // dataMapping: {
|
|
|
+ // puUnit: "id",
|
|
|
+ // puUnitCode: "code",
|
|
|
+ // puUnitName: "name",
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // },
|
|
|
{
|
|
|
item: { key: "conversionRate", title: "采购换算率", required: true },
|
|
|
attr: {
|
|
@@ -179,13 +179,16 @@ export default function useColumns() {
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- item: { key: "tax", title: "税率%", required: true },
|
|
|
+ item: { key: "customerName", title: "客户" },
|
|
|
attr: {
|
|
|
is: "el-popover-select-v2",
|
|
|
- valueKey: "ntaxrate",
|
|
|
- referName: "TAX_RATE_PARAM",
|
|
|
- dataMapping: { tax: "ntaxrate" },
|
|
|
- disabled: true,
|
|
|
+ valueKey: "name",
|
|
|
+ referName: "CUSTOMER_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ customer: "id",
|
|
|
+ customerCode: "code",
|
|
|
+ customerName: "name",
|
|
|
+ },
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -196,27 +199,37 @@ export default function useColumns() {
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- item: { key: "price", title: "无税单价", required: true },
|
|
|
- attr: {
|
|
|
- formatter: (prop) => {
|
|
|
- const { tax = 0, taxPrice = 0 } = prop;
|
|
|
- return (prop.price = iunitprice(tax, taxPrice));
|
|
|
- },
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- item: { key: "currencyName", title: "币种" },
|
|
|
+ item: { key: "tax", title: "税率%", required: true },
|
|
|
attr: {
|
|
|
is: "el-popover-select-v2",
|
|
|
- valueKey: "name",
|
|
|
- referName: "CURRENCY_PARAM",
|
|
|
- dataMapping: {
|
|
|
- currency: "id",
|
|
|
- currencyCode: "code",
|
|
|
- currencyName: "name",
|
|
|
- },
|
|
|
+ valueKey: "ntaxrate",
|
|
|
+ referName: "TAX_RATE_PARAM",
|
|
|
+ dataMapping: { tax: "ntaxrate" },
|
|
|
+ disabled: true,
|
|
|
},
|
|
|
},
|
|
|
+ // {
|
|
|
+ // item: { key: "price", title: "无税单价", required: true },
|
|
|
+ // attr: {
|
|
|
+ // formatter: (prop) => {
|
|
|
+ // const { tax = 0, taxPrice = 0 } = prop;
|
|
|
+ // return (prop.price = iunitprice(tax, taxPrice));
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // item: { key: "currencyName", title: "币种" },
|
|
|
+ // attr: {
|
|
|
+ // is: "el-popover-select-v2",
|
|
|
+ // valueKey: "name",
|
|
|
+ // referName: "CURRENCY_PARAM",
|
|
|
+ // dataMapping: {
|
|
|
+ // currency: "id",
|
|
|
+ // currencyCode: "code",
|
|
|
+ // currencyName: "name",
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // },
|
|
|
{
|
|
|
item: {
|
|
|
key: "periodBegin",
|
|
@@ -243,19 +256,6 @@ export default function useColumns() {
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- item: { key: "customerName", title: "客户" },
|
|
|
- attr: {
|
|
|
- is: "el-popover-select-v2",
|
|
|
- valueKey: "name",
|
|
|
- referName: "CUSTOMER_PARAM",
|
|
|
- dataMapping: {
|
|
|
- customer: "id",
|
|
|
- customerCode: "code",
|
|
|
- customerName: "name",
|
|
|
- },
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
item: { key: "recentlyPrice", title: "最近价格" },
|
|
|
attr: {
|
|
|
is: "el-input-number",
|
|
@@ -295,39 +295,6 @@ export default function useColumns() {
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- item: { key: "priceType", title: "价格类型", required: true },
|
|
|
- attr: {
|
|
|
- is: "el-select",
|
|
|
- dictName: "sys_price_type",
|
|
|
- value: "order",
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- item: { key: "isDistributionPrice", title: "配送价", required: true },
|
|
|
- attr: {
|
|
|
- is: "el-select",
|
|
|
- dictName: "is_effective",
|
|
|
- value: "N",
|
|
|
- },
|
|
|
- },
|
|
|
-
|
|
|
- {
|
|
|
- item: { width: 100, key: "isChannel", title: "是否渠道变更" },
|
|
|
- attr: {
|
|
|
- is: "el-select",
|
|
|
- dictName: "is_effective",
|
|
|
- value: "N",
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- item: { width: 100, key: "brandReplacement", title: "是否品牌替换" },
|
|
|
- attr: {
|
|
|
- is: "el-select",
|
|
|
- dictName: "is_effective",
|
|
|
- value: "N",
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
item: { width: 100, key: "priceDiffer", title: "单价差" },
|
|
|
attr: {
|
|
|
formatter: (prop) => {
|
|
@@ -375,8 +342,40 @@ export default function useColumns() {
|
|
|
},
|
|
|
},
|
|
|
},
|
|
|
+ {
|
|
|
+ item: { key: "priceType", title: "价格类型", required: true },
|
|
|
+ attr: {
|
|
|
+ is: "el-select",
|
|
|
+ dictName: "sys_price_type",
|
|
|
+ value: "order",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "isDistributionPrice", title: "配送价", required: true },
|
|
|
+ attr: {
|
|
|
+ is: "el-select",
|
|
|
+ dictName: "is_effective",
|
|
|
+ value: "N",
|
|
|
+ },
|
|
|
+ },
|
|
|
|
|
|
{
|
|
|
+ item: { width: 100, key: "isChannel", title: "是否渠道变更" },
|
|
|
+ attr: {
|
|
|
+ is: "el-select",
|
|
|
+ dictName: "is_effective",
|
|
|
+ value: "N",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { width: 100, key: "brandReplacement", title: "是否品牌替换" },
|
|
|
+ attr: {
|
|
|
+ is: "el-select",
|
|
|
+ dictName: "is_effective",
|
|
|
+ value: "N",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
item: { width: 150, key: "supplierName", title: "供应商名称1" },
|
|
|
attr: { is: "el-input" },
|
|
|
},
|
|
@@ -462,8 +461,8 @@ export default function useColumns() {
|
|
|
precision: CONFIG.precision,
|
|
|
},
|
|
|
},
|
|
|
- { item: { key: "createByName", title: "创建人名称" }, attr: {} },
|
|
|
- { item: { key: "updateByName", title: "更新人名称" }, attr: {} },
|
|
|
+ // { item: { key: "createByName", title: "创建人名称" }, attr: {} },
|
|
|
+ // { item: { key: "updateByName", title: "更新人名称" }, attr: {} },
|
|
|
{
|
|
|
item: { key: "isPriceAdjustment", title: "", width: 10 },
|
|
|
attr: {
|