/* * @Author: lixiong * @Date: 2019-08-21 14:35:07 * @Last Modified by: lixiong * @Last Modified time: 2019-11-05 16:29:35 */ /** * 虚拟认领确认 */ import ApiModel from '@/utils/core/apiModel' // 表单信息 const formList = [ { "type": "input", "label": "银行流水", "value": "", "name": "trxnBr", "attrs": [ "readonly" ] }, { "type": "input", "label": "鹏友收款账户账号", "value": "", "name": "acctNo", "attrs": [ "readonly" ] }, { "type": "input", "label": "鹏友收款账户户名", "value": "", "name": "rpyNam", "attrs": [ "readonly" ] }, { "type": "input", "label": "鹏友收款账户开户行", "value": "", "name": "bankName", "attrs": [ "readonly" ] }, { "type": "input", "label": "转账付方账号", "value": "", "name": "rpyAcc", "attrs": [ "readonly" ] }, { "type": "input", "label": "转账付方户名", "value": "", "name": "rpyCustomerNam", "attrs": [ "readonly" ] }, { "type": "input", "label": "转账付方开户银行", "value": "", "name": "rpyBnk", "attrs": [ "readonly" ] }, { "type": "input", "label": "收付金额", "value": "", "name": "crtAmt", "attrs": [ "readonly" ], "isMoney": true }, { "type": "input", "label": "收款日期", "value": "", "name": "etyDat", "attrs": [ "readonly" ] }, { "type": "input", "label": "转账备注", "value": "", "name": "trxTxt", "attrs": [ "readonly" ] } ] const otherForm = [ { "type": "input", "label": "虚拟认领金额", "value": "", "name": "coreBalance", "attrs": [ "readonly" ], "isMoney": true } ] const cancleForm = [ { "type": "input", "label": "撤销虚拟认领金额", "value": "", "name": "virtualAmount", "attrs": [ "readonly" ], "isMoney": true } ] export default options => { // options 是否虚拟认领撤销 // 接口地址: required const api = 'server/virtualClaimConfirm' return new ApiModel({ api, formList: options ? [...formList, ...cancleForm] : [...formList, ...otherForm], request(body) { return this.post(body) } }) }