Merge remote-tracking branch 'origin/dev'

This commit is contained in:
纪寒 2023-02-03 09:41:36 +08:00
commit d8b6b436ce
6 changed files with 469 additions and 219 deletions

View File

@ -49,4 +49,13 @@ export function delGoodsCategory(id) {
url: '/system/goodsCategory/' + id,
method: 'POST'
})
}
//不分页
export function getStationCategoryList(parentId) {
return request({
url: `/system/goodsCategory/getStationCategoryList?parentId=${parentId}`,
method: 'get'
})
}

View File

@ -190,6 +190,7 @@
:visible.sync="open"
width="1200px"
append-to-body
:before-close="cancel"
>
<el-form
ref="form"
@ -234,7 +235,19 @@
>
</el-form-item>
<el-form-item label="商品分类名称" prop="goodsCategoryId">
<el-select
<!-- v-model="form.parentIdList" -->
<el-cascader
:props="treeOption"
@change="change"
style="width: 210px"
:show-all-levels="false"
:clearable="true"
ref="cascader"
:placeholder="form.goodsCategoryName ? form.goodsCategoryName : ''"
:key="isResouceShow"
>
</el-cascader>
<!-- <el-select
style="width: 210px"
v-model="form.goodsCategoryId"
clearable
@ -247,7 +260,7 @@
:value="item.id"
>
</el-option>
</el-select>
</el-select> -->
</el-form-item>
<el-form-item label="商品用途" prop="goodsPurpose">
<el-select
@ -489,5 +502,8 @@ export default indexjs;
overflow: hidden;
font-size: 14px;
}
::v-deep .el-cascader .el-input input::-webkit-input-placeholder {
color: black;
}
</style>

View File

@ -9,9 +9,13 @@ import {
editGoodsWhetherShelf,
stationList,
} from "@/api/system/OperateGoodsInfo";
import {
getStationCategoryList,
} from "@/api/system/goodsCategory";
import editor from "@/components/Editor";
import stationAcatar from "../stationAvatar/index.vue";
import baseurl from "@/api/baseurl.js";
let id = 0;
export default {
components: { stationAcatar, editor },
@ -25,8 +29,6 @@ export default {
datas: null,
// 遮罩层
loading: true,
// 选中数组
ids: [],
// 非单个禁用
single: true,
// 非多个禁用
@ -36,7 +38,6 @@ export default {
// 总条数
total: 0,
total2: 0,
// 商品基本信息表格数据
goodsInfoList: [],
// 护理站列表
@ -78,10 +79,6 @@ export default {
id: null,
whetherShelf: null,
},
getListByUserquery: {
pageNum: 1,
pageSize: 10,
},
queryParams: {
id: null,
pageNum: 1,
@ -131,19 +128,38 @@ export default {
],
},
homestation: null,
treeOption: {
lazy: true,
checkStrictly: true, // 是否可选择任意一级
lazyLoad(node, resolve) {
const id = (node.level === 0) ? 0 : node.data.id;
setTimeout(() => {
getStationCategoryList(id).then(res => { // 接口请求
res.data.forEach(e => {
e.value = e.id
e.label = e.goodsCategoryName
})
resolve(res.data.map(item => {
return {
...item
}
}))
});
}, 300);
},
},
isResouceShow: 1,
};
},
created() {
this.getList();
this.goodsCategoryinfo();
// this.goodsCategoryinfo();
},
methods: {
imgs(item) {
this.imgsurl.pictureUrlList.push(item);
// console.log(this.imgsurl)
},
upwhetherShelf(row) {
console.log(row);
if (row.whetherShelf == false) {
var obj = {
id: row.goodsInfoId,
@ -156,7 +172,6 @@ export default {
};
}
editGoodsWhetherShelf(obj).then((res) => {
console.log(obj);
if (obj.whetherShelf == 0) {
this.$modal.msgSuccess("已修改上架状态为未上架");
} else {
@ -199,7 +214,6 @@ export default {
},
// 删除
delgoodAttributeDetail(item) {
console.log(item);
if (item.ids && !item.attributeDetailsId) {
if (this.goodDetailsLists.length == 1) {
this.$message.error("最后一条不可删除");
@ -217,19 +231,15 @@ export default {
);
}
}
console.log(this.goodDetailsLists);
},
// 取消按钮
cancel() {
console.log(this.form);
var obj = { pictureUrlList: [] };
if (this.imgone != this.form.goodsPictureUrl) {
obj.pictureUrlList.push(this.form.goodsPictureUrl);
}
if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => {
console.log(res);
});
updatePicture(obj).then((res) => {});
}
if (this.imgsurl.pictureUrlList.length > 0) {
updatePicture(this.imgsurl).then((res) => {});
@ -247,6 +257,7 @@ export default {
attributeDetailsSort: null,
}, ],
}, ];
++this.isResouceShow
},
//页面所属护理站
ParamsStation(item) {
@ -335,7 +346,6 @@ export default {
},
// 多选框选中数据
handleSelectionChange(selection) {
console.log(selection);
this.ids = selection.map((item) => item.goodsInfoId);
this.single = selection.length !== 1;
this.multiple = !selection.length;
@ -366,23 +376,25 @@ export default {
if (this.StationName == null) {
this.StationName = "请选择所属护理站";
}
console.log(this.StationName);
getGoodsInfo(id).then((response) => {
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
// this.form.value = this.form.goodsCategoryId
// this.form.label = this.form.goodsCategoryName
this.open = true;
this.title = "修改商品基本信息";
});
},
/** 提交按钮 */
submitForm() {
console.log(this.form)
this.form.goodAttributeDetailsLists = [];
this.form.goodDetailsLists = this.goodDetailsLists;
console.log(this.form);
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.goodsInfoId != null) {
@ -401,12 +413,10 @@ export default {
}
this.imgsurl = { pictureUrlList: [] };
if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => {
console.log(res);
});
updatePicture(obj).then((res) => {});
}
this.$modal.msgSuccess("修改成功");
++this.isResouceShow
this.open = false;
this.getList();
});
@ -416,9 +426,9 @@ export default {
})
// this.nurseStationId=this.form.nurseStationId
addGoodsInfo(this.form).then((response) => {
console.log(this.form);
this.$modal.msgSuccess("新增成功");
this.StationName = "请选择所属护理站";
++this.isResouceShow
this.open = false;
this.getList();
});
@ -428,7 +438,6 @@ export default {
},
/** 删除按钮操作 */
handleDelete(row) {
console.log("row :>> ", row);
this.$confirm("是否确认删除订单信息的数据项?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
@ -439,9 +448,7 @@ export default {
var obj = { pictureUrlList: [] };
obj.pictureUrlList.push(row.goodsPictureUrl);
if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => {
console.log(res);
});
updatePicture(obj).then((res) => {});
}
this.$message.success("删除成功");
this.getList();
@ -450,11 +457,9 @@ export default {
.catch(() => {});
},
imgUrl(imgUrl) {
console.log(imgUrl);
this.form.goodsPictureUrl = imgUrl;
},
attributePitureUrl(imgUrl) {
console.log(imgUrl);
// this.form.attributePitureUrl = imgUrl;
},
attributePitureitem(item) {
@ -475,11 +480,17 @@ export default {
},
//商品分类
goodsCategoryinfo() {
goodsCategory().then((res) => {
console.log(this.form);
this.goodsCategorylist = res.rows;
getStationCategoryList(0).then((res) => {
res.data.forEach(e => {
e.value = e.id
e.label = e.goodsCategoryName
})
this.goodsCategorylist = res.data;
});
},
change(e) {
this.form.goodsCategoryId = e[e.length - 1]
},
//护理站
info() {
stationList(this.getListByUserquery).then((res) => {

View File

@ -221,7 +221,7 @@
<el-form-item label="排序" prop="">
<el-input
v-model.number="form.sort"
placeholder="请输入排序"
placeholder="请输入排序(只能输入数字)"
oninput="value=value.replace(/[^\d]/g,'')"
/>
</el-form-item>

View File

@ -1,88 +1,114 @@
<template>
<div class="app-container">
<el-form
:model="queryParams"
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="100px"
>
<el-form-item label="商品分类名称" prop="goodsCategoryName">
<el-input
v-model="queryParams.goodsCategoryName"
placeholder="请输入商品分类名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="商品分类编码" prop="goodsCategoryCode">
<el-input
v-model="queryParams.goodsCategoryCode"
placeholder="请输入商品分类编码"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="显示顺序" prop="sort">
<el-input
v-model="queryParams.sort"
placeholder="请输入显示顺序"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['system:goodsCategory:add']"
>新增</el-button
>
<el-row :gutter="20">
<!--部门数据-->
<el-col :span="4" :xs="24">
<!-- <div class="head-container">
<el-input
v-model="goodsCategoryName"
placeholder="请输入区域名称"
clearable
size="small"
prefix-icon="el-icon-search"
style="margin-bottom: 20px"
/>
</div> -->
<div class="head-container" style="height: 580px; width: 100%">
<el-tree
node-key="id"
:default-expanded-keys="[0]"
class="flow-tree"
:data="deptOptions"
:props="defaultProps"
@node-click="handleNodeClick"
@node-expand="handleNodeClick"
></el-tree>
</div>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['system:goodsCategory:edit']"
>修改</el-button
<!--用户数据-->
<el-col :span="20" :xs="24">
<el-form
:model="queryParams"
ref="queryForm"
size="small"
:inline="true"
v-show="showSearch"
label-width="100px"
>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['system:goodsCategory:remove']"
>删除</el-button
>
</el-col>
<!-- <el-col :span="1.5">
<el-form-item label="商品分类名称" prop="goodsCategoryName">
<el-input
v-model="queryParams.goodsCategoryName"
placeholder="请输入商品分类名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="商品分类编码" prop="goodsCategoryCode">
<el-input
v-model="queryParams.goodsCategoryCode"
placeholder="请输入商品分类编码"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<!-- <el-form-item label="显示顺序" prop="sort">
<el-input
v-model="queryParams.sort"
placeholder="请输入显示顺序"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item> -->
<el-form-item>
<el-button
type="primary"
icon="el-icon-search"
size="mini"
@click="handleQuery"
>搜索</el-button
>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery"
>重置</el-button
>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['system:goodsCategory:add']"
>新增</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['system:goodsCategory:edit']"
>修改</el-button
>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['system:goodsCategory:remove']"
>删除</el-button
>
</el-col>
<!-- <el-col :span="1.5">
<el-button
type="warning"
plain
@ -93,74 +119,100 @@
>导出</el-button
>
</el-col> -->
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
<right-toolbar
:showSearch.sync="showSearch"
@queryTable="getList"
></right-toolbar>
</el-row>
<el-table
v-loading="loading"
:data="goodsCategoryList"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column
:show-overflow-tooltip="true"
label="商品分类名称"
align="center"
prop="goodsCategoryName"
/>
<el-table-column
label="商品分类编码"
align="center"
prop="goodsCategoryCode"
/>
<!-- <el-table-column label="商品分类图片地址" align="center" prop="goodsCategoryPicture" /> -->
<el-table-column
label="分类概述"
align="center"
prop="categoryRemark"
:show-overflow-tooltip="true"
/>
<el-table-column label="显示顺序" align="center" prop="sort" />
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
>
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['system:goodsCategory:edit']"
>修改</el-button
>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['system:goodsCategory:remove']"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
</el-col>
</el-row>
<el-table
v-loading="loading"
:data="goodsCategoryList"
@selection-change="handleSelectionChange"
>
<el-table-column type="selection" width="55" align="center" />
<el-table-column
:show-overflow-tooltip="true"
label="商品分类名称"
align="center"
prop="goodsCategoryName"
/>
<el-table-column
label="商品分类编码"
align="center"
prop="goodsCategoryCode"
/>
<!-- <el-table-column label="商品分类图片地址" align="center" prop="goodsCategoryPicture" /> -->
<el-table-column
label="分类概述"
align="center"
prop="categoryRemark"
:show-overflow-tooltip="true"
/>
<el-table-column label="显示顺序" align="center" prop="sort" />
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
>
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['system:goodsCategory:edit']"
>修改</el-button
>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['system:goodsCategory:remove']"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total > 0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改商品分类信息对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-dialog
:title="title"
:visible.sync="open"
width="500px"
append-to-body
:before-close="cancel"
>
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-form-item label="父级分类名称" prop="parentName">
<el-cascader
:props="treeOption"
@change="change"
style="width: 340px"
:show-all-levels="false"
ref="cascader"
:placeholder="form.parentName ? form.parentName : '商品主分类'"
:key="isResouceShow"
>
</el-cascader>
<!-- <el-input
v-model="form.parentName"
placeholder="请输入父级分类名称"
maxlength="10"
disabled
/> -->
</el-form-item>
<el-form-item label="商品分类名称" prop="goodsCategoryName">
<el-input
v-model="form.goodsCategoryName"
@ -195,7 +247,7 @@
v-model="form.sort"
maxlength="9"
oninput="value=value.replace(/[^\d]/g,'')"
placeholder="请输入显示顺序"
placeholder="请输入显示顺序(只能输入数字)"
/>
</el-form-item>
</el-form>
@ -215,14 +267,72 @@ import {
updatePicture,
addGoodsCategory,
updateGoodsCategory,
getStationCategoryList,
} from "@/api/system/goodsCategory";
import stationAcatar from "../stationAvatar/index.vue";
import baseurl from "@/api/baseurl";
let id = 0;
export default {
name: "GoodsCategory",
components: { stationAcatar },
data() {
return {
isResouceShow: 1,
treeOption: {
lazy: true,
checkStrictly: true, //
lazyLoad(node, resolve) {
const id = node.level === 0 ? 0 : node.data.id;
setTimeout(() => {
if (id == 9999999) {
getStationCategoryList(0).then((res) => {
//
res.data.forEach((e) => {
e.value = e.id;
e.label = e.goodsCategoryName;
});
resolve(
res.data.map((item) => {
return {
...item,
};
})
);
});
} else if (id == 0) {
var data = [
{
label: "商品主分类",
children: [],
id: 9999999,
},
];
resolve(
data.map((item) => {
return {
...item,
};
})
);
} else {
getStationCategoryList(id).then((res) => {
//
res.data.forEach((e) => {
e.value = e.id;
e.label = e.goodsCategoryName;
});
resolve(
res.data.map((item) => {
return {
...item,
};
})
);
});
}
}, 300);
},
},
imgone: "",
baseurl: "",
//
@ -252,9 +362,16 @@ export default {
goodsCategoryPicture: null,
categoryRemark: null,
sort: null,
parentId: "",
parentName: "",
},
//
form: {},
form: {
goodsCategoryName: null,
goodsCategoryPicture: null,
categoryRemark: null,
sort: null,
},
//
rules: {
goodsCategoryName: [
@ -273,14 +390,76 @@ export default {
{ required: true, message: "显示顺序不能为空", trigger: "blur" },
],
},
//
deptOptions: undefined,
categoryLevel: null,
defaultProps: {
children: "children",
label: "goodsCategoryName",
},
};
},
watch: {},
created() {
this.baseurl = baseurl;
this.getList();
this.info();
},
methods: {
change(e) {
this.form.parentId = e[e.length - 1];
},
//
handleNodeClick(data) {
this.loading = true;
this.queryParams.parentId = data.id;
this.queryParams.parentName = data.goodsCategoryName;
if (data.id != 0) {
this.form.parentId = data.id;
this.form.parentName = data.goodsCategoryName;
} else {
this.form.parentId = 0;
this.form.parentName = "";
}
// this.categoryLevel = data.categoryLevel;
this.queryParams.pageNum = 1;
this.getList();
getStationCategoryList(data.id).then((res) => {
res.data.forEach((e) => {
e.children = [
{
goodsCategoryName: "",
},
];
});
this.loading = false;
data.children = res.data;
});
},
/** 查询商品分类信息列表 */
info() {
this.loading = true;
getStationCategoryList(0).then((res) => {
res.data.forEach((e) => {
e.children = [
{
goodsCategoryName: "",
},
];
});
var obj = [
{
goodsCategoryName: "商品主分类",
children: res.data,
id: 0,
},
];
this.deptOptions = obj;
this.loading = false;
});
},
getList() {
this.loading = true;
listGoodsCategory(this.queryParams).then((response) => {
@ -291,42 +470,60 @@ export default {
},
//
cancel() {
console.log(this.form);
++this.isResouceShow;
var obj = { pictureUrlList: [] };
if (this.imgone != this.form.goodsCategoryPicture) {
obj.pictureUrlList.push(this.form.goodsCategoryPicture);
if (this.form.goodsCategoryPicture) {
obj.pictureUrlList.push(this.form.goodsCategoryPicture);
}
}
if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => {
console.log(res);
});
updatePicture(obj).then((res) => {});
}
this.open = false;
this.reset();
this.$nextTick(() => {
//
this.$refs.form.clearValidate();
});
},
//
reset() {
this.form = {
id: null,
goodsCategoryName: null,
goodsCategoryCode: null,
goodsCategoryPicture: null,
categoryRemark: null,
sort: null,
createBy: null,
createTime: null,
updateBy: null,
updateTime: null,
};
this.resetForm("form");
this.form.goodsCategoryName = null;
this.form.goodsCategoryPicture = null;
this.form.categoryRemark = null;
this.form.sort = null;
this.form.id = null;
// this.form = {
// id: null,
// goodsCategoryName: null,
// goodsCategoryCode: null,
// goodsCategoryPicture: null,
// categoryRemark: null,
// sort: null,
// createBy: null,
// createTime: null,
// updateBy: null,
// updateTime: null,
// parentId: null,
// parentName: null,
// };
// this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.queryParams.parentId = null;
this.queryParams.parentName = null;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.queryParams = {
pageNum: 1,
pageSize: 10,
};
this.resetForm("queryForm");
this.handleQuery();
},
@ -341,6 +538,9 @@ export default {
this.reset();
this.open = true;
this.title = "添加商品分类信息";
// if (this.queryParams.parentId != 0) {
// }
// this.form.categoryLevel = this.categoryLevel;
},
/** 修改按钮操作 */
handleUpdate(row) {
@ -351,13 +551,10 @@ export default {
this.imgone = this.form.goodsCategoryPicture;
this.open = true;
this.title = "修改商品分类信息";
console.log(this.form);
});
},
/** 提交按钮 */
submitForm() {
console.log(this.form);
this.$refs["form"].validate((valid) => {
if (valid) {
if (this.form.id != null) {
@ -367,19 +564,21 @@ export default {
obj.pictureUrlList.push(this.imgone);
}
if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => {
console.log(res);
});
updatePicture(obj).then((res) => {});
}
this.$modal.msgSuccess("修改成功");
++this.isResouceShow;
this.open = false;
this.getList();
this.info();
});
} else {
addGoodsCategory(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
++this.isResouceShow;
this.open = false;
this.getList();
this.info();
});
}
}
@ -389,7 +588,7 @@ export default {
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal
.confirm('是否确认删除商品分类信息编号为"' + ids + '"的数据项?')
.confirm("是否确认删除?")
.then(function () {
return delGoodsCategory(ids);
})
@ -397,11 +596,10 @@ export default {
var obj = { pictureUrlList: [] };
obj.pictureUrlList.push(row.goodsCategoryPicture);
if (obj.pictureUrlList.length > 0) {
updatePicture(obj).then((res) => {
console.log(res);
});
updatePicture(obj).then((res) => {});
}
this.getList();
this.info();
this.$modal.msgSuccess("删除成功");
})
.catch(() => {});
@ -422,3 +620,19 @@ export default {
},
};
</script>
<style lang="scss" scoped>
::v-deep .el-cascader .el-input input::-webkit-input-placeholder {
color: black;
}
::v-deep .el-tree {
height: 100%;
width: 100%;
overflow: scroll;
}
::v-deep .el-tree > .el-tree-node {
display: inline-block;
min-width: 100%;
}
</style>

View File

@ -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 = "修改商品基本信息";