|
@@ -1,23 +1,24 @@
|
|
|
export const Columns = [
|
|
|
- // { key: "id", title: "主键",type: "Input", },
|
|
|
{
|
|
|
- key: "puOrg",
|
|
|
+ key: "puOrgName",
|
|
|
title: "采购组织",
|
|
|
type: "InputDialog",
|
|
|
config: {
|
|
|
- componentName: "Organization",
|
|
|
- dataMapping: { puOrg: "deptName" },
|
|
|
+ componentName: "ORG_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ puOrg: "code",
|
|
|
+ puOrgName: "name",
|
|
|
+ },
|
|
|
},
|
|
|
require: true,
|
|
|
},
|
|
|
- // { key: "puOrgName", title: "采购组织名称", },
|
|
|
{
|
|
|
- key: "billType",
|
|
|
+ key: "billTypeName",
|
|
|
title: "订单类型",
|
|
|
type: "Select",
|
|
|
require: true,
|
|
|
config: {
|
|
|
- optionsName: "", // 字典名
|
|
|
+ optionsName: "sys_order_type", // 字典名
|
|
|
},
|
|
|
},
|
|
|
// { key: "billTypeName", title: "订单类型名称", },
|
|
@@ -30,70 +31,94 @@ export const Columns = [
|
|
|
config: { type: "date" },
|
|
|
},
|
|
|
{
|
|
|
- key: "supplier",
|
|
|
+ key: "supplierName",
|
|
|
title: "供应商",
|
|
|
type: "InputDialog",
|
|
|
config: {
|
|
|
- componentName: "Supplier",
|
|
|
- dataMapping: { supplier: "name" },
|
|
|
+ componentName: "SUPPLIER_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ supplier: "code",
|
|
|
+ supplierName: "name",
|
|
|
+ },
|
|
|
},
|
|
|
require: true,
|
|
|
},
|
|
|
- // { key: "supplierName", title: "供应商名称", },
|
|
|
{
|
|
|
- key: "paymentAgreement",
|
|
|
+ key: "paymentAgreementName",
|
|
|
title: "付款协议",
|
|
|
type: "InputDialog",
|
|
|
config: {
|
|
|
- componentName: "PaymentPlan",
|
|
|
+ componentName: "PAYAGREEMENT_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ paymentAgreement: "code",
|
|
|
+ paymentAgreementName: "name",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "finalTypeName",
|
|
|
+ title: "结算方式",
|
|
|
+ type: "InputDialog",
|
|
|
+ config: {
|
|
|
+ componentName: "BALATYPE_PARAM",
|
|
|
dataMapping: {
|
|
|
- buyer: "userName",
|
|
|
- puDept: "deptName",
|
|
|
+ finalType: "code",
|
|
|
+ finalTypeName: "name",
|
|
|
},
|
|
|
},
|
|
|
},
|
|
|
- { key: "finalType", title: "结算方式", type: "Input", },
|
|
|
{
|
|
|
- key: "currency",
|
|
|
+ key: "currencyName",
|
|
|
title: "币种",
|
|
|
type: "InputDialog",
|
|
|
config: {
|
|
|
- componentName: "Currency",
|
|
|
+ componentName: "CURRENCY_PARAM",
|
|
|
dataMapping: {
|
|
|
- currency: "name",
|
|
|
+ currency: "code",
|
|
|
+ currencyName: "name",
|
|
|
},
|
|
|
},
|
|
|
},
|
|
|
- // { key: "currencyName", title: "币种名称", },
|
|
|
{
|
|
|
- key: "buyer",
|
|
|
+ key: "buyerName",
|
|
|
title: "采购员",
|
|
|
type: "InputDialog",
|
|
|
config: {
|
|
|
- componentName: "User",
|
|
|
+ componentName: "ORG_PARAM",
|
|
|
dataMapping: {
|
|
|
- buyer: "userName",
|
|
|
- puDept: "deptName",
|
|
|
+ buyer: "userId",
|
|
|
+ buyerName: "userName",
|
|
|
+ puDept: "deptId",
|
|
|
+ puDeptName: "deptName",
|
|
|
},
|
|
|
},
|
|
|
require: true,
|
|
|
},
|
|
|
- // { key: "buyerName", title: "采购员名称", },
|
|
|
{
|
|
|
- key: "puDept",
|
|
|
+ key: "puDeptName",
|
|
|
title: "采购部门",
|
|
|
type: "InputDialog",
|
|
|
- config: { componentName: "Department" },
|
|
|
+ config: {
|
|
|
+ componentName: "DEPT_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ puDept: "code",
|
|
|
+ puDeptName: "name",
|
|
|
+ },
|
|
|
+ },
|
|
|
require: true,
|
|
|
},
|
|
|
- // { key: "puDeptName", title: "采购部门名称", },
|
|
|
- // { key: "customer", title: "收货客户", type: "Input", },
|
|
|
{
|
|
|
key: "customerName",
|
|
|
- title: "收货客户名称",
|
|
|
+ title: "收货客户",
|
|
|
type: "InputDialog",
|
|
|
- config: { componentName: "Customer" },
|
|
|
width: 200,
|
|
|
+ config: {
|
|
|
+ componentName: "CUSTOMER_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ customer: "code",
|
|
|
+ customerName: "name",
|
|
|
+ },
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
key: "qty",
|
|
@@ -110,26 +135,45 @@ export const Columns = [
|
|
|
{ key: "money", title: "价税合计", type: "Input", },
|
|
|
{ key: "originalMoney", title: "原始总金额", type: "Input", },
|
|
|
{ key: "notaxMoney", title: "无税金额", type: "Input", },
|
|
|
- { key: "status", title: "单据状态", type: "Input", },
|
|
|
- { key: "freezeCause", title: "冻结原因", type: "Input", },
|
|
|
- { key: "isBack", title: "退货", type: "Input", type: "Input", },
|
|
|
+ {
|
|
|
+ key: "status",
|
|
|
+ title: "单据状态",
|
|
|
+ type: "Select",
|
|
|
+ require: true,
|
|
|
+ config: {
|
|
|
+ optionsName: "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: "warehouse",
|
|
|
+ key: "warehouseName",
|
|
|
title: "WMS入库仓库", // 收货仓库
|
|
|
type: "InputDialog",
|
|
|
- config: { componentName: "Warehouse" },
|
|
|
+ config: {
|
|
|
+ componentName: "WAREHOUSE_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ warehouse: "code",
|
|
|
+ warehouseName: "name",
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
- // { key: "warehouseName", title: "WMS入库仓库名称", },
|
|
|
{
|
|
|
- key: "goodsAllocation",
|
|
|
+ key: "goodsAllocationName",
|
|
|
title: "货位",
|
|
|
type: "InputDialog",
|
|
|
- config: { componentName: "Allocation" },
|
|
|
+ config: {
|
|
|
+ componentName: "ALLOCATION_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ goodsAllocation: "code",
|
|
|
+ goodsAllocationName: "name",
|
|
|
+ }
|
|
|
+ },
|
|
|
width: 200,
|
|
|
},
|
|
|
- // { key: "goodsAllocationName", title: "货位名称", },
|
|
|
{ key: "isSendSrm", title: "是否同步SRM", type: "Checkbox", },
|
|
|
{ key: "isInvoice", title: "发票标识", type: "Input", },
|
|
|
{ key: "supplierOrderNo", title: "供应商订单号", type: "Input", },
|
|
@@ -137,16 +181,32 @@ export const Columns = [
|
|
|
{ key: "deductionMoney", title: "订单抵扣余款金额", type: "Input", },
|
|
|
{ key: "address", title: "收货地址", type: "Input", },
|
|
|
{ key: "contacts", title: "收货联系人", type: "Input", },
|
|
|
- { key: "customerDept", title: "客户部门", type: "Input", },
|
|
|
- // { key: "customerDeptName", title: "客户部门名称", },
|
|
|
{
|
|
|
- key: "supplierContacts",
|
|
|
+ key: "customerDeptName",
|
|
|
+ title: "客户部门",
|
|
|
+ type: "InputDialog",
|
|
|
+ width: 200,
|
|
|
+ config: {
|
|
|
+ componentName: "CUSTOMERDEPT_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ customerDept: "code",
|
|
|
+ customerDeptName: "name",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "supplierContactsName",
|
|
|
title: "供应商业务联系人",
|
|
|
type: "InputDialog",
|
|
|
- config: { componentName: "" },
|
|
|
+ config: {
|
|
|
+ componentName: "SUPPLIERCONTACTS_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ supplierContacts: "code",
|
|
|
+ supplierContactsName: "name",
|
|
|
+ },
|
|
|
+ },
|
|
|
width: 200,
|
|
|
},
|
|
|
- // { key: "supplierContactsName", title: "供应商业务联系人名称", },
|
|
|
{ key: "isUrgency", title: "紧急程度", type: "Input", },
|
|
|
{ key: "isSendWms", title: "已同步WMS", type: "Checkbox", },
|
|
|
// { key: "agent", title: "代理人", type: "Input", }, // 建议删除
|
|
@@ -156,50 +216,69 @@ export const Columns = [
|
|
|
{ key: "applyPaymentMoney", title: "累计付款申请金额", type: "Input", },
|
|
|
{ key: "paymentMoney", title: "累计付款金额", type: "Input", },
|
|
|
{ key: "invoiceMoney", title: "发票金额", type: "Input", },
|
|
|
- {
|
|
|
- key: "supplierPersonal",
|
|
|
- title: "供应商业务员",
|
|
|
- type: "InputDialog",
|
|
|
- config: { componentName: "" },
|
|
|
- width: 200,
|
|
|
- },
|
|
|
- // { key: "supplierPersonalName", title: "供应商业务员名称", },
|
|
|
+ // {
|
|
|
+ // key: "supplierPersonal",
|
|
|
+ // title: "供应商业务员",
|
|
|
+ // type: "Input",
|
|
|
+ // // type: "InputDialog",
|
|
|
+ // },
|
|
|
+ { key: "supplierPersonalName", title: "供应商业务员名称", type: "Input", },
|
|
|
{ key: "isDeliver", title: "是否发货", type: "Input", },
|
|
|
{
|
|
|
key: "retReason",
|
|
|
title: "退换原因",
|
|
|
type: "InputDialog",
|
|
|
- config: { componentName: "" },
|
|
|
+ config: {
|
|
|
+ componentName: "RETREASON_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ retReason: "code",
|
|
|
+ // retReasonName: "name",
|
|
|
+ },
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
key: "processType",
|
|
|
title: "处理方式",
|
|
|
type: "InputDialog",
|
|
|
- config: { componentName: "" },
|
|
|
+ config: {
|
|
|
+ componentName: "PROCESSTYPE_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ processType: "code",
|
|
|
+ // processTypeName: "name",
|
|
|
+ },
|
|
|
+ },
|
|
|
},
|
|
|
{ key: "isEnd", title: "整单关闭标识", type: "Input", },
|
|
|
{
|
|
|
key: "projectNow",
|
|
|
title: "在建工程项目",
|
|
|
type: "InputDialog",
|
|
|
- config: { componentName: "" },
|
|
|
+ config: {
|
|
|
+ componentName: "PROJECT_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ projectNow: "code",
|
|
|
+ // processTypeName: "name",
|
|
|
+ },
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
key: "operatingItems",
|
|
|
title: "经营性项目",
|
|
|
- type: "Input",
|
|
|
type: "InputDialog",
|
|
|
- config: { componentName: "" },
|
|
|
+ config: {
|
|
|
+ componentName: "OPERATING_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ operatingItems: "code",
|
|
|
+ // processTypeName: "name",
|
|
|
+ },
|
|
|
+ },
|
|
|
},
|
|
|
{ key: "isArrivalReson", title: "到货超期原因", type: "Input", },
|
|
|
{ key: "midOrderNo", title: "中台采购订单号", type: "Input", },
|
|
|
{ key: "marketingCode", title: "销售订单号", type: "Input", },
|
|
|
{ key: "isArrival", title: "到货超期", type: "Input", },
|
|
|
- // { key: "tenantId", title: "租户号", },
|
|
|
- // { key: "revision", title: "乐观锁", },
|
|
|
{ key: "createByName", title: "创建人名称", type: "Input", },
|
|
|
{ key: "updateByName", title: "更新人名称", type: "Input", },
|
|
|
- // { key: "delFlag", title: "删除标记", },
|
|
|
{ key: "flowId", title: "OA流程ID", type: "Input", },
|
|
|
{ key: "approver", title: "审批人", type: "Input", },
|
|
|
{
|
|
@@ -222,15 +301,21 @@ export const TabColumns = [
|
|
|
// { key: "id", title: "主键" },
|
|
|
{ key: "rowNo", title: "行号", type: "Input", },
|
|
|
{ key: "orderId", title: "采购订单ID", type: "Input", },
|
|
|
- // { key: "material", title: "物料", type: "Input", },
|
|
|
+ // {key: "material",title: "物料",type: "Input", },
|
|
|
+ { key: "materialName", title: "物料名称", type: "Input", },
|
|
|
{
|
|
|
- key: "materialName",
|
|
|
- title: "物料名称",
|
|
|
+ key: "materialCode",
|
|
|
+ title: "物料编码",
|
|
|
type: "InputDialog",
|
|
|
- config: { componentName: "" },
|
|
|
- width: 200,
|
|
|
+ config: {
|
|
|
+ componentName: "MATERIAL_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ material: "id",
|
|
|
+ materialName: "name",
|
|
|
+ materialCode: "code",
|
|
|
+ },
|
|
|
+ },
|
|
|
},
|
|
|
- { key: "materialCode", title: "物料编码", type: "Input", },
|
|
|
{ key: "materialClassify", title: "物料分类", type: "Input", },
|
|
|
{ key: "materialManufacturersCode", title: "厂家物料编码", type: "Input", },
|
|
|
{ key: "specification", title: "规格", type: "Input", },
|
|
@@ -254,10 +339,16 @@ export const TabColumns = [
|
|
|
{ key: "isPayment", title: "付款关闭", type: "Input", },
|
|
|
{ key: "isGift", title: "赠品", type: "Input", },
|
|
|
{
|
|
|
- key: "warehouse",
|
|
|
+ key: "warehouseName",
|
|
|
title: "收货仓库", //WMS入库仓库
|
|
|
type: "InputDialog",
|
|
|
- config: { componentName: "Warehouse" },
|
|
|
+ config: {
|
|
|
+ componentName: "WAREHOUSE_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ warehouse: "code",
|
|
|
+ warehouseName: "name",
|
|
|
+ }
|
|
|
+ },
|
|
|
width: 200,
|
|
|
},
|
|
|
{ key: "place", title: "收货地点", type: "Input", },
|
|
@@ -267,8 +358,24 @@ export const TabColumns = [
|
|
|
{ key: "efficacyLoseDate", title: "有效期至/失效日期", type: "Input", },
|
|
|
{ key: "approvalNumber", title: "批准文号", type: "Input", },
|
|
|
{ key: "registration", title: "注册证号", type: "Input", },
|
|
|
- { key: "storageCondition", title: "存储条件", type: "Input", },
|
|
|
- { key: "carriageCondition", title: "运输条件", type: "Input", },
|
|
|
+
|
|
|
+ {
|
|
|
+ key: "storageCondition",
|
|
|
+ title: "存储条件",
|
|
|
+ type: "Select",
|
|
|
+ config: {
|
|
|
+ optionsName: "sys_storage_condition",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "carriageCondition",
|
|
|
+ title: "运输条件",
|
|
|
+ type: "Select",
|
|
|
+ config: {
|
|
|
+ optionsName: "sys_conditions_carriage",
|
|
|
+ },
|
|
|
+ },
|
|
|
+
|
|
|
{ key: "isBatchLock", title: "批号锁定标识", type: "Input", },
|
|
|
{ key: "isReplenishment", title: "补单标识", type: "Input", },
|
|
|
{ key: "isUrgency", title: "紧急标识", type: "Input", },
|
|
@@ -284,13 +391,17 @@ export const TabColumns = [
|
|
|
{ key: "sourceId", title: "上游单据ID", type: "Input", },
|
|
|
{ key: "demandCode", title: "采购需求单号", type: "Input", },
|
|
|
{ key: "arrivalDatePlan", title: "计划到货日期", type: "Input", },
|
|
|
- { key: "priceType", title: "价格类型", type: "Input", },
|
|
|
+ {
|
|
|
+ key: "priceType",
|
|
|
+ title: "价格类型",
|
|
|
+ type: "Select",
|
|
|
+ config: {
|
|
|
+ optionsName: "sys_price_type",
|
|
|
+ },
|
|
|
+ },
|
|
|
{ key: "isDistributionPrice", title: "配送价", type: "Input", },
|
|
|
- // { key: "tenantId", title: "租户号",type: "Input", },
|
|
|
- // { key: "revision", title: "乐观锁",type: "Input", },
|
|
|
{ key: "createByName", title: "创建人名称", type: "Input", },
|
|
|
{ key: "updateByName", title: "更新人名称", type: "Input", },
|
|
|
- // { key: "delFlag", title: "删除标记",type: "Input", },
|
|
|
// { key: "materialClassifyOne", title: "物料一级分类",type: "Input", },
|
|
|
{ key: "materialClassifyOneName", title: "物料一级分类名称", type: "Input", },
|
|
|
// { key: "materialClassifyTwo", title: "物料二级分类",type: "Input", },
|
|
@@ -309,7 +420,19 @@ export const TabColumns = [
|
|
|
// { key: "id", title: "主键",type: "Input", },
|
|
|
{ key: "orderId", title: "采购订单ID", type: "Input", },
|
|
|
{ key: "rowno", title: "行号", type: "Input", },
|
|
|
- { key: "material", title: "物料", type: "Input", },
|
|
|
+ {
|
|
|
+ key: "materialName",
|
|
|
+ title: "物料",
|
|
|
+ type: "InputDialog",
|
|
|
+ config: {
|
|
|
+ componentName: "MATERIAL_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ material: "id",
|
|
|
+ materialName: "name",
|
|
|
+ // materialCode: "code",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
// { key: "materialName", title: "物料名称", type: "Input", },
|
|
|
{ key: "specification", title: "规格", type: "Input", },
|
|
|
{ key: "qty", title: "数量", type: "Input", },
|
|
@@ -319,11 +442,8 @@ export const TabColumns = [
|
|
|
{ key: "rollbackQty", title: "累计退货主数量", type: "Checkbox", },
|
|
|
{ key: "backStockQty", title: "累计退库主数量", type: "Input", },
|
|
|
{ key: "floatQty", title: "未到货数量", type: "Input", },
|
|
|
- // { key: "tenantId", title: "租户号",type: "Input", },
|
|
|
- // { key: "revision", title: "乐观锁",type: "Input", },
|
|
|
{ key: "createByName", title: "创建人名称", type: "Input", },
|
|
|
{ key: "updateByName", title: "更新人名称", type: "Input", },
|
|
|
- // { key: "delFlag", title: "删除标记" }
|
|
|
]
|
|
|
},
|
|
|
];
|