/* * @Author: lixiong * @Date: 2019-08-21 14:35:07 * @Last Modified by: lixiong * @Last Modified time: 2019-11-29 14:24:29 */ /** * 复核提交/审批意见 */ import ApiModel from '@/utils/core/apiModel' // 表格信息 const formList = [ { type: 'select', label: '审批结果', value: '', name: 'approveCode', options: [], rules: [{ required: true }] }, { type: 'textarea', label: '审批意见', name: 'approveOpinion', style: { height: '360px' }, rules: [{ required: true }, { maxLength: 3000 }] }, { type: 'input', label: '审批人', name: 'approveUserName', attrs: ['readonly'] }, { type: 'input', label: '审批机构', name: 'approveOrgName', attrs: ['readonly'] }, { type: 'input', label: '审批时间', name: 'approveTime', attrs: ['readonly'] } ] export default options => { // 接口地址,required const api = 'server/approveSubmit' return new ApiModel({ api, formList, request(params) { return this.post(params) } }) }