|
|
|
@ -446,7 +446,7 @@ export default { |
|
|
|
if (this.tagNo === 26) { |
|
|
|
//设置参数 |
|
|
|
this.pageData.locationID = val.LocationID; |
|
|
|
this.$set(this.pageData,'locationName',val.LocationName) |
|
|
|
this.pageData.locationName = val.LocationName; |
|
|
|
} else if (this.tagNo === 27) { |
|
|
|
//设置参数 |
|
|
|
this.pageData.familyID = val.FamilyID; |
|
|
|
@ -479,22 +479,71 @@ export default { |
|
|
|
this.tagNo = val |
|
|
|
this.$nextTick(() => { |
|
|
|
let strVal = '' |
|
|
|
let conSql = '' |
|
|
|
if (val === 26) { |
|
|
|
strVal = this.pageData.locationID |
|
|
|
if (this.pageData.bu === null || this.pageData.bu === '') { |
|
|
|
this.$message.warning("请选择BU!") |
|
|
|
return |
|
|
|
} else { |
|
|
|
conSql = " and bu_no = '" + this.pageData.bu.split('_')[1] + "'" |
|
|
|
this.$refs.baseList.init(val, strVal, conSql) |
|
|
|
} |
|
|
|
}else if (val === 27) { |
|
|
|
strVal = this.pageData.familyID |
|
|
|
if (this.pageData.bu === null || this.pageData.bu === '') { |
|
|
|
this.$message.warning("请选择BU!") |
|
|
|
return |
|
|
|
} else { |
|
|
|
conSql = " and bu_no = '" + this.pageData.bu.split('_')[1] + "'" |
|
|
|
this.$refs.baseList.init(val, strVal, conSql) |
|
|
|
} |
|
|
|
}else if (val === 28) { |
|
|
|
strVal = this.pageData.groupID |
|
|
|
if (this.pageData.bu === null || this.pageData.bu === '') { |
|
|
|
this.$message.warning("请选择BU!") |
|
|
|
return |
|
|
|
} else { |
|
|
|
conSql = " and bu_no = '" + this.pageData.bu.split('_')[1] + "'" |
|
|
|
this.$refs.baseList.init(val, strVal, conSql) |
|
|
|
} |
|
|
|
}else if (val === 29) { |
|
|
|
strVal = this.pageData.supplierID |
|
|
|
if (this.pageData.bu === null || this.pageData.bu === '') { |
|
|
|
this.$message.warning("请选择BU!") |
|
|
|
return |
|
|
|
} else { |
|
|
|
conSql = " and bu_no = '" + this.pageData.bu.split('_')[1] + "'" |
|
|
|
this.$refs.baseList.init(val, strVal, conSql) |
|
|
|
} |
|
|
|
}else if (val === 30) { |
|
|
|
strVal = this.pageData.manufacturerID |
|
|
|
if (this.pageData.bu === null || this.pageData.bu === '') { |
|
|
|
this.$message.warning("请选择BU!") |
|
|
|
return |
|
|
|
} else { |
|
|
|
conSql = " and bu_no = '" + this.pageData.bu.split('_')[1] + "'" |
|
|
|
this.$refs.baseList.init(val, strVal, conSql) |
|
|
|
} |
|
|
|
}else if (val === 503) { |
|
|
|
strVal = this.pageData.resourceID |
|
|
|
if (this.pageData.bu === null || this.pageData.bu === '') { |
|
|
|
this.$message.warning("请选择BU!") |
|
|
|
return |
|
|
|
} else { |
|
|
|
conSql = " and site = '" + this.pageData.bu.split('_')[0] + "'" |
|
|
|
this.$refs.baseList.init(val, strVal, conSql) |
|
|
|
} |
|
|
|
}else if (val === 204) { |
|
|
|
strVal = this.pageData.deptID |
|
|
|
if (this.pageData.bu === null || this.pageData.bu === '') { |
|
|
|
this.$message.warning("请选择BU!") |
|
|
|
return |
|
|
|
} else { |
|
|
|
conSql = " and bu_no = '" + this.pageData.bu.split('_')[1] + "'" |
|
|
|
this.$refs.baseList.init(val, strVal, conSql) |
|
|
|
} |
|
|
|
} |
|
|
|
this.$refs.baseList.init(val, strVal) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|