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 @@
-
-
-
-
-
-
-
- 确认
-
-
-
-
+
-
-
+
+