Commit 3d061658 authored by 谢子梦's avatar 谢子梦

优化发薪详情修改功能

parent 2fe211c3
...@@ -982,7 +982,7 @@ export default { ...@@ -982,7 +982,7 @@ export default {
}, },
// 工伤保险基数变化 // 工伤保险基数变化
gsbxBaseChange(e) { gsbxBaseChange(e) {
if (this.formData.ylbxCompanyRate > 0 && this.formData.gsbxBase > 0) { if (this.formData.gsbxCompanyRate > 0 && this.formData.gsbxBase > 0) {
this.gsbxCompanyMoney = (this.formData.gsbxBase * this.formData.gsbxCompanyRate / 100).toFixed(2) this.gsbxCompanyMoney = (this.formData.gsbxBase * this.formData.gsbxCompanyRate / 100).toFixed(2)
} else { } else {
this.gsbxCompanyMoney = '--' this.gsbxCompanyMoney = '--'
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="管理费" prop="operationCost"> <el-form-item label="管理费" prop="operationCost">
<el-input-number v-model="formData.operationCost" placeholder="请输入请输入管理费" :precision="2" <el-input-number v-model="formData.operationCost" placeholder="请输入管理费" :precision="2"
:step="1" :min="0" controls-position="right"></el-input-number> :step="1" :min="0" controls-position="right"></el-input-number>
</el-form-item> </el-form-item>
</el-col> </el-col>
...@@ -557,7 +557,7 @@ export default { ...@@ -557,7 +557,7 @@ export default {
}, },
// 工伤保险基数变化 // 工伤保险基数变化
gsbxBaseChange(e) { gsbxBaseChange(e) {
if (this.formData.ylbxCompanyRate > 0 && this.formData.gsbxBase > 0) { if (this.formData.gsbxCompanyRate > 0 && this.formData.gsbxBase > 0) {
this.gsbxCompanyRateAmount = (this.formData.gsbxBase * this.formData.gsbxCompanyRate / 100).toFixed(2) this.gsbxCompanyRateAmount = (this.formData.gsbxBase * this.formData.gsbxCompanyRate / 100).toFixed(2)
} else { } else {
this.gsbxCompanyRateAmount = '--' this.gsbxCompanyRateAmount = '--'
......
...@@ -24,11 +24,11 @@ ...@@ -24,11 +24,11 @@
</el-form> </el-form>
<el-row :gutter="10" class="mb8"> <el-row :gutter="10" class="mb8">
<el-col :span="1.5"> <!-- <el-col :span="1.5">
<el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd" <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd"
v-hasPermi="['business:payOutDetail:add']">新增 v-hasPermi="['business:payOutDetail:add']">新增
</el-button> </el-button>
</el-col> </el-col> -->
<el-col :span="1.5"> <el-col :span="1.5">
<el-button type="success" icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate" <el-button type="success" icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate"
v-hasPermi="['business:payOutDetail:edit']">修改 v-hasPermi="['business:payOutDetail:edit']">修改
...@@ -180,16 +180,15 @@ ...@@ -180,16 +180,15 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="scope.row.payStatus && 3 != scope.row.payStatus && 2 != scope.row.payStatus" <el-button v-if="scope.row.payStatus && 3 != scope.row.payStatus && 2 != scope.row.payStatus" size="mini"
size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
v-hasPermi="['business:payOutDetail:edit']">修改 v-hasPermi="['business:payOutDetail:edit']">修改
</el-button> </el-button>
<el-button v-if="scope.row.payStatus && 1 == scope.row.payStatus" <el-button v-if="scope.row.payStatus && 1 == scope.row.payStatus" size="mini" type="text" icon="el-icon-edit"
size="mini" type="text" icon="el-icon-edit" @click="checkWork(scope.row)" @click="checkWork(scope.row)" v-hasPermi="['business:payOutDetail:edit']">考勤核对
v-hasPermi="['business:payOutDetail:edit']">考勤核对
</el-button> </el-button>
<el-button v-if="scope.row.payStatus && 3 != scope.row.payStatus && 2 != scope.row.payStatus" <el-button v-if="scope.row.payStatus && 3 != scope.row.payStatus && 2 != scope.row.payStatus" size="mini"
size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
v-hasPermi="['business:payOutDetail:remove']">删除 v-hasPermi="['business:payOutDetail:remove']">删除
</el-button> </el-button>
</template> </template>
...@@ -734,8 +733,10 @@ export default { ...@@ -734,8 +733,10 @@ export default {
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.reset() // this.reset()
const id = row.id || this.ids const id = row.id || this.ids
this.$router.push({ path: "/business/operate", query: { batchNo: this.queryParams.batchNo, batchName: this.batchName, id: id } });
return
getPayOutDetail(id).then(response => { getPayOutDetail(id).then(response => {
this.form = response.data this.form = response.data
this.open = true this.open = true
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment