123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- export const TableColumns = [
- { key: "demandCode", title: "采购需求单号" },
- { key: "materialCode", title: "物料编码" },
- { key: "materialName", title: "物料名称" },
- // { key: "material", title: "物料" },
- { key: "materialDesc", title: "物料描述" },
- { key: "manufacturerName", title: "生产厂家名称" },
- { key: "puQty", title: "采购数量" },
- {
- key: "priceinputType",
- title: "价格类型",
- referName: "sys_price_inputType",
- },
- { key: "puUnitName", title: "采购单位名称" },
- // { key: "id", title: "主键" },
- {
- key: "status",
- title: "状态",
- referName: "purchase_task_status",
- },
- // { key: "manufacturer", title: "生产厂家" },
- // { key: "buyer", title: "采购员" },
- { key: "buyerName", title: "采购员名称" },
- // { key: "supplier", title: "建议供应商" },
- { key: "supplierName", title: "建议供应商名称" },
- // { key: "puOrg", title: "采购组织" },
- {
- key: "puOrgName",
- title: "采购组织名称",
- },
- // { key: "currency", title: "币种" },
- { key: "currencyName", title: "币种名称" },
- { key: "billYpe", title: "交易类型" },
- { key: "source", title: "需求来源" },
- // { key: "customer", title: "收货客户" },
- { key: "customerName", title: "收货客户名称" },
- { key: "puUnit", title: "采购单位" },
- { key: "demandDate", title: "需求时间" },
- { key: "projectName", title: "项目名称" },
- { key: "demandPersonal", title: "需求人" },
- {
- key: "demandPersonalName",
- title: "需求人名称",
- },
- // { key: "demandOrg", title: "需求组织" },
- { key: "demandOrgName", title: "需求组织名称" },
- // { key: "demandDept", title: "需求部门" },
- { key: "demandDeptName", title: "需求部门名称" },
- { key: "isBack", title: "是否退回" },
- { key: "baskCause", title: "退回原因" },
- { key: "backDate", title: "退回日期" },
- // { key: "assignSupplier", title: "指定供应商" },
- { key: "assignSupplierName", title: "指定供应商名称" },
- // { key: "unit", title: "单位" },
- { key: "unitName", title: "单位名称" },
- // { key: "file", title: "附件" },
- // { key: "tenantId", title: "租户号" },
- // { key: "revision", title: "乐观锁" },
- // { key: "delFlag", title: "删除标记" },
- ];
- const pickerOptions = {
- shortcuts: [
- {
- text: "昨天",
- onClick(picker) {
- const end = new Date();
- const start = new Date();
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 1);
- picker.$emit("pick", [start, end]);
- },
- },
- {
- text: "最近三天",
- onClick(picker) {
- const end = new Date();
- const start = new Date();
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 3);
- picker.$emit("pick", [start, end]);
- },
- },
- {
- text: "最近一周",
- onClick(picker) {
- const end = new Date();
- const start = new Date();
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
- picker.$emit("pick", [start, end]);
- },
- },
- {
- text: "最近一个月",
- onClick(picker) {
- const end = new Date();
- const start = new Date();
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
- picker.$emit("pick", [start, end]);
- },
- },
- {
- text: "最近三个月",
- onClick(picker) {
- const end = new Date();
- const start = new Date();
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
- picker.$emit("pick", [start, end]);
- },
- },
- {
- text: "最近半年",
- onClick(picker) {
- const end = new Date();
- const start = new Date();
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 180);
- picker.$emit("pick", [start, end]);
- },
- },
- ],
- };
- export const SearchColumns = [
- {
- key: "classIds",
- title: "物料分类",
- inputType: "PopoverTreeSelect",
- multiple: true,
- valueKey: "id",
- referName: "MATERIALCLASSIFY_PARAM",
- readonly: true,
- dataMapping: {},
- queryParams: () => ({}),
- },
- {
- key: "materialCodes",
- title: "物料编码",
- inputType: "PopoverSelect",
- multiple: true,
- valueKey: "code",
- referName: "MATERIAL_PARAM",
- readonly: true,
- dataMapping: {},
- queryParams: () => ({}),
- },
- { key: "materialDesc", title: "物料描述", inputType: "Input" },
- { key: "source", title: "需求来源", inputType: "Input" },
- {
- key: "puOrgIds",
- title: "采购组织",
- inputType: "PopoverSelect",
- multiple: true,
- valueKey: "id",
- referName: "ORG_PARAM",
- readonly: true,
- dataMapping: {},
- queryParams: () => ({}),
- },
- {
- key: "date",
- title: "创建时间",
- inputType: "DatePicker",
- type: "daterange",
- unlinkPanels: true,
- rangeSeparator: "至",
- valueFormat: "yyyy-MM-dd",
- endPlaceholder: "结束日期",
- startPlaceholder: "开始日期",
- pickerOptions: pickerOptions,
- value: [],
- },
- {
- key: "buyers",
- title: "采购员",
- inputType: "PopoverSelect",
- multiple: true,
- valueKey: "id",
- showKey: "name",
- referName: "CONTACTS_PARAM",
- readonly: true,
- dataMapping: {},
- queryParams: () => ({}),
- },
- {
- key: "status",
- title: "状态",
- inputType: "Select",
- referName: "purchase_task_status",
- },
- // {
- // key: "documentsCodes",
- // title: "需求来源",
- // inputType: "Input",
- // placeholder: "请输入来源单据号,多个用,分隔",
- // },
- ];
|