Commit 32da27ce authored by 黄媛媛's avatar 黄媛媛

修改商品列表

parent 24958473
......@@ -30,7 +30,7 @@
start-placeholder="开始日期"
end-placeholder="结束日期">
</el-date-picker>
<div class="searchInput" style="width:250px">
<div class="searchInput" style="width:250px;margin-right: 0px;">
<el-input @keyup.enter.native="getList()" style="display:inline-block;width:225px;height:30px"
placeholder="请输入名称搜索"
v-model="msg.Name"
......@@ -40,6 +40,16 @@
</el-input>
<span @click="getList" class="el-icon-search" style="color:#979dad;font-size:14px;position:relative;top:1px"></span>
</div>
<div class="searchInput" style="width:250px">
<el-input @keyup.enter.native="getList()" style="display:inline-block;width:225px;height:30px"
placeholder="请输入ID搜索"
v-model="msg.Id"
@clear="getList"
size="small"
clearable>
</el-input>
<span @click="getList" class="el-icon-search" style="color:#979dad;font-size:14px;position:relative;top:1px"></span>
</div>
<span @click="Clearconditions" v-if="msg.Name!='' || msg.CategoryIds!='' || (dateList && dateList.length>0)" class='blue point'>清空筛选条件</span>
</div>
<div style="margin-top:15px">
......@@ -387,7 +397,7 @@ export default {
GoodsStatus:0,
IsSelectSellOut:0,
CategoryIds:'',
Id:0,
Id:'',
StartTime:'',
EndTime:'',
},
......@@ -666,6 +676,7 @@ export default {
this.getList();
},
getList(){
if(this.dateList && this.dateList.length>0){
this.msg.StartTime=this.dateList[0];
this.msg.EndTime=this.dateList[1];
......@@ -673,8 +684,12 @@ export default {
this.msg.StartTime='';
this.msg.EndTime='';
}
let msg=JSON.parse(JSON.stringify(this.msg))
if(msg.Id==''){
msg.Id=0;
}
this.loading=true;
this.apipost("/api/product/GetProductGoodsPageList", this.msg, res => {
this.apipost("/api/product/GetProductGoodsPageList", msg, res => {
this.loading=false;
if(res.data.resultCode==1){
this.total=res.data.data.count;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment