From a4930290b5b2e253f65422ba73baf4d2032c00ec Mon Sep 17 00:00:00 2001
From: kaeery <3491123437@qq.com>
Date: Fri, 28 Feb 2025 22:43:54 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=8B=9B=E7=94=9F=E5=B0=8F=E7=A8=8B?=
=?UTF-8?q?=E5=BA=8F=E3=80=91=20=E4=BC=98=E5=8C=96#=20=E7=94=B5=E9=94=80?=
=?UTF-8?q?=E5=92=8C=E6=8B=9B=E7=94=9F=E5=85=B1=E7=94=A8=E6=80=BB=E7=BB=93?=
=?UTF-8?q?=E6=A8=A1=E6=9D=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/summary.ts | 4 +
src/bundle/pages/summary-list/index.vue | 59 +++++----
.../pages/summary-list/summary-card.vue | 8 +-
src/components/date-picker/date-picker.vue | 3 +-
.../widgets/date-more/date-more.vue | 2 +-
src/components/widgets/summary/summary.vue | 121 ++++++++++++++++++
src/pages/recruitsale/summary/index.vue | 49 +------
src/pages/telesale/summary/index.vue | 117 +----------------
8 files changed, 166 insertions(+), 197 deletions(-)
create mode 100644 src/components/widgets/summary/summary.vue
diff --git a/src/api/summary.ts b/src/api/summary.ts
index 14d6c41..ed81a92 100644
--- a/src/api/summary.ts
+++ b/src/api/summary.ts
@@ -15,3 +15,7 @@ export function apiSummaryDetail(params: any) {
export function apiEditSummary(params: any) {
return request.post({ url: '/summary/template/edit', data: params })
}
+// 模板列表
+export function apiSummaryLists(params: any) {
+ return request.get({ url: '/summary/template/list', data: params })
+}
diff --git a/src/bundle/pages/summary-list/index.vue b/src/bundle/pages/summary-list/index.vue
index ebfde5e..962c74e 100644
--- a/src/bundle/pages/summary-list/index.vue
+++ b/src/bundle/pages/summary-list/index.vue
@@ -8,57 +8,56 @@
-
+
-
-
-
+ >
+
+
diff --git a/src/bundle/pages/summary-list/summary-card.vue b/src/bundle/pages/summary-list/summary-card.vue
index b616921..7420741 100644
--- a/src/bundle/pages/summary-list/summary-card.vue
+++ b/src/bundle/pages/summary-list/summary-card.vue
@@ -1,11 +1,11 @@
- {{ item.date }}
+ {{ item.addTime }}
-
+
{{ data.formTitle }}:
{{ data.value }}
@@ -19,8 +19,8 @@ import { PropType } from 'vue'
import { ISummary } from '@/components/widgets/summary-form/summary-form.vue'
export interface ISummaryCard {
- date: string
- templateItems: ISummary[]
+ addTime: string
+ templateContentList: ISummary[]
}
defineProps({
item: {
diff --git a/src/components/date-picker/date-picker.vue b/src/components/date-picker/date-picker.vue
index e5fb8f8..dee350e 100644
--- a/src/components/date-picker/date-picker.vue
+++ b/src/components/date-picker/date-picker.vue
@@ -30,7 +30,7 @@ const props = defineProps({
}
})
-const emit = defineEmits(['update:bindingDate'])
+const emit = defineEmits(['update:bindingDate', 'confirm'])
const maxDate = new Date().getTime()
@@ -45,6 +45,7 @@ const handleTogglePicker = () => {
const handleConfirmDate = ({ value }) => {
handleToggle()
emit('update:bindingDate', value)
+ emit('confirm', value)
}
/**取消 */
const handleClose = () => {
diff --git a/src/components/widgets/date-more/date-more.vue b/src/components/widgets/date-more/date-more.vue
index a03c64a..9caa0b7 100644
--- a/src/components/widgets/date-more/date-more.vue
+++ b/src/components/widgets/date-more/date-more.vue
@@ -25,7 +25,7 @@ const props = defineProps({
const parseDate = computed(() => dayjs(props.curDate).format('YYYY-MM'))
const handleMore = () => {
uni.navigateTo({
- url: '/bundle/pages/summary-list/index?date=' + props.curDate + '&type=' + props.type
+ url: '/bundle/pages/summary-list/index?type=' + props.type
})
}
diff --git a/src/components/widgets/summary/summary.vue b/src/components/widgets/summary/summary.vue
new file mode 100644
index 0000000..9809ccd
--- /dev/null
+++ b/src/components/widgets/summary/summary.vue
@@ -0,0 +1,121 @@
+
+
+
+
+
+
+
+
+ 确认
+
+
+
+
+
+
+
+
diff --git a/src/pages/recruitsale/summary/index.vue b/src/pages/recruitsale/summary/index.vue
index e151c9b..0b738f3 100644
--- a/src/pages/recruitsale/summary/index.vue
+++ b/src/pages/recruitsale/summary/index.vue
@@ -1,51 +1,6 @@
-
-
-
-
-
-
-
+
-
+
diff --git a/src/pages/telesale/summary/index.vue b/src/pages/telesale/summary/index.vue
index fb35347..0b738f3 100644
--- a/src/pages/telesale/summary/index.vue
+++ b/src/pages/telesale/summary/index.vue
@@ -1,117 +1,6 @@
-
-
-
-
-
-
-
- 确认
-
-
-
-
+
-
-
+
+