|
@@ -146,14 +146,15 @@
|
|
<p class="red" v-if="!scope.row.signOutStatus&&scope.row.signOutStatus!=0">未签退</p>
|
|
<p class="red" v-if="!scope.row.signOutStatus&&scope.row.signOutStatus!=0">未签退</p>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="center" prop="expectSalary" label="应发课酬">
|
|
|
|
- <template slot-scope="scope">{{scope.row.expectSalary + '元'}}</template>
|
|
|
|
|
|
+ <!-- expectSalary -->
|
|
|
|
+ <el-table-column align="center" prop="actualSalary" label="应发课酬">
|
|
|
|
+ <template slot-scope="scope">{{scope.row.actualSalary + '元'}}</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column align="center" prop="reduceSalary" label="课酬扣款">
|
|
<el-table-column align="center" prop="reduceSalary" label="课酬扣款">
|
|
<template slot-scope="scope">{{scope.row.reduceSalary + '元'}}</template>
|
|
<template slot-scope="scope">{{scope.row.reduceSalary + '元'}}</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="center" prop="actualSalary" label="结算课酬">
|
|
|
|
- <template slot-scope="scope">{{scope.row.actualSalary + '元'}}</template>
|
|
|
|
|
|
+ <el-table-column align="center" prop="finalSalary" label="结算课酬">
|
|
|
|
+ <template slot-scope="scope">{{scope.row.finalSalary + '元'}}</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column align="center" prop label="状态" fixed="right">
|
|
<el-table-column align="center" prop label="状态" fixed="right">
|
|
<template slot-scope="scope">{{scope.row.confirmStatus | confirmFilter }}</template>
|
|
<template slot-scope="scope">{{scope.row.confirmStatus | confirmFilter }}</template>
|
|
@@ -183,14 +184,22 @@
|
|
:inline="true"
|
|
:inline="true"
|
|
label-width="60px"
|
|
label-width="60px"
|
|
>
|
|
>
|
|
- <el-form-item label="应发" :rules="[{ required: true, message: '请填写应发数',trigger: 'blur'}]" prop="expectSalary">
|
|
|
|
|
|
+ <el-form-item
|
|
|
|
+ label="应发"
|
|
|
|
+ :rules="[{ required: true, message: '请填写应发数',trigger: 'blur'}]"
|
|
|
|
+ prop="actualSalary"
|
|
|
|
+ >
|
|
<el-input
|
|
<el-input
|
|
- v-model.trim="visibleForm.expectSalary"
|
|
|
|
|
|
+ v-model.trim="visibleForm.actualSalary"
|
|
type="number"
|
|
type="number"
|
|
@mousewheel.native.prevent
|
|
@mousewheel.native.prevent
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="扣款" :rules="[{ required: true, message: '请填写扣款数',trigger: 'blur'}]" prop="reduceSalary">
|
|
|
|
|
|
+ <el-form-item
|
|
|
|
+ label="扣款"
|
|
|
|
+ :rules="[{ required: true, message: '请填写扣款数',trigger: 'blur'}]"
|
|
|
|
+ prop="reduceSalary"
|
|
|
|
+ >
|
|
<el-input
|
|
<el-input
|
|
v-model.trim="visibleForm.reduceSalary"
|
|
v-model.trim="visibleForm.reduceSalary"
|
|
type="number"
|
|
type="number"
|
|
@@ -199,13 +208,17 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="实发">
|
|
<el-form-item label="实发">
|
|
<el-input
|
|
<el-input
|
|
- v-model.trim="visibleForm.actualSalary"
|
|
|
|
|
|
+ v-model.trim="visibleForm.finalSalary"
|
|
disabled
|
|
disabled
|
|
type="number"
|
|
type="number"
|
|
@mousewheel.native.prevent
|
|
@mousewheel.native.prevent
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="说明" :rules="[{ required: true, message: '请填写说明',trigger: 'blur'}]" prop="memo">
|
|
|
|
|
|
+ <el-form-item
|
|
|
|
+ label="说明"
|
|
|
|
+ :rules="[{ required: true, message: '请填写说明',trigger: 'blur'}]"
|
|
|
|
+ prop="memo"
|
|
|
|
+ >
|
|
<el-input type="textarea" :rows="5" v-model.trim="visibleForm.memo"></el-input>
|
|
<el-input type="textarea" :rows="5" v-model.trim="visibleForm.memo"></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
@@ -247,12 +260,12 @@ export default {
|
|
},
|
|
},
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
visibleForm: {
|
|
visibleForm: {
|
|
- expectSalary: null,
|
|
|
|
|
|
+ finalSalary: null,
|
|
reduceSalary: null,
|
|
reduceSalary: null,
|
|
actualSalary: null,
|
|
actualSalary: null,
|
|
courseScheduleId: null,
|
|
courseScheduleId: null,
|
|
- teacherId:null,
|
|
|
|
- memo:null
|
|
|
|
|
|
+ teacherId: null,
|
|
|
|
+ memo: null
|
|
},
|
|
},
|
|
isOpen: null,
|
|
isOpen: null,
|
|
activeRow: null,
|
|
activeRow: null,
|
|
@@ -345,13 +358,12 @@ export default {
|
|
return obj;
|
|
return obj;
|
|
},
|
|
},
|
|
openSalary() {
|
|
openSalary() {
|
|
-
|
|
|
|
this.$confirm("您确定开启课酬确认?", "提示", {
|
|
this.$confirm("您确定开启课酬确认?", "提示", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
type: "warning"
|
|
type: "warning"
|
|
}).then(() => {
|
|
}).then(() => {
|
|
- openSalaryConfirm({ month:this.searchForm.month }).then(res => {
|
|
|
|
|
|
+ openSalaryConfirm({ month: this.searchForm.month }).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.$message.success("开启成功");
|
|
this.$message.success("开启成功");
|
|
this.getList();
|
|
this.getList();
|
|
@@ -444,14 +456,16 @@ export default {
|
|
.catch(() => {});
|
|
.catch(() => {});
|
|
},
|
|
},
|
|
resetSalary(row) {
|
|
resetSalary(row) {
|
|
- this.visibleForm = {
|
|
|
|
- expectSalary: row.expectSalary,
|
|
|
|
- reduceSalary: row.reduceSalary,
|
|
|
|
- actualSalary: row.actualSalary,
|
|
|
|
|
|
+ let obj = {
|
|
|
|
+ finalSalary: row.finalSalary, // 实发
|
|
|
|
+ reduceSalary: row.reduceSalary, // 扣款
|
|
|
|
+ actualSalary: row.actualSalary, // 应发
|
|
courseScheduleId: row.courseScheduleId,
|
|
courseScheduleId: row.courseScheduleId,
|
|
- memo:row.memo,
|
|
|
|
- teacherId:row.teacherId
|
|
|
|
|
|
+ memo: row.memo,
|
|
|
|
+ teacherId: row.teacherId
|
|
};
|
|
};
|
|
|
|
+ this.$set(this,'visibleForm',obj)
|
|
|
|
+ console.log(this.visibleForm.finalSalary)
|
|
this.dialogVisible = true;
|
|
this.dialogVisible = true;
|
|
},
|
|
},
|
|
subreset() {
|
|
subreset() {
|
|
@@ -459,10 +473,10 @@ export default {
|
|
if (flag) {
|
|
if (flag) {
|
|
let obj = {
|
|
let obj = {
|
|
courseScheduleId: this.visibleForm.courseScheduleId,
|
|
courseScheduleId: this.visibleForm.courseScheduleId,
|
|
- currentExpectSalary: this.visibleForm.expectSalary,
|
|
|
|
|
|
+ currentExpectSalary: this.visibleForm.actualSalary,
|
|
currentReduceSalary: this.visibleForm.reduceSalary,
|
|
currentReduceSalary: this.visibleForm.reduceSalary,
|
|
memo: this.visibleForm.memo,
|
|
memo: this.visibleForm.memo,
|
|
- teacherId:this.visibleForm.teacherId,
|
|
|
|
|
|
+ teacherId: this.visibleForm.teacherId
|
|
};
|
|
};
|
|
teacherSalaryModifyLog(obj).then(res => {
|
|
teacherSalaryModifyLog(obj).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
@@ -488,25 +502,24 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
- getExpectSalaEry() {
|
|
|
|
- return this.visibleForm.expectSalary;
|
|
|
|
|
|
+ getActualsalary() {
|
|
|
|
+ // 应发
|
|
|
|
+ return this.visibleForm.actualSalary;
|
|
},
|
|
},
|
|
getReduceSalary() {
|
|
getReduceSalary() {
|
|
|
|
+ // 扣款
|
|
return this.visibleForm.reduceSalary;
|
|
return this.visibleForm.reduceSalary;
|
|
},
|
|
},
|
|
- getActualSalary() {
|
|
|
|
- return this.visibleForm.actualSalary;
|
|
|
|
- }
|
|
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
- getExpectSalaEry(val) {
|
|
|
|
- this.visibleForm.actualSalary = parseFloat(
|
|
|
|
|
|
+ getActualsalary(val) {
|
|
|
|
+ this.visibleForm.finalSalary = parseFloat(
|
|
val - this.getReduceSalary > 0 ? val - this.getReduceSalary : 0
|
|
val - this.getReduceSalary > 0 ? val - this.getReduceSalary : 0
|
|
);
|
|
);
|
|
},
|
|
},
|
|
getReduceSalary(val) {
|
|
getReduceSalary(val) {
|
|
- this.visibleForm.actualSalary = parseFloat(
|
|
|
|
- this.getExpectSalaEry - val > 0 ? this.getExpectSalaEry - val : 0
|
|
|
|
|
|
+ this.visibleForm.finalSalary = parseFloat(
|
|
|
|
+ this.getActualsalary - val > 0 ? this.getActualsalary - val : 0
|
|
);
|
|
);
|
|
},
|
|
},
|
|
dialogVisible(val) {
|
|
dialogVisible(val) {
|
|
@@ -516,8 +529,8 @@ export default {
|
|
reduceSalary: null,
|
|
reduceSalary: null,
|
|
actualSalary: null,
|
|
actualSalary: null,
|
|
courseScheduleId: null,
|
|
courseScheduleId: null,
|
|
- teacherId:null,
|
|
|
|
- memo:null
|
|
|
|
|
|
+ teacherId: null,
|
|
|
|
+ memo: null
|
|
};
|
|
};
|
|
this.$refs["visibleForm"].resetFields();
|
|
this.$refs["visibleForm"].resetFields();
|
|
}
|
|
}
|