@ -145,8 +145,6 @@
: key = "i.buNo"
: label = "i.buDesc"
: value = "i.buNo" >
<!-- < span style = "float: left;width: 100px" > { { i . sitename } } < / span > -- >
<!-- < span style = "float: right; color: #8492a6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; font-size: 11px;width: 60px" > { { i . buDesc } } < / span > -- >
< / e l - o p t i o n >
< / e l - s e l e c t >
< / e l - f o r m - i t e m >
@ -156,12 +154,11 @@
< el -option label = "否" value = "N" > < / e l - o p t i o n >
< / e l - s e l e c t >
< / e l - f o r m - i t e m >
< el -form -item label = "零件类型" >
< el -select v-model ="modalData.partType" style="width: 160px" >
< el -option label = "Manufactured" value = "Manufactured" > < / e l - o p t i o n >
< el -option label = "Manufactured Recipe" value = "Manufactured Recipe" > < / e l - o p t i o n >
< el -option label = "Purchased (raw)" value = "Purchased (raw)" > < / e l - o p t i o n >
< el -option label = "Purchased" value = "Purchased" > < / e l - o p t i o n >
< el -form -item prop = "partType2" label = "零件类型" >
< el -select v-model ="modalData.partType2" style="width: 160px" >
< el -option label = "成品" value = "Manufactured" > < / e l - o p t i o n >
< el -option label = "半成品" value = "Manufactured Recipe" > < / e l - o p t i o n >
< el -option label = "原材料" value = "Purchased (raw)" > < / e l - o p t i o n >
< / e l - s e l e c t >
< / e l - f o r m - i t e m >
< el -form -item v-if ="modalData.flag === '2'" :label="' '" >
@ -171,39 +168,11 @@
< el -tabs v-model ="inventoryPartTable" style="width: 100%;height: 305px;" type="border-card" @tab-click="inventoryPartClick" >
< el -tab -pane label = "General" name = "General" >
< el -form :inline ="true" label -position = " top " :model ="modalData" :rules ="rules" style = "margin-top: -5px;" >
<!-- < el -form -item label = "PN" > -- >
<!-- < el -input v-model ="modalData.cinvSourceCode" style="width: 144px" > < / el -input > -- >
<!-- < / e l - f o r m - i t e m > - - >
<!-- < el -form -item label = "SKU" > -- >
<!-- < el -input v-model ="modalData.sku" style="width: 144px" > < / el -input > -- >
<!-- < / e l - f o r m - i t e m > - - >
<!-- < el -form -item label = "cinvcname" > -- >
<!-- < el -input v-model ="modalData.cinvcname" style="width: 145px" > < / el -input > -- >
<!-- < / e l - f o r m - i t e m > - - >
<!-- < el -form -item label = "物料类别" > -- >
<!-- < el -input v-model ="modalData.invdefinetype" style="width: 174px" > < / el -input > -- >
<!-- < / e l - f o r m - i t e m > - - >
<!-- < el -form -item prop = "controlMes" label = "controlMes" > -- >
<!-- < el -select v-model ="modalData.controlMes" style="width: 100px" > - - >
<!-- < el -option label = "是" value = "Y" > < / e l - o p t i o n > - - >
<!-- < el -option label = "否" value = "N" > < / e l - o p t i o n > - - >
<!-- < / e l - s e l e c t > - - >
<!-- < / e l - f o r m - i t e m > - - >
< / e l - f o r m >
< el -form :inline ="true" label -position = " top " :model ="modalData" :rules ="rules" style = "margin-top: -5px;" >
<!-- < el -form -item label = "Qty Box Roll" > -- >
<!-- < el -input v-model ="modalData.qtyBoxRoll" style="width: 144px" > < / el -input > -- >
<!-- < / e l - f o r m - i t e m > - - >
<!-- < el -form -item label = "Qty Roll" > -- >
<!-- < el -input v-model ="modalData.qtyRoll" style="width: 144px" > < / el -input > -- >
<!-- < / e l - f o r m - i t e m > - - >
<!-- < el -form -item label = "Standard Box Qty" > -- >
<!-- < el -input v-model ="modalData.standardBoxQty" style="width: 145px" > < / el -input > -- >
<!-- < / e l - f o r m - i t e m > - - >
< el -form -item prop = "umId" >
< el -form -item prop = "umId2" >
< span style = "cursor: pointer" slot = "label" @click ="getBaseList(510)" > < a herf = "#" > 计量单位 < / a > < / span >
< el -input v-model ="modalData.umId" @blur="umIdBlur(510)" style="width: 128px" > < / el -input >
< el -input v-model ="modalData.umId2" @blur="umIdBlur(510)" style="width: 128px" > < / el -input >
< el -input v-model ="modalData.umName" disabled style="width: 330px" > < / el -input >
< / e l - f o r m - i t e m >
< el -form -item >
@ -213,29 +182,24 @@
< / e l - f o r m - i t e m >
< / e l - f o r m >
< el -form :inline ="true" label -position = " top " :model ="modalData" :rules ="rules" style = "margin-top: -5px;" >
<!-- < el -form -item > -- >
<!-- < span style = "cursor: pointer" slot = "label" @click ="getBaseList(511)" > < a herf = "#" > 默认仓库 < / a > < / span > -- >
<!-- < el -input v-model ="modalData.defaultWarehouseID" @blur="defaultWarehouseBlur(511)" style="width: 128px" > < / el -input > -- >
<!-- < el -input v-model ="modalData.defaultWarehouseName" disabled style="width: 330px" > < / el -input > -- >
<!-- < / e l - f o r m - i t e m > - - >
< / e l - f o r m >
< el -form :inline ="true" label -position = " top " :model ="modalData" :rules ="rules" style = "margin-top: -5px;" >
< el -form -item >
< span style = "cursor: pointer" slot = "label" @click ="getBaseList(211)" > < a herf = "#" > 商品组1 < / a > < / span >
< el -input v-model ="modalData.other Group1" @blur="productGroupId1Blur(211)" style="width: 128px" > < / el -input >
< el -input v-model ="modalData.other GroupName1" disabled style="width: 330px" > < / el -input >
< el -input v-model ="modalData.productGroupId1" @blur="productGroupId1Blur(211)" style="width: 128px" > < / el -input >
< el -input v-model ="modalData.pr oduc tGroupName1" disabled style="width: 330px" > < / el -input >
< / e l - f o r m - i t e m >
< el -form -item >
< span style = "cursor: pointer" slot = "label" @click ="getBaseList(212)" > < a herf = "#" > 商品组2 < / a > < / span >
< el -input v-model ="modalData.other Group2" @blur="productGroupId2Blur(212)" style="width: 128px" > < / el -input >
< el -input v-model ="modalData.other GroupName2" disabled style="width: 330px" > < / el -input >
< el -input v-model ="modalData.pr oduc tGroupId 2" @blur="productGroupId2Blur(212)" style="width: 128px" > < / el -input >
< el -input v-model ="modalData.pr oduc tGroupName2" disabled style="width: 330px" > < / el -input >
< / e l - f o r m - i t e m >
< / e l - f o r m >
< el -form :inline ="true" label -position = " top " :model ="modalData" :rules ="rules" style = "margin-top: -5px;" >
< el -form -item >
< span style = "cursor: pointer" slot = "label" @click ="getBaseList(213)" > < a herf = "#" > 商品组3 < / a > < / span >
< el -input v-model ="modalData.other Group3" @blur="productGroupId3Blur(213)" style="width: 128px" > < / el -input >
< el -input v-model ="modalData.other GroupName3" disabled style="width: 330px" > < / el -input >
< el -input v-model ="modalData.pr oduc tGroupId 3" @blur="productGroupId3Blur(213)" style="width: 128px" > < / el -input >
< el -input v-model ="modalData.pr oduc tGroupName3" disabled style="width: 330px" > < / el -input >
< / e l - f o r m - i t e m >
< el -form -item >
< span style = "cursor: pointer" slot = "label" @click ="getBaseList(219)" > < a herf = "#" > 属性模板 < / a > < / span >
@ -243,28 +207,6 @@
< el -input v-model ="modalData.codeDesc" disabled style="width: 330px" > < / el -input >
< / e l - f o r m - i t e m >
< / e l - f o r m >
<!-- < el -form :inline ="true" label -position = " top " :model ="modalData" :rules ="rules" style = "margin-top: -5px;" > -- >
<!-- < el -form -item label = "Mold Code" > -- >
<!-- < el -input v-model ="modalData.moldCode" style="width: 224px" > < / el -input > -- >
<!-- < / e l - f o r m - i t e m > - - >
<!-- < el -form -item label = "Mold Code Required" > -- >
<!-- < el -input v-model ="modalData.moldCodeRequired" style="width: 224px" > < / el -input > -- >
<!-- < / e l - f o r m - i t e m > - - >
<!-- < / e l - f o r m > - - >
<!-- < el -form :inline ="true" label -position = " top " :model ="modalData" :rules ="rules" style = "margin-top: -5px;" > -- >
<!-- < el -form -item label = "Serial Number Required" > -- >
<!-- < el -input v-model ="modalData.serialNumberRequired" style="width: 224px" > < / el -input > -- >
<!-- < / e l - f o r m - i t e m > - - >
<!-- < el -form -item label = "Part Mes Type" > -- >
<!-- < el -input v-model ="modalData.partMesType" style="width: 224px" > < / el -input > -- >
<!-- < / e l - f o r m - i t e m > - - >
<!-- < el -form -item label = "Product Rev" > -- >
<!-- < el -input v-model ="modalData.productRev" style="width: 224px" > < / el -input > -- >
<!-- < / e l - f o r m - i t e m > - - >
<!-- < el -form -item label = "Inv Type" > -- >
<!-- < el -input v-model ="modalData.invtype" style="width: 224px" > < / el -input > -- >
<!-- < / e l - f o r m - i t e m > - - >
<!-- < / e l - f o r m > - - >
< el -form :inline ="true" label -position = " top " :model ="modalData" :rules ="rules" style = "margin-top: -5px;" >
< el -form -item label = "备注" style = "height: 135px" >
< el -input type = "textarea" v-model ="modalData.remark" :rows="5" resize='none' show-word-limit style="width: 939px" > < / el -input >
@ -1146,36 +1088,21 @@
bu : '' ,
partNo : '' ,
partDesc : '' ,
umId : '' ,
umId2 : '' ,
umName : '' ,
spec : '' ,
active : '' ,
cinvSourceCode : '' ,
sku : '' ,
qtyBoxRoll : '' ,
qtyRoll : '' ,
partType : '' ,
partType2 : '' ,
standardBoxQty : '' ,
controlMes : '' ,
cinvcname : '' ,
otherGroup1 : '' ,
otherGroupName1 : '' ,
otherGroup2 : '' ,
otherGroupName2 : '' ,
otherGroup3 : '' ,
otherGroupName3 : '' ,
defaultWarehouseID : '' ,
defaultWarehouseName : '' ,
productGroupId1 : '' ,
productGroupName1 : '' ,
productGroupId2 : '' ,
productGroupName2 : '' ,
productGroupId3 : '' ,
productGroupName3 : '' ,
familyID : '' ,
familyName : '' ,
invdefinetype : '' ,
partDesceEn : '' ,
moldCode : '' ,
moldCodeRequired : '' ,
serialNumberRequired : '' ,
partMesType : '' ,
productRev : '' ,
invtype : '' ,
remark : '' ,
codeNo : '' ,
codeDesc : ''
@ -1275,7 +1202,7 @@
sortLv : 0 ,
status : true ,
fixed : '' ,
columnWidth : 10 0
columnWidth : 8 0
} ,
{
userId : this . $store . state . user . name ,
@ -1365,15 +1292,15 @@
sortLv : 0 ,
status : true ,
fixed : '' ,
columnWidth : 10 0
columnWidth : 8 0
} ,
{
userId : this . $store . state . user . name ,
functionId : 601001 ,
serialNumber : '601001Table1PartType' ,
serialNumber : '601001Table1PartType2Desc ' ,
tableId : '601001Table1' ,
tableName : '物料信息表' ,
columnProp : 'partType' ,
columnProp : 'partType2Desc ' ,
headerAlign : 'center' ,
align : 'center' ,
columnLabel : '零件类型' ,
@ -1383,7 +1310,7 @@
sortLv : 0 ,
status : true ,
fixed : '' ,
columnWidth : 15 0
columnWidth : 10 0
} ,
{
userId : this . $store . state . user . name ,
@ -1391,7 +1318,7 @@
serialNumber : '601001Table1UmId' ,
tableId : '601001Table1' ,
tableName : '物料信息表' ,
columnProp : 'umId' ,
columnProp : 'umId2 ' ,
headerAlign : 'center' ,
align : 'center' ,
columnLabel : '计量单位编码' ,
@ -1401,7 +1328,7 @@
sortLv : 0 ,
status : true ,
fixed : '' ,
columnWidth : 15 0
columnWidth : 10 0
} ,
{
userId : this . $store . state . user . name ,
@ -1419,7 +1346,7 @@
sortLv : 0 ,
status : true ,
fixed : '' ,
columnWidth : 20 0
columnWidth : 15 0
} ,
{
userId : this . $store . state . user . name ,
@ -1437,7 +1364,7 @@
sortLv : 0 ,
status : true ,
fixed : '' ,
columnWidth : 15 0
columnWidth : 10 0
} ,
{
userId : this . $store . state . user . name ,
@ -1455,7 +1382,7 @@
sortLv : 0 ,
status : true ,
fixed : '' ,
columnWidth : 20 0
columnWidth : 15 0
} ,
{
userId : this . $store . state . user . name ,
@ -1463,7 +1390,7 @@
serialNumber : '601001Table1OtherGroup1' ,
tableId : '601001Table1' ,
tableName : '物料信息表' ,
columnProp : 'other Group1' ,
columnProp : 'pr oduc tGroupId 1' ,
headerAlign : 'center' ,
align : 'center' ,
columnLabel : '商品组1编码' ,
@ -1473,7 +1400,7 @@
sortLv : 0 ,
status : true ,
fixed : '' ,
columnWidth : 15 0
columnWidth : 10 0
} ,
{
userId : this . $store . state . user . name ,
@ -1481,7 +1408,7 @@
serialNumber : '601001Table1OtherGroupName1' ,
tableId : '601001Table1' ,
tableName : '物料信息表' ,
columnProp : 'other GroupName1' ,
columnProp : 'pr oduc tGroupName1' ,
headerAlign : 'center' ,
align : 'left' ,
columnLabel : '商品组1名称' ,
@ -1491,7 +1418,7 @@
sortLv : 0 ,
status : true ,
fixed : '' ,
columnWidth : 20 0
columnWidth : 15 0
} ,
{
userId : this . $store . state . user . name ,
@ -1499,7 +1426,7 @@
serialNumber : '601001Table1OtherGroup2' ,
tableId : '601001Table1' ,
tableName : '物料信息表' ,
columnProp : 'other Group2' ,
columnProp : 'pr oduc tGroupId 2' ,
headerAlign : 'center' ,
align : 'center' ,
columnLabel : '商品组2编码' ,
@ -1509,7 +1436,7 @@
sortLv : 0 ,
status : true ,
fixed : '' ,
columnWidth : 15 0
columnWidth : 10 0
} ,
{
userId : this . $store . state . user . name ,
@ -1517,7 +1444,7 @@
serialNumber : '601001Table1OtherGroupName2' ,
tableId : '601001Table1' ,
tableName : '物料信息表' ,
columnProp : 'other GroupName2' ,
columnProp : 'pr oduc tGroupName2' ,
headerAlign : 'center' ,
align : 'left' ,
columnLabel : '商品组2名称' ,
@ -1527,7 +1454,7 @@
sortLv : 0 ,
status : true ,
fixed : '' ,
columnWidth : 20 0
columnWidth : 15 0
} ,
{
userId : this . $store . state . user . name ,
@ -1535,7 +1462,7 @@
serialNumber : '601001Table1OtherGroup3' ,
tableId : '601001Table1' ,
tableName : '物料信息表' ,
columnProp : 'other Group3' ,
columnProp : 'pr oduc tGroupId 3' ,
headerAlign : 'center' ,
align : 'center' ,
columnLabel : '商品组3编码' ,
@ -1545,7 +1472,7 @@
sortLv : 0 ,
status : true ,
fixed : '' ,
columnWidth : 15 0
columnWidth : 10 0
} ,
{
userId : this . $store . state . user . name ,
@ -1553,7 +1480,7 @@
serialNumber : '601001Table1OtherGroupName3' ,
tableId : '601001Table1' ,
tableName : '物料信息表' ,
columnProp : 'other GroupName3' ,
columnProp : 'pr oduc tGroupName3' ,
headerAlign : 'center' ,
align : 'left' ,
columnLabel : '商品组3名称' ,
@ -1563,7 +1490,7 @@
sortLv : 0 ,
status : true ,
fixed : '' ,
columnWidth : 20 0
columnWidth : 15 0
} ,
{
userId : this . $store . state . user . name ,
@ -1635,7 +1562,7 @@
sortLv : 0 ,
status : true ,
fixed : '' ,
columnWidth : 16 0
columnWidth : 15 0
} ,
{
userId : this . $store . state . user . name ,
@ -2213,7 +2140,7 @@
trigger : [ 'blur' , 'change' ]
}
] ,
umId : [
umId2 : [
{
required : true ,
message : ' ' ,
@ -2248,7 +2175,7 @@
trigger : [ 'blur' , 'change' ]
}
] ,
partType : [
partType2 : [
{
required : true ,
message : ' ' ,
@ -2732,36 +2659,21 @@
bu : this . userBuList [ 0 ] . buNo ,
partNo : '' ,
partDesc : '' ,
umId : '' ,
umId2 : '' ,
umName : '' ,
spec : '' ,
active : 'Y' ,
cinvSourceCode : '' ,
sku : '' ,
qtyBoxRoll : '' ,
qtyRoll : '' ,
partType : 'Purchased (raw)' ,
partType2 : 'Purchased (raw)' ,
standardBoxQty : '' ,
controlMes : '' ,
cinvcname : '' ,
otherGroup1 : '' ,
otherGroupName1 : '' ,
otherGroup2 : '' ,
otherGroupName2 : '' ,
otherGroup3 : '' ,
otherGroupName3 : '' ,
defaultWarehouseID : '' ,
defaultWarehouseName : '' ,
productGroupId1 : '' ,
productGroupName1 : '' ,
productGroupId2 : '' ,
productGroupName2 : '' ,
productGroupId3 : '' ,
productGroupName3 : '' ,
familyID : '' ,
familyName : '' ,
invdefinetype : '' ,
partDesceEn : '' ,
moldCode : '' ,
moldCodeRequired : '' ,
serialNumberRequired : '' ,
partMesType : '' ,
productRev : '' ,
invtype : '' ,
remark : '' ,
codeNo : '' ,
codeDesc : ''
@ -2790,36 +2702,21 @@
buNo : row . buNo ,
partNo : row . partNo ,
partDesc : row . partDesc ,
umId : row . umId ,
umId2 : row . umId2 ,
umName : row . umName ,
spec : row . spec ,
active : row . active ,
cinvSourceCode : row . cinvSourceCode ,
sku : row . sku ,
qtyBoxRoll : row . qtyBoxRoll ,
qtyRoll : row . qtyRoll ,
partType : row . partType ,
partType2 : row . partType2 ,
standardBoxQty : row . standardBoxQty ,
controlMes : row . controlMes ,
cinvcname : row . cinvcname ,
otherGroup1 : row . otherGroup1 ,
otherGroupName1 : row . otherGroupName1 ,
otherGroup2 : row . otherGroup2 ,
otherGroupName2 : row . otherGroupName2 ,
otherGroup3 : row . otherGroup3 ,
otherGroupName3 : row . otherGroupName3 ,
defaultWarehouseID : row . defaultWarehouseID ,
defaultWarehouseName : row . defaultWarehouseName ,
productGroupId1 : row . productGroupId1 ,
productGroupName1 : row . productGroupName1 ,
productGroupId2 : row . productGroupId2 ,
productGroupName2 : row . productGroupName2 ,
productGroupId3 : row . productGroupId3 ,
productGroupName3 : row . productGroupName3 ,
familyID : row . familyID ,
familyName : row . familyName ,
invdefinetype : row . invdefinetype ,
partDesceEn : row . partDesceEn ,
moldCode : row . moldCode ,
moldCodeRequired : row . moldCodeRequired ,
serialNumberRequired : row . serialNumberRequired ,
partMesType : row . partMesType ,
productRev : row . productRev ,
invtype : row . invtype ,
remark : row . remark ,
codeNo : row . codeNo ,
codeDesc : row . codeDesc
@ -3244,7 +3141,7 @@
this . $message . warning ( '请选择BU!' )
return
}
if ( this . modalData . umId === '' || this . modalData . umId == null ) {
if ( this . modalData . umId2 === '' || this . modalData . umId2 == null ) {
this . $message . warning ( '请选择计量单位!' )
return
}
@ -3519,15 +3416,15 @@
/ / 计 量 单 位 输 入 校 验
umIdBlur ( tagNo ) {
if ( this . modalData . umId != null && this . modalData . umId !== '' ) {
if ( this . modalData . umId2 != null && this . modalData . umId2 !== '' ) {
let tempData = {
tagno : tagNo ,
conditionSql : " and UMID = '" + this . modalData . umId + "'" + " and site = '" + this . modalData . bu . split ( '_' ) [ 0 ] + "'"
conditionSql : " and UMID = '" + this . modalData . umId2 + "'" + " and site = '" + this . modalData . bu . split ( '_' ) [ 0 ] + "'"
}
verifyData ( tempData ) . then ( ( { data } ) => {
if ( data && data . code === 0 ) {
if ( data . baseListData . length > 0 ) {
this . modalData . umId = data . baseListData [ 0 ] . UMID
this . modalData . umId2 = data . baseListData [ 0 ] . UMID
this . modalData . umName = data . baseListData [ 0 ] . UMName
return
}
@ -3539,82 +3436,62 @@
/ / 商 品 组 1 输 入 校 验
productGroupId1Blur ( tagNo ) {
if ( this . modalData . other Group1 != null && this . modalData . other Group1 !== '' ) {
if ( this . modalData . pr oduc tGroupId 1 != null && this . modalData . pr oduc tGroupId 1 !== '' ) {
let tempData = {
tagno : tagNo ,
conditionSql : " and product_group_id = '" + this . modalData . other Group1 + "'" + " and site = '" + this . modalData . bu . split ( '_' ) [ 0 ] + "'" + " and bu_no = '" + this . modalData . bu . split ( '_' ) [ 1 ] + "'"
conditionSql : " and product_group_id = '" + this . modalData . pr oduc tGroupId 1 + "'" + " 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 . other Group1 = data . baseListData [ 0 ] . product_group_id
this . modalData . other GroupName1 = data . baseListData [ 0 ] . product_group_name
this . modalData . pr oduc tGroupId 1 = data . baseListData [ 0 ] . product_group_id
this . modalData . pr oduc tGroupName1 = data . baseListData [ 0 ] . product_group_name
return
}
}
} )
}
this . modalData . other GroupName1 = ''
this . modalData . pr oduc tGroupName1 = ''
} ,
/ / 商 品 组 2 输 入 校 验
productGroupId2Blur ( tagNo ) {
if ( this . modalData . other Group2 != null && this . modalData . other Group2 !== '' ) {
if ( this . modalData . pr oduc tGroupId 2 != null && this . modalData . pr oduc tGroupId 2 !== '' ) {
let tempData = {
tagno : tagNo ,
conditionSql : " and product_group_id = '" + this . modalData . other Group2 + "'" + " and site = '" + this . modalData . bu . split ( '_' ) [ 0 ] + "'" + " and bu_no = '" + this . modalData . bu . split ( '_' ) [ 1 ] + "'"
conditionSql : " and product_group_id = '" + this . modalData . pr oduc tGroupId 2 + "'" + " 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 . other Group2 = data . baseListData [ 0 ] . product_group_id
this . modalData . other GroupName2 = data . baseListData [ 0 ] . product_group_name
this . modalData . pr oduc tGroupId 2 = data . baseListData [ 0 ] . product_group_id
this . modalData . pr oduc tGroupName2 = data . baseListData [ 0 ] . product_group_name
return
}
}
} )
}
this . modalData . other GroupName2 = ''
this . modalData . pr oduc tGroupName2 = ''
} ,
/ / 商 品 组 3 输 入 校 验
productGroupId3Blur ( tagNo ) {
if ( this . modalData . otherGroup3 != null && this . modalData . otherGroup3 !== '' ) {
let tempData = {
tagno : tagNo ,
conditionSql : " and product_group_id = '" + this . modalData . otherGroup3 + "'" + " 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 . otherGroup3 = data . baseListData [ 0 ] . product_group_id
this . modalData . otherGroupName3 = data . baseListData [ 0 ] . product_group_name
return
}
}
} )
}
this . modalData . otherGroupName3 = ''
} ,
/ / 默 认 仓 库 输 入 校 验
defaultWarehouseBlur ( tagNo ) {
if ( this . modalData . defaultWarehouseID != null && this . modalData . defaultWarehouseID !== '' ) {
if ( this . modalData . productGroupId3 != null && this . modalData . productGroupId3 !== '' ) {
let tempData = {
tagno : tagNo ,
conditionSql : " and warehouse _id = '" + this . modalData . defaultWarehouseID + "'" + " and site = '" + this . modalData . bu . split ( '_' ) [ 0 ] + "'"
conditionSql : " and product_group_id = '" + this . modalData . productGroupId3 + "'" + " 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 . defaultWarehouseID = data . baseListData [ 0 ] . warehouse _id
this . modalData . defaultWarehouseName = data . baseListData [ 0 ] . warehouse _name
this . modalData . productGroupId3 = data . baseListData [ 0 ] . product_group_id
this . modalData . productGroupName3 = data . baseListData [ 0 ] . product_group_name
return
}
}
} )
}
this . modalData . defaultWarehouseName = ''
this . modalData . productGroupName3 = ''
} ,
/ / 物 料 分 类 输 入 校 验
@ -3676,17 +3553,14 @@
conSql = " and site = '" + this . modalData . bu . split ( '_' ) [ 0 ] + "'" + " and bu_no = '" + this . modalData . bu . split ( '_' ) [ 1 ] + "'"
}
if ( val === 510 ) {
strVal = this . modalData . umId
strVal = this . modalData . umId2
conSql = " and site = '" + this . modalData . bu . split ( '_' ) [ 0 ] + "'"
} else if ( val === 211 ) {
strVal = this . modalData . other Group1
strVal = this . modalData . pr oduc tGroupId 1
} else if ( val === 212 ) {
strVal = this . modalData . other Group2
strVal = this . modalData . pr oduc tGroupId 2
} else if ( val === 213 ) {
strVal = this . modalData . otherGroup3
} else if ( val === 511 ) {
strVal = this . modalData . defaultWarehouseID
conSql = ''
strVal = this . modalData . productGroupId3
} else if ( val === 214 ) {
strVal = this . modalData . familyID
} else if ( val === 219 ) {
@ -3701,20 +3575,17 @@
* /
getBaseData ( val ) {
if ( this . tagNo === 510 ) {
this . modalData . umId = val . UMID
this . modalData . umId2 = val . UMID
this . modalData . umName = val . UMName
} else if ( this . tagNo === 211 ) {
this . modalData . other Group1 = val . product_group_id
this . modalData . other GroupName1 = val . product_group_name
this . modalData . pr oduc tGroupId 1 = val . product_group_id
this . modalData . pr oduc tGroupName1 = val . product_group_name
} else if ( this . tagNo === 212 ) {
this . modalData . other Group2 = val . product_group_id
this . modalData . other GroupName2 = val . product_group_name
this . modalData . pr oduc tGroupId 2 = val . product_group_id
this . modalData . pr oduc tGroupName2 = val . product_group_name
} else if ( this . tagNo === 213 ) {
this . modalData . otherGroup3 = val . product_group_id
this . modalData . otherGroupName3 = val . product_group_name
} else if ( this . tagNo === 511 ) {
this . modalData . defaultWarehouseID = val . warehouse_id
this . modalData . defaultWarehouseName = val . warehouse_name
this . modalData . productGroupId3 = val . product_group_id
this . modalData . productGroupName3 = val . product_group_name
} else if ( this . tagNo === 214 ) {
this . modalData . familyID = val . family_id
this . modalData . familyName = val . family_name