receivePayData.js 6.83 KB
export const receiveTableColumns = [
  {
    label: "*(单据头)业务日期",
    prop: "businessDate"
    // formatter: (cellValue) => {
    //   return { 1: "新增应付转账", 2: "推送企微OA" }[cellValue.oprType] || ""
    // }
  },
  {
    label: "*(单据头)到期日",
    prop: "expireDate"
  },
  {
    label: "(单据头)客户#名称",
    prop: "customerName",
    labelName: "customerCode",
    addHtml: "edit",
    editType: "select",
    optionList: [],
    optionId: "number",
    optionLabel: "name",
    optionsName: "customerOpt",
    apiName: "getJdCustPage",
    isMarkRed: true
  },
  {
    label: "(单据头)币别#名称",
    prop: "coinName"
  },
  {
    label: "(单据头)结算组织#名称",
    prop: "settlementOrg",
    labelName: "settlementOrgCode",
    addHtml: "edit",
    editType: "select",
    optionList: [],
    optionId: "number",
    optionLabel: "name",
    optionsName: "settlementOrgOpt",
    apiName: "getJdOrgPage",
    isMarkRed: true
  },
  {
    label: "(单据头)收款组织#名称",
    prop: "rcvOrgName",
    labelName: "rcvOrgCode",
    addHtml: "edit",
    editType: "select",
    optionList: [],
    optionId: "number",
    optionLabel: "name",
    optionsName: "rcvOrgOpt",
    apiName: "getJdOrgPage",
    isMarkRed: true
  },
  {
    label: "*(表头财务)到期日计算日期",
    prop: "expireDateCalDate"
  },
  {
    label: "(表头财务)汇率类型#名称",
    prop: "exchangeRateName",
    editType: "select"
  },
  {
    label: "(明细)物料编码#名称",
    prop: "materialCodeName",
    labelName: "materialCode",
    addHtml: "edit",
    editType: "select",
    optionList: [],
    optionId: "number",
    optionLabel: "name",
    optionsName: "materialOpt",
    apiName: "getJdMaterialPage",
    isMarkRed: true
  },
  {
    label: "(明细)物料名称",
    prop: "materialName"
  },
  {
    label: "(明细)计价单位#名称",
    prop: "pricingUnitName"
  },
  {
    label: "(明细)计价数量",
    prop: "pricingNumber",
    addHtml: "edit",
    editType: "input"
  },
  {
    label: "(明细)价税合计本位币",
    prop: "priceTaxTotal",
    addHtml: "edit",
    editType: "input"
  },
  {
    label: "(明细)含税单价",
    prop: "taxUnitPrice"
  },
  {
    label: "(明细)单价",
    prop: "unitPrice"
  },
  {
    label: "(明细)业务类型",
    prop: "businessTypeName",
    labelName: "businessTypeCode",
    addHtml: "edit",
    editType: "select",
    optionList: [],
    optionId: "number",
    optionLabel: "name",
    optionsName: "businessTypeOpt",
    apiName: "getJdBusinessPage",
    isMarkRed: true
  },
  {
    label: "(明细)分摊期限",
    prop: "allocationPeriod"
  },
  {
    label: "(明细)税率(%)",
    prop: "taxRate",
    labelName: "taxRate",
    addHtml: "edit",
    editType: "select",
    optionList: [],
    optionId: "taxRate",
    optionLabel: "taxRate",
    optionsName: "taxRateOpt",
    apiName: "getJdTaxratePage",
    isMarkRed: true
  },
  {
    label: "(明细)备注",
    prop: "remark",
    addHtml: "edit",
    editType: "input"
  },
  {
    label: "(明细)不含税金额",
    prop: "priceWithoutTax"
  },
  {
    label: "(明细)税额",
    prop: "tax"
  },
  {
    label: "(明细)4S门店",
    prop: "shopMerchantName",
    addHtml: "edit",
    editType: "input"
  }
]

export const payTableColumns = [
  {
    label: "*(单据头)业务日期",
    prop: "businessDate"
    // formatter: (cellValue) => {
    //   return { 1: "新增应付转账", 2: "推送企微OA" }[cellValue.oprType] || ""
    // }
  },
  {
    label: "*(单据头)到期日",
    prop: "expireDate"
  },
  {
    label: "(单据头)供应商#名称",
    prop: "supplierIdName",
    labelName: "supplierId",
    addHtml: "edit",
    editType: "select",
    optionList: [],
    optionId: "number",
    optionLabel: "name",
    optionsName: "supplierOpt",
    apiName: "getJdSupplierPage",
    isMarkRed: true
  },
  {
    label: "(单据头)币别#名称",
    prop: "coinName"
  },
  {
    label: "(单据头)结算组织#名称",
    prop: "settlementOrg",
    labelName: "settlementOrgCode",
    addHtml: "edit",
    editType: "select",
    optionList: [],
    optionId: "number",
    optionLabel: "name",
    optionsName: "settlementOrgOpt",
    apiName: "getJdOrgPage",
    isMarkRed: true
  },
  {
    label: "(单据头)付款组织#名称",
    prop: "rcvOrgName",
    labelName: "rcvOrgCode",
    addHtml: "edit",
    editType: "select",
    optionList: [],
    optionId: "number",
    optionLabel: "name",
    optionsName: "rcvOrgOpt",
    apiName: "getJdOrgPage",
    isMarkRed: true
  },
  {
    label: "*(单据头)发票类型",
    prop: "invoiceTypeName",
    labelName: "invoiceTypeNumber",
    addHtml: "edit",
    editType: "select",
    optionList: [],
    optionId: "number",
    optionLabel: "name",
    optionsName: "invoiceTypeOpt",
    apiName: "getJdInvoiceTypePage"
    // isMarkRed: true
  },
  {
    label: "*(表头财务)到期日计算日期",
    prop: "expireDateCalDate"
  },
  {
    label: "(表头财务)汇率类型#名称",
    prop: "exchangeRateName"
  },
  {
    label: "(明细)物料编码#名称",
    prop: "materialCodeName",
    labelName: "materialCode",
    addHtml: "edit",
    editType: "select",
    optionList: [],
    optionId: "number",
    optionLabel: "name",
    optionsName: "materialOpt",
    apiName: "getJdMaterialPage",
    isMarkRed: true
  },
  {
    label: "(明细)物料名称",
    prop: "materialName"
  },
  {
    label: "(明细)计价单位#名称",
    prop: "pricingUnitName"
  },
  {
    label: "(明细)计价数量",
    prop: "pricingNumber",
    addHtml: "edit",
    editType: "input"
  },
  {
    label: "(明细)价税合计本位币",
    prop: "priceTaxTotal",
    addHtml: "edit",
    editType: "input"
  },
  {
    label: "(明细)含税单价",
    prop: "taxUnitPrice"
  },
  {
    label: "(明细)单价",
    prop: "unitPrice"
  },
  {
    label: "(明细)业务类型",
    prop: "businessTypeName",
    labelName: "businessTypeCode",
    addHtml: "edit",
    editType: "select",
    optionList: [],
    optionId: "number",
    optionLabel: "name",
    optionsName: "businessTypeOpt",
    apiName: "getJdBusinessPage",
    isMarkRed: true
  },
  {
    label: "(明细)分摊期限",
    prop: "allocationPeriod"
  },
  {
    label: "(明细)税率(%)",
    prop: "taxRate",
    labelName: "taxRate",
    addHtml: "edit",
    editType: "select",
    optionList: [],
    optionId: "taxRate",
    optionLabel: "taxRate",
    optionsName: "taxRateOpt",
    apiName: "getJdTaxratePage",
    isMarkRed: true
  },
  {
    label: "(明细)备注",
    prop: "remark",
    addHtml: "edit",
    editType: "input"
  },
  {
    label: "(明细)不含税金额",
    prop: "priceWithoutTax"
  },
  {
    label: "(明细)税额",
    prop: "tax"
  },
  {
    label: "(明细)4S门店",
    prop: "shopMerchantName",
    addHtml: "edit",
    editType: "input"
  }
]