|
@@ -87,7 +87,7 @@ export default function useColumns() {
|
|
},
|
|
},
|
|
{
|
|
{
|
|
item: { key: "sourceType", title: "来源单据类型" },
|
|
item: { key: "sourceType", title: "来源单据类型" },
|
|
- attr: { is: "el-input", disabled: true, readonly: true },
|
|
|
|
|
|
+ attr: { is: "el-select", dictName: "price_source", disabled: true, readonly: true },
|
|
},
|
|
},
|
|
{
|
|
{
|
|
item: { key: "status", title: "单据状态" },
|
|
item: { key: "status", title: "单据状态" },
|
|
@@ -336,40 +336,36 @@ export default function useColumns() {
|
|
attr: {
|
|
attr: {
|
|
formatter: (prop) => {
|
|
formatter: (prop) => {
|
|
const { priceDiffer = 0, recentlyPrice = 0 } = prop;
|
|
const { priceDiffer = 0, recentlyPrice = 0 } = prop;
|
|
- return (prop.increase = recentlyPrice
|
|
|
|
- ? ((Number(priceDiffer) / Number(recentlyPrice)) * 100).toFixed(
|
|
|
|
- 2
|
|
|
|
- )
|
|
|
|
- : "0.00");
|
|
|
|
|
|
+ return (prop.increase = recentlyPrice ? ((Number(priceDiffer) / Number(recentlyPrice)) * 100).toFixed(1) + '%': "0.0%");
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
|
|
{
|
|
{
|
|
- item: { width: 100, key: "yPurchaseQuantity", title: "预计年采购量" },
|
|
|
|
|
|
+ item: { width: 100, key: "ypurchaseQuantity", title: "预计年采购量" },
|
|
attr: {
|
|
attr: {
|
|
- is: "el-computed-input-v2",
|
|
|
|
|
|
+ // is: "el-computed-input-v2",
|
|
formatter: (prop) => {
|
|
formatter: (prop) => {
|
|
- return prop == null ? 0 : (prop * 1);
|
|
|
|
|
|
+ return prop.ypurchaseQuantity
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- item: { width: 100, key: "yPurchaseVolume", title: "预计年采购额" },
|
|
|
|
|
|
+ item: { width: 100, key: "ypurchaseVolume", title: "预计年采购额" },
|
|
attr: {
|
|
attr: {
|
|
formatter: (prop) => {
|
|
formatter: (prop) => {
|
|
- const { taxPrice = 0, yPurchaseQuantity = 0 } = prop;
|
|
|
|
- return (prop.yPurchaseVolume = (Number(taxPrice) * Number(yPurchaseQuantity)).toFixed(2));
|
|
|
|
|
|
+ const { taxPrice = 0, ypurchaseQuantity = 0 } = prop;
|
|
|
|
+ return (prop.ypurchaseVolume = (Number(taxPrice) * Number(ypurchaseQuantity)).toFixed(2));
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- item: { width: 100, key: "yAffectedAmount", title: "预计年影响金额" },
|
|
|
|
|
|
+ item: { width: 100, key: "yaffectedAmount", title: "预计年影响金额" },
|
|
attr: {
|
|
attr: {
|
|
formatter: (prop) => {
|
|
formatter: (prop) => {
|
|
- const { priceDiffer = 0, yPurchaseQuantity = 0 } = prop;
|
|
|
|
- return (prop.yAffectedAmount = (
|
|
|
|
- Number(priceDiffer) * Number(yPurchaseQuantity)
|
|
|
|
|
|
+ const { priceDiffer = 0, ypurchaseQuantity = 0 } = prop;
|
|
|
|
+ return (prop.yaffectedAmount = (
|
|
|
|
+ Number(priceDiffer) * Number(ypurchaseQuantity)
|
|
));
|
|
));
|
|
},
|
|
},
|
|
},
|
|
},
|