From d6f51ac5f1fe61a723087578c171321f6f283c19 Mon Sep 17 00:00:00 2001
From: sa_10_0 <2492740167@qq.com>
Date: Tue, 5 Nov 2024 20:13:12 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/Orders/OrderList.vue | 9 -
src/views/Orders/orderOperations.vue | 331 +++++++++++++++------------
2 files changed, 183 insertions(+), 157 deletions(-)
diff --git a/src/views/Orders/OrderList.vue b/src/views/Orders/OrderList.vue
index 827a3e3..9da361c 100644
--- a/src/views/Orders/OrderList.vue
+++ b/src/views/Orders/OrderList.vue
@@ -54,15 +54,6 @@
详情
-
-
- 删除
-
-
-
-
diff --git a/src/views/Orders/orderOperations.vue b/src/views/Orders/orderOperations.vue
index 40a63ec..95963a8 100644
--- a/src/views/Orders/orderOperations.vue
+++ b/src/views/Orders/orderOperations.vue
@@ -1,61 +1,61 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ 搜索
+ 重置
+
+
+
+
+ 批量删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 编辑
+
+
+ 发货
+
+
+
+ 取消订单
+
+
+
+
+
+
+
+
+
+
-
+
-
+
@@ -67,101 +67,136 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+-->
+// const getItemList = async (id: number) => {
+// try {
+// const res = await myAxios.post('/order/list/item', { id:tableData.value[key].id});
+// console.log(res)
+// if (res.data.code === 1) {
+// tableData.value = res.data.data.records;
+// total.value = parseInt(res.data.data.total)
+// } else {
+// ElMessage({
+// message: '获取数据失败',
+// });
+// }
+// } catch (error) {
+// ElMessage({
+// message: '发生错误',
+// });
+// }
+// }
-
+// const orderList = ref({
+// id:'',
+// userId:'',
+// addressSnapshot:{
+// name:'',
+// phone:'',
+// region:'',
+// detailAddress:''
+// },
+// couponSnapshot:{
+// name:'',
+// conditionAmount:''
+// },
+// totalAmount:'',
+// orderStatus:'',
+// createTime:'',
+// updateTime:'',
+// isDelete:'',
+// orderNumber:''
+// })
+const delBatch =()=>{
+ //批量取消
+}
+//发货
+const shipments = (index: number, row: any , flag : number) => {
-
+};
+//编辑
+const ReviseOrView = (index: number, row: any , flag : number) => {
+
+};
+const deleteProduct = async (index: number) => {
+ console.log(typeof index)
+ const res = await myAxios.post('/goods/delete', { id: index })
+ console.log(res)
+ if (res.data.code === 1) {
+ ElMessage({
+ type: 'success',
+ message: '删除成功',
+ })
+ getOrderList()
+ }
+}
+const reset = () => {
+ id.value = '';
+
+};
+const load =()=>{}
+
+
+