|
|
@ -102,8 +102,8 @@ |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form-item prop="workCenterNo"> |
|
|
<el-form-item prop="workCenterNo"> |
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(216)"><a herf="#">加工中心编码</a></span> |
|
|
|
|
|
<el-input v-model="modalData.workCenterNo" @blur="workCenterBlur(216)" style="width: 140px"></el-input> |
|
|
|
|
|
|
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(516)"><a herf="#">加工中心编码</a></span> |
|
|
|
|
|
<el-input v-model="modalData.workCenterNo" @blur="workCenterBlur(516)" style="width: 140px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'加工中心名称'" prop="workCenterDesc" :rules="rules.workCenterDesc"> |
|
|
<el-form-item :label="'加工中心名称'" prop="workCenterDesc" :rules="rules.workCenterDesc"> |
|
|
<el-input v-model="modalData.workCenterDesc" disabled style="width: 272px"></el-input> |
|
|
<el-input v-model="modalData.workCenterDesc" disabled style="width: 272px"></el-input> |
|
|
@ -111,8 +111,8 @@ |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form-item prop="setupLaborClassNo" :rules="rules.setupLaborClassNo"> |
|
|
<el-form-item prop="setupLaborClassNo" :rules="rules.setupLaborClassNo"> |
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(217, 2)"><a herf="#">调机时人员等级编码</a></span> |
|
|
|
|
|
<el-input v-model="modalData.setupLaborClassNo" @blur="setupLaborClassBlur(217)" @change="changeSetupLaborClassNo()" style="width: 140px"></el-input> |
|
|
|
|
|
|
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(517, 2)"><a herf="#">调机时人员等级编码</a></span> |
|
|
|
|
|
<el-input v-model="modalData.setupLaborClassNo" @blur="setupLaborClassBlur(517)" @change="changeSetupLaborClassNo()" style="width: 140px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'调机时人员等级描述'" prop="setupLaborClassDesc" :rules="rules.setupLaborClassDesc"> |
|
|
<el-form-item :label="'调机时人员等级描述'" prop="setupLaborClassDesc" :rules="rules.setupLaborClassDesc"> |
|
|
<el-input v-model="modalData.setupLaborClassDesc" disabled style="width: 272px"></el-input> |
|
|
<el-input v-model="modalData.setupLaborClassDesc" disabled style="width: 272px"></el-input> |
|
|
@ -123,8 +123,8 @@ |
|
|
</el-form> |
|
|
</el-form> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
<el-form-item prop="laborClassNo" :rules="rules.laborClassNo"> |
|
|
<el-form-item prop="laborClassNo" :rules="rules.laborClassNo"> |
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(217, 1)"><a herf="#">人员等级编码</a></span> |
|
|
|
|
|
<el-input v-model="modalData.laborClassNo" @blur="laborClassBlur(217)" style="width: 140px"></el-input> |
|
|
|
|
|
|
|
|
<span style="cursor: pointer" slot="label" @click="getBaseList(517, 1)"><a herf="#">人员等级编码</a></span> |
|
|
|
|
|
<el-input v-model="modalData.laborClassNo" @blur="laborClassBlur(517)" style="width: 140px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item :label="'人员等级描述'" prop="laborClassDesc" :rules="rules.laborClassDesc"> |
|
|
<el-form-item :label="'人员等级描述'" prop="laborClassDesc" :rules="rules.laborClassDesc"> |
|
|
<el-input v-model="modalData.laborClassDesc" disabled style="width: 272px"></el-input> |
|
|
<el-input v-model="modalData.laborClassDesc" disabled style="width: 272px"></el-input> |
|
|
@ -686,20 +686,19 @@ export default { |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
let strVal = '' |
|
|
let strVal = '' |
|
|
let conSql = '' |
|
|
let conSql = '' |
|
|
if (val === 217) { |
|
|
|
|
|
|
|
|
if (this.modalData.bu === null || this.modalData.bu === '') { |
|
|
|
|
|
this.$message.warning("请选择BU!") |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
if (val === 517) { |
|
|
if(type === 1) { |
|
|
if(type === 1) { |
|
|
strVal = this.modalData.laborClassNo?this.modalData.laborClassNo:'' |
|
|
strVal = this.modalData.laborClassNo?this.modalData.laborClassNo:'' |
|
|
} else if (type === 2) { |
|
|
} else if (type === 2) { |
|
|
strVal = this.modalData.setupLaborClassNo?this.modalData.setupLaborClassNo:'' |
|
|
strVal = this.modalData.setupLaborClassNo?this.modalData.setupLaborClassNo:'' |
|
|
} |
|
|
} |
|
|
|
|
|
conSql = " and site = '" + this.modalData.bu.split('_')[0] + "'" |
|
|
} |
|
|
} |
|
|
if (this.modalData.bu === null || this.modalData.bu === '') { |
|
|
|
|
|
this.$message.warning("请选择BU!") |
|
|
|
|
|
return |
|
|
|
|
|
} else { |
|
|
|
|
|
conSql = " and site = '" + this.modalData.bu.split('_')[0] + "'" + " and bu_no = '" + this.modalData.bu.split('_')[1] + "'" |
|
|
|
|
|
} |
|
|
|
|
|
if (val === 216) { |
|
|
|
|
|
|
|
|
if (val === 516) { |
|
|
strVal = this.modalData.workCenterNo?this.modalData.workCenterNo:'' |
|
|
strVal = this.modalData.workCenterNo?this.modalData.workCenterNo:'' |
|
|
conSql = " and site = '" + this.modalData.bu.split('_')[0] + "'" |
|
|
conSql = " and site = '" + this.modalData.bu.split('_')[0] + "'" |
|
|
} |
|
|
} |
|
|
@ -711,7 +710,7 @@ export default { |
|
|
* @param val |
|
|
* @param val |
|
|
*/ |
|
|
*/ |
|
|
getBaseData (val) { |
|
|
getBaseData (val) { |
|
|
if (this.tagNo === 217) { |
|
|
|
|
|
|
|
|
if (this.tagNo === 517) { |
|
|
if (this.tagNo1 === 1) { |
|
|
if (this.tagNo1 === 1) { |
|
|
this.modalData.laborClassNo = val.class_no |
|
|
this.modalData.laborClassNo = val.class_no |
|
|
this.modalData.laborClassDesc = val.class_desc |
|
|
this.modalData.laborClassDesc = val.class_desc |
|
|
@ -722,7 +721,7 @@ export default { |
|
|
this.modalData.laborClassDesc = val.class_desc |
|
|
this.modalData.laborClassDesc = val.class_desc |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if (this.tagNo === 216) { |
|
|
|
|
|
|
|
|
if (this.tagNo === 516) { |
|
|
this.modalData.workCenterNo = val.work_center_no |
|
|
this.modalData.workCenterNo = val.work_center_no |
|
|
this.modalData.workCenterDesc = val.work_center_desc |
|
|
this.modalData.workCenterDesc = val.work_center_desc |
|
|
} |
|
|
} |
|
|
@ -804,7 +803,7 @@ export default { |
|
|
changeSetupLaborClassNo () { |
|
|
changeSetupLaborClassNo () { |
|
|
if (this.modalData.setupLaborClassNo !== '' && this.modalData.setupLaborClassNo != null) { |
|
|
if (this.modalData.setupLaborClassNo !== '' && this.modalData.setupLaborClassNo != null) { |
|
|
this.modalData.laborClassNo = this.modalData.setupLaborClassNo |
|
|
this.modalData.laborClassNo = this.modalData.setupLaborClassNo |
|
|
this.laborClassBlur(217) |
|
|
|
|
|
|
|
|
this.laborClassBlur(517) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -819,9 +818,9 @@ export default { |
|
|
* 分类信息新增/编辑 |
|
|
* 分类信息新增/编辑 |
|
|
*/ |
|
|
*/ |
|
|
async saveData () { |
|
|
async saveData () { |
|
|
await this.workCenterBlur(216) |
|
|
|
|
|
await this.laborClassBlur(217) |
|
|
|
|
|
await this.setupLaborClassBlur(217) |
|
|
|
|
|
|
|
|
await this.workCenterBlur(516) |
|
|
|
|
|
await this.laborClassBlur(517) |
|
|
|
|
|
await this.setupLaborClassBlur(517) |
|
|
if (this.modalData.bu === '' || this.modalData.bu == null) { |
|
|
if (this.modalData.bu === '' || this.modalData.bu == null) { |
|
|
this.$message.warning('请选择BU!') |
|
|
this.$message.warning('请选择BU!') |
|
|
return |
|
|
return |
|
|
|