| | |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item prop="salaryType" label="薪资类型"> |
| | | <el-form-item prop="salaryTypeId" label="薪资类型"> |
| | | <el-select |
| | | v-model="form.salaryType" |
| | | v-model="form.salaryTypeId" |
| | | style="width: calc(100% - 40px)" |
| | | placeholder="请选择车间" |
| | | > |
| | |
| | | v-for="item in unitList" |
| | | :key="item.id" |
| | | :label="item.name" |
| | | :value="item.name" |
| | | :value="item.id" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button type="cancel" @click="cancelMethod()">取消</el-button> |
| | | <el-button type="primary" @click="submitForm('form')">确 定</el-button> |
| | | <el-button type="primary" :loading="isAddloading" @click="submitForm('form')">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <BomDialog |
| | |
| | | form: { |
| | | name: "", |
| | | workTypes: [], |
| | | salaryType: "", |
| | | salaryTypeId: null, |
| | | salaryFormula: "", |
| | | salaryFormulaHtml: "", |
| | | error: "", |
| | | }, |
| | | // 满勤奖设置 |
| | | absenteeism:1, |
| | | absenteeism:{value:1,id:null}, |
| | | // 设置野纤的生丝标准 |
| | | wildSilkList: ['野纤'], |
| | | wildSilkList: {value:'野纤',id:null}, |
| | | activeName: 1, |
| | | formulaName: [ |
| | | { |
| | |
| | | trigger: ["blur", "change"], |
| | | }, |
| | | ], |
| | | salaryType: [ |
| | | salaryTypeId: [ |
| | | { required: true, message: "请选择", trigger: ["blur", "change"] }, |
| | | ], |
| | | salaryFormulaHtml: [ |
| | |
| | | }, |
| | | unitList: [], |
| | | constType: "", |
| | | isAddloading: false, |
| | | }; |
| | | }, |
| | | computed: {}, |
| | |
| | | this.form = { |
| | | name: "", |
| | | workTypes: [], |
| | | salaryType: "", |
| | | salaryTypeId: null, |
| | | salaryFormula: "", |
| | | salaryFormulaHtml: "", |
| | | error: "", |
| | |
| | | }, |
| | | 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( |
| | |
| | | values: dataList, |
| | | } |
| | | } |
| | | this.isAddloading = true; |
| | | saveSalaryType(params).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$message({ |
| | |
| | | } |
| | | this.handleGetBomKindDictList(val?val:''); |
| | | } |
| | | this.isAddloading = false; |
| | | }).catch(() => { |
| | | setTimeout(() => { |
| | | this.isAddloading = false; |
| | | }, 3000); |
| | | }); |
| | | }, |
| | | 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; |
| | | } |