haoxuan
2024-04-28 9ceddcd1ae23033134d4e32b02eaf272e4c77151
配置满勤奖的获取接口联调,数据处理+保存配置满勤的接口联调
1个文件已修改
13 ■■■■■ 已修改文件
src/views/employeeSalary/salaryPlan/components/ConstantSetDialog.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/employeeSalary/salaryPlan/components/ConstantSetDialog.vue
@@ -7,12 +7,12 @@
       :model="form" 
       label-width="150px"
        label-position="right">
              <el-form-item v-if="constType==2" label="缺勤超过" label-width="100px" prop="cycle">
              <el-form-item v-if="constType==10" label="缺勤超过" label-width="100px" prop="absenteeism">
              
                <el-input 
                  style="width:calc(100% - 150px)"
                  class="margin_left_5px margin_right_5px" 
                  v-model="form.cycle"
                  v-model="form.absenteeism"
                  placeholder="请输入"></el-input>
                  天则满勤奖全额扣除
              </el-form-item>
@@ -50,11 +50,11 @@
    return {
      islook: false,
      form: {
        cycle:1,
        absenteeism:1,
        number:'',
      },
      rules: {
        cycle: [
        absenteeism: [
          {
            required: true,
            message: "请输入",
@@ -88,10 +88,13 @@
        this.$nextTick(() => {
          this.$refs["form"].resetFields();
        });
        this.form.cycle=this.editRow.cycle
        this.form.absenteeism=this.editRow.absenteeism
        this.form.number=null
      }
    },
    'editRow.absenteeism': function () {
      this.form.absenteeism=this.editRow.absenteeism
    }
  },
  methods: {
    validatorNum(rule, value, callback) {