商品信息管理 所属护理站修改

This commit is contained in:
shidongli 2022-11-14 14:36:34 +08:00
parent b391b29d3e
commit 67108d8e0c

View File

@ -40,7 +40,7 @@
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="商品用途" prop="goodsPurpose">
<el-select v-model="queryParams.goodsPurpose" placeholder="请选择商品用途">
<el-option
@ -431,7 +431,7 @@
<el-button
type="primary"
style="width: 15px; height: 15px"
v-if="nurseStationId == scope.row.id"
v-if="form.nurseStationId == scope.row.id"
circle
@click="nurseclick(scope.row)"
></el-button>
@ -588,7 +588,9 @@ export default {
pageSize: 10,
},
//
form: {},
form: {
nurseStationId:null,
},
//
rules: {
goodsName: [
@ -597,7 +599,7 @@ export default {
goodsCategoryId: [
{ required: true, message: "请选择商品分类名称", trigger: "blur" },
],
goodsPurpose: [
{ required: true, message: "请选择商品用途", trigger: "blur" },
],
@ -730,7 +732,7 @@ export default {
nurseclick(row) {
// console.log(this.form);
console.log(row);
this.nurseStationId = row.id;
this.form.nurseStationId = row.id;
this.StationName = row.nurseStationName;
this.innerVisible = false;
},
@ -839,7 +841,7 @@ export default {
},
/** 修改按钮操作 */
handleUpdate(row) {
this.nurseStationId = row.id;
// this.nurseStationId = row.id;
this.reset();
const id = row.goodsInfoId || this.ids;
this.StationName = row.nurseStationName;
@ -962,6 +964,7 @@ export default {
this.total2 = res.total;
this.nurseStationlist = res.rows;
this.queryParams.nurseStationId = res.rows[0].id;
this.form.nurseStationId = res.rows[0].id;
this.handleQuery();
}
});