|
@@ -8,14 +8,14 @@ import {
|
|
|
export const TableColumns = [
|
|
|
// { key: "id", title: "主键" },
|
|
|
// { key: "puOrg", title: "采购组织" },
|
|
|
- { key: "puOrgName", title: "采购组织名称", search: true, inputType: "Input" },
|
|
|
+ { key: "puOrgName", title: "采购组织", inputType: "Input" },
|
|
|
{
|
|
|
key: "billType",
|
|
|
title: "订单类型",
|
|
|
inputType: "Select",
|
|
|
referName: "sys_order_type",
|
|
|
},
|
|
|
- { key: "code", title: "订单编号", search: true, inputType: "Input" },
|
|
|
+ { key: "code", title: "订单编号", inputType: "Input" },
|
|
|
{
|
|
|
key: "status",
|
|
|
title: "单据状态",
|
|
@@ -25,7 +25,7 @@ export const TableColumns = [
|
|
|
},
|
|
|
{ key: "billDate", title: "订单日期" },
|
|
|
// { key: "supplier", title: "供应商" },
|
|
|
- { key: "supplierName", title: "供应商", search: true, inputType: "Input" },
|
|
|
+ { key: "supplierName", title: "供应商", inputType: "Input" },
|
|
|
{ key: "paymentAgreementName", title: "付款协议" },
|
|
|
// { key: "paymentAgreement", title: "付款协议" },
|
|
|
// { key: "currency", title: "币种" },
|
|
@@ -295,9 +295,144 @@ export const TabColumns = [
|
|
|
},
|
|
|
];
|
|
|
|
|
|
-export const SearchColumns = TableColumns.filter((element) => element.search);
|
|
|
+// export const SearchColumns = TableColumns.filter((element) => element.search);
|
|
|
+export const SearchColumns = [
|
|
|
+ {
|
|
|
+ key: "source",
|
|
|
+ title: "订单来源",
|
|
|
+ inputType: "Select",
|
|
|
+ referName: "order_source", // 字典名
|
|
|
+ clearable:true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "code",
|
|
|
+ title: "订单编号",
|
|
|
+ inputType: "Input",
|
|
|
+ clearable:true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "date",
|
|
|
+ title: "订单日期",
|
|
|
+ type: "daterange",
|
|
|
+ inputType: "DatePicker",
|
|
|
+ unlinkPanels: true,
|
|
|
+ rangeSeparator: "至",
|
|
|
+ valueFormat: "yyyy-MM-dd",
|
|
|
+ endPlaceholder: "结束日期",
|
|
|
+ startPlaceholder: "开始日期",
|
|
|
+ clearable:true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "status",
|
|
|
+ title: "单据状态",
|
|
|
+ inputType: "Select",
|
|
|
+ referName: "documents_status", // 字典名
|
|
|
+ clearable:true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "supplierName",
|
|
|
+ title: "供应商",
|
|
|
+ inputType: "PopoverSelect",
|
|
|
+ valueKey: "id",
|
|
|
+ referName: "SUPPLIER_PARAM",
|
|
|
+ dataMapping: {
|
|
|
+ // supplier: "id",
|
|
|
+ supplierName: "name",
|
|
|
+ },
|
|
|
+ queryParams: () => ({}),
|
|
|
+ clearable:true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "puOrgIds",
|
|
|
+ title: "采购组织",
|
|
|
+ inputType: "PopoverSelect",
|
|
|
+ multiple:true,
|
|
|
+ valueKey: "id",
|
|
|
+ referName: "ORG_PARAM",
|
|
|
+ dataMapping: {},
|
|
|
+ queryParams: () => ({}),
|
|
|
+ clearable:true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "materialCode",
|
|
|
+ title: "物料编码",
|
|
|
+ inputType: "PopoverSelect",
|
|
|
+ valueKey: "code",
|
|
|
+ referName: "MATERIAL_PARAM",
|
|
|
+ dataMapping: {},
|
|
|
+ queryParams: () => ({}),
|
|
|
+ clearable:true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "materialName",
|
|
|
+ title: "物料名称",
|
|
|
+ inputType: "PopoverSelect",
|
|
|
+ valueKey: "name",
|
|
|
+ referName: "MATERIAL_PARAM",
|
|
|
+ dataMapping: {},
|
|
|
+ queryParams: () => ({}),
|
|
|
+ clearable:true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "deliveryStatus",
|
|
|
+ title: "erp发送状态",
|
|
|
+ inputType: "Select",
|
|
|
+ referName: "order_delivery_status", // 字典名
|
|
|
+ clearable:true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "contractNo",
|
|
|
+ title: "合同号",
|
|
|
+ inputType: "Input",
|
|
|
+ clearable:true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "projectNowName",
|
|
|
+ title: "在建工程项目",
|
|
|
+ inputType: "PopoverSelect",
|
|
|
+ require: true,
|
|
|
+ valueKey: "name",
|
|
|
+ referName: "PROJECT_PARAM",
|
|
|
+ dataMapping: {},
|
|
|
+ queryParams: () => ({}),
|
|
|
+ clearable:true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "buyers",
|
|
|
+ title: "采购员",
|
|
|
+ inputType: "PopoverSelect",
|
|
|
+ multiple:true,
|
|
|
+ valueKey: "code",
|
|
|
+ referName: "CONTACTS_PARAM",
|
|
|
+ dataMapping: {},
|
|
|
+ queryParams: () => ({}),
|
|
|
+ clearable:true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "billTypes",
|
|
|
+ title: "订单类型",
|
|
|
+ inputType: "Select",
|
|
|
+ referName: "sys_order_type", // 字典名
|
|
|
+ multiple:true,
|
|
|
+ tags:true,
|
|
|
+ clearable:true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "demandCode",
|
|
|
+ title: "采购需求单号",
|
|
|
+ inputType: "Input",
|
|
|
+ clearable:true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ key: "isDrug",
|
|
|
+ title: "物料药品属性",
|
|
|
+ inputType: "SelectCheck",
|
|
|
+ clearable:true,
|
|
|
+ },
|
|
|
+];
|
|
|
|
|
|
const NewColumns = initColumns(TableColumns);
|
|
|
+const NewSearchColumns = initColumns(SearchColumns);
|
|
|
const NewTabColumns = TabColumns.map((element) => ({
|
|
|
...element,
|
|
|
tableColumns: initColumns(element.tableColumns),
|
|
@@ -307,4 +442,6 @@ export const SelectColumns = NewColumns.filter(column => column.inputType === 'S
|
|
|
|
|
|
NewTabColumns.forEach(column => {
|
|
|
SelectColumns.push(...column.tableColumns.filter(cColumn => cColumn.inputType === 'Select'))
|
|
|
-});
|
|
|
+});
|
|
|
+
|
|
|
+SelectColumns.push(...NewSearchColumns.filter(column => column.inputType === 'Select'))
|