diff --git a/src/views/system/goodsInfo/index.vue b/src/views/system/goodsInfo/index.vue
index 48c8b2c..6b50cf0 100644
--- a/src/views/system/goodsInfo/index.vue
+++ b/src/views/system/goodsInfo/index.vue
@@ -40,7 +40,7 @@
@keyup.enter.native="handleQuery"
/>
-
+
-
- {{ StationName }}
- {{ StationName }}
+
+
+
-
-
+ -->
@@ -530,7 +512,7 @@ export default {
open: false,
// open2: false,
innerVisible: false,
- StationName: "请选择所属护理站",
+ // StationName: "请选择所属护理站",
nursetotal: 0,
nurseStationId: null,
goods: [
@@ -581,6 +563,7 @@ export default {
goodsUnit: null,
goodsPurpose: null,
sort: null,
+ // mame:null,
},
//权限查询
getListByUserquery: {
@@ -588,7 +571,10 @@ export default {
pageSize: 10,
},
// 表单参数
- form: {},
+ form: {
+ nurseStationName:"",
+ nurseStationId:"",
+ },
// 表单校验
rules: {
goodsName: [
@@ -726,16 +712,16 @@ export default {
},
];
},
- clickinnerVisible() {
- this.innerVisible = true;
- },
- nurseclick(row) {
- console.log(this.form);
- console.log(row);
- this.form.nurseStationId = row.id;
- this.StationName = row.nurseStationName;
- this.innerVisible = false;
- },
+ // clickinnerVisible() {
+ // this.innerVisible = true;
+ // },
+ // nurseclick(row) {
+ // console.log(this.form);
+ // console.log(row);
+ // this.form.nurseStationId = row.id;
+ // this.StationName = row.nurseStationName;
+ // this.innerVisible = false;
+ // },
handleQuery2() {
// this.getListByUserquery.pageNum = 1;
this.getList2();
@@ -755,7 +741,7 @@ export default {
this.handleQuery2();
},
addcancel() {
- this.innerVisible = false;
+ // this.innerVisible = false;
// this.innerVisiblexg = false;
this.resetQuery2();
},
@@ -823,10 +809,10 @@ export default {
},
/** 新增按钮操作 */
handleAdd() {
- this.reset();
- this.nurseStationId = "";
+ this.reset()
+ this.form.nurseStationName=this.nurseStationlist[0].nurseStationName
+ this.form.nurseStationId =this.nurseStationlist[0].id;
this.title = "商品基本信息";
- // this.nurseName = "请选择护理员";
this.StationName = "请选择所属护理站";
this.goodDetailsLists = [
{
@@ -841,11 +827,13 @@ export default {
},
/** 修改按钮操作 */
handleUpdate(row) {
+ console.log(row)
this.reset();
const id = row.goodsInfoId || this.ids;
- this.StationName = row.nurseStationName;
getGoodsInfo(id).then((response) => {
+ console.log(response)
this.form = response.data[0];
+ this.form.nurseStationName = row.nurseStationName
this.imgone = this.form.goodsPictureUrl;
if (response.data[0].goodAttributeDetailsLists) {
this.goodDetailsLists = response.data[0].goodAttributeDetailsLists;
@@ -877,7 +865,7 @@ export default {
console.log(this.form);
this.$modal.msgSuccess("新增成功");
- this.StationName = "请选择所属护理站";
+ // this.StationName = "请选择所属护理站";
this.open = false;
this.getList();
});
@@ -956,8 +944,10 @@ export default {
this.goodsCategorylist = res.rows;
});
getListByUser(this.getListByUserquery).then((res) => {
+ console.log(res)
if (res.rows[0].isAdmin == "1") {
this.nurseStationlist = res.rows;
+ // console.log(this.queryParams)
this.total2 = res.total;
} else {
this.total2 = res.total;