Commit c6af7667 by lixiaomin

修改bug

parent 16d3530e
...@@ -69,6 +69,7 @@ export default { ...@@ -69,6 +69,7 @@ export default {
state: 3, state: 3,
shopId: null shopId: null
}, },
shopId: null
}; };
}, },
created() { created() {
...@@ -88,7 +89,8 @@ export default { ...@@ -88,7 +89,8 @@ export default {
/** 查询列表 */ /** 查询列表 */
getList(shopId) { getList(shopId) {
this.loading = true; this.loading = true;
this.queryParams.shopId=shopId this.queryParams.shopId=shopId;
this.shopId=shopId;
goodslist(this.queryParams).then((response) => { goodslist(this.queryParams).then((response) => {
this.spuList = response.rows; this.spuList = response.rows;
this.total = response.total; this.total = response.total;
...@@ -99,7 +101,7 @@ export default { ...@@ -99,7 +101,7 @@ export default {
/** 搜索按钮操作 */ /** 搜索按钮操作 */
handleQuery() { handleQuery() {
this.queryParams.pageNum = 1; this.queryParams.pageNum = 1;
this.getList(); this.getList(this.shopId);
}, },
/** 重置按钮操作 */ /** 重置按钮操作 */
resetQuery() { resetQuery() {
......
...@@ -212,7 +212,11 @@ export default { ...@@ -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 ){ if(this.createdTime!=null && this.createdTime.length>0 ){
this.queryParams.createAtStart=this.createdTime[0]; this.queryParams.createAtStart=this.createdTime[0];
this.queryParams.createAtEnd=this.createdTime[1]; this.queryParams.createAtEnd=this.createdTime[1];
......
...@@ -20,9 +20,6 @@ ...@@ -20,9 +20,6 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </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-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-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> </el-form-item>
...@@ -81,7 +78,6 @@ export default { ...@@ -81,7 +78,6 @@ export default {
components: { RefundDetial}, components: { RefundDetial},
data() { data() {
return { return {
createdTime:[],
payTime:[], payTime:[],
shopList:[ shopList:[
{value: '',label: '全部'}, {value: '',label: '全部'},
...@@ -204,10 +200,8 @@ export default { ...@@ -204,10 +200,8 @@ export default {
}, },
/** 搜索按钮操作 */ /** 搜索按钮操作 */
handleQuery() { handleQuery() {
if(this.createdTime!=null && this.createdTime.length>0 ){ this.queryParams.payAtStart=null;
this.queryParams.createAtStart=this.createdTime[0]; this.queryParams.payAtEnd= null;
this.queryParams.createAtEnd=this.createdTime[1];
}
if(this.payTime!=null && this.payTime.length>0 ){ if(this.payTime!=null && this.payTime.length>0 ){
this.queryParams.payAtStart=this.payTime[0]; this.queryParams.payAtStart=this.payTime[0];
this.queryParams.payAtEnd=this.payTime[1]; this.queryParams.payAtEnd=this.payTime[1];
...@@ -220,11 +214,8 @@ export default { ...@@ -220,11 +214,8 @@ export default {
this.queryParams.orderNo=null; this.queryParams.orderNo=null;
this.queryParams.orderNum=null; this.queryParams.orderNum=null;
this.queryParams.userName=null; this.queryParams.userName=null;
this.queryParams.shopId=null; this.queryParams.shopId=null;
this.createdTime=[];
this.payTime=[]; this.payTime=[];
this.queryParams.createAtStart=null,
this.queryParams.createAtEnd=null,
this.queryParams.payAtStart=null, this.queryParams.payAtStart=null,
this.queryParams.payAtEnd= null, this.queryParams.payAtEnd= null,
this.queryParams.state=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