import i18n from '../../../locale/index';
import Config from '../../../config/index';

const $t = (name) => {
  let text = i18n.vm.messages['zh-CN'][name];
  if (!text) {
    text = name
  }
  return text;
}

const data = {
// 销售明细表
  'order-detail-report': {
    // 是否显示合计行
    showFooter: true,
    // 接口文件
    serviceStr: 'detailReportService',
    // 查询方法
    methodsName: 'getOrderDetailReport',
    // 查询条件
    searchContent: [
      // 订单单号
      {itemCode: 'orderNo'},
      // 销售单据类型
      {
        itemCode: 'ordTypeName',
        valueFormat: {
          code: 'ordTypeList',
          service:'commonService',
          method:'getDataKind',
          kindType:Config.kindType.ordType,
          data: [],
          valueKey: 'id',
          labelKey: 'kindName',
        },
        valueKind: 'M-CHOICE'
      },
      // 订单状态
      {
        itemCode: 'orderStatus',
        valueFormat: {
          code: 'ordStatusList',
          service:'commonService',
          method:'getDataKind',
          kindType:Config.kindType.ordStatus,
          data: [],
          valueKey: 'id',
          labelKey: 'kindName',
        },
        valueKind: 'M-CHOICE'
      },
      // 联系人
      {itemCode: 'contactName'},
      // 送货日期
      {
        itemCode: 'deliveryDate',
        valueFormat: {
          code: 'deliveryDate',
        },
        valueKind: 'DATE_RANGE'
      },
      // 客户名称
      {itemCode: 'cusName'},
      // 客户电话
      {
        itemCode: 'cusPhone',
        valueFormat: {
          code: 'cusPhone',
        },
        valueKind: 'M-SEARCH',
        magnifierType: Config.MagnifierType.customer,
      },
      // 业务部门
      {
        itemCode: 'orgId',
        valueFormat: {
          code: 'orgIdList',
        },
        magnifierType: Config.MagnifierType.org,
        valueKind: 'M-SEARCH'
      },
      // 业务员
      {
        itemCode: 'staffId',
        valueFormat: {
          code: 'staffIdList',
        },
        magnifierType: Config.MagnifierType.staff,
        valueKind: 'M-SEARCH'
      },
      // 制单日期
      {
        itemCode: 'makeTime',
        valueFormat: {
          code: 'makeTime',
        },
        valueKind: 'DATE_RANGE'
      },
      // 详细地址
      {itemCode: 'addressFull'},
      // 主表备注
      {
        itemCode: 'remarks'
      },
      //商品名称
      {itemCode: 'skuName'},
      //商品型号
      {itemCode: 'skuModel'},
      // 品牌
      {
        itemCode: 'brandIds',
        valueFormat: {
          code: 'goodsBrandList',
          service:'goodsBrandService',
          method:'selectByCond',
          data: [],
          valueKey: 'brandId',
          labelKey: 'brandName',
        },
        valueKind: 'M-CHOICE'
      },
      // 系列
      {
        itemCode: 'series',
        valueFormat: {
          code: 'goodsSeriesList',
          service:'goodsSeriesService',
          method:'getGoodsSeriesList',
          data: [],
          valueKey: 'seriesId',
          labelKey: 'seriesName',
        },
        valueKind: 'M-CHOICE'
      },
      // 种类
      {
        itemCode: 'category',
        valueFormat: {
          code: 'goodsCategoryList',
          service:'goodsCategoryService',
          method:'selectByCond',
          data: [],
          valueKey: 'catId',
          labelKey: 'catName',
        },
        valueKind: 'M-CHOICE'
      },
      {itemCode: 'flgViewItem',valueKind:'SWITCH',itemName:'查看明细'},
    ],
    // 列表列
    columns: [
      {field: 'orderNo',type:'link',linkType:'ORD'},
      {field: 'cusName',type:'link',linkType:'CUS'},
      {field: 'cusPhone'},
      {field: 'contactName'},
      {field: 'contactPhone'},
      {field: 'orderStatusName'},
      {field: 'addressFull'},
      {field: 'deliveryDate',dataType: 'date'},
      {field: 'orgName'},
      {field: 'staffName'},
      {field: 'channelName'},
      {field: 'cusFromName'},
      {field: 'makeStaffName'},
      {field: 'makeTime',dataType:"dateTime"},
      {field: 'sumQuantity',dataType:'number',align:'right'},
      {field: 'sumStandard',dataType:'number',align:'right'},
      {field: 'sumAmount',dataType:'number',align:'right'},
      {field: 'saleDiscount',dataType:'number',align:'right'},
      {field: 'paymentNo'},
      {field: 'amtReceivable',dataType:'number',align:'right'},
      {field: 'amtHandle',dataType:'number',align:'right'},
      {field: 'amtResidue',dataType:'number',align:'right'},
      {field: 'remarks', width: 'auto'}
    ],
    detailColumns:[
      {field: 'skuName'},
      {field: 'skuModel'},
      {field: 'nonStdCode'},
      {field: 'shortName'},
      {field: 'catName'},
      {field: 'seriesName'},
      {field: 'outNo'},
      {field: 'outStatusName'},
      {field: 'whName'},
      {field: 'itemQty',dataType:'number',align:'right'},
      {field: 'priceStd',dataType:'number',align:'right'},
      {field: 'amtStd',dataType:'number',align:'right'},
      {field: 'priceSale',dataType:'number',align:'right'},
      {field: 'itemAmt',dataType:'number',align:'right'},
      {field: 'priceDiscount',dataType:'number',align:'right'},
      {field: 'outingQty',dataType:'number',align:'right'},
      {field: 'outingAmt',dataType:'number',align:'right'},
      {field: 'outQty',dataType:'number',align:'right'},
      {field: 'outAmt',dataType:'number',align:'right'},
      {field: 'returnQty',dataType:'number',align:'right'},
      {field: 'returnAmt',dataType:'number',align:'right'},
    ]
  },
  // 库存查询
  'ivt-detail-report':{
    // 是否显示合计行
    showFooter: true,
    // 接口文件
    serviceStr: 'detailReportService',
    // 查询方法
    methodsName: 'getIvtDetailReport',
    // 查询条件
    searchContent: [
      {itemCode: 'skuCode'},
      {itemCode: 'skuName'},
      {itemCode: 'nonStdCode'},
      {itemCode: 'whName'},
      {itemCode: 'skuName'},
      {itemCode: 'flgViewItem',valueKind:'SWITCH',itemName:'查看明细'},
    ],
    // 列表列
    columns: [
      {field: 'skuCode'},
      {field: 'skuName'},
      {field: 'skuModel'},
      {field: 'brandName'},
      {field: 'categoryName'},
      {field: 'unitName'},
      {field: 'conversionFactor'},
      {field: 'seriesName'},
      {field: 'skuSpec'},
      {field: 'pricePurchase'},
      {field: 'priceStandard'},
      {field: 'priceWholesale'},
      {field: 'priceLimited'},
      {field: 'skuImages'},
      {field: 'nonStdCode'},
      {field: 'invQty',dataType: 'number',align:'right', digits: 2, sum: true},
      {field: 'outingQty',dataType: 'number',align:'right', digits: 2, sum: true},
      {field: 'usableQty',dataType: 'number',align:'right', digits: 2, sum: true},
      {field: 'whCode'},
      {field: 'whName'},
      {field: 'priceInto'},
      {field: 'remarks', width: 'auto'}
    ],
    detailColumns:[
      {field: 'orgCode1'},
      {field: 'orgName2'},
    ]
  },
  // 采购明细表
  'pur-detail-report': {
    // 是否显示合计行
    showFooter: true,
    // 接口文件
    serviceStr: 'detailReportService',
    // 查询方法
    methodsName: 'getPurDetailReport',
    // 查询条件
    searchContent: [
      // 采购单号
      {itemCode: 'purNo'},
      // 采购单据类型
      {
        itemCode: 'purTypeName',
        valueFormat: {
          code: 'purTypeList',
          service:'commonService',
          method:'getDataKind',
          kindType:Config.kindType.purType,
          data: [],
          valueKey: 'id',
          labelKey: 'kindName',
        },
        valueKind: 'M-CHOICE'
      },
      // 订单状态
      {
        itemCode: 'orderStatus',
        valueFormat: {
          code: 'purStatusList',
          service:'commonService',
          method:'getDataKind',
          kindType:Config.kindType.ordStatus,
          data: [],
          valueKey: 'id',
          labelKey: 'kindName',
        },
        valueKind: 'M-CHOICE'
      },
      // 联系人
      {itemCode: 'contactName'},
      // 取货日期
      {
        itemCode: 'pickupDate',
        valueFormat: {
          code: 'pickupDate',
        },
        valueKind: 'DATE_RANGE'
      },
      // 联系电话
      {itemCode: 'contactPhone'},
      // 供应商
      {
        itemCode: 'supplierName',
        valueFormat: {
          code: 'supIdlist',
        },
        valueKind: 'M-SEARCH',
        magnifierType: Config.MagnifierType.supplier,
      },
      // 业务部门
      {
        itemCode: 'orgId',
        valueFormat: {
          code: 'orgIdList',
        },
        magnifierType: Config.MagnifierType.org,
        valueKind: 'M-SEARCH'
      },
      // 业务员
      {
        itemCode: 'staffId',
        valueFormat: {
          code: 'staffIdList',
        },
        magnifierType: Config.MagnifierType.staff,
        valueKind: 'M-SEARCH'
      },
      // 制单日期
      {
        itemCode: 'makeTime',
        valueFormat: {
          code: 'makeTime',
        },
        valueKind: 'DATE_RANGE'
      },
      // 主表备注
      {
        itemCode: 'remarks'
      },
      //商品名称
      {itemCode: 'skuName'},
      //商品型号
      {itemCode: 'skuModel'},
      // 品牌
      {
        itemCode: 'brandIds',
        valueFormat: {
          code: 'goodsBrandList',
          service:'goodsBrandService',
          method:'selectByCond',
          data: [],
          valueKey: 'brandId',
          labelKey: 'brandName',
        },
        valueKind: 'M-CHOICE'
      },
      // 系列
      {
        itemCode: 'series',
        valueFormat: {
          code: 'goodsSeriesList',
          service:'goodsSeriesService',
          method:'getGoodsSeriesList',
          data: [],
          valueKey: 'seriesId',
          labelKey: 'seriesName',
        },
        valueKind: 'M-CHOICE'
      },
      // 种类
      {
        itemCode: 'category',
        valueFormat: {
          code: 'goodsCategoryList',
          service:'goodsCategoryService',
          method:'selectByCond',
          data: [],
          valueKey: 'catId',
          labelKey: 'catName',
        },
        valueKind: 'M-CHOICE'
      },
      {itemCode: 'flgViewItem',valueKind:'SWITCH',itemName:'查看明细'},
    ],
    // 列表列
    columns: [
      {field: 'purNo' ,type:'link',linkType:'PUR'},
      {field: 'purTypeName'},
      {field: 'supplierName'},
      {field: 'orgName'},
      {field: 'staffName'},
      {field: 'pickupDate'},
      {field: 'contactName'},
      {field: 'contactPhone'},
      {field: 'purStatusName'},
      {field: 'makeStaffName'},
      {field: 'makeTime',dataType:"dateTime"},
      {field: 'intoingQtySum',dataType:'number',align:'right'},
      {field: 'intoingAmtSum',dataType:'number',align:'right'},
      {field: 'intoQtySum',dataType:'number',align:'right'},
      {field: 'intoAmtSum',dataType:'number',align:'right'},
      {field: 'returnInQtySum',dataType:'number',align:'right'},
      {field: 'returnInAmtSum',dataType:'number',align:'right'},
      {field: 'amtPayable',dataType:'number',align:'right'},
      {field: 'amtResidue',dataType:'number',align:'right'},
      {field: 'remarks', width: 'auto'}
    ],
    detailColumns:[
      {field: 'skuName'},
      {field: 'skuModel'},
      {field: 'nonStdCode'},
      {field: 'shortName'},
      {field: 'catName'},
      {field: 'seriesName'},
      {field: 'orderNo'},
      {field: 'intoNo'},
      {field: 'intoStatus'},
      {field: 'itemQty',dataType:'number',align:'right'},
      {field: 'pricePur',dataType:'number',align:'right'},
      {field: 'itemAmt',dataType:'number',align:'right'},
      {field: 'intoingQty',dataType:'number',align:'right'},
      {field: 'intoingAmt',dataType:'number',align:'right'},
      {field: 'intoQty',dataType:'number',align:'right'},
      {field: 'intoAmt',dataType:'number',align:'right'},
      {field: 'returnQty',dataType:'number',align:'right'},
      {field: 'returnAmt',dataType:'number',align:'right'},
    ]
  },
  // 出库明细报表
  'out-detail-report': {
    // 是否显示合计行
    showFooter: true,
    // 接口文件
    serviceStr: 'detailReportService',
    // 查询方法
    methodsName: 'getOutboundDetailReport',
    // 查询条件
    searchContent: [
      // 出库单号
      {itemCode: 'outNo'},
      // 出库类型
      {
        itemCode: 'outTypeName',
        valueFormat: {
          code: 'outTypeList',
          service:'commonService',
          method:'getDataKind',
          kindType:Config.kindType.outType,
          data: [],
          valueKey: 'id',
          labelKey: 'kindName',
        },
        valueKind: 'M-CHOICE'
      },
      // 出库状态
      {
        itemCode: 'outStatus',
        valueFormat: {
          code: 'outStatusList',
          service:'commonService',
          method:'getDataKind',
          kindType:Config.kindType.outStatus,
          data: [],
          valueKey: 'id',
          labelKey: 'kindName',
        },
        valueKind: 'M-CHOICE'
      },
      // 供应商
      {
        itemCode: 'supplierName',
        valueFormat: {
          code: 'supIdlist',
        },
        valueKind: 'M-SEARCH',
        magnifierType: Config.MagnifierType.supplier,
      },
      // 出库日期
      {
        itemCode: 'outDate',
        valueFormat: {
          code: 'outDate',
        },
        valueKind: 'DATE_RANGE'
      },
      // 客户名称
      {itemCode: 'cusName'},
      // 客户电话
      {
        itemCode: 'cusPhone',
        valueFormat: {
          code: 'cusPhone',
        },
        valueKind: 'M-SEARCH',
        magnifierType: Config.MagnifierType.customer,
      },
      // 业务部门
      {
        itemCode: 'orgId',
        valueFormat: {
          code: 'orgIdList',
        },
        magnifierType: Config.MagnifierType.org,
        valueKind: 'M-SEARCH'
      },
      // 业务员
      {
        itemCode: 'staffId',
        valueFormat: {
          code: 'staffIdList',
        },
        magnifierType: Config.MagnifierType.staff,
        valueKind: 'M-SEARCH'
      },
      // 制单日期
      {
        itemCode: 'makeTime',
        valueFormat: {
          code: 'makeTime',
        },
        valueKind: 'DATE_RANGE'
      },
      // 来源单号
      {itemCode: 'fromNo'},
      // 主表备注
      {
        itemCode: 'remarks'
      },
      //商品名称
      {itemCode: 'skuName'},
      //商品型号
      {itemCode: 'skuModel'},
      // 品牌
      {
        itemCode: 'brandIds',
        valueFormat: {
          code: 'goodsBrandList',
          service:'goodsBrandService',
          method:'selectByCond',
          data: [],
          valueKey: 'brandId',
          labelKey: 'brandName',
        },
        valueKind: 'M-CHOICE'
      },
      // 系列
      {
        itemCode: 'series',
        valueFormat: {
          code: 'goodsSeriesList',
          service:'goodsSeriesService',
          method:'getGoodsSeriesList',
          data: [],
          valueKey: 'seriesId',
          labelKey: 'seriesName',
        },
        valueKind: 'M-CHOICE'
      },
      // 种类
      {
        itemCode: 'category',
        valueFormat: {
          code: 'goodsCategoryList',
          service:'goodsCategoryService',
          method:'selectByCond',
          data: [],
          valueKey: 'catId',
          labelKey: 'catName',
        },
        valueKind: 'M-CHOICE'
      },
      // 仓位
      {
        itemCode: 'whName',
        valueFormat: {
          code: 'whList',
          service:'commonService',
          method:'getWarehouse',
          data: [],
          valueKey: 'whId',
          labelKey: 'whName',
        },
        valueKind: 'M-CHOICE'
      },
      {itemCode: 'flgViewItem',valueKind:'SWITCH',itemName:'查看明细'},
    ],
    // 列表列
    columns: [
      {field: 'outNo',type: 'link',linkType: 'OUT'},
      {field: 'fromNo'},
      {field: 'outTypeName'},
      {field: 'outStatusName'},
      {field: 'supplierName'},
      {field: 'cusName',type:'link', linkType:'CUS'},
      {field: 'cusPhone'},
      {field: 'cusFrom'},
      {field: 'outDate',dataType: 'date'},
      {field: 'orgName'},
      {field: 'staffName'},
      {field: 'makeStaffName'},
      {field: 'makeTime',dataType:"dateTime"},
      {field: 'outingQtySum',dataType:'number',align:'right'},
      {field: 'outingAmtSum',dataType:'number',align:'right'},
      {field: 'outQtySum',dataType:'number',align:'right'},
      {field: 'outAmtSum',dataType:'number',align:'right'},
      {field: 'returnOutQtySum',dataType:'number',align:'right'},
      {field: 'returnOutAmtSum',dataType:'number',align:'right'},
      {field: 'remarks', width: 'auto'}
    ],
    detailColumns:[
      {field: 'skuName'},
      {field: 'skuModel'},
      {field: 'nonStdCode'},
      {field: 'shortName'},
      {field: 'catName'},
      {field: 'seriesName'},
      {field: 'whName'},
      {field: 'outingQty',dataType:'number',align:'right'},
      {field: 'outingAmt',dataType:'number',align:'right'},
      {field: 'outQty',dataType:'number',align:'right'},
      {field: 'outAmt',dataType:'number',align:'right'},
      {field: 'returnQty',dataType:'number',align:'right'},
      {field: 'returnAmt',dataType:'number',align:'right'},
    ]
  },
  // 入库明细报表
  'entry-detail-report': {
    // 是否显示合计行
    showFooter: true,
    // 接口文件
    serviceStr: 'detailReportService',
    // 查询方法
    methodsName: 'getInboundDetailReport',
    // 查询条件
    searchContent: [
      // 出库单号
      {itemCode: 'intoNo'},
      // 入库类型
      {
        itemCode: 'intoTypeName',
        valueFormat: {
          code: 'intoTypeList',
          service:'commonService',
          method:'getDataKind',
          kindType:Config.kindType.intoType,
          data: [],
          valueKey: 'id',
          labelKey: 'kindName',
        },
        valueKind: 'M-CHOICE'
      },
      // 入库状态
      {
        itemCode: 'intoStatus',
        valueFormat: {
          code: 'intoStatusList',
          service:'commonService',
          method:'getDataKind',
          kindType:Config.kindType.intoStatus,
          data: [],
          valueKey: 'id',
          labelKey: 'kindName',
        },
        valueKind: 'M-CHOICE'
      },
      // 供应商
      {
        itemCode: 'supplierName',
        valueFormat: {
          code: 'supIdlist',
        },
        valueKind: 'M-SEARCH',
        magnifierType: Config.MagnifierType.supplier,
      },
      // 入库日期
      {
        itemCode: 'intoDate',
        valueFormat: {
          code: 'intoDate',
        },
        valueKind: 'DATE_RANGE'
      },
      // 客户名称
      {itemCode: 'cusName'},
      // 客户电话
      {
        itemCode: 'cusPhone',
        valueFormat: {
          code: 'cusPhone',
        },
        valueKind: 'M-SEARCH',
        magnifierType: Config.MagnifierType.customer,
      },
      // 业务部门
      {
        itemCode: 'orgId',
        valueFormat: {
          code: 'orgIdList',
        },
        magnifierType: Config.MagnifierType.org,
        valueKind: 'M-SEARCH'
      },
      // 业务员
      {
        itemCode: 'staffId',
        valueFormat: {
          code: 'staffIdList',
        },
        magnifierType: Config.MagnifierType.staff,
        valueKind: 'M-SEARCH'
      },

      // 制单日期
      {
        itemCode: 'makeTime',
        valueFormat: {
          code: 'makeTime',
        },
        valueKind: 'DATE_RANGE'
      },
      // 来源单号
      {itemCode: 'fromNo'},
      // 主表备注
      {
        itemCode: 'remarks'
      },
      //商品名称
      {itemCode: 'skuName'},
      //商品型号
      {itemCode: 'skuModel'},
      // 品牌
      {
        itemCode: 'brandIds',
        valueFormat: {
          code: 'goodsBrandList',
          service:'goodsBrandService',
          method:'selectByCond',
          data: [],
          valueKey: 'brandId',
          labelKey: 'brandName',
        },
        valueKind: 'M-CHOICE'
      },
      // 系列
      {
        itemCode: 'series',
        valueFormat: {
          code: 'goodsSeriesList',
          service:'goodsSeriesService',
          method:'getGoodsSeriesList',
          data: [],
          valueKey: 'seriesId',
          labelKey: 'seriesName',
        },
        valueKind: 'M-CHOICE'
      },
      // 种类
      {
        itemCode: 'category',
        valueFormat: {
          code: 'goodsCategoryList',
          service:'goodsCategoryService',
          method:'selectByCond',
          data: [],
          valueKey: 'catId',
          labelKey: 'catName',
        },
        valueKind: 'M-CHOICE'
      },
      // 仓位
      {
        itemCode: 'whName',
        valueFormat: {
          code: 'whList',
          service:'commonService',
          method:'getWarehouse',
          data: [],
          valueKey: 'whId',
          labelKey: 'whName',
        },
        valueKind: 'M-CHOICE'
      },
      {itemCode: 'flgViewItem',valueKind:'SWITCH',itemName:'查看明细'},
    ],
    // 列表列
    columns: [
      {field: 'intoNo',type:'link',linkType: 'INTO'},
      {field: 'fromNo'},
      {field: 'intoTypeName'},
      {field: 'intoStatusName'},
      {field: 'supplierName'},
      {field: 'cusName',type:'link',linkType:'CUS'},
      {field: 'cusPhone'},
      {field: 'cusFrom'},
      {field: 'intoDate',dataType: 'date'},
      {field: 'orgName'},
      {field: 'staffName'},
      {field: 'makeStaffName'},
      {field: 'makeTime',dataType:"dateTime"},
      {field: 'intoingQtySum',dataType:'number',align:'right'},
      {field: 'intoingAmtSum',dataType:'number',align:'right'},
      {field: 'intoQtySum',dataType:'number',align:'right'},
      {field: 'intoAmtSum',dataType:'number',align:'right'},
      {field: 'returnInQtySum',dataType:'number',align:'right'},
      {field: 'returnInAmtSum',dataType:'number',align:'right'},
      {field: 'remarks', width: 'auto'}
    ],
    detailColumns:[
      {field: 'skuName'},
      {field: 'skuModel'},
      {field: 'nonStdCode'},
      {field: 'shortName'},
      {field: 'catName'},
      {field: 'seriesName'},
      {field: 'whName'},
      {field: 'intoingQty',dataType:'number',align:'right'},
      {field: 'intoingAmt',dataType:'number',align:'right'},
      {field: 'intoQty',dataType:'number',align:'right'},
      {field: 'intoAmt',dataType:'number',align:'right'},
      {field: 'returnQty',dataType:'number',align:'right'},
      {field: 'returnAmt',dataType:'number',align:'right'},
    ]
  },
  // 客户收款明细报表
  'cus-receipt-report': {
    // 是否显示合计行
    showFooter: true,
    // 接口文件
    serviceStr: 'detailReportService',
    // 查询方法
    methodsName: 'getRecPayDetailReport',
    // 查询条件
    searchContent: [
      // 收付款单号
      {itemCode: 'rpNo'},
      // 业务单号
      {itemCode: 'biznisNo'},
      // 客户名称
      {itemCode: 'cusName'},
      // 客户电话
      {
        itemCode: 'cusPhone',
        valueFormat: {
          code: 'cusPhone',
        },
        valueKind: 'M-SEARCH',
        magnifierType: Config.MagnifierType.customer,
      },

      // 账务日期
      {
        itemCode: 'accDate',
        valueFormat: {
          code: 'accDate',
        },
        valueKind: 'DATE_RANGE'
      },
      // 业务部门
      {
        itemCode: 'orgId',
        valueFormat: {
          code: 'orgIdList',
        },
        magnifierType: Config.MagnifierType.org,
        valueKind: 'M-SEARCH'
      },
      // 业务员
      {
        itemCode: 'staffId',
        valueFormat: {
          code: 'staffIdList',
        },
        magnifierType: Config.MagnifierType.staff,
        valueKind: 'M-SEARCH'
      },
      // 主表备注
      {
        itemCode: 'remarks'
      },
    ],
    // 列表列
    columns: [
      {field: 'rpNo'},
      {field: 'biznisNo'},
      {field: 'cusName',type:'link',linkType:'CUS'},
      {field: 'cusPhone'},
      {field: 'accDate',dataType: 'date'},
      {field: 'orgName'},
      {field: 'staffName'},
      {field: 'makeStaffName'},
      {field: 'macName'},
      {field: 'amtRec',dataType:'number',sum:'true',align:'right'},
      {field: 'remarks', width: 'auto'}
    ],
  },
}


export const setSetting = (services, dataType) => {
  let setting = data[dataType];
  if (services && setting) {
    setting.service = services[setting.serviceStr]
  }
  return setting;
}


export default {
  setSetting: setSetting,
}
