|
@@ -1,56 +1,88 @@
|
|
|
export const TableColumns = [
|
|
|
- // { key: "supplier", title: "供应商" },
|
|
|
- { key: "supplierName", title: "供应商" },
|
|
|
- // { key: "puOrg", title: "采购组织" },
|
|
|
- { key: "puOrgName", title: "采购组织" },
|
|
|
- // { key: "customer", title: "客户" },
|
|
|
- { key: "customerName", title: "客户" },
|
|
|
- {
|
|
|
- key: "priceType",
|
|
|
- title: "价格类型",
|
|
|
- inputType: "Select",
|
|
|
- referName: "sys_price_type",
|
|
|
- },
|
|
|
- // {
|
|
|
- // key: "isDistribution",
|
|
|
- // title: "配送价",
|
|
|
- // inputType: "Select",
|
|
|
- // referName: "sys_yes_no",
|
|
|
- // },
|
|
|
- { key: "effectiveDate", title: "价格生效日期" },
|
|
|
- { key: "endDate", title: "价格失效日期" },
|
|
|
- {
|
|
|
- key: "newTax",
|
|
|
- title: "税率",
|
|
|
- inputType: "ComputedInput",
|
|
|
- width: 200,
|
|
|
- computed: (prop) => {
|
|
|
- const { tax } = prop;
|
|
|
- return tax.toFixed(6) + "%";
|
|
|
+ {
|
|
|
+ item: { key: "supplierName", title: "供应商" },
|
|
|
+ attr: {},
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "puOrgName", title: "采购组织" },
|
|
|
+ attr: {},
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "customerName", title: "客户" },
|
|
|
+ attr: {},
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "priceType", title: "价格类型" },
|
|
|
+ attr: { component: "dict-tag", dictName: "sys_price_type" },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "effectiveDate", title: "价格生效日期" },
|
|
|
+ attr: {},
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "endDate", title: "价格失效日期" },
|
|
|
+ attr: {},
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "newTax", title: "税率" },
|
|
|
+ attr: {
|
|
|
+ component: "dr-computed-input",
|
|
|
+ formatter: (prop) => {
|
|
|
+ const { tax } = prop;
|
|
|
+ return (tax * 1).toFixed(6) + "%";
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "taxFreePrice", title: "无税单价" },
|
|
|
+ attr: {
|
|
|
+ component: "dr-computed-input",
|
|
|
+ formatter: (prop) => {
|
|
|
+ const { taxFreePrice } = prop;
|
|
|
+ return (taxFreePrice * 1).toFixed(6);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "taxPrice", title: "主含税单价" },
|
|
|
+ attr: {
|
|
|
+ component: "dr-computed-input",
|
|
|
+ formatter: (prop) => {
|
|
|
+ const { taxPrice } = prop;
|
|
|
+ return (taxPrice * 1).toFixed(6);
|
|
|
+ },
|
|
|
},
|
|
|
},
|
|
|
- { key: "taxFreePrice", title: "无税单价" },
|
|
|
- { key: "taxPrice", title: "主含税单价" },
|
|
|
- {
|
|
|
- key: "purchaseQuantity",
|
|
|
- title: "本次采购数量",
|
|
|
- inputType: "InputNumber",
|
|
|
- width: 300,
|
|
|
- min: (prop) => 0,
|
|
|
- max: (prop) => prop.puQty - (prop.executeQty || 0),
|
|
|
- controlsPosition: "right",
|
|
|
- },
|
|
|
- {
|
|
|
- key: "arrivalDatePlan",
|
|
|
- title: "计划到货日期",
|
|
|
- inputType: "DatePicker",
|
|
|
- valueFormat: "yyyy-MM-dd",
|
|
|
- width: 300,
|
|
|
- pickerOptions: {
|
|
|
- disabledDate(time) {
|
|
|
- return time.getTime() < Date.now();
|
|
|
+ {
|
|
|
+ item: { key: "purchaseQuantity", title: "本次采购数量" },
|
|
|
+ attr: {
|
|
|
+ component: "el-input-number",
|
|
|
+ min: () => 0,
|
|
|
+ max: (prop) => {
|
|
|
+ return prop.puQty - (prop.executeQty || 0);
|
|
|
},
|
|
|
+ controlsPosition: "right",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "arrivalDatePlan", title: "计划到货日期" },
|
|
|
+ attr: {
|
|
|
+ component: "el-date-picker",
|
|
|
+ valueFormat: "yyyy-MM-dd",
|
|
|
+ width: 300,
|
|
|
+ pickerOptions: {
|
|
|
+ disabledDate(time) {
|
|
|
+ return time.getTime() < Date.now();
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ item: { key: "note", title: "备注" },
|
|
|
+ attr: {
|
|
|
+ component: "el-input",
|
|
|
+ autosize: true,
|
|
|
+ type: "textarea",
|
|
|
},
|
|
|
},
|
|
|
- { key: "note", title: "备注", inputType: "Textarea", width: 300 },
|
|
|
];
|