From c32f203498dde42d1087a19deefbe208cb9efe2b Mon Sep 17 00:00:00 2001
From: sa_10_0 <2492740167@qq.com>
Date: Tue, 10 Dec 2024 19:27:49 +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/layout/components/Aside.vue | 4 +-
src/views/CostumeAppointments/AddCostumes.vue | 87 ++++--
.../CostumeAppointments/AppointmentOrder.vue | 37 ++-
.../CostumeAppointments/ClothingGrade.vue | 12 +-
.../CostumeAppointments/CostumeDetails.vue | 50 +++-
src/views/test.vue | 255 ++++++++++++------
6 files changed, 305 insertions(+), 140 deletions(-)
diff --git a/src/layout/components/Aside.vue b/src/layout/components/Aside.vue
index b9e550c..cf0d9f8 100644
--- a/src/layout/components/Aside.vue
+++ b/src/layout/components/Aside.vue
@@ -12,7 +12,7 @@

-
泠珑水阁管理系统
+
匠承非遗管理系统
@@ -106,7 +106,7 @@
- 服装等级管理
+ 服装类别管理
diff --git a/src/views/CostumeAppointments/AddCostumes.vue b/src/views/CostumeAppointments/AddCostumes.vue
index 893ee2e..97548f6 100644
--- a/src/views/CostumeAppointments/AddCostumes.vue
+++ b/src/views/CostumeAppointments/AddCostumes.vue
@@ -35,20 +35,25 @@
-
+
-
+
-
-
+
+ loadForm(event)">
+
+
-
+
提交
+
+ 重置
+
@@ -58,7 +63,7 @@
import {Plus} from "@element-plus/icons-vue";
import {ElMessage, genFileId, type UploadProps, type UploadRawFile} from "element-plus";
import myAxios from "@/api/myAxios";
-import {inject, ref} from "vue";
+import {inject, ref ,onMounted} from "vue";
const fileSimple = ref()
const uploadProductImg : any = ref()
const uploadProductDetail : any = ref()
@@ -70,6 +75,53 @@ const form = ref({
price:'',
clothesType:''
})
+const clothesType: any = ref([
+ {
+ values: '',
+ label: ''
+ }
+])
+onMounted(()=>{
+ getGrade()
+})
+const getGrade = async ()=>{
+ const res = await myAxios.post('/clothesGrade/list',{})
+ for(let i in res.data.data){
+ clothesType.value[i] = {
+ values: res.data.data[i].clothesType,
+ label:res.data.data[i].clothesType,
+ }
+ }
+}
+const loadForm = (value: any) => {
+ form.value.clothesType = value
+}
+const reload : any = inject("reload")
+const onSubmit = async () => {
+ const values = Object.values(form.value);
+ if (values.some(value => value === null || value === undefined || value === '')) {
+ ElMessage({
+ type:'warning',
+ message:'请检查表单数据是否完整填写'
+ })
+ return;
+ }
+ const res = await myAxios.post('/clothesInfo/add', { ...form.value })
+ if (res.data.code === 1) {
+ ElMessage({
+ type: 'success',
+ message: "提交成功"
+ })
+ reload() //上传完后重置表单
+ } else {
+ ElMessage.error("服务错误")
+ return;
+ }
+}
+const resetFormData = ref()
+const resetForm = () =>{
+ resetFormData.value.resetFields()
+}
const handleRemove: UploadProps['onRemove'] = (uploadFile, uploadFiles) => {
console.log(uploadFile, uploadFiles)
}
@@ -104,29 +156,6 @@ const Exceed_ProductDetail: UploadProps['onExceed'] = (files) => { //覆盖商
file.uid = genFileId()
uploadProductDetail.value!.handleStart(file)
}
-const reload : any = inject("reload")
-const onSubmit = async () => {
- const values = Object.values(form.value);
- // 使用some()方法来检查是否有任何值为空
- if (values.some(value => value === null || value === undefined || value === '')) {
- ElMessage({
- type:'warning',
- message:'请检查表单数据是否完整填写'
- })
- return;
- }
- const res = await myAxios.post('/clothesInfo/add', { ...form.value })
- if (res.data.code === 1) {
- ElMessage({
- type: 'success',
- message: "提交成功"
- })
- reload() //上传完后重置表单
- } else {
- ElMessage.error("服务错误")
- return;
- }
-}
diff --git a/src/views/CostumeAppointments/AppointmentOrder.vue b/src/views/CostumeAppointments/AppointmentOrder.vue
index 1f9fc1e..a36eef1 100644
--- a/src/views/CostumeAppointments/AppointmentOrder.vue
+++ b/src/views/CostumeAppointments/AppointmentOrder.vue
@@ -43,6 +43,13 @@
+
+
+
+
@@ -93,17 +100,13 @@
diff --git a/src/views/CostumeAppointments/ClothingGrade.vue b/src/views/CostumeAppointments/ClothingGrade.vue
index 5d062f3..69ffe6a 100644
--- a/src/views/CostumeAppointments/ClothingGrade.vue
+++ b/src/views/CostumeAppointments/ClothingGrade.vue
@@ -14,8 +14,8 @@
-
-
+
+
@@ -48,14 +48,14 @@
-
-
+
+
-
+
-
+
diff --git a/src/views/CostumeAppointments/CostumeDetails.vue b/src/views/CostumeAppointments/CostumeDetails.vue
index 42dab5b..ee42a36 100644
--- a/src/views/CostumeAppointments/CostumeDetails.vue
+++ b/src/views/CostumeAppointments/CostumeDetails.vue
@@ -22,7 +22,7 @@
-
+
@@ -43,12 +43,13 @@
-
+
-
+
+
@@ -89,12 +90,14 @@
-
+
-
-
+
+ loadForm(event)">
+
+
-
+
@@ -104,7 +107,7 @@
@@ -113,12 +116,14 @@
-->
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
- 第{{ index + 1 }}天
-
-
-
-
-
第 {{ row+1 }} 个时间段
-
-
-
-
-
-
-
-
-
-
+
+
+
+ {{ data.day.split('-').slice(1).join('-') }}
+ ✔️
+
+
+
-
-
\ No newline at end of file
+.is-selected {
+ color: black;
+ border-radius: 50%;
+}
+
+.disabled {
+ color: #dcdfe6;
+ pointer-events: none;
+}
+.custom-calendar /deep/ .el-calendar-table .el-calendar-day{
+ height: 50px;
+}
+
+