|
@@ -241,6 +241,9 @@
|
|
|
// 货名
|
|
|
let _goodsNameList = []
|
|
|
_goodsNameList = this.$route.query.goodsNameList
|
|
|
+ if(_goodsNameList==undefined){
|
|
|
+ _goodsNameList=[]
|
|
|
+ }
|
|
|
packList({
|
|
|
constId: 'CON2'
|
|
|
})
|
|
@@ -259,8 +262,13 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- this.goodnameList = _list
|
|
|
- this.selectVal = _list[0].constValue
|
|
|
+ if(_goodsNameList.length==0){
|
|
|
+ this.goodnameList = response
|
|
|
+ this.selectVal = response[0].constValue
|
|
|
+ }else{
|
|
|
+ this.goodnameList = _list
|
|
|
+ this.selectVal = _list[0].constValue
|
|
|
+ }
|
|
|
})
|
|
|
switch (this.$route.query.type) {
|
|
|
case "新增":
|