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