function agentStatus(paymentOrderInfo) { if(paymentOrderInfo.status == 0){ return '审核中' } else if(paymentOrderInfo.payableStatus == 0){ return '待付款' } else if(paymentOrderInfo.receivableStatus == 0) { return '待还款' } else if(paymentOrderInfo.receivableStatus == 1) { return '已还款' } else if(paymentOrderInfo.receivableStatus == 2) { return '部分还款' } else if(paymentOrderInfo.lessPrice > 0) { return '部分还款' } else if(paymentOrderInfo.paidPrice > 0 && paymentOrderInfo.lessPrice == 0) { return '已还款' } else if(paymentOrderInfo.paidPrice <= 0) { return '待还款' } return '' } module.exports = agentStatus