修改
This commit is contained in:
parent
0f302aae64
commit
b62cdaa54e
@ -387,11 +387,11 @@ export default {
|
||||
this.StationName = "请选择所属护理站";
|
||||
}
|
||||
getGoodsInfo(id).then((response) => {
|
||||
// response.data[0].parentIdList = response.data[0].parentIdList[0].split(',')
|
||||
this.form = response.data[0];
|
||||
// response.data.parentIdList = response.data.parentIdList.split(',')
|
||||
this.form = response.data;
|
||||
this.imgone = this.form.goodsPictureUrl;
|
||||
if (response.data[0].goodAttributeDetailsLists) {
|
||||
this.goodDetailsLists = response.data[0].goodAttributeDetailsLists;
|
||||
if (response.data.goodAttributeDetailsLists) {
|
||||
this.goodDetailsLists = response.data.goodAttributeDetailsLists;
|
||||
}
|
||||
// console.log(this.form.parentIdList)
|
||||
// this.form.goodsCategoryId = this.form.goodsCategoryName
|
||||
|
||||
@ -337,11 +337,11 @@ export default {
|
||||
handleUpdate(row) {
|
||||
const id = row.goodsInfoId || this.ids;
|
||||
getGoodsInfo(id).then((response) => {
|
||||
this.form = response.data[0];
|
||||
this.form = response.data;
|
||||
this.form.nurseStationName = row.nurseStationName;
|
||||
this.imgone = this.form.goodsPictureUrl;
|
||||
if (response.data[0].goodAttributeDetailsLists) {
|
||||
this.goodDetailsLists = response.data[0].goodAttributeDetailsLists;
|
||||
if (response.data.goodAttributeDetailsLists) {
|
||||
this.goodDetailsLists = response.data.goodAttributeDetailsLists;
|
||||
}
|
||||
this.open = true;
|
||||
this.title = "修改商品基本信息";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user