data.tsx 2.7 KB
import { InputNumber, Tag } from 'ant-design-vue';
import { BasicColumn } from '@/components/Table';
import { func } from 'vue-types';
import { h, ref } from 'vue';
import { FilePptOutlined } from '@ant-design/icons-vue';

// export const COLUMNS = [
//   {
//     title: '客户编码',
//     dataIndex: 'settingValue',
//     width: 150,
//   },
//   {
//     title: '利润率',
//     dataIndex: 'relationValue',
//     width: 150,
//     editComponent: 'InputNumber',
//     editRow: true,
//     scopedSlots: { customRender: 'name' }
//   },
// ];
export const COLUMNS = [
  {
    title: '客户编码',
    dataIndex: 'customerCode',
    width: 150,
  },
  {
    title: '项目号',
    dataIndex: 'projectNo',
    width: 100,
  },
  {
    title: '生产科',
    dataIndex: 'productionDepartment',
    width: 100,
  },
  {
    title: '内部编号',
    dataIndex: 'innerNo',
    width: 100,
  },
  {
    title: '订单图片',
    dataIndex: 'picUrl',
    width: 100,
  },
  {
    title: '数量',
    dataIndex: 'orderCount',
    width: 100,
  },
  {
    title: '包装费用$',
    dataIndex: 'packetPrice',
    width: 120,
    customRender: (column) => {
      console.log(column, '565665pa');
      return column.record?.packetPrice?.toFixed(2);
    },
  },
  {
    title: '包装费用合计¥',
    dataIndex: 'packetRmbTotalPrice',
    width: 120,
    customRender: (column) => {
      console.log(column, '565665pa');
      return column.record?.packetRmbTotalPrice?.toFixed(2);
    },
  },
  {
    title: '包装费用合计$',
    dataIndex: 'packetTotalPrice',
    width: 120,
    customRender: (column) => {
      console.log(column, '5656column');

      return column.record?.packetTotalPrice?.toFixed(2);
    },
  },
  {
    title: '包装费用实际金额¥',
    dataIndex: 'packetActualRmbTotalPrice',
    width: 150,
    customRender: (column) => {
      return column.record?.packetActualRmbTotalPrice?.toFixed(2);
    },
  },
  {
    title: '实际跟单单价¥',
    dataIndex: 'packetActualRmbPrice',
    width: 120,
    customRender: (column) => {
      return column.record?.packetActualRmbPrice?.toFixed(2);
    },
  },
  {
    title: '实际跟单单价折算美金$',
    dataIndex: 'packetActualPrice',
    width: 170,
    customRender: (column) => {
      return column.record?.packetActualPrice?.toFixed(2);
    },
  },
  {
    title: '包装费用收益¥',
    dataIndex: 'packetProfitRmbPrice',
    width: 120,
    customRender: (column) => {
      return column.record?.packetProfitRmbPrice?.toFixed(2);
    },
  },
  {
    title: '包装费用净利润率',
    dataIndex: 'packetProfitRate',
    width: 140,
    customRender: (column) => {
      return column.record?.packetProfitRate?.toFixed(2);
    },
  },
];