商品信息管理 所属护理站

This commit is contained in:
shidongli 2022-11-14 14:39:33 +08:00
parent eb8b01c657
commit b073a45809

View File

@ -431,7 +431,7 @@
<el-button <el-button
type="primary" type="primary"
style="width: 15px; height: 15px" style="width: 15px; height: 15px"
v-if="nurseStationId == scope.row.id" v-if="form.nurseStationId == scope.row.id"
circle circle
@click="nurseclick(scope.row)" @click="nurseclick(scope.row)"
></el-button> ></el-button>
@ -588,7 +588,9 @@ export default {
pageSize: 10, pageSize: 10,
}, },
// //
form: {}, form: {
nurseStationId:null,
},
// //
rules: { rules: {
goodsName: [ goodsName: [
@ -728,9 +730,9 @@ export default {
this.innerVisible = true; this.innerVisible = true;
}, },
nurseclick(row) { nurseclick(row) {
console.log(this.form); // console.log(this.form);
console.log(row); console.log(row);
this.nurseStationId = row.id; this.form.nurseStationId = row.id;
this.StationName = row.nurseStationName; this.StationName = row.nurseStationName;
this.innerVisible = false; this.innerVisible = false;
}, },
@ -839,6 +841,7 @@ export default {
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
// this.nurseStationId = row.id;
this.reset(); this.reset();
const id = row.goodsInfoId || this.ids; const id = row.goodsInfoId || this.ids;
this.StationName = row.nurseStationName; this.StationName = row.nurseStationName;
@ -961,6 +964,7 @@ export default {
this.total2 = res.total; this.total2 = res.total;
this.nurseStationlist = res.rows; this.nurseStationlist = res.rows;
this.queryParams.nurseStationId = res.rows[0].id; this.queryParams.nurseStationId = res.rows[0].id;
this.form.nurseStationId = res.rows[0].id;
this.handleQuery(); this.handleQuery();
} }
}); });