From b667d7407041298eda3bb9e355cd9cdfdd8f289d Mon Sep 17 00:00:00 2001
From: sa_10_0 <2492740167@qq.com>
Date: Fri, 8 Nov 2024 15:23:38 +0800
Subject: [PATCH 1/2] =?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 | 2 +-
src/views/Orders/orderOperations.vue | 108 ++++++++++++++-------------
2 files changed, 57 insertions(+), 53 deletions(-)
diff --git a/src/views/Orders/OrderList.vue b/src/views/Orders/OrderList.vue
index dbfaa76..341718b 100644
--- a/src/views/Orders/OrderList.vue
+++ b/src/views/Orders/OrderList.vue
@@ -133,7 +133,7 @@
current: 1, //当前页码
pageSize: 5 //每页显示条数
})
- const num = ref(0)
+
const orderDetail : any = ref([]) //订单中的商品明细,多个商品
//订单列表
const orderList = ref([{}])
diff --git a/src/views/Orders/orderOperations.vue b/src/views/Orders/orderOperations.vue
index 87f4e9c..9517610 100644
--- a/src/views/Orders/orderOperations.vue
+++ b/src/views/Orders/orderOperations.vue
@@ -20,7 +20,7 @@
:header-cell-style="{ 'text-align': 'center' }">
-
+
@@ -28,9 +28,9 @@
-
- 编辑
-
+
+
+
发货
@@ -52,21 +52,21 @@
:small="null" :disabled="null" :background="null" layout="total, sizes, prev, pager, next, jumper"
:total="total" />
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/CostumeAppointments/AppointmentOrder.vue b/src/views/CostumeAppointments/AppointmentOrder.vue
new file mode 100644
index 0000000..435952e
--- /dev/null
+++ b/src/views/CostumeAppointments/AppointmentOrder.vue
@@ -0,0 +1,185 @@
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 详情
+ 修改
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/CostumeAppointments/ClothingGrade.vue b/src/views/CostumeAppointments/ClothingGrade.vue
new file mode 100644
index 0000000..5d062f3
--- /dev/null
+++ b/src/views/CostumeAppointments/ClothingGrade.vue
@@ -0,0 +1,223 @@
+
+
+ 添加等级
+
+
+
+
+
+
+
![]()
+
+
+
+
+
+
+
+
+
+ 修改等级
+
+
+ 删除等级
+
+
+
+
+
+
+
+
+ handleChange(event)"
+ limit="1" >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/CostumeAppointments/CostumeDetails.vue b/src/views/CostumeAppointments/CostumeDetails.vue
new file mode 100644
index 0000000..42dab5b
--- /dev/null
+++ b/src/views/CostumeAppointments/CostumeDetails.vue
@@ -0,0 +1,276 @@
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 详情
+ 修改
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
![]()
+
+
+
+
+
+
+
+
+
+
![商品图标]()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/Coupons/AddCoupons.vue b/src/views/Coupons/AddCoupons.vue
index 186804a..099fd10 100644
--- a/src/views/Coupons/AddCoupons.vue
+++ b/src/views/Coupons/AddCoupons.vue
@@ -94,7 +94,7 @@ const AddCoupon = async () => {
});
return;
}
- const res = await myAxios.post('/coupon/add', {...form.value });
+ const res = await myAxios.post('/coupon/add ', {...form.value });
if (res.data.code === 1) {
ElMessage({
type: 'success',
diff --git a/src/views/Coupons/CouponCenter.vue b/src/views/Coupons/CouponCenter.vue
index b318514..2dcf9fb 100644
--- a/src/views/Coupons/CouponCenter.vue
+++ b/src/views/Coupons/CouponCenter.vue
@@ -81,7 +81,7 @@
list-type="picture-card"
:auto-upload="false"
multiple="true"
- :on-remove="handleRemove"
+ :on-remove=" handleRemove"
@change="(event: any) => handleChange(event, 0)"
limit="1" >
@@ -135,10 +135,8 @@ onMounted(() => {
getCouponsList()
})
-const handleSelectionChange = (row: any) => {
- // id.value = JSON.parse(JSON.stringify(row));
-}
const DialogVisible = ref(false)
+const idList = ref([])
const total = ref(0)
const tableData : any= ref([])
const Couponsname = ref('')
@@ -166,16 +164,33 @@ const handleCurrentChange = (Current: any) => {
searchParams.value.current = Current
getCouponsList()
}
-const delBatch =()=>{
- //批量删除
+const handleSelectionChange = (row: any) => {
+ idList.value = row.map((item : any)=>item.id)
+}
+//批量删除
+const delBatch = async ()=>{
+ const res = await myAxios.post('/coupon/delete', {
+ id:idList.value
+ })
+ if (res.data.code === 1) {
+ ElMessage({
+ type:'success',
+ message:"批量删除成功"
+ })
+ getCouponsList()
+ }else {
+ ElMessage.error('删除失败')
+ }
}
//重置搜索
const reset = () => {
Couponsname.value = '';
}
//搜索
-const load =()=>{
-
+const load =(data:String)=>{
+ searchParams.value.name = data
+ searchParams.value.content = 1
+ getCouponsList()
}
const saveEdit = async () => { //编辑商品
const res = await myAxios.post('/coupon/update',{...editForm.value})
@@ -215,7 +230,7 @@ const getCouponsList = async ()=> {
}
}
const handleChange = async (file: any, flag: number) => {
- fileSimple.value = file
+ fileSimple.value = filen
let formData = new FormData() //这一步很重要 创建一个FormData对象
formData.append("file", fileSimple.value.raw) //fileSimple.value.raw 才是文件主体 将其以文件的格式插入formData
const res = await myAxios({ //编写请求,与以前的请求不同,这一次要指定好头部类型和文件类型