|
@@ -1,29 +1,29 @@
|
|
|
export const Columns = [
|
|
|
{
|
|
|
- key: "puOrgName",
|
|
|
+ key: "puOrg",
|
|
|
title: "采购组织",
|
|
|
- type: "PopoverSelect",
|
|
|
- config: {
|
|
|
- componentName: "ORG_PARAM",
|
|
|
- dataMapping: {
|
|
|
- puOrg: "code",
|
|
|
- puOrgName: "name",
|
|
|
- },
|
|
|
+ inputType: "PopoverSelect",
|
|
|
+ valueKey: "id",
|
|
|
+ referName: "ORG_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ // puOrg: "id",
|
|
|
+ puOrgName: "name",
|
|
|
},
|
|
|
+ queryParams: () => ({}),
|
|
|
+ // config: {
|
|
|
+ // componentName: "ORG_PARAM",
|
|
|
+ // dataMapping: {
|
|
|
+ // puOrg: "code",
|
|
|
+ // puOrgName: "name",
|
|
|
+ // },
|
|
|
+ // },
|
|
|
require: true,
|
|
|
},
|
|
|
{
|
|
|
key: "billTypeName",
|
|
|
title: "订单类型",
|
|
|
- type: "Select",
|
|
|
-
|
|
|
- config: {
|
|
|
- optionsName: "sys_order_type", // 字典名
|
|
|
- dataMapping: {
|
|
|
- billType: "code",
|
|
|
- billTypeName: "name",
|
|
|
- },
|
|
|
- },
|
|
|
+ inputType: "Select",
|
|
|
+ referName: "sys_order_type", // 字典名
|
|
|
},
|
|
|
// { key: "billTypeName", title: "订单类型名称", },
|
|
|
{ key: "oaDemandNo", title: "OA需求单号", type: "Input", },
|
|
@@ -37,95 +37,96 @@ export const Columns = [
|
|
|
width: 200,
|
|
|
},
|
|
|
{
|
|
|
- key: "supplierName",
|
|
|
+ key: "supplier",
|
|
|
title: "供应商",
|
|
|
- type: "PopoverSelect",
|
|
|
- config: {
|
|
|
- componentName: "SUPPLIER_PARAM",
|
|
|
- dataMapping: {
|
|
|
- supplier: "code",
|
|
|
- supplierName: "name",
|
|
|
- },
|
|
|
+ inputType: "PopoverSelect",
|
|
|
+ valueKey: "id",
|
|
|
+ referName: "SUPPLIER_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ // supplier: "id",
|
|
|
+ supplierName: "name",
|
|
|
},
|
|
|
+ queryParams: () => ({}),
|
|
|
+ // config: {
|
|
|
+ // componentName: "SUPPLIER_PARAM",
|
|
|
+ // // dataMapping: {
|
|
|
+ // // supplier: "code",
|
|
|
+ // // supplierName: "name",
|
|
|
+ // // },
|
|
|
+ // },
|
|
|
require: true,
|
|
|
},
|
|
|
{
|
|
|
- key: "paymentAgreementName",
|
|
|
+ key: "paymentAgreement",
|
|
|
title: "付款协议",
|
|
|
- type: "PopoverSelect",
|
|
|
- config: {
|
|
|
- componentName: "PAYAGREEMENT_PARAM",
|
|
|
- dataMapping: {
|
|
|
- paymentAgreement: "code",
|
|
|
- paymentAgreementName: "name",
|
|
|
- },
|
|
|
+ inputType: "PopoverSelect",
|
|
|
+ valueKey: "id",
|
|
|
+ referName: "PAYAGREEMENT_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ paymentAgreementName: 'name'
|
|
|
},
|
|
|
+ queryParams: () => ({}),
|
|
|
+
|
|
|
},
|
|
|
{
|
|
|
- key: "finalTypeName",
|
|
|
+ key: "finalType",
|
|
|
title: "结算方式",
|
|
|
- type: "PopoverSelect",
|
|
|
- config: {
|
|
|
- componentName: "BALATYPE_PARAM",
|
|
|
- dataMapping: {
|
|
|
- finalType: "code",
|
|
|
- finalTypeName: "name",
|
|
|
- },
|
|
|
+ inputType: "PopoverSelect",
|
|
|
+ valueKey: "id",
|
|
|
+ referName: "BALATYPE_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ finalTypeName: 'name'
|
|
|
},
|
|
|
+ queryParams: () => ({}),
|
|
|
},
|
|
|
{
|
|
|
- key: "currencyName",
|
|
|
+ key: "currency",
|
|
|
title: "币种",
|
|
|
- type: "PopoverSelect",
|
|
|
- config: {
|
|
|
- componentName: "CURRENCY_PARAM",
|
|
|
- dataMapping: {
|
|
|
- currency: "code",
|
|
|
- currencyName: "name",
|
|
|
- },
|
|
|
+ inputType: "PopoverSelect",
|
|
|
+ valueKey: "id",
|
|
|
+ referName: "CURRENCY_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ currencyName: 'name'
|
|
|
},
|
|
|
+ queryParams: () => ({}),
|
|
|
+
|
|
|
},
|
|
|
{
|
|
|
- key: "buyerName",
|
|
|
+ key: "buyer",
|
|
|
title: "采购员",
|
|
|
- type: "PopoverSelect",
|
|
|
- config: {
|
|
|
- componentName: "CONTACTS_PARAM",
|
|
|
- dataMapping: {
|
|
|
- buyer: "code",
|
|
|
- buyerName: "name",
|
|
|
- // puDept: "deptId",
|
|
|
- // puDeptName: "deptName",
|
|
|
- },
|
|
|
+ inputType: "PopoverSelect",
|
|
|
+ valueKey: "id",
|
|
|
+ referName: "CONTACTS_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ buyerName: 'name'
|
|
|
},
|
|
|
+ queryParams: () => ({}),
|
|
|
require: true,
|
|
|
},
|
|
|
{
|
|
|
- key: "puDeptName",
|
|
|
+ key: "puDept",
|
|
|
title: "采购部门",
|
|
|
- type: "PopoverSelect",
|
|
|
- config: {
|
|
|
- componentName: "DEPT_PARAM",
|
|
|
- dataMapping: {
|
|
|
- puDept: "code",
|
|
|
- puDeptName: "name",
|
|
|
- },
|
|
|
+ inputType: "PopoverSelect",
|
|
|
+ valueKey: "id",
|
|
|
+ referName: "DEPT_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ puDeptName: 'name'
|
|
|
},
|
|
|
+ queryParams: () => ({}),
|
|
|
require: true,
|
|
|
},
|
|
|
{
|
|
|
- key: "customerName",
|
|
|
+ key: "customer",
|
|
|
title: "收货客户",
|
|
|
- type: "PopoverSelect",
|
|
|
+ inputType: "PopoverSelect",
|
|
|
width: 200,
|
|
|
require: true,
|
|
|
- config: {
|
|
|
- componentName: "CUSTOMER_PARAM",
|
|
|
- dataMapping: {
|
|
|
- customer: "code",
|
|
|
- customerName: "name",
|
|
|
- },
|
|
|
+ valueKey: "id",
|
|
|
+ referName: "CUSTOMER_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ customerName: 'name'
|
|
|
},
|
|
|
+ queryParams: () => ({}),
|
|
|
},
|
|
|
{
|
|
|
key: "qty",
|
|
@@ -145,45 +146,49 @@ export const Columns = [
|
|
|
{
|
|
|
key: "status",
|
|
|
title: "单据状态",
|
|
|
- type: "Select",
|
|
|
- require: true,
|
|
|
- config: {
|
|
|
- optionsName: "sys_status", // 字典名
|
|
|
- },
|
|
|
-
|
|
|
+ inputType: "Select",
|
|
|
+ referName: "sys_status", // 字典名
|
|
|
},
|
|
|
{ key: "freezeCause", title: "冻结原因", type: "Checkbox", },
|
|
|
{ key: "isBack", title: "退货", type: "Input", type: "Checkbox", },
|
|
|
{ key: "isMarketing", title: "已协同生成销售订单", type: "Checkbox", },
|
|
|
{ key: "isMarketingSource", title: "由销售订单协同生成", type: "Checkbox", },
|
|
|
{
|
|
|
- key: "warehouseName",
|
|
|
+ key: "warehouse",
|
|
|
title: "WMS入库仓库", // 收货仓库
|
|
|
- type: "PopoverSelect",
|
|
|
+ inputType: "PopoverSelect",
|
|
|
require: true,
|
|
|
- config: {
|
|
|
- componentName: "WAREHOUSE_PARAM",
|
|
|
- dataMapping: {
|
|
|
- warehouse: "code",
|
|
|
- warehouseName: "name",
|
|
|
- }
|
|
|
+ valueKey: "id",
|
|
|
+ referName: "WAREHOUSE_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ warehouseName: 'name'
|
|
|
},
|
|
|
+ queryParams: () => ({}),
|
|
|
},
|
|
|
{
|
|
|
- key: "goodsAllocationName",
|
|
|
+ key: "goodsAllocation",
|
|
|
title: "货位",
|
|
|
- type: "PopoverSelect",
|
|
|
+ inputType: "PopoverSelect",
|
|
|
require: true,
|
|
|
- config: {
|
|
|
- componentName: "ALLOCATION_PARAM",
|
|
|
- dataMapping: {
|
|
|
- goodsAllocation: "code",
|
|
|
- goodsAllocationName: "name",
|
|
|
- },
|
|
|
- queryParams: {
|
|
|
- pkOrg: 'puOrg',
|
|
|
- }
|
|
|
+ valueKey: "id",
|
|
|
+ referName: "ALLOCATION_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ goodsAllocationName: 'name'
|
|
|
},
|
|
|
+ queryParams: () => ({
|
|
|
+ pkOrg: 'puOrg',
|
|
|
+ }),
|
|
|
+
|
|
|
+ // config: {
|
|
|
+ // componentName: "ALLOCATION_PARAM",
|
|
|
+ // dataMapping: {
|
|
|
+ // goodsAllocation: "code",
|
|
|
+ // goodsAllocationName: "name",
|
|
|
+ // },
|
|
|
+ // queryParams: {
|
|
|
+ // pkOrg: 'puOrg',
|
|
|
+ // }
|
|
|
+ // },
|
|
|
width: 200,
|
|
|
},
|
|
|
{ key: "isSendSrm", title: "是否同步SRM", type: "Checkbox", },
|
|
@@ -194,30 +199,29 @@ export const Columns = [
|
|
|
{ key: "address", title: "收货地址", type: "Input", },
|
|
|
{ key: "contacts", title: "收货联系人", type: "Input", },
|
|
|
{
|
|
|
- key: "customerDeptName",
|
|
|
+ key: "customerDept",
|
|
|
title: "客户部门",
|
|
|
- type: "PopoverSelect",
|
|
|
+ inputType: "PopoverSelect",
|
|
|
width: 200,
|
|
|
- config: {
|
|
|
- componentName: "CUSTOMERDEPT_PARAM",
|
|
|
- dataMapping: {
|
|
|
- customerDept: "code",
|
|
|
- customerDeptName: "name",
|
|
|
- },
|
|
|
+ valueKey: "id",
|
|
|
+ referName: "CUSTOMERDEPT_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ customerDeptName: 'name'
|
|
|
},
|
|
|
+ queryParams: () => ({}),
|
|
|
+
|
|
|
},
|
|
|
{
|
|
|
- key: "supplierContactsName",
|
|
|
+ key: "supplierContacts",
|
|
|
title: "供应商业务联系人",
|
|
|
- type: "PopoverSelect",
|
|
|
+ inputType: "PopoverSelect",
|
|
|
require: true,
|
|
|
- config: {
|
|
|
- componentName: "SUPPLIERCONTACTS_PARAM",
|
|
|
- dataMapping: {
|
|
|
- supplierContacts: "code",
|
|
|
- supplierContactsName: "name",
|
|
|
- },
|
|
|
+ valueKey: "id",
|
|
|
+ referName: "SUPPLIERCONTACTS_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ supplierContactsName: 'name'
|
|
|
},
|
|
|
+ queryParams: () => ({}),
|
|
|
width: 200,
|
|
|
},
|
|
|
{ key: "isUrgency", title: "紧急程度", type: "Checkbox", },
|
|
@@ -235,78 +239,68 @@ export const Columns = [
|
|
|
{ key: "applyPaymentMoney", title: "累计付款申请金额", type: "Input", },
|
|
|
{ key: "paymentMoney", title: "累计付款金额", type: "Input", },
|
|
|
{ key: "invoiceMoney", title: "发票金额", type: "Input", },
|
|
|
- // {
|
|
|
- // key: "supplierPersonal",
|
|
|
- // title: "供应商业务员",
|
|
|
- // type: "Input",
|
|
|
- // // type: "PopoverSelect",
|
|
|
- // },
|
|
|
{
|
|
|
- key: "supplierPersonalName",
|
|
|
- title: "供应商业务员名称",
|
|
|
- type: "PopoverSelect",
|
|
|
- config: {
|
|
|
- componentName: "SUPPLIERCONTACTS_PARAM",
|
|
|
- dataMapping: {
|
|
|
- supplierPersonal: "code",
|
|
|
- supplierPersonalName: "name",
|
|
|
- },
|
|
|
+ key: "supplierPersonal",
|
|
|
+ title: "供应商业务员",
|
|
|
+ inputType: "PopoverSelect",
|
|
|
+ valueKey: "id",
|
|
|
+ referName: "SUPPLIERCONTACTS_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ supplierPersonalName: 'name'
|
|
|
},
|
|
|
+ queryParams: () => ({}),
|
|
|
require: true,
|
|
|
},
|
|
|
{ key: "isDeliver", title: "是否发货", type: "Checkbox", },
|
|
|
{
|
|
|
- key: "retReasonName",
|
|
|
+ key: "retReason",
|
|
|
title: "退换原因",
|
|
|
- type: "PopoverSelect",
|
|
|
+ inputType: "PopoverSelect",
|
|
|
require: true,
|
|
|
- config: {
|
|
|
- componentName: "RETREASON_PARAM",
|
|
|
- dataMapping: {
|
|
|
- retReason: "code",
|
|
|
- retReasonName: "name",
|
|
|
- },
|
|
|
+ valueKey: "id",
|
|
|
+ referName: "RETREASON_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ retReasonName: 'name'
|
|
|
},
|
|
|
+ queryParams: () => ({}),
|
|
|
},
|
|
|
{
|
|
|
- key: "processTypeName",
|
|
|
+ key: "processType",
|
|
|
title: "处理方式",
|
|
|
- type: "PopoverSelect",
|
|
|
+ inputType: "PopoverSelect",
|
|
|
require: true,
|
|
|
- config: {
|
|
|
- componentName: "PROCESSTYPE_PARAM",
|
|
|
- dataMapping: {
|
|
|
- processType: "code",
|
|
|
- processTypeName: "name",
|
|
|
- },
|
|
|
+ valueKey: "id",
|
|
|
+ referName: "PROCESSTYPE_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ processTypeName: 'name'
|
|
|
},
|
|
|
+ queryParams: () => ({}),
|
|
|
},
|
|
|
{ key: "isEnd", title: "整单关闭标识", type: "Input", },
|
|
|
{
|
|
|
- key: "projectNowName",
|
|
|
+ key: "projectNow",
|
|
|
title: "在建工程项目",
|
|
|
- type: "PopoverSelect",
|
|
|
+ inputType: "PopoverSelect",
|
|
|
require: true,
|
|
|
- config: {
|
|
|
- componentName: "PROJECT_PARAM",
|
|
|
- dataMapping: {
|
|
|
- projectNow: "code",
|
|
|
- projectNowName: "name",
|
|
|
- },
|
|
|
+ valueKey: "id",
|
|
|
+ referName: "PROJECT_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ projectNowName: 'name'
|
|
|
},
|
|
|
+ queryParams: () => ({}),
|
|
|
},
|
|
|
{
|
|
|
- key: "operatingItemsName",
|
|
|
+ key: "operatingItems",
|
|
|
title: "经营性项目",
|
|
|
- type: "PopoverSelect",
|
|
|
+ inputType: "PopoverSelect",
|
|
|
require: true,
|
|
|
- config: {
|
|
|
- componentName: "OPERATING_PARAM",
|
|
|
- dataMapping: {
|
|
|
- operatingItems: "code",
|
|
|
- operatingItemsName: "name",
|
|
|
- },
|
|
|
+ valueKey: "id",
|
|
|
+ referName: "OPERATING_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ operatingItemsName: 'name'
|
|
|
},
|
|
|
+ queryParams: () => ({}),
|
|
|
+
|
|
|
},
|
|
|
{ key: "isArrivalReson", title: "到货超期原因", type: "Input", },
|
|
|
{ key: "midOrderNo", title: "中台采购订单号", type: "Input", },
|
|
@@ -343,20 +337,25 @@ export const TabColumns = [
|
|
|
{ key: "rowNo", title: "行号", type: "Input", },
|
|
|
{ key: "orderId", title: "采购订单ID", type: "Input", width: 180 },
|
|
|
// {key: "material",title: "物料",type: "Input", },
|
|
|
- { key: "materialName", title: "物料", type: "Input", width: 180 },
|
|
|
+ {
|
|
|
+ key: "materialName",
|
|
|
+ title: "物料",
|
|
|
+ inputType: "PopoverSelect",
|
|
|
+ width: 180,
|
|
|
+ valueKey: "id",
|
|
|
+ referName: "MATERIAL_PARAM",
|
|
|
+ queryParams: () => ({}),
|
|
|
+ dataMapping: {
|
|
|
+ material: "id",
|
|
|
+ materialName: "name",
|
|
|
+ materialCode: "code",
|
|
|
+ },
|
|
|
+ },
|
|
|
{
|
|
|
key: "materialCode",
|
|
|
title: "物料编码",
|
|
|
- type: "PopoverSelect",
|
|
|
+ type: "Input",
|
|
|
width: 180,
|
|
|
- config: {
|
|
|
- componentName: "MATERIAL_PARAM",
|
|
|
- dataMapping: {
|
|
|
- material: "id",
|
|
|
- materialName: "name",
|
|
|
- materialCode: "code",
|
|
|
- },
|
|
|
- },
|
|
|
},
|
|
|
{ key: "materialClassify", title: "物料分类", type: "Input", width: 180 },
|
|
|
{ key: "materialManufacturersCode", title: "厂家物料编码", type: "Input", width: 180 },
|
|
@@ -381,16 +380,15 @@ export const TabColumns = [
|
|
|
{ key: "isPayment", title: "付款关闭", type: "Input", },
|
|
|
{ key: "isGift", title: "赠品", type: "Input", width: 180 },
|
|
|
{
|
|
|
- key: "warehouseName",
|
|
|
+ key: "warehouse",
|
|
|
title: "收货仓库", //WMS入库仓库
|
|
|
- type: "PopoverSelect",
|
|
|
- config: {
|
|
|
- componentName: "WAREHOUSE_PARAM",
|
|
|
- dataMapping: {
|
|
|
- warehouse: "code",
|
|
|
- warehouseName: "name",
|
|
|
- }
|
|
|
+ inputType: "PopoverSelect",
|
|
|
+ valueKey: "id",
|
|
|
+ referName: "WAREHOUSE_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ warehouseName: 'name'
|
|
|
},
|
|
|
+ queryParams: () => ({}),
|
|
|
width: 200,
|
|
|
},
|
|
|
{ key: "place", title: "收货地点", type: "Input", width: 180 },
|
|
@@ -404,19 +402,16 @@ export const TabColumns = [
|
|
|
{
|
|
|
key: "storageCondition",
|
|
|
title: "存储条件",
|
|
|
- type: "Select",
|
|
|
- config: {
|
|
|
- optionsName: "sys_storage_condition",
|
|
|
- },
|
|
|
+ inputType: "Select",
|
|
|
+ referName: "sys_storage_condition", // 字典名
|
|
|
width: 180
|
|
|
},
|
|
|
{
|
|
|
key: "carriageCondition",
|
|
|
title: "运输条件",
|
|
|
- type: "Select",
|
|
|
- config: {
|
|
|
- optionsName: "sys_conditions_carriage",
|
|
|
- },
|
|
|
+ inputType: "Select",
|
|
|
+ referName: "sys_conditions_carriage", // 字典名
|
|
|
+
|
|
|
width: 180
|
|
|
},
|
|
|
|
|
@@ -438,10 +433,8 @@ export const TabColumns = [
|
|
|
{
|
|
|
key: "priceType",
|
|
|
title: "价格类型",
|
|
|
- type: "Select",
|
|
|
- config: {
|
|
|
- optionsName: "sys_price_type",
|
|
|
- },
|
|
|
+ inputType: "Select",
|
|
|
+ referName: "sys_price_type", // 字典名
|
|
|
},
|
|
|
{ key: "isDistributionPrice", title: "配送价", type: "Input", },
|
|
|
{ key: "createByName", title: "创建人名称", type: "Input", },
|
|
@@ -462,7 +455,7 @@ export const TabColumns = [
|
|
|
{
|
|
|
key: "materialName",
|
|
|
title: "物料",
|
|
|
- type: "PopoverSelect",
|
|
|
+ inputType: "PopoverSelect",
|
|
|
config: {
|
|
|
componentName: "MATERIAL_PARAM",
|
|
|
dataMapping: {
|