|
|
|
@ -350,18 +350,9 @@ export default {
|
|
|
|
async toOutPay(row) {
|
|
|
|
async toOutPay(row) {
|
|
|
|
let payments = [];
|
|
|
|
let payments = [];
|
|
|
|
const actNumsTotal = () => {
|
|
|
|
const actNumsTotal = () => {
|
|
|
|
let total = 0;
|
|
|
|
return payments.reduce((pre,cur) => {
|
|
|
|
payments.reduce((pre,cur) => {
|
|
|
|
return pre + (!!Number(cur.act_money) ? Number(cur.act_money) : 0);
|
|
|
|
return Number(cur.act_money) ? ++pre : pre;
|
|
|
|
|
|
|
|
},0);
|
|
|
|
},0);
|
|
|
|
return total;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
const totalMoney = () => {
|
|
|
|
|
|
|
|
let total = 0.0;
|
|
|
|
|
|
|
|
payments.map((item) => {
|
|
|
|
|
|
|
|
total += Number(item.act_money);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
return total.toFixed(2);
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
let contract;
|
|
|
|
let contract;
|
|
|
|
if (row.contract_id) {
|
|
|
|
if (row.contract_id) {
|
|
|
|
@ -384,7 +375,8 @@ export default {
|
|
|
|
out_pay_id: row?.id,
|
|
|
|
out_pay_id: row?.id,
|
|
|
|
"xiangxishuoming": row?.remark,
|
|
|
|
"xiangxishuoming": row?.remark,
|
|
|
|
"yifujine": actNumsTotal(),
|
|
|
|
"yifujine": actNumsTotal(),
|
|
|
|
"xiangmuzonge": totalMoney(),
|
|
|
|
"xiangmuzonge": contract.money,
|
|
|
|
|
|
|
|
"zhifucishu": contract?.sign_plan?.length,
|
|
|
|
"cishu": payments.length,
|
|
|
|
"cishu": payments.length,
|
|
|
|
"amt": row?.apply_money,
|
|
|
|
"amt": row?.apply_money,
|
|
|
|
"liezhiqudao": contract?.plans.map(i => i.name)?.toString(),
|
|
|
|
"liezhiqudao": contract?.plans.map(i => i.name)?.toString(),
|
|
|
|
|