//申请金状态
export const approveResult = [
    {
        text: '待审批',
        type: 'info'
    },
    {
        text: '通过',
        type: 'success'
    },
    {
        text: '驳回',
        type: 'danger'
    }
]
//还款状态
export const pettyStates = [
    {
        text: '待还款',
        type: 'info'
    },
    {
        text: '已还清',
        type: 'success'
    },
    {
        text: '无需偿还',
        type: 'warning'
    }
]


export const addRecordRules = {
    pettyReason:[
        { required: true, message: '请输入借款缘由', trigger: 'blur' },
    ],
    pettyDetails:[
        { required: true, message: '请输入借款详情', trigger: 'blur' },
    ],
    pettyMoney:[
        { required: true, message: '请输入借款金额', trigger: 'blur' },
    ],
    pettyTime:[
        { required: true, message: '请输入借款时间', trigger: 'blur' },
    ],
}

export const staticParams = {
    pettyId: '', //表id
    financeId: '', //审批人
    pettyName: '', //备用金名称
    pettyMoney: '', //借款金额
    pettySurplus: '', //待还金额
    pettyReason: '', //借款缘由.
    pettyTime: '', //借的日期
    pettyRemarks: '', //备注
    pettyDetails: '', //详情
    pettyState: '', //状态0待还款1已还清2无需偿还
    pettyEnclosure: '', //附件
    pettyApproval: '', //0待审批1通过2驳回
    pettyReject: '', //驳回理由，
}

export const repayParams = {
    operationId: '',
    pettyId: '',
    repaymentApproval: '',
    repaymentDetails: '',
    repaymentEnclosure: '',
    repaymentId: '',
    repaymentMoney: '',
    repaymentReason: '',
    repaymentReject: '',
    repaymentRemarks: '',
    repaymentTime: ''
  }