Prechádzať zdrojové kódy

修复价格列隐藏问题

MY 19 hodín pred
rodič
commit
db0ed06d53

+ 13 - 3
JLHWEB/src/views/quote/mattressQuote/hooks/index.tsx

@@ -3011,14 +3011,27 @@ export const useHooks = (t?: any) => {
         titleKey: "bi_foreign_cost"
       }
     },
+    {
+      field: "total_cost",
+      table: "u_mattress",
+      title: "总成本",
+      visible: userInfo.usermode !== 1
+    },
     {
       field: "nottax_dept_cost",
       table: "u_mattress",
       title: "部门不含税价",
+      visible: userInfo.usermode !== 1,
       basicinfo: {
         titleKey: "bi_nottax_dept_cost"
       }
     },
+    {
+      field: "dept_cost",
+      table: "u_mattress",
+      title: "部门含税价",
+      visible: userInfo.usermode !== 1
+    },
     {
       field: "if_bcp_type",
       title: "半成品",
@@ -3506,7 +3519,6 @@ export const useHooks = (t?: any) => {
     },
     {
       field: "dannum_cost1",
-      visible: userInfo.usermode !== 1,
       exportMethod: (scope: any) => {
         const val = formatAmount3({ val: floatDiv(scope.row?.dannum_cost1 ?? 0, scope.row.moneyrate) });
         return `${scope.row.moneyrate > 1 ? `$` : ""}${val}`;
@@ -3528,7 +3540,6 @@ export const useHooks = (t?: any) => {
     },
     {
       field: "dannum_cost2",
-      visible: userInfo.usermode !== 1,
       exportMethod: (scope: any) => {
         const val = formatAmount3({ val: floatDiv(scope.row?.dannum_cost2 ?? 0, scope.row.moneyrate) });
         return `${scope.row.moneyrate > 1 ? `$` : ""}${val}`;
@@ -3550,7 +3561,6 @@ export const useHooks = (t?: any) => {
     },
     {
       field: "dannum_cost3",
-      visible: userInfo.usermode !== 1,
       exportMethod: (scope: any) => {
         const val = formatAmount3({ val: floatDiv(scope.row?.dannum_cost3 ?? 0, scope.row.moneyrate) });
         return `${scope.row.moneyrate > 1 ? `$` : ""}${val}`;