From 2b13ea7ded6c5f7c6251201b5c83b0c104da577d Mon Sep 17 00:00:00 2001 From: liuye Date: Wed, 19 Apr 2023 14:53:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=AF=E5=88=86=E4=BB=A3=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/pages/selectSysUser.vue | 3 +- .../fd/AppIntegralApply/AppIntegralApply.vue | 114 ------------------ .../fd/AppPointsReview/AppPointsReview.vue | 9 +- src/project/fd/AppPointsReview/detail.vue | 44 +++++-- .../integralAdd.vue | 47 +++++--- 5 files changed, 75 insertions(+), 142 deletions(-) delete mode 100644 src/project/fd/AppIntegralApply/AppIntegralApply.vue rename src/project/fd/{AppIntegralApply => AppPointsReview}/integralAdd.vue (84%) diff --git a/src/components/pages/selectSysUser.vue b/src/components/pages/selectSysUser.vue index b861c6e7..98c7ea58 100644 --- a/src/components/pages/selectSysUser.vue +++ b/src/components/pages/selectSysUser.vue @@ -11,7 +11,8 @@
- {{ item.name }} + + {{ nodeKey == 'openId' ? item.realName : item.name }} ({{item.mobile}})
diff --git a/src/project/fd/AppIntegralApply/AppIntegralApply.vue b/src/project/fd/AppIntegralApply/AppIntegralApply.vue deleted file mode 100644 index f04122b1..00000000 --- a/src/project/fd/AppIntegralApply/AppIntegralApply.vue +++ /dev/null @@ -1,114 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/project/fd/AppPointsReview/AppPointsReview.vue b/src/project/fd/AppPointsReview/AppPointsReview.vue index 651b8882..155ee5fe 100644 --- a/src/project/fd/AppPointsReview/AppPointsReview.vue +++ b/src/project/fd/AppPointsReview/AppPointsReview.vue @@ -32,7 +32,7 @@
推送精选
-
{{item.createUserName}}积分+{{item.applyIntegral}}
+
{{item.integralUserName}}积分+{{item.applyIntegral}}
{{item.createTime}} {{ $dict.getLabel('appIntegralApplyEventStatus', item.status) }} @@ -46,7 +46,7 @@ - +
@@ -164,7 +164,10 @@ export default { this.search.type = '' this.search.typeName = '' this.getListInit() - } + }, + toAdd() { + uni.navigateTo({url: './integralAdd'}) + }, }, onReachBottom() { this.current = this.current + 1; diff --git a/src/project/fd/AppPointsReview/detail.vue b/src/project/fd/AppPointsReview/detail.vue index 1df12ff0..222f77ad 100644 --- a/src/project/fd/AppPointsReview/detail.vue +++ b/src/project/fd/AppPointsReview/detail.vue @@ -6,14 +6,14 @@
{{ $dict.getLabel('appIntegralApplyEventStatus', info.status) }}
-
申请人:{{info.createUserName}}
+
申请人:{{info.integralUserName}}
电话号码:{{info.phone}}

申请信息

-
+
取消 {{isEdit ? '保存' : '编辑'}}
@@ -21,7 +21,7 @@
积分值
- + {{info.applyIntegral}}
@@ -98,7 +98,8 @@ export default { info: {}, showVideo: false, videoUrl: '', - isEdit: false + isEdit: false, + flag: false }; }, onLoad(option) { @@ -117,6 +118,7 @@ export default { this.info = res.data this.info.images = res.data.files.filter(e => (['jpeg', 'jpg', 'png'].includes(e.name.split('.')[1]))) this.info.videos = res.data.files.filter(e => (['mp4'].includes(e.name.split('.')[1]))) + this.flag = false } }) }, @@ -167,14 +169,42 @@ export default { }, edit() { if(this.isEdit) { - this.editConfirm() + this.submit() }else { this.isEdit = true } }, - editConfirm() { + submit() { + if(this.flag) return - } + if (!this.info.content) { + return this.$u.toast('请输入详细描述') + } + + if ((this.info.images.length + this.info.videos.length) > 9) { + return this.$u.toast('图片和视频不得超过9个') + } else { + this.info.files = [...this.info.images,...this.info.videos] + } + + this.flag = true + this.$http.post(`/app/appintegraluserapply/updateByGirdMember`,{ + ...this.info, + userId: this.info.integralUserId, + // phone: this.info.phone, + // applyItemId: this.info.applyItemId, + // content: this.info.content, + // girdId: this.info.girdId, + // id: this.info.id + }).then(res=> { + if(res?.data) { + this.$u.toast('提交成功') + uni.$emit('updateList') + this.getDetail() + this.isEdit = false + } + }) + }, }, }; diff --git a/src/project/fd/AppIntegralApply/integralAdd.vue b/src/project/fd/AppPointsReview/integralAdd.vue similarity index 84% rename from src/project/fd/AppIntegralApply/integralAdd.vue rename to src/project/fd/AppPointsReview/integralAdd.vue index 6ea4ef69..4fb287f6 100644 --- a/src/project/fd/AppIntegralApply/integralAdd.vue +++ b/src/project/fd/AppPointsReview/integralAdd.vue @@ -2,8 +2,10 @@
*姓名
-
{{form.name || '请选择'}} - +
+ + +
@@ -16,7 +18,9 @@
*事件类型
- +
+ +
*积分值
@@ -49,7 +53,7 @@ -
{{user.girdName}}
+
{{form.girdName}}