From 5762c633a1e7de32ec5739bce54dc66553ed4731 Mon Sep 17 00:00:00 2001 From: liyu1201 <1492230202@qq.com> Date: Mon, 10 Nov 2025 11:07:43 +0800 Subject: [PATCH] feat(lqYcsdJsj): 新增成员管理弹窗并优化相关功能 --- antis-ncc-admin/src/views/lqYcsdJsj/components/member-edit-dialog.vue | 335 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ antis-ncc-admin/src/views/lqYcsdJsj/index.vue | 38 +++++++++++++++++++++++++++++--------- antis-ncc-admin/src/views/lqYcsdMdmbsd/index.vue | 4 ++-- 3 files changed, 366 insertions(+), 11 deletions(-) create mode 100644 antis-ncc-admin/src/views/lqYcsdJsj/components/member-edit-dialog.vue diff --git a/antis-ncc-admin/src/views/lqYcsdJsj/components/member-edit-dialog.vue b/antis-ncc-admin/src/views/lqYcsdJsj/components/member-edit-dialog.vue new file mode 100644 index 0000000..7f5edef --- /dev/null +++ b/antis-ncc-admin/src/views/lqYcsdJsj/components/member-edit-dialog.vue @@ -0,0 +1,335 @@ + + + + + + diff --git a/antis-ncc-admin/src/views/lqYcsdJsj/index.vue b/antis-ncc-admin/src/views/lqYcsdJsj/index.vue index 38b74dd..8dbd8bc 100644 --- a/antis-ncc-admin/src/views/lqYcsdJsj/index.vue +++ b/antis-ncc-admin/src/views/lqYcsdJsj/index.vue @@ -83,7 +83,7 @@ - + @@ -218,9 +219,10 @@ import { getDictionaryDataSelector } from '@/api/systemData/dictionary' import NCCForm from './Form' import ExportBox from './ExportBox' + import MemberEditDialog from './components/member-edit-dialog.vue' import { previewDataInterface } from '@/api/systemData/dataInterface' export default { - components: { NCCForm, ExportBox }, + components: { NCCForm, ExportBox, MemberEditDialog }, data() { return { showAll: false, @@ -244,6 +246,7 @@ }, formVisible: false, exportBoxVisible: false, + memberDialogVisible: false, columnList: [ { prop: 'id', label: '主键' }, { prop: 'yf', label: '月份' }, @@ -254,10 +257,21 @@ }, computed: {}, created() { + // 设置默认月份为本月 + this.setDefaultMonth() this.loadStoreList() this.initData() }, methods: { + setDefaultMonth() { + // 获取当前月份,格式:yyyyMM + const now = new Date() + const year = now.getFullYear() + const month = String(now.getMonth() + 1).padStart(2, '0') + const currentMonth = `${year}${month}` + this.monthQuery = currentMonth + this.query.yf = currentMonth + }, initData() { this.listLoading = true; let _query = { @@ -284,7 +298,7 @@ // 加载门店映射 this.loadStoreMap() // 为每个金三角加载成员数量 - this.loadMemberCounts() + // this.loadMemberCounts() }) }, handleDel(id) { @@ -306,6 +320,12 @@ }).catch(() => { }); }, + editMembers(id) { + this.memberDialogVisible = true + this.$nextTick(() => { + this.$refs.MemberEditDialog.init(id) + }) + }, viewDetail(id) { this.formVisible = true this.$nextTick(() => { @@ -441,10 +461,10 @@ if (isrRefresh) this.reset() }, reset() { - for (let key in this.query) { - this.query[key] = undefined - } - this.monthQuery = null + // 重置时恢复默认月份为本月 + this.setDefaultMonth() + this.query.md = undefined + this.query.jsj = undefined this.listQuery = { currentPage: 1, pageSize: 20, diff --git a/antis-ncc-admin/src/views/lqYcsdMdmbsd/index.vue b/antis-ncc-admin/src/views/lqYcsdMdmbsd/index.vue index 51c6e44..34d01a2 100644 --- a/antis-ncc-admin/src/views/lqYcsdMdmbsd/index.vue +++ b/antis-ncc-admin/src/views/lqYcsdMdmbsd/index.vue @@ -137,8 +137,8 @@ - - + +