|
@@ -1,16 +1,16 @@
|
|
|
-export const TableColumns = [
|
|
|
+export const FormColumns = [
|
|
|
{
|
|
|
item: { key: "priceName", title: "价格名称" },
|
|
|
- attr: { component: "el-input", value: "价格申报单" },
|
|
|
+ attr: { is: "el-input", value: "价格申报单" },
|
|
|
},
|
|
|
{
|
|
|
item: { key: "priceCode", title: "价格编码" },
|
|
|
- attr: { component: "el-input", disabled: true, readonly: true },
|
|
|
+ attr: { is: "el-input", disabled: true, readonly: true },
|
|
|
},
|
|
|
{
|
|
|
item: { key: "supplierName", title: "供应商", require: true },
|
|
|
attr: {
|
|
|
- component: "el-popover-select-v2",
|
|
|
+ is: "el-popover-select-v2",
|
|
|
valueKey: "name",
|
|
|
referName: "SUPPLIER_PARAM",
|
|
|
dataMapping: {
|
|
@@ -23,7 +23,7 @@ export const TableColumns = [
|
|
|
{
|
|
|
item: { key: "puOrgName", title: "采购组织", require: true },
|
|
|
attr: {
|
|
|
- component: "el-popover-select-v2",
|
|
|
+ is: "el-popover-select-v2",
|
|
|
valueKey: "name",
|
|
|
referName: "ORG_PARAM",
|
|
|
dataMapping: { puOrg: "id", puOrgCode: "code", puOrgName: "name" },
|
|
@@ -32,7 +32,7 @@ export const TableColumns = [
|
|
|
{
|
|
|
item: { key: "currencyName", title: "币种", require: true },
|
|
|
attr: {
|
|
|
- component: "el-popover-select-v2",
|
|
|
+ is: "el-popover-select-v2",
|
|
|
valueKey: "name",
|
|
|
referName: "CURRENCY_PARAM",
|
|
|
dataMapping: {
|
|
@@ -44,12 +44,12 @@ export const TableColumns = [
|
|
|
},
|
|
|
{
|
|
|
item: { key: "explainStr", title: "价格合理性说明", require: true },
|
|
|
- attr: { component: "el-input" },
|
|
|
+ attr: { is: "el-input" },
|
|
|
},
|
|
|
{
|
|
|
item: { key: "buyerName", title: "采购员", require: true },
|
|
|
attr: {
|
|
|
- component: "el-popover-select-v2",
|
|
|
+ is: "el-popover-select-v2",
|
|
|
valueKey: "name",
|
|
|
referName: "CONTACTS_PARAM",
|
|
|
dataMapping: { buyer: "code", buyerName: "name" },
|
|
@@ -58,7 +58,7 @@ export const TableColumns = [
|
|
|
{
|
|
|
item: { key: "puDeptName", title: "采购部门", require: true },
|
|
|
attr: {
|
|
|
- component: "el-popover-select-v2",
|
|
|
+ is: "el-popover-select-v2",
|
|
|
valueKey: "name",
|
|
|
referName: "DEPT_PARAM",
|
|
|
dataMapping: { puDept: "id", puDeptCode: "code", puDeptName: "name" },
|
|
@@ -66,39 +66,39 @@ export const TableColumns = [
|
|
|
},
|
|
|
{
|
|
|
item: { key: "createByName", title: "创建人" },
|
|
|
- attr: { component: "el-input", disabled: true, readonly: true },
|
|
|
+ attr: { is: "el-input", disabled: true, readonly: true },
|
|
|
},
|
|
|
{
|
|
|
item: { key: "source", title: "来源单据号" },
|
|
|
- attr: { component: "el-input", disabled: true, readonly: true },
|
|
|
+ attr: { is: "el-input", disabled: true, readonly: true },
|
|
|
},
|
|
|
{
|
|
|
item: { key: "id", title: "来源单据id" },
|
|
|
- attr: { component: "el-input", disabled: true, readonly: true },
|
|
|
+ attr: { is: "el-input", disabled: true, readonly: true },
|
|
|
},
|
|
|
{
|
|
|
item: { key: "isEffective", title: "是否已推价格" },
|
|
|
attr: {
|
|
|
- component: "el-select",
|
|
|
+ is: "el-select",
|
|
|
dictName: "is_effective",
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
item: { key: "effectiveDate", title: "生效日期" },
|
|
|
- attr: { component: "el-input", disabled: true, readonly: true },
|
|
|
+ attr: { is: "el-input", disabled: true, readonly: true },
|
|
|
},
|
|
|
{
|
|
|
item: { key: "file", title: "附件", require: true, span: 24 },
|
|
|
- attr: { component: "file-upload" },
|
|
|
+ attr: { is: "file-upload" },
|
|
|
},
|
|
|
{
|
|
|
item: { key: "sourceType", title: "来源单据类型" },
|
|
|
- attr: { component: "el-input", disabled: true, readonly: true },
|
|
|
+ attr: { is: "el-input", disabled: true, readonly: true },
|
|
|
},
|
|
|
{
|
|
|
item: { key: "status", title: "单据状态" },
|
|
|
attr: {
|
|
|
- component: "el-select",
|
|
|
+ is: "el-select",
|
|
|
dictName: "sys_status",
|
|
|
disabled: true,
|
|
|
readonly: true,
|
|
@@ -109,13 +109,18 @@ export const TableColumns = [
|
|
|
|
|
|
export const TabColumns = [
|
|
|
{
|
|
|
- title: "物料信息表",
|
|
|
- key: "priceApplyItems",
|
|
|
- tableColumns: [
|
|
|
+ item: {
|
|
|
+ title: "物料信息表",
|
|
|
+ key: "priceApplyItems",
|
|
|
+ },
|
|
|
+ attr: {
|
|
|
+ value: [],
|
|
|
+ },
|
|
|
+ TableColumns: [
|
|
|
{
|
|
|
item: { key: "materialName", title: "物料名称", require: true },
|
|
|
attr: {
|
|
|
- component: "el-popover-select-v2",
|
|
|
+ is: "el-popover-select-v2",
|
|
|
valueKey: "name",
|
|
|
referName: "MATERIAL_PARAM",
|
|
|
dataMapping: {
|
|
@@ -138,7 +143,7 @@ export const TabColumns = [
|
|
|
{
|
|
|
item: { key: "unitName", title: "单位" },
|
|
|
attr: {
|
|
|
- component: "el-popover-select-v2",
|
|
|
+ is: "el-popover-select-v2",
|
|
|
valueKey: "name",
|
|
|
referName: "UNIT_PARAM",
|
|
|
dataMapping: { unit: "id", unitCode: "code", unitName: "name" },
|
|
@@ -147,7 +152,7 @@ export const TabColumns = [
|
|
|
{
|
|
|
item: { key: "puUnitName", title: "采购单位" },
|
|
|
attr: {
|
|
|
- component: "el-popover-select-v2",
|
|
|
+ is: "el-popover-select-v2",
|
|
|
valueKey: "name",
|
|
|
referName: "UNIT_PARAM",
|
|
|
dataMapping: { puUnit: "id", puUnitCode: "code", puUnitName: "name" },
|
|
@@ -156,24 +161,23 @@ export const TabColumns = [
|
|
|
{
|
|
|
item: { key: "conversionRate", title: "采购换算率", require: true },
|
|
|
attr: {
|
|
|
- component: "el-input-number",
|
|
|
+ is: "el-input-number",
|
|
|
precision: 6,
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
item: { key: "tax", title: "税率%", require: true },
|
|
|
attr: {
|
|
|
- component: "el-popover-select-v2",
|
|
|
+ is: "el-popover-select-v2",
|
|
|
valueKey: "ntaxrate",
|
|
|
referName: "TAX_RATE_PARAM",
|
|
|
dataMapping: { tax: "ntaxrate" },
|
|
|
- formatter: (prop) => (prop ? (prop * 1).toFixed(6) : null),
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
item: { key: "taxPrice", title: "含税单价", require: true },
|
|
|
attr: {
|
|
|
- component: "el-input-number",
|
|
|
+ is: "el-input-number",
|
|
|
precision: 6,
|
|
|
formatter: (prop) => (prop ? (prop * 1).toFixed(6) : null),
|
|
|
},
|
|
@@ -181,7 +185,7 @@ export const TabColumns = [
|
|
|
{
|
|
|
item: { key: "price", title: "无税单价", require: true },
|
|
|
attr: {
|
|
|
- component: "el-computed-input",
|
|
|
+ is: "el-computed-input",
|
|
|
formatter: (prop) => {
|
|
|
const { tax, taxPrice } = prop;
|
|
|
const newTax = Number(tax) / 100;
|
|
@@ -193,7 +197,7 @@ export const TabColumns = [
|
|
|
{
|
|
|
item: { key: "currencyName", title: "币种" },
|
|
|
attr: {
|
|
|
- component: "el-popover-select-v2",
|
|
|
+ is: "el-popover-select-v2",
|
|
|
valueKey: "name",
|
|
|
referName: "CURRENCY_PARAM",
|
|
|
dataMapping: {
|
|
@@ -206,7 +210,7 @@ export const TabColumns = [
|
|
|
{
|
|
|
item: { key: "periodBegin", title: "价格有效期(起)", require: true },
|
|
|
attr: {
|
|
|
- component: "el-date-picker",
|
|
|
+ is: "el-date-picker",
|
|
|
valueFormat: "yyyy-MM-dd",
|
|
|
value: new Date(),
|
|
|
},
|
|
@@ -214,7 +218,7 @@ export const TabColumns = [
|
|
|
{
|
|
|
item: { key: "periodEnd", title: "价格有效期(止)", require: true },
|
|
|
attr: {
|
|
|
- component: "el-date-picker",
|
|
|
+ is: "el-date-picker",
|
|
|
valueFormat: "yyyy-MM-dd",
|
|
|
pickerOptions: {
|
|
|
disabledDate(time) {
|
|
@@ -228,7 +232,7 @@ export const TabColumns = [
|
|
|
{
|
|
|
item: { key: "customerName", title: "客户" },
|
|
|
attr: {
|
|
|
- component: "el-popover-select-v2",
|
|
|
+ is: "el-popover-select-v2",
|
|
|
valueKey: "name",
|
|
|
referName: "CUSTOMER_PARAM",
|
|
|
dataMapping: {
|
|
@@ -242,28 +246,28 @@ export const TabColumns = [
|
|
|
{
|
|
|
item: { key: "isApprovalFirst", title: "首次报批" },
|
|
|
attr: {
|
|
|
- component: "el-select",
|
|
|
+ is: "el-select",
|
|
|
dictName: "is_effective",
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
item: { key: "isPriceAdjustment", title: "价格调整" },
|
|
|
attr: {
|
|
|
- component: "el-select",
|
|
|
+ is: "el-select",
|
|
|
dictName: "is_effective",
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
item: { key: "priceType", title: "价格类型" },
|
|
|
attr: {
|
|
|
- component: "el-select",
|
|
|
+ is: "el-select",
|
|
|
dictName: "sys_price_type",
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
item: { key: "isDistributionPrice", title: "配送价", require: true },
|
|
|
attr: {
|
|
|
- component: "el-select",
|
|
|
+ is: "el-select",
|
|
|
dictName: "is_effective",
|
|
|
},
|
|
|
},
|
|
@@ -272,13 +276,18 @@ export const TabColumns = [
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
- title: "合同执行组织范围",
|
|
|
- key: "priceApplyOrgs",
|
|
|
- tableColumns: [
|
|
|
+ item: {
|
|
|
+ title: "合同执行组织范围",
|
|
|
+ key: "priceApplyOrgs",
|
|
|
+ },
|
|
|
+ attr: {
|
|
|
+ value: [],
|
|
|
+ },
|
|
|
+ TableColumns: [
|
|
|
{
|
|
|
item: { key: "orgName", title: "组织", require: true, width: "auto" },
|
|
|
attr: {
|
|
|
- component: "el-popover-select-v2",
|
|
|
+ is: "el-popover-select-v2",
|
|
|
valueKey: "name",
|
|
|
referName: "ORG_PARAM",
|
|
|
dataMapping: {
|
|
@@ -300,26 +309,4 @@ export const TabColumns = [
|
|
|
},
|
|
|
];
|
|
|
|
|
|
-// 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 };
|
|
|
+export default { FormColumns, TabColumns };
|