From 2a12a535e840aad757539185a6d0101455fd5572 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B0=A2=E6=AC=A3=E6=82=A6?= <2289014031@qq.com>
Date: Thu, 29 Aug 2024 19:39:46 +0800
Subject: [PATCH 1/2] ok
---
src/views/market/orders/index.vue | 58 +++++++++++++++++++++++--------
1 file changed, 43 insertions(+), 15 deletions(-)
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() {
From 0dbf8c50cb874b8a6351f1f602daaaf434438bd8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B0=A2=E6=AC=A3=E6=82=A6?= <2289014031@qq.com>
Date: Thu, 29 Aug 2024 19:44:58 +0800
Subject: [PATCH 2/2] ok
---
src/views/market/orders/index.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/views/market/orders/index.vue b/src/views/market/orders/index.vue
index 15bbf7a..1f56477 100644
--- a/src/views/market/orders/index.vue
+++ b/src/views/market/orders/index.vue
@@ -30,7 +30,7 @@
-
+
数据列表