@ -1170,8 +1170,9 @@
partMesType : '' ,
productRev : '' ,
invtype : '' ,
remark : ''
remark : '' ,
codeNo : '' ,
codeDesc : ''
} ,
itemData : {
site : this . $store . state . user . site ,
@ -2579,7 +2580,9 @@
partMesType : '' ,
productRev : '' ,
invtype : '' ,
remark : ''
remark : '' ,
codeNo : '' ,
codeDesc : ''
}
this . inventoryPartTable = 'General'
this . modalDisableFlag = false
@ -2635,7 +2638,9 @@
partMesType : row . partMesType ,
productRev : row . productRev ,
invtype : row . invtype ,
remark : row . remark
remark : row . remark ,
codeNo : row . codeNo ,
codeDesc : row . codeDesc
}
this . inventoryPartTable = 'General'
this . modalDisableFlag = true
@ -3474,6 +3479,30 @@
}
} ,
/ / 属 性 输 入 校 验
modelBlur ( tagNo ) {
if ( this . modalData . codeNo != null && this . modalData . codeNo !== '' ) {
let tempData = {
tagno : tagNo ,
conditionSql : " and code_no = '" + this . modalData . codeNo + "'" + " and site = '" + this . modalData . bu . split ( '_' ) [ 0 ] + "'" + " and bu_no = '" + this . modalData . bu . split ( '_' ) [ 1 ] + "'"
}
verifyData ( tempData ) . then ( ( { data } ) => {
if ( data && data . code === 0 ) {
if ( data . baseListData . length > 0 ) {
this . modalData . codeNo = data . baseListData [ 0 ] . code_no
this . modalData . codeDesc = data . baseListData [ 0 ] . code_desc
} else {
this . $message . warning ( '该属性模板不存在!' )
this . modalData . codeDesc = ''
}
} else {
this . $message . warning ( data . msg )
this . modalData . codeDesc = ''
}
} )
}
} ,
/ / = = = = = = = = c h o o s e L i s t 相 关 方 法 = = = = = = = =
/ * *
* 获取基础数据列表S
@ -3485,8 +3514,16 @@
this . tempCodeNo = this . modalData . codeNo
this . $nextTick ( ( ) => {
let strVal = ''
let conSql = ''
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 === 510 ) {
strVal = this . modalData . umId
conSql = ''
} else if ( val === 211 ) {
strVal = this . modalData . otherGroup1
} else if ( val === 212 ) {
@ -3495,12 +3532,13 @@
strVal = this . modalData . otherGroup3
} else if ( val === 511 ) {
strVal = this . modalData . defaultWarehouseID
conSql = ''
} else if ( val === 214 ) {
strVal = this . modalData . familyID
} else if ( val === 219 ) {
strVal = this . modalData . codeNo
}
this . $refs . baseList . init ( val , strVal )
this . $refs . baseList . init ( val , strVal , conSql )
} )
} ,
/ * *