@ -355,7 +355,8 @@
< el -form :inline ="true" label -position = " top " :model ="componentData" :rules ="componentRules" style = "margin-left: 5px" >
< el -form :inline ="true" label -position = " top " :model ="componentData" :rules ="componentRules" style = "margin-left: 5px" >
< el -form -item style = "margin-left: 235px" prop = "setupLaborClassNo" >
< el -form -item style = "margin-left: 235px" prop = "setupLaborClassNo" >
< span style = "cursor: pointer" slot = "label" @ click = "getBaseList(217, 2)" > < a herf = "#" > 调机过程中人员等级 < / a > < / span >
< span style = "cursor: pointer" slot = "label" @ click = "getBaseList(217, 2)" > < a herf = "#" > 调机过程中人员等级 < / a > < / span >
< el -input v-model ="componentData.setupLaborClassDesc" readonly style="width: 221px" > < / el -input >
< el -input v-model ="componentData.setupLaborClassNo" @blur="setupLaborClassBlur(217)" style="width: 70px" > < / el -input >
< el -input v-model ="componentData.setupLaborClassDesc" disabled style="width: 148px" > < / el -input >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< / e l - f o r m >
< / e l - f o r m >
< el -form :inline ="true" label -position = " top " :model ="componentData" :rules ="componentRules" style = "margin-left: 5px" >
< el -form :inline ="true" label -position = " top " :model ="componentData" :rules ="componentRules" style = "margin-left: 5px" >
@ -381,7 +382,8 @@
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< el -form -item prop = "laborClassNo" >
< el -form -item prop = "laborClassNo" >
< span style = "cursor: pointer" slot = "label" @ click = "getBaseList(217, 1)" > < a herf = "#" > 人员等级 < / a > < / span >
< span style = "cursor: pointer" slot = "label" @ click = "getBaseList(217, 1)" > < a herf = "#" > 人员等级 < / a > < / span >
< el -input v-model ="componentData.laborClassDesc" readonly style="width: 221px" > < / el -input >
< el -input v-model ="componentData.laborClassNo" @blur="laborClassBlur(217)" style="width: 70px" > < / el -input >
< el -input v-model ="componentData.laborClassDesc" disabled style="width: 148px" > < / el -input >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< / e l - f o r m >
< / e l - f o r m >
< el -form :inline ="true" label -position = " top " :model ="componentData" :rules ="componentRules" style = "margin-left: 5px" >
< el -form :inline ="true" label -position = " top " :model ="componentData" :rules ="componentRules" style = "margin-left: 5px" >
@ -637,8 +639,8 @@ export default {
deep : true ,
deep : true ,
handler : function ( newV , oldV ) {
handler : function ( newV , oldV ) {
this . componentData . workCenterNo = this . componentData . workCenterNo . toUpperCase ( )
this . componentData . workCenterNo = this . componentData . workCenterNo . toUpperCase ( )
this . componentData . laborClassDesc = this . componentData . laborClassDesc . toUpperCase ( )
this . componentData . setupLaborClassDesc = this . componentData . setupLaborClassDesc . toUpperCase ( )
this . componentData . laborClassNo = this . componentData . laborClassNo . toUpperCase ( )
this . componentData . setupLaborClassNo = this . componentData . setupLaborClassNo . toUpperCase ( )
}
}
} ,
} ,
} ,
} ,
@ -2829,6 +2831,54 @@ export default {
}
}
} ,
} ,
/ / 人 员 等 级
setupLaborClassBlur ( tagNo ) {
if ( this . componentData . setupLaborClassNo != null && this . componentData . setupLaborClassNo !== '' ) {
let tempData = {
tagno : tagNo ,
conditionSql : " and class_no = '" + this . componentData . setupLaborClassNo + "'" + " and site = '" + this . modalData . site + "'" + " and bu_no = '" + this . modalData . buNo + "'"
}
verifyData ( tempData ) . then ( ( { data } ) => {
if ( data && data . code === 0 ) {
if ( data . baseListData . length > 0 ) {
this . componentData . setupLaborClassNo = data . baseListData [ 0 ] . class_no
this . componentData . setupLaborClassDesc = data . baseListData [ 0 ] . class_desc
} else {
this . $message . warning ( '该人员等级不存在!' )
this . componentData . setupLaborClassDesc = ''
}
} else {
this . $message . warning ( data . msg )
this . componentData . setupLaborClassDesc = ''
}
} )
}
} ,
/ / 人 员 等 级
laborClassBlur ( tagNo ) {
if ( this . componentData . laborClassNo != null && this . componentData . laborClassNo !== '' ) {
let tempData = {
tagno : tagNo ,
conditionSql : " and class_no = '" + this . componentData . laborClassNo + "'" + " and site = '" + this . modalData . site + "'" + " and bu_no = '" + this . modalData . buNo + "'"
}
verifyData ( tempData ) . then ( ( { data } ) => {
if ( data && data . code === 0 ) {
if ( data . baseListData . length > 0 ) {
this . componentData . laborClassNo = data . baseListData [ 0 ] . class_no
this . componentData . laborClassDesc = data . baseListData [ 0 ] . class_desc
} else {
this . $message . warning ( '该人员等级不存在!' )
this . componentData . laborClassDesc = ''
}
} else {
this . $message . warning ( data . msg )
this . componentData . laborClassDesc = ''
}
} )
}
} ,
/ / = = = = = = = = 导 出 相 关 方 法 = = = = = = = =
/ / = = = = = = = = 导 出 相 关 方 法 = = = = = = = =
/ * *
/ * *
* 导出excel
* 导出excel