瀏覽代碼

价格申报单修改

黄梓星 1 年之前
父節點
當前提交
b820112af6

+ 10 - 10
src/views/purchase/apply/add/columns.js

@@ -337,36 +337,36 @@ export default function useColumns() {
           attr: {
             formatter: (prop) => {
               const { priceDiffer = 0, recentlyPrice = 0 } = prop;
-              return (prop.increase = recentlyPrice ? ((Number(priceDiffer) / Number(recentlyPrice)) * 100).toFixed(1) + '%' : "0.0%");
+              return (prop.increase = recentlyPrice ? ((Number(priceDiffer) / Number(recentlyPrice)) * 100).toFixed(1) : 0);
             },
           },
         },
 
         {
-          item: { width: 100, key: "ypurchaseQuantity", title: "预计年采购量" },
+          item: { width: 100, key: "yPurchaseQuantity", title: "预计年采购量" },
           attr: {
             // is: "el-computed-input-v2",
             formatter: (prop) => {
-              return prop.ypurchaseQuantity
+              return prop.yPurchaseQuantity
             },
           },
         },
         {
-          item: { width: 100, key: "ypurchaseVolume", title: "预计年采购额" },
+          item: { width: 100, key: "yPurchaseVolume", title: "预计年采购额" },
           attr: {
             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: {
             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));
             },
           },
         },

+ 10 - 10
src/views/purchase/apply/copy/columns.js

@@ -337,36 +337,36 @@ export default function useColumns() {
           attr: {
             formatter: (prop) => {
               const { priceDiffer = 0, recentlyPrice = 0 } = prop;
-              return (prop.increase = recentlyPrice ? ((Number(priceDiffer) / Number(recentlyPrice)) * 100).toFixed(1) + '%' : "0.0%");
+              return (prop.increase = recentlyPrice ? ((Number(priceDiffer) / Number(recentlyPrice)) * 100).toFixed(1) : 0);
             },
           },
         },
 
         {
-          item: { width: 100, key: "ypurchaseQuantity", title: "预计年采购量" },
+          item: { width: 100, key: "yPurchaseQuantity", title: "预计年采购量" },
           attr: {
             // is: "el-computed-input-v2",
             formatter: (prop) => {
-              return prop.ypurchaseQuantity
+              return prop.yPurchaseQuantity
             },
           },
         },
         {
-          item: { width: 100, key: "ypurchaseVolume", title: "预计年采购额" },
+          item: { width: 100, key: "yPurchaseVolume", title: "预计年采购额" },
           attr: {
             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: {
             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)
               ));
             },
           },

+ 10 - 10
src/views/purchase/apply/edit/columns.js

@@ -337,36 +337,36 @@ export default function useColumns() {
           attr: {
             formatter: (prop) => {
               const { priceDiffer = 0, recentlyPrice = 0 } = prop;
-              return (prop.increase = recentlyPrice ? ((Number(priceDiffer) / Number(recentlyPrice)) * 100).toFixed(1) + '%': "0.0%");
+              return (prop.increase = recentlyPrice ? ((Number(priceDiffer) / Number(recentlyPrice)) * 100).toFixed(1): 0);
             },
           },
         },
 
         {
-          item: { width: 100, key: "ypurchaseQuantity", title: "预计年采购量" },
+          item: { width: 100, key: "yPurchaseQuantity", title: "预计年采购量" },
           attr: {
             // is: "el-computed-input-v2",
             formatter: (prop) => {
-              return prop.ypurchaseQuantity
+              return prop.yPurchaseQuantity
             },
           },
         },
         {
-          item: { width: 100, key: "ypurchaseVolume", title: "预计年采购额" },
+          item: { width: 100, key: "yPurchaseVolume", title: "预计年采购额" },
           attr: {
             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: {
             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)
               ));
             },
           },

+ 8 - 8
src/views/purchase/apply/see/columns.js

@@ -214,35 +214,35 @@ export default function useColumns() {
         },
 
         {
-          item: { width: 100, key: "increase", title: "涨幅" },
+          item: { width: 100, key: "increase", title: "涨幅(%)" },
           attr: {
             formatter: (prop) => {
               const { priceDiffer = 0, recentlyPrice = 0 } = prop;
-              return (prop.increase = recentlyPrice ? ((Number(priceDiffer) / Number(recentlyPrice)) * 100).toFixed(1) + '%' : "0.0%");
+              return (prop.increase = recentlyPrice ? ((Number(priceDiffer) / Number(recentlyPrice)) * 100).toFixed(1) + '%' : "0%");
             },
           },
         },
 
         {
-          item: { width: 100, key: "ypurchaseQuantity", title: "预计年采购量" },
+          item: { width: 100, key: "yPurchaseQuantity", title: "预计年采购量" },
           attr: {
             // is: "el-computed-input-v2",
             formatter: (prop) => {
-              return prop.ypurchaseQuantity
+              return prop.yPurchaseQuantity
             },
           },
         },
         {
-          item: { width: 100, key: "ypurchaseVolume", title: "预计年采购额" },
+          item: { width: 100, key: "yPurchaseVolume", title: "预计年采购额" },
           attr: {
             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: {
             is: "el-computed-input-v2",
             formatter: (prop) => {

+ 2 - 2
vue.config.js

@@ -37,7 +37,7 @@ module.exports = {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
         // target: `http://172.16.100.107:8080/drp-admin`, //测试
-       // target: `http://test-sy.derom.com/drp-admin`, //测试
+       target: `http://test-sy.derom.com/drp-admin`, //测试
         // target: `http://release-sy.derom.com/drp-admin`, //预发
         // target: `http://sy.derom.com/drp-admin`, //生产
         // target: `http://172.16.63.202:8000/drp-admin`, // D本地
@@ -46,7 +46,7 @@ module.exports = {
         // target: `http://172.16.13.47:8000/drp-admin`, //这是一个美女的本地
         // target: `http://172.16.13.113:8000/drp-admin`, //DWT本地
         // target: `http://172.16.13.21:8000/drp-admin`, //CKF本地
-        target: `http://172.16.61.99:8000/drp-admin`, //lz's localhost
+        // target: `http://172.16.61.99:8000/drp-admin`, //lz's localhost
         //  target: `http://127.0.0.1:8000/drp-admin`,
         changeOrigin: true,
         pathRewrite: {