123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- import CONFIG from "@/config";
- export const TableColumns = [
- {
- item: { key: "puOrgName", title: "采购组织" },
- attr: {},
- },
- {
- item: { key: "manufacturerName", title: "生产厂商" },
- attr: {},
- },
- {
- item: { key: "materialName", title: "物料名称" },
- attr: {},
- },
- {
- item: { key: "demandDate", title: "需求时间" },
- attr: {},
- },
- {
- item: { key: "supplierName", title: "供应商", filterabled:true, },
- attr: {
-
- },
- },
- {
- item: { key: "customerName", title: "客户" },
- attr: {},
- },
- {
- item: { key: "priceType", title: "价格类型" },
- attr: { is: "el-dict-tag", dictName: "sys_price_type" },
- },
- {
- item: { key: "effectiveDate", title: "价格生效日期" },
- attr: {},
- },
- {
- item: { key: "endDate", title: "价格失效日期" },
- attr: {},
- },
- {
- item: { key: "tax", title: "税率 (%)" },
- attr: {
- is: "el-computed-input-v2",
- formatter: (prop) => {
- return (prop * 1);
- },
- },
- },
- {
- item: { key: "taxFreePrice", title: "无税单价" },
- attr: {
- is: "el-computed-input-v2",
- formatter: (prop) => {
- return (prop * 1);
- },
- },
- },
- {
- item: { key: "taxPrice", title: "主含税单价" },
- attr: {
- is: "el-computed-input-v2",
- formatter: (prop) => {
- return (prop * 1);
- },
- },
- },
- {
- item: { key: "purchaseQuantity", title: "本次采购数量", fixed: true },
- attr: {
- is: "el-input-number",
- min: 0,
- max: (prop) => {
- const { puQty = 0, executeQty = 0 } = prop;
- return puQty - executeQty;
- },
- controlsPosition: "right",
- },
- },
- {
- item: { key: "arrivalDatePlan", title: "计划到货日期", fixed: true },
- attr: {
- is: "el-date-picker",
- valueFormat: "yyyy-MM-dd",
- pickerOptions: {
- disabledDate(time) {
- return time.getTime() < Date.now();
- },
- },
- },
- },
- {
- item: { key: "note", title: "备注", fixed: true },
- attr: {
- is: "el-input",
- autosize: true,
- type: "textarea",
- },
- },
- ];
|