Commit 9c1797b9 authored by 谢子梦's avatar 谢子梦

发薪合同操作-缓存问题

parent f6c1e1af
...@@ -32,22 +32,19 @@ ...@@ -32,22 +32,19 @@
<el-row :gutter="56"> <el-row :gutter="56">
<el-col :span="10"> <el-col :span="10">
<el-form-item label="发薪主体"> <el-form-item label="发薪主体">
<el-select v-model="formData.payerCompanyId" clearable placeholder="请选择发薪主体"> <el-select v-model="formData.payerCompanyId" clearable placeholder="请选择发薪主体">
<el-option <el-option v-for="item in payerCompanyArr" :key="item.id" :label="item.companyName"
v-for="item in payerCompanyArr" :value="item.id">
:key="item.id" </el-option>
:label="item.companyName" </el-select>
:value="item.id"> </el-form-item>
</el-option> </el-col>
</el-select> <el-col :span="10">
<el-form-item label="管理费" prop="operationCost">
<el-input-number v-model="formData.operationCost" placeholder="请输入管理费" :precision="2"
:step="1" :min="0" controls-position="right"></el-input-number>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10">
<el-form-item label="管理费" prop="operationCost">
<el-input-number v-model="formData.operationCost" placeholder="请输入管理费" :precision="2"
:step="1" :min="0" controls-position="right"></el-input-number>
</el-form-item>
</el-col>
</el-row> </el-row>
</div> </div>
</el-card> </el-card>
...@@ -285,19 +282,19 @@ ...@@ -285,19 +282,19 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="10" style="margin-top: 25px;"> <el-row :gutter="10" style="margin-top: 25px;">
<el-col :span="2"> <el-col :span="2">
<div class="projectTitle">工资小数位</div> <div class="projectTitle">工资小数位</div>
</el-col> </el-col>
<el-col :span="5"> <el-col :span="5">
<el-select style="width: 100%" v-model="formData.wagesPoint" placeholder="请选择工资保留小数位"> <el-select style="width: 100%" v-model="formData.wagesPoint" placeholder="请选择工资保留小数位">
<el-option :label="0" :value="0"></el-option> <el-option :label="0" :value="0"></el-option>
<el-option :label="1" :value="1"></el-option> <el-option :label="1" :value="1"></el-option>
<el-option :label="2" :value="2"></el-option> <el-option :label="2" :value="2"></el-option>
</el-select> </el-select>
</el-col> </el-col>
<el-col :span="1"> <el-col :span="1">
<span style="line-height: 32px">位</span> <span style="line-height: 32px">位</span>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
</el-card> </el-card>
...@@ -441,24 +438,29 @@ export default { ...@@ -441,24 +438,29 @@ export default {
created() { created() {
}, },
updated() { watch: {
// this.reset() '$route.query.id'(newValue, oldValue) {
if (newValue) {
this.getOutContractFN(newValue)
} else {
this.reset()
}
}
}, },
mounted() { mounted() {
if (this.$route.query.id) { // if (this.$route.query.id) {
this.getOutContractFN(this.$route.query.id) // this.getOutContractFN(this.$route.query.id)
} else { // } else {
this.reset() // }
}
this.getPayerCompanyList() this.getPayerCompanyList()
}, },
methods: { methods: {
getPayerCompanyList() { getPayerCompanyList() {
listAllCompanyInfo().then(resp => { listAllCompanyInfo().then(resp => {
if (200 == resp.code) { if (200 == resp.code) {
this.payerCompanyArr = resp.data this.payerCompanyArr = resp.data
} }
}) })
}, },
// 公积金个人比例变化执行 // 公积金个人比例变化执行
providentFundPersonalRateChange(e) { providentFundPersonalRateChange(e) {
......
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