This commit is contained in:
曹辉 2023-01-29 10:53:16 +08:00
parent 0f302aae64
commit b62cdaa54e
2 changed files with 7 additions and 7 deletions

View File

@ -387,11 +387,11 @@ export default {
this.StationName = "请选择所属护理站"; this.StationName = "请选择所属护理站";
} }
getGoodsInfo(id).then((response) => { getGoodsInfo(id).then((response) => {
// response.data[0].parentIdList = response.data[0].parentIdList[0].split(',') // response.data.parentIdList = response.data.parentIdList.split(',')
this.form = response.data[0]; this.form = response.data;
this.imgone = this.form.goodsPictureUrl; this.imgone = this.form.goodsPictureUrl;
if (response.data[0].goodAttributeDetailsLists) { if (response.data.goodAttributeDetailsLists) {
this.goodDetailsLists = response.data[0].goodAttributeDetailsLists; this.goodDetailsLists = response.data.goodAttributeDetailsLists;
} }
// console.log(this.form.parentIdList) // console.log(this.form.parentIdList)
// this.form.goodsCategoryId = this.form.goodsCategoryName // this.form.goodsCategoryId = this.form.goodsCategoryName

View File

@ -337,11 +337,11 @@ export default {
handleUpdate(row) { handleUpdate(row) {
const id = row.goodsInfoId || this.ids; const id = row.goodsInfoId || this.ids;
getGoodsInfo(id).then((response) => { getGoodsInfo(id).then((response) => {
this.form = response.data[0]; this.form = response.data;
this.form.nurseStationName = row.nurseStationName; this.form.nurseStationName = row.nurseStationName;
this.imgone = this.form.goodsPictureUrl; this.imgone = this.form.goodsPictureUrl;
if (response.data[0].goodAttributeDetailsLists) { if (response.data.goodAttributeDetailsLists) {
this.goodDetailsLists = response.data[0].goodAttributeDetailsLists; this.goodDetailsLists = response.data.goodAttributeDetailsLists;
} }
this.open = true; this.open = true;
this.title = "修改商品基本信息"; this.title = "修改商品基本信息";