/* * @Author: Pengjiantian * @Date: 2020-06-30 16:44:57 * @Last Modified by: Pengjiantian * @Last Modified time: 2020-08-03 16:08:12 */ import ApiModel from '@/utils/core/apiModel' // 资金单元-出资机构清单 const formList = [ { type: 'filterSelect', label: '出资机构编码', value: '', name: 'orgCode', attrs: ['filterable', 'clearable', 'collapse-tags'], rules: [{ required: true }] }, { type: 'input', label: '出资机构名称', value: '', name: 'orgName', rules: [{ required: true }] }, { type: 'select', label: '出资机构类型', value: '', name: 'orgType', options: [], attrs: ['filterable', 'clearable', 'collapse-tags'], rules: [{ required: true }] }, { type: 'input', label: '出资比例(%)', value: '', isMoney: true, name: 'contributionProportion', rules: [{ required: true }] }, { type: 'select', label: '收益分配方式', value: '', name: 'incomeDistributionMode', options: [], attrs: ['filterable', 'clearable', 'collapse-tags'], rules: [{ required: true }] }, { type: 'input', label: '收益比例(%)', value: '', isMoney: true, name: 'incomeRatio', rules: [{ required: true }] }, { type: 'input', label: '资金成本(年化利率%)', value: '', isMoney: true, name: 'capitalCost', rules: [{ required: true }] }, { type: 'input', label: '保证金比例(%)', value: '', isMoney: true, name: 'marginLevel', rules: [{ required: true }] } ] const tableList = [ { label: '出资机构编码', prop: 'orgCode', attrs: { width: 'auto' } }, { label: '出资机构名称', prop: 'orgName', attrs: { width: 'auto' } }, { label: '出资机构类型', prop: 'orgTypeDesc', attrs: { width: 'auto' } }, { label: '出资比例(%)', prop: 'contributionProportion', isMoney: true, attrs: { width: 'auto' } }, { label: '收益分配方式', prop: 'incomeDistributionModeDesc', attrs: { width: 'auto' } }, { label: '收益比例(%)', prop: 'incomeRatio', isMoney: true, attrs: { width: 'auto' } }, { label: '资金成本(年化利率%)', prop: 'capitalCost', isMoney: true, attrs: { width: 'auto' } }, { label: '保证金比例(%)', prop: 'marginLevel', isMoney: true, attrs: { width: 'auto' } }, { prop: 'action', label: '操作管理', attrs: { // width: '260px', fixed: 'right' }, type: 'buttons' } ] export default options => { // 接口地址: required const api = 'server/queryFundUnitContributionOrgList' return new ApiModel({ api, formList, tableList, request(body) { return this.post(body) } }) }