detail.js 4.65 KB
export default function() {
  return {
    loading: false,
    tableCols: [
      {
        title: '对账单号',
        key: 'balanceId',
        align: 'center',
      },
      {
        title: 'SKU',
        key: 'productSku',
        align: 'center',
      },
      {
        title: '产品名称',
        key: 'productName',
        align: 'center',
      },
      {
        title: '厂商编号',
        key: 'factoryCode',
        align: 'center',
      },
      {
        title: '品牌',
        key: 'brandName',
        align: 'center',
      },
      {
        title: '订单号',
        key: 'orderCode',
        align: 'center',
      },
      {
        title: '订单渠道',
        key: 'orderTypeDesc',
        align: 'center',
      },
      {
        title: '业务类型',
        key: 'typeDesc',
        align: 'center',
      },
      {
        title: '吊牌价',
        key: 'retailPrice',
        align: 'center',
      },
      {
        title: '平台服务费比例',
        key: 'yohoDeservePercent',
        align: 'center',
      },
      {
        title: '结算类型',
        key: 'sellTypeDesc',
        align: 'center',
      },
      {
        title: '数量',
        key: 'salesNums',
        align: 'center',
      },
      {
        title: '供应商应得',
        key: 'clearingPriceSum',
        align: 'center',
      },
      {
        title: '审核状态',
        key: 'checkDesc',
        align: 'center',
      },
      {
        title: '结算单状态',
        key: 'statusDesc',
        align: 'center',
      },
      {
        title: '合同类型',
        key: 'agreementIsAbnormalDesc',
        align: 'center',
      },
    ],
    tableData: [],
    pageData: {
      total: 0,
      pageNo: 1,
      pageSize: 20,
    },
    filters: {
      createTime: {
        label: '创建时间',
        labelSpan: 6,
        model: null,
        holder: '',
        fieldSpan: 18,
      },
      orderCode: {
        label: '订单号',
        labelSpan: 6,
        model: this.$route.query.orderCode,
        holder: '订单号',
        fieldSpan: 18,
      },
      productSku: {
        label: 'SKU',
        labelSpan: 6,
        model: this.$route.query.productSku,
        holder: 'SKU',
        fieldSpan: 18,
      },
      balanceId: {
        label: '对账单号',
        labelSpan: 6,
        model: this.$route.query.balanceId,
        holder: '对账单号',
        fieldSpan: 18,
      },
      brandId: {
        label: '品牌',
        labelSpan: 6,
        model: this.$route.query.brandId,
        holder: '品牌',
        fieldSpan: 18,
      },
      type: {
        label: '业务类型',
        labelSpan: 6,
        model: this.$route.query.type,
        holder: '业务类型',
        fieldSpan: 18,
        options: [
          {
            value: 30,
            label: '订单出库',
          },
          {
            value: 31,
            label: '换货入库',
          },
          {
            value: 32,
            label: '换货出库',
          },
          {
            value: 33,
            label: '退货入库',
          },
          {
            value: 60,
            label: '促销出库',
          },
          {
            value: 75,
            label: '盘亏出库',
          },
          {
            value: 76,
            label: '分销销售',
          },
          {
            value: 77,
            label: '分销退货',
          },
          {
            value: 80,
            label: '残次出库',
          },
          {
            value: 90,
            label: 'VIP折扣',
          },
          {
            value: 91,
            label: '优惠券结算',
          },
          {
            value: 92,
            label: '分销促销',
          },
          {
            value: 96,
            label: '特退补差价',
          },
          {
            value: 97,
            label: '红包结算',
          },
        ],
      },
      status: {
        label: '结算状态',
        labelSpan: 6,
        model: this.$route.query.status,
        holder: '结算状态',
        fieldSpan: 18,
        options: [
          {
            value: 1,
            label: '未结算',
          },
          {
            value: 2,
            label: '已结算',
          },
        ],
      },
      agreementIsAbnormal: {
        label: '合同类型',
        labelSpan: 6,
        model: this.$route.query.agreementIsAbnormal,
        holder: '合同类型',
        fieldSpan: 18,
        options: [
          {
            value: 1,
            label: '正常',
          },
          {
            value: 2,
            label: '异常',
          },
        ],
      },
    },
  };
}