设置满勤,设置野纤生丝标准 2个模块保存接口增加对应的id
| | |
| | | if (newVal) { |
| | | this.$nextTick(() => { |
| | | this.$refs["form"].resetFields(); |
| | | }); |
| | | this.form.absenteeism=this.editRow.absenteeism |
| | | this.form.absenteeism=this.editRow.absenteeism.value||1 |
| | | this.form.number=null |
| | | }); |
| | | } |
| | | }, |
| | | 'editRow.absenteeism': function () { |
| | | this.form.absenteeism=this.editRow.absenteeism |
| | | } |
| | | // 'editRow.absenteeism': function () { |
| | | // this.form.absenteeism=this.editRow.absenteeism.value |
| | | // } |
| | | }, |
| | | methods: { |
| | | validatorNum(rule, value, callback) { |
| | |
| | | if (newVal) { |
| | | this.$nextTick(() => { |
| | | this.$refs["form"].resetFields(); |
| | | this.form.wildSilkList=this.editRow.wildSilkList.value||['野纤'] |
| | | }); |
| | | this.form=this.editRow |
| | | } |
| | | }, |
| | | }, |
| | |
| | | error: "", |
| | | }, |
| | | // 满勤奖设置 |
| | | absenteeism:1, |
| | | absenteeism:{value:1,id:null}, |
| | | // 设置野纤的生丝标准 |
| | | wildSilkList: ['野纤'], |
| | | wildSilkList: {value:'野纤',id:null}, |
| | | activeName: 1, |
| | | formulaName: [ |
| | | { |
| | |
| | | }, |
| | | confirmValueSave(form, type) { |
| | | if (type == 9) { |
| | | this.wildSilkList = form.wildSilkList; |
| | | let wildSilkList = form.wildSilkList; |
| | | this.handleConfirmSave([ |
| | | {name:this.wildSilkList.join(',')} |
| | | { |
| | | name:wildSilkList.join(','), |
| | | id:this.wildSilkList.id |
| | | } |
| | | ],type) |
| | | } else if (type == 10) { |
| | | this.absenteeism = form.absenteeism + ""; |
| | | let absenteeism = form.absenteeism + ""; |
| | | this.handleConfirmSave([ |
| | | {name:this.absenteeism} |
| | | { |
| | | name:absenteeism, |
| | | id:this.absenteeism.id |
| | | } |
| | | ],type) |
| | | } else if (type == 3) { |
| | | this.formulaClick( |
| | |
| | | handleGetBomKindDictList(val) { |
| | | getSalaryTypeList({ type: val?val:8 }).then((res) => { |
| | | if(val==9){ |
| | | this.wildSilkList=(res.data&&res.data.length>0)?res.data[0].name.split(','):['野纤'] |
| | | // 野纤的生丝标准配置 |
| | | this.wildSilkList=(res.data&&res.data.length>0)?{ |
| | | ...res.data[0], |
| | | value:res.data[0].name.split(',')||[] |
| | | }:{ |
| | | id:null, |
| | | value:['野纤'] |
| | | } |
| | | }else if(val==10){ |
| | | this.absenteeism=(res.data&&res.data.length>0)?res.data[0].name:1 |
| | | // 考勤配置 |
| | | this.absenteeism=(res.data&&res.data.length>0)?{ |
| | | ...res.data[0], |
| | | value:res.data[0].name||1 |
| | | }:{ |
| | | id:null, |
| | | value:1 |
| | | } |
| | | }else{ |
| | | this.unitList = res.data; |
| | | } |