diff --git a/src/views/market/orders/index.vue b/src/views/market/orders/index.vue index 98d63a6..15bbf7a 100644 --- a/src/views/market/orders/index.vue +++ b/src/views/market/orders/index.vue @@ -11,14 +11,20 @@ 输入搜索: 订单编号: - - - - - - 订单款项状态: - - + 订单款项状态: + + + + +

+ 选择时间: + + ----- + +
@@ -127,10 +133,31 @@ export default { }, arr:[], type:[], + Cascader:{ expandTrigger:'hover',value:'id',label:'typeName',children:'parentPOS' }, typeId:[], startDate: null, endDate: null, + + options: [{ + value: ' ', + label: '全选' + }, { + value: '0', + label: '待支付' + }, { + value: '1', + label: '已付款' + }, { + value: '2', + label: '未付款' + }, { + value: '3', + label: '售后中(申请退款) ' + } ,{ + value: '4', + label: '已退款 ' + }] }; }, //计算属性 类似于data概念", @@ -140,7 +167,6 @@ export default { //方法集合", methods: { - }, // 删除 handleDelete(orders){ handleDelete(orders.id).then( @@ -187,29 +213,31 @@ export default { // 查询 findShop(){ this.selectList() - }, + }, // 添加跳转路径 add(){ - this.$router.push('index') + this.$router.push('add') }, // 多选框 handleSelectionChange(val) { this.multipleSelection = val; }, //商品列表 - selectList(){ - selectList(this.orders).then( + selectList() { + selectList(this.orders).then( res => { console.log(res) - this.arr=res.data.list - this.orders.total=res.data.total + this.arr = res.data.list + this.orders.total = res.data.total } ) + } }, //生命周期 - 创建完成(可以访问当前this实例)", created() { // this.diGui() this.selectList() + this.selected = this.options[0].value }, //生命周期 - 挂载完成(可以访问DOM元素)", mounted() {