|
@@ -2,13 +2,17 @@ import CONFIG from "@/config";
|
|
|
|
|
|
export const TableColumns = [
|
|
export const TableColumns = [
|
|
{
|
|
{
|
|
|
|
+ item: { key: "puOrgName", title: "采购组织" },
|
|
|
|
+ attr: {},
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ item: { key: "demandDate", title: "需求时间" },
|
|
|
|
+ attr: {},
|
|
|
|
+ },
|
|
|
|
+ {
|
|
item: { key: "supplierName", title: "供应商" },
|
|
item: { key: "supplierName", title: "供应商" },
|
|
attr: {},
|
|
attr: {},
|
|
},
|
|
},
|
|
- // {
|
|
|
|
- // item: { key: "puOrgName", title: "采购组织" },
|
|
|
|
- // attr: {},
|
|
|
|
- // },
|
|
|
|
{
|
|
{
|
|
item: { key: "customerName", title: "客户" },
|
|
item: { key: "customerName", title: "客户" },
|
|
attr: {},
|
|
attr: {},
|
|
@@ -30,7 +34,7 @@ export const TableColumns = [
|
|
attr: {
|
|
attr: {
|
|
is: "el-computed-input-v2",
|
|
is: "el-computed-input-v2",
|
|
formatter: (prop) => {
|
|
formatter: (prop) => {
|
|
- return (prop.tax * 1).toFixed(CONFIG.precision);
|
|
|
|
|
|
+ return (prop * 1).toFixed(CONFIG.precision);
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
@@ -38,8 +42,8 @@ export const TableColumns = [
|
|
item: { key: "taxFreePrice", title: "无税单价" },
|
|
item: { key: "taxFreePrice", title: "无税单价" },
|
|
attr: {
|
|
attr: {
|
|
is: "el-computed-input-v2",
|
|
is: "el-computed-input-v2",
|
|
- formatter: (prop = 0) => {
|
|
|
|
- return (prop.tax * 1).toFixed(CONFIG.precision);
|
|
|
|
|
|
+ formatter: (prop) => {
|
|
|
|
+ return (prop * 1).toFixed(CONFIG.precision);
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
@@ -47,13 +51,13 @@ export const TableColumns = [
|
|
item: { key: "taxPrice", title: "主含税单价" },
|
|
item: { key: "taxPrice", title: "主含税单价" },
|
|
attr: {
|
|
attr: {
|
|
is: "el-computed-input-v2",
|
|
is: "el-computed-input-v2",
|
|
- formatter: (prop = 0) => {
|
|
|
|
- return (prop.tax * 1).toFixed(CONFIG.precision);
|
|
|
|
|
|
+ formatter: (prop) => {
|
|
|
|
+ return (prop * 1).toFixed(CONFIG.precision);
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- item: { key: "purchaseQuantity", title: "本次采购数量" },
|
|
|
|
|
|
+ item: { key: "purchaseQuantity", title: "本次采购数量", fixed: "left" },
|
|
attr: {
|
|
attr: {
|
|
is: "el-input-number",
|
|
is: "el-input-number",
|
|
min: () => 0,
|
|
min: () => 0,
|
|
@@ -65,7 +69,7 @@ export const TableColumns = [
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- item: { key: "arrivalDatePlan", title: "计划到货日期" },
|
|
|
|
|
|
+ item: { key: "arrivalDatePlan", title: "计划到货日期", fixed: "left" },
|
|
attr: {
|
|
attr: {
|
|
is: "el-date-picker",
|
|
is: "el-date-picker",
|
|
valueFormat: "yyyy-MM-dd",
|
|
valueFormat: "yyyy-MM-dd",
|
|
@@ -77,7 +81,7 @@ export const TableColumns = [
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- item: { key: "note", title: "备注" },
|
|
|
|
|
|
+ item: { key: "note", title: "备注", fixed: "left" },
|
|
attr: {
|
|
attr: {
|
|
is: "el-input",
|
|
is: "el-input",
|
|
autosize: true,
|
|
autosize: true,
|