From 544f30e28a3d8ea41e5ea8c0add2ce77c1b6fb1a Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期二, 07 五月 2024 17:48:31 +0800 Subject: [PATCH] 工种管理模块 编辑工种接口400的问题修改+增加如果启用不达标保底,则必须输入保底工资的逻辑 --- src/views/employeeSalary/salaryPlan/components/SilkSetDialog.vue | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/views/employeeSalary/salaryPlan/components/SilkSetDialog.vue b/src/views/employeeSalary/salaryPlan/components/SilkSetDialog.vue index 5ec9a12..94c2546 100644 --- a/src/views/employeeSalary/salaryPlan/components/SilkSetDialog.vue +++ b/src/views/employeeSalary/salaryPlan/components/SilkSetDialog.vue @@ -7,11 +7,11 @@ :model="form" label-width="300px" label-position="top"> - <el-form-item label="璇烽�夋嫨閲庣氦鍖呭惈閭e嚑涓敓涓濇爣鍑嗭細" prop="purchaseTypeList"> - <el-checkbox-group v-model="form.purchaseTypeList"> + <el-form-item label="璇烽�夋嫨閲庣氦鍖呭惈閭e嚑涓敓涓濇爣鍑嗭細" prop="wildSilkList"> + <el-checkbox-group v-model="form.wildSilkList"> <el-checkbox v-for="item in silkSetList" - :label="item.id" + :label="item.value" :key=item.id >{{ item.value }}</el-checkbox > @@ -43,11 +43,11 @@ islook: false, silkSetList:getDataByType('silkSet'), form: { - purchaseTypeList:[1], + wildSilkList:['閲庣氦'], }, rules: { // 閲囪喘绫诲瀷 - purchaseTypeList: [ + wildSilkList: [ { required: true, message: "璇烽�夋嫨", trigger: ["blur",'change'] }, ], }, @@ -61,8 +61,8 @@ if (newVal) { this.$nextTick(() => { this.$refs["form"].resetFields(); + this.form.wildSilkList=this.editRow.wildSilkList.value||['閲庣氦'] }); - this.form=this.editRow } }, }, @@ -70,8 +70,7 @@ onSubmit() { this.$refs.form.validate((valid) => { if (valid) { - this.$emit('confirmValueSave',this.form,1) - this.shutdown() + this.$emit('confirmValueSave',this.form,9) } }); }, -- Gitblit v1.8.0