zhengyiming
2 天以前 1327b99efda99ada27a956981648950f580314b0
1
2
3
4
5
6
7
8
9
10
11
import { SupplierProfitUintText } from '@/constants';
 
export function getSupplierRefund(row: API.OrderSupplierRefundInfo[]) {
  if (!row?.length) {
    return '未填写供应商利润';
  }
  const item = row[0];
  return `${item.supplierProfit}${
    SupplierProfitUintText[item.supplierProfitUint] ?? '未填写供应商利润'
  }`;
}