|
@@ -11,7 +11,7 @@
|
|
label-width="68px"
|
|
label-width="68px"
|
|
>
|
|
>
|
|
<el-form-item prop="carNumber"
|
|
<el-form-item prop="carNumber"
|
|
- >开班时间:{{ opo.startDate }} 班结人:{{ opo.classStructureMan }}
|
|
|
|
|
|
+ >开班时间:{{ opo.endDate }} 班结人:{{ opo.classStructureMan }}
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-button
|
|
<el-button
|
|
@@ -59,6 +59,7 @@
|
|
<el-table-column label="支付宝金额" align="center" prop="zfbAmt" />
|
|
<el-table-column label="支付宝金额" align="center" prop="zfbAmt" />
|
|
<el-table-column label="现金金额" align="center" prop="xjAmt" />
|
|
<el-table-column label="现金金额" align="center" prop="xjAmt" />
|
|
<el-table-column label="会员卡支付" align="center" prop="dzkAmt" />
|
|
<el-table-column label="会员卡支付" align="center" prop="dzkAmt" />
|
|
|
|
+ <el-table-column label="退款金额" align="center" prop="refundAmt" />
|
|
</el-table>
|
|
</el-table>
|
|
<!-- 添加或修改班结管理对话框 -->
|
|
<!-- 添加或修改班结管理对话框 -->
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
@@ -106,7 +107,7 @@ export default {
|
|
stationOptions: [],
|
|
stationOptions: [],
|
|
opo: {
|
|
opo: {
|
|
classStructureMan: null,
|
|
classStructureMan: null,
|
|
- startDate: null,
|
|
|
|
|
|
+ endDate: null,
|
|
},
|
|
},
|
|
// 表单参数
|
|
// 表单参数
|
|
form: {},
|
|
form: {},
|
|
@@ -128,21 +129,21 @@ export default {
|
|
// 油站第一次班结
|
|
// 油站第一次班结
|
|
const PayOrderRes = await getPayOrderInfoMin();
|
|
const PayOrderRes = await getPayOrderInfoMin();
|
|
if(PayOrderRes.data==null){
|
|
if(PayOrderRes.data==null){
|
|
- this.opo.startDate ="";
|
|
|
|
|
|
+ this.opo.endDate ="";
|
|
}else{
|
|
}else{
|
|
- this.opo.startDate = PayOrderRes.data.createdDate;
|
|
|
|
|
|
+ this.opo.endDate = PayOrderRes.data.createdDate;
|
|
}
|
|
}
|
|
this.opo = {
|
|
this.opo = {
|
|
...this.opo,
|
|
...this.opo,
|
|
- startDate: PayOrderRes.data.createdDate,
|
|
|
|
|
|
+ endDate: PayOrderRes.data.createdDate,
|
|
};
|
|
};
|
|
return;
|
|
return;
|
|
} else {
|
|
} else {
|
|
// 油站之前班结过
|
|
// 油站之前班结过
|
|
- this.opo.startDate = structureRes.data.classStructureDate;
|
|
|
|
|
|
+ this.opo.endDate = structureRes.data.endDate;
|
|
this.opo = {
|
|
this.opo = {
|
|
...this.opo,
|
|
...this.opo,
|
|
- startDate: structureRes.data.classStructureDate,
|
|
|
|
|
|
+ endDate: structureRes.data.endDate,
|
|
};
|
|
};
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -359,6 +360,16 @@ export default {
|
|
}
|
|
}
|
|
}, 0);
|
|
}, 0);
|
|
sums[index] = sums[index].toFixed(2);
|
|
sums[index] = sums[index].toFixed(2);
|
|
|
|
+ } else if (column.property === "refundAmt") {
|
|
|
|
+ sums[index] = values.reduce((prev, curr) => {
|
|
|
|
+ const value = Number(curr);
|
|
|
|
+ if (!isNaN(value)) {
|
|
|
|
+ return prev + curr;
|
|
|
|
+ } else {
|
|
|
|
+ return prev;
|
|
|
|
+ }
|
|
|
|
+ }, 0);
|
|
|
|
+ sums[index] = sums[index].toFixed(2);
|
|
} else {
|
|
} else {
|
|
sums[index] = "";
|
|
sums[index] = "";
|
|
}
|
|
}
|
|
@@ -398,13 +409,17 @@ export default {
|
|
/** 新增按钮操作 */
|
|
/** 新增按钮操作 */
|
|
handleAdd() {
|
|
handleAdd() {
|
|
this.reset();
|
|
this.reset();
|
|
|
|
+
|
|
if (
|
|
if (
|
|
- this.structureList3 == null &&
|
|
|
|
- this.structureList1 == null &&
|
|
|
|
- this.structureList2 == null
|
|
|
|
|
|
+ this.structureList3.length == 0 &&
|
|
|
|
+ this.structureList1.length == 0 &&
|
|
|
|
+ this.structureList.length == 0
|
|
) {
|
|
) {
|
|
this.msgSuccess("没有要班结的数据");
|
|
this.msgSuccess("没有要班结的数据");
|
|
} else {
|
|
} else {
|
|
|
|
+ console.log( this.structureList3.length);
|
|
|
|
+ console.log(this.structureList1.length);
|
|
|
|
+ console.log(this.structureList.length);
|
|
this.open = true;
|
|
this.open = true;
|
|
this.title = "添加班结管理";
|
|
this.title = "添加班结管理";
|
|
}
|
|
}
|
|
@@ -430,7 +445,7 @@ export default {
|
|
this.queryParams.stationName = this.$store.state.user.stationName;
|
|
this.queryParams.stationName = this.$store.state.user.stationName;
|
|
this.queryParams.stationId = this.$store.state.user.stationId;
|
|
this.queryParams.stationId = this.$store.state.user.stationId;
|
|
this.queryParams.classStructureMan = this.$store.state.user.name;
|
|
this.queryParams.classStructureMan = this.$store.state.user.name;
|
|
- this.getClassInfo();
|
|
|
|
|
|
+ this.initFromOrder();
|
|
this.isclose = false;
|
|
this.isclose = false;
|
|
});
|
|
});
|
|
},
|
|
},
|