|
@@ -9,6 +9,10 @@
|
|
|
:hideMoney="true"
|
|
|
/>
|
|
|
<otherform :form="other" ref="other" />
|
|
|
+ <div style="margin-bottom: 20px">
|
|
|
+ <el-button type="primary">一件修改差价</el-button>
|
|
|
+ <el-button type="primary" @click="init">还原差价</el-button>
|
|
|
+ </div>
|
|
|
<el-table
|
|
|
:data="dataList"
|
|
|
:header-cell-style="{ background: '#EDEEF0', color: '#444' }"
|
|
@@ -38,21 +42,24 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="原班级剩余课程价值">
|
|
|
-
|
|
|
<template slot-scope="scope">
|
|
|
- <div >
|
|
|
+ <div>
|
|
|
<div
|
|
|
class="courseDiv"
|
|
|
v-for="(item, index) in scope.row.courseList"
|
|
|
:key="index"
|
|
|
>
|
|
|
- {{item.courseCurrentPrice}}
|
|
|
+ {{ item.courseCurrentPrice }}
|
|
|
<!-- <el-input v-model="item.courseCurrentPrice"></el-input> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="subjectNames" align="center" label="主班级剩余课程价值">
|
|
|
+ <el-table-column
|
|
|
+ prop="subjectNames"
|
|
|
+ align="center"
|
|
|
+ label="主班级剩余课程价值"
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
<div
|
|
@@ -61,12 +68,12 @@
|
|
|
:key="index"
|
|
|
>
|
|
|
<!-- <el-input v-model="item.courseOriginalPrice"></el-input> -->
|
|
|
- {{item.courseOriginalPrice}}
|
|
|
+ {{ item.courseOriginalPrice }}
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="subjectNames" align="center" label="需补交差价">
|
|
|
+ <el-table-column prop="subjectNames" align="center" label="需补交差价">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
<div
|
|
@@ -74,13 +81,12 @@
|
|
|
v-for="(item, index) in scope.row.courseList"
|
|
|
:key="index"
|
|
|
>
|
|
|
- <!-- <el-input v-model="item.courseOriginalPrice"></el-input> -->
|
|
|
- {{item.courseOriginalPrice}}
|
|
|
+ <el-input v-model="item.courseOriginalPrice"></el-input>
|
|
|
+ <!-- {{item.courseOriginalPrice}} -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
-
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -111,6 +117,7 @@ export default {
|
|
|
},
|
|
|
other: {},
|
|
|
dataList: [],
|
|
|
+ copyList: {},
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -118,13 +125,17 @@ export default {
|
|
|
// for (let item in this.mergeInfo) {
|
|
|
// this.activeNames.push(item);
|
|
|
// }
|
|
|
- this.mergeInfoList = [];
|
|
|
- for (let merge in this.mergeInfo) {
|
|
|
- this.mergeInfoList = this.mergeInfoList.concat(this.mergeInfo[merge]);
|
|
|
- }
|
|
|
- this.concatCourseLst(this.mergeInfoList);
|
|
|
+ this.init();
|
|
|
},
|
|
|
methods: {
|
|
|
+ init() {
|
|
|
+ this.coypList = this.$helpers.lodash.cloneDeep(this.mergeInfo);
|
|
|
+ this.mergeInfoList = [];
|
|
|
+ for (let merge in this.coypList) {
|
|
|
+ this.mergeInfoList = this.mergeInfoList.concat(this.coypList[merge]);
|
|
|
+ }
|
|
|
+ this.concatCourseLst(this.mergeInfoList);
|
|
|
+ },
|
|
|
getCLassName(key) {
|
|
|
let str = "";
|
|
|
this.classList.forEach((classes) => {
|