This commit is contained in:
shidongli 2022-11-15 15:16:10 +08:00
parent 0642d8307b
commit 134dfce80f
4 changed files with 20 additions and 13 deletions

View File

@ -42,7 +42,10 @@
</el-form-item> </el-form-item>
<el-form-item label="商品用途" prop="goodsPurpose"> <el-form-item label="商品用途" prop="goodsPurpose">
<el-select v-model="queryParams.goodsPurpose" placeholder="请选择商品用途"> <el-select
v-model="queryParams.goodsPurpose"
placeholder="请选择商品用途"
>
<el-option <el-option
v-for="item in goods" v-for="item in goods"
:key="item.value" :key="item.value"
@ -572,8 +575,8 @@ export default {
}, },
// //
form: { form: {
nurseStationName:"", nurseStationName: "",
nurseStationId:"", nurseStationId: "",
}, },
// //
rules: { rules: {
@ -687,7 +690,7 @@ export default {
cancel() { cancel() {
console.log(this.form); console.log(this.form);
var obj = { pictureUrlList: [] }; var obj = { pictureUrlList: [] };
if (this.imgone!= this.form.goodsPictureUrl) { if (this.imgone != this.form.goodsPictureUrl) {
obj.pictureUrlList.push(this.form.goodsPictureUrl); obj.pictureUrlList.push(this.form.goodsPictureUrl);
} }
if (obj.pictureUrlList.length > 0) { if (obj.pictureUrlList.length > 0) {
@ -726,8 +729,8 @@ export default {
// this.getListByUserquery.pageNum = 1; // this.getListByUserquery.pageNum = 1;
this.getList2(); this.getList2();
}, },
getList2(){ getList2() {
getListByUser(this.getListByUserquery).then((res) => { getListByUser(this.getListByUserquery).then((res) => {
this.total2 = res.total; this.total2 = res.total;
this.nurseStationlist = res.rows; this.nurseStationlist = res.rows;
}); });
@ -797,6 +800,8 @@ export default {
this.queryParams.goodsName = null this.queryParams.goodsName = null
this.queryParams.goodsCategoryName = null this.queryParams.goodsCategoryName = null
this.queryParams.goodsPurpose = null this.queryParams.goodsPurpose = null
this.queryParams.whetherShelf = null
} }
this.handleQuery(); this.handleQuery();
}, },
@ -810,8 +815,8 @@ export default {
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
this.reset() this.reset()
this.form.nurseStationName=this.nurseStationlist[0].nurseStationName this.form.nurseStationName = this.nurseStationlist[0].nurseStationName
this.form.nurseStationId =this.nurseStationlist[0].id; this.form.nurseStationId = this.nurseStationlist[0].id;
this.title = "商品基本信息"; this.title = "商品基本信息";
this.StationName = "请选择所属护理站"; this.StationName = "请选择所属护理站";
this.goodDetailsLists = [ this.goodDetailsLists = [
@ -833,7 +838,7 @@ export default {
getGoodsInfo(id).then((response) => { getGoodsInfo(id).then((response) => {
console.log(response) console.log(response)
this.form = response.data[0]; this.form = response.data[0];
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[0].goodAttributeDetailsLists) {
this.goodDetailsLists = response.data[0].goodAttributeDetailsLists; this.goodDetailsLists = response.data[0].goodAttributeDetailsLists;
@ -845,7 +850,7 @@ export default {
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
console.log(this.form); console.log(this.form);
console.log(this.goodDetailsLists); console.log(this.goodDetailsLists);
this.form.goodAttributeDetailsLists = []; this.form.goodAttributeDetailsLists = [];
this.form.goodDetailsLists = this.goodDetailsLists; this.form.goodDetailsLists = this.goodDetailsLists;
@ -866,7 +871,7 @@ export default {
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
// this.StationName = ""; // this.StationName = "";
this.open = false; this.open = false;
this.getList(); this.getList();
}); });
} }

View File

@ -934,7 +934,6 @@ export default {
this.queryParams.orderNo = null this.queryParams.orderNo = null
this.queryParams.orderStatus = null this.queryParams.orderStatus = null
} }
this.handleQuery(); this.handleQuery();
}, },

View File

@ -782,6 +782,9 @@ export default {
} else { } else {
this.queryParams.pageNum = 1; this.queryParams.pageNum = 1;
this.queryParams.pageSize = 10; this.queryParams.pageSize = 10;
this.queryParams.orderNo = null
this.queryParams.orderStatus = null
this.queryParams.patientName=null
} }
this.handleQuery(); this.handleQuery();
}, },

View File

@ -883,7 +883,7 @@ export default {
// this.queryParams.nurseStationCode = null; // this.queryParams.nurseStationCode = null;
this.queryParams.pageSize = 10; this.queryParams.pageSize = 10;
this.queryParams.pageNum = 1; this.queryParams.pageNum = 1;
this.queryParams.nurseStationType = null; this.queryParams.nurseStationCode = null;
this.handleQuery(); this.handleQuery();
} }
}, },