Commit c6af7667 by lixiaomin

修改bug

parent 16d3530e
......@@ -69,6 +69,7 @@ export default {
state: 3,
shopId: null
},
shopId: null
};
},
created() {
......@@ -88,7 +89,8 @@ export default {
/** 查询列表 */
getList(shopId) {
this.loading = true;
this.queryParams.shopId=shopId
this.queryParams.shopId=shopId;
this.shopId=shopId;
goodslist(this.queryParams).then((response) => {
this.spuList = response.rows;
this.total = response.total;
......@@ -99,7 +101,7 @@ export default {
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
this.getList(this.shopId);
},
/** 重置按钮操作 */
resetQuery() {
......
......@@ -212,7 +212,11 @@ export default {
});
},
/** 搜索按钮操作 */
handleQuery() {
handleQuery() {
this.queryParams.createAtStart=null;
this.queryParams.createAtEnd=null;
this.queryParams.payAtStart=null;
this.queryParams.payAtEnd=null;
if(this.createdTime!=null && this.createdTime.length>0 ){
this.queryParams.createAtStart=this.createdTime[0];
this.queryParams.createAtEnd=this.createdTime[1];
......
......@@ -20,9 +20,6 @@
</el-option>
</el-select>
</el-form-item>
<!-- <el-form-item label="创建时间" >
<el-date-picker v-model="createdTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd" style="width:230px"></el-date-picker>
</el-form-item> -->
<el-form-item label="付款时间">
<el-date-picker v-model="payTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd" style="width:230px"></el-date-picker>
</el-form-item>
......@@ -81,7 +78,6 @@ export default {
components: { RefundDetial},
data() {
return {
createdTime:[],
payTime:[],
shopList:[
{value: '',label: '全部'},
......@@ -204,10 +200,8 @@ export default {
},
/** 搜索按钮操作 */
handleQuery() {
if(this.createdTime!=null && this.createdTime.length>0 ){
this.queryParams.createAtStart=this.createdTime[0];
this.queryParams.createAtEnd=this.createdTime[1];
}
this.queryParams.payAtStart=null;
this.queryParams.payAtEnd= null;
if(this.payTime!=null && this.payTime.length>0 ){
this.queryParams.payAtStart=this.payTime[0];
this.queryParams.payAtEnd=this.payTime[1];
......@@ -220,11 +214,8 @@ export default {
this.queryParams.orderNo=null;
this.queryParams.orderNum=null;
this.queryParams.userName=null;
this.queryParams.shopId=null;
this.createdTime=[];
this.queryParams.shopId=null;
this.payTime=[];
this.queryParams.createAtStart=null,
this.queryParams.createAtEnd=null,
this.queryParams.payAtStart=null,
this.queryParams.payAtEnd= null,
this.queryParams.state=null;
......
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