|
|
|
|
@ -151,7 +151,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="width:280px" class="border-radius-10 border margin-right-xs bg-white padding-xs">
|
|
|
|
|
<el-table :data="payLists" :summary-method="getSummaries" show-summary>
|
|
|
|
|
<el-table :data="payLists" :summary-method="getSummaries" show-summary row-key="payId">
|
|
|
|
|
<el-table-column align="center" prop="collectionTypeName" label="支付方式" min-width="100"></el-table-column>
|
|
|
|
|
<el-table-column align="center" prop="payMoney" fixed="right" label="本次支付 ( ¥ )" width="120">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
@ -425,6 +425,46 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
list:[ {
|
|
|
|
|
name: "66矿石",
|
|
|
|
|
img:
|
|
|
|
|
"https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/32ed6a7619934144882d841761b63d3c~tplv-k3u1fbpfcp-no-mark:0:0:0:0.awebp",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "随机限量徽章",
|
|
|
|
|
img:
|
|
|
|
|
"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/71c68de6368548bd9bd6c8888542f911~tplv-k3u1fbpfcp-no-mark:0:0:0:0.awebp",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "掘金新款T恤",
|
|
|
|
|
img:
|
|
|
|
|
"https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/5bf91038a6384fc3927dee294a38006b~tplv-k3u1fbpfcp-no-mark:0:0:0:0.awebp",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "Bug",
|
|
|
|
|
img:
|
|
|
|
|
"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/0a4ce25d48b8405cbf5444b6195928d4~tplv-k3u1fbpfcp-no-mark:0:0:0:0.awebp",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "乐高海洋巨轮",
|
|
|
|
|
img:
|
|
|
|
|
"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/aabe49b0d5c741fa8d92ff94cd17cb90~tplv-k3u1fbpfcp-no-mark:0:0:0:0.awebp",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "掘金马克杯",
|
|
|
|
|
img:
|
|
|
|
|
"https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/ab31c183950541d4a0731c0b8765b173~tplv-k3u1fbpfcp-no-mark:0:0:0:0.awebp",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "Yoyo抱枕",
|
|
|
|
|
img:
|
|
|
|
|
"https://p1-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/33f4d465a6a9462f9b1b19b3104c8f91~tplv-k3u1fbpfcp-no-mark:0:0:0:0.awebp",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "Switch",
|
|
|
|
|
img:
|
|
|
|
|
"https://p6-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/4decbd721b2b48098a1ecf879cfca677~tplv-k3u1fbpfcp-no-mark:0:0:0:0.awebp",
|
|
|
|
|
},],
|
|
|
|
|
input: null,
|
|
|
|
|
printDialogVisible: false, //打印弹窗开关
|
|
|
|
|
listDialogVisible: false,
|
|
|
|
|
@ -999,6 +1039,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
//选择金额.
|
|
|
|
|
openpay(row, $index) {
|
|
|
|
|
console.log('---',this.payLists)
|
|
|
|
|
if (this.form.projectName) {
|
|
|
|
|
if (row.payMoney) {
|
|
|
|
|
row.payMoney = row.payMoney * 1;
|
|
|
|
|
@ -1254,9 +1295,9 @@ export default {
|
|
|
|
|
|
|
|
|
|
//保存确定方法
|
|
|
|
|
save() {
|
|
|
|
|
// -- 之前的人写的臭的飞起,没有用到这个字段,保存的时候重新赋值金额(待付/实付)
|
|
|
|
|
this.form.courseReatmentAmount = this.paidAmount
|
|
|
|
|
this.form.debtMoney = this.treatAmount
|
|
|
|
|
// this.payLists
|
|
|
|
|
this.form.courseReatmentAmount = parseInt(this.paidAmount)
|
|
|
|
|
this.form.debtMoney = parseInt(this.treatAmount)
|
|
|
|
|
// ----
|
|
|
|
|
this.form.isAddition = this.isAddition;
|
|
|
|
|
var staffLists = [];
|
|
|
|
|
@ -1266,19 +1307,27 @@ export default {
|
|
|
|
|
staffLists.push(item);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
var payLists = [];
|
|
|
|
|
var rechargeAccountList = [];
|
|
|
|
|
for (let i in this.payLists) {
|
|
|
|
|
this.payLists[i].payId = this.payLists[i].id;
|
|
|
|
|
this.payLists[i].payName = this.payLists[i].collectionTypeName;
|
|
|
|
|
delete this.payLists[i].isShow;
|
|
|
|
|
delete this.payLists[i].state;
|
|
|
|
|
delete this.payLists[i].collectionType;
|
|
|
|
|
delete this.payLists[i].id;
|
|
|
|
|
delete this.payLists[i].collectionTypeName;
|
|
|
|
|
// 用作删除数组
|
|
|
|
|
const auxiliaryArr = ['isShow','state','collectionType','id','collectionTypeName']
|
|
|
|
|
for (let i =0;i<this.payLists.length;i++) {
|
|
|
|
|
let params = {...this.payLists[i]}
|
|
|
|
|
params.payId = this.payLists[i].id;
|
|
|
|
|
params.payName = this.payLists[i].collectionTypeName;
|
|
|
|
|
auxiliaryArr.forEach(item=>{
|
|
|
|
|
delete params[item]
|
|
|
|
|
})
|
|
|
|
|
// this.payLists[i].payId = this.payLists[i].id;
|
|
|
|
|
// this.payLists[i].payName = this.payLists[i].collectionTypeName;
|
|
|
|
|
// delete this.payLists[i].isShow;
|
|
|
|
|
// delete this.payLists[i].state;
|
|
|
|
|
// delete this.payLists[i].collectionType;
|
|
|
|
|
// delete this.payLists[i].id;
|
|
|
|
|
// delete this.payLists[i].collectionTypeName;
|
|
|
|
|
if (this.payLists[i].payMoney * 1 > 0) {
|
|
|
|
|
payLists.push(this.payLists[i]);
|
|
|
|
|
// payLists.push(this.payLists[i]);
|
|
|
|
|
payLists.push(params);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
for (let i in this.rechargeAccountList) {
|
|
|
|
|
@ -1365,6 +1414,8 @@ export default {
|
|
|
|
|
type: "warning",
|
|
|
|
|
}).then(() => {
|
|
|
|
|
that.addCourse();
|
|
|
|
|
}).catch(()=>{
|
|
|
|
|
this.saveloading = false
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
that.addCourse();
|
|
|
|
|
@ -1577,8 +1628,8 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
cardnum() {
|
|
|
|
|
var spendMoney = 0;
|
|
|
|
|
var discoutMoney = 0;
|
|
|
|
|
let spendMoney = 0;
|
|
|
|
|
let discoutMoney = 0;
|
|
|
|
|
this.rechargeAccountList.forEach((item) => {
|
|
|
|
|
spendMoney += item.spendMoney * 1; //实付金额
|
|
|
|
|
discoutMoney += item.discoutMoney * 1; //抵扣
|
|
|
|
|
|