diff --git a/pages/charge/visitsAndFees/index.vue b/pages/charge/visitsAndFees/index.vue
index 54bb676..5b9bbda 100644
--- a/pages/charge/visitsAndFees/index.vue
+++ b/pages/charge/visitsAndFees/index.vue
@@ -67,7 +67,7 @@
-
+
数据异动
@@ -75,11 +75,11 @@
处理流程
-
+
异动记录
-
+
作废
@@ -87,16 +87,16 @@
更多操作
-
+
修改
查看详情
-
+
拒绝
-
+
同意
@@ -107,11 +107,11 @@
-
+
+ @getList="refreshList">
@@ -220,6 +220,33 @@
this.initData();
},
methods: {
+ // 修改按钮权限
+ editPermission(item) {
+ const { statusCode } = item
+ return statusCode === 'EDITING' && this.$checkPermi(['schsf:mcVisit:edit'])
+ },
+ // 通过/驳回按钮权限(一级审核、二级审核、异动一级审批)
+ auditPermission(item) {
+ const { publishStatus, modificationStatus } = item;
+ // 发起审核
+ const auditPer = (publishStatus === 'PENDING_LEVEL_1_AUDIT' && this.$checkPermi(['schsf:mcVisit:ticket_submitAuditOne'])) ||
+ (publishStatus === 'PENDING_LEVEL_2_AUDIT' && this.$checkPermi(['schsf:mcVisit:ticket_submitAuditTwo']))
+ // 异动审核
+ const changeAuditPer = publishStatus === 'APPROVED' &&
+ ((modificationStatus === 'PENDING_LEVEL_1_AUDIT' && this.$checkPermi(['schsf:mcVisit:modification_submitAuditOne'])) ||
+ modificationStatus === 'PENDING_LEVEL_2_AUDIT' && this.$checkPermi(['schsf:mcVisit:modification_submitAuditTwo']))
+
+ return auditPer || changeAuditPer
+ },
+ // 发起异动权限
+ publishChangePermission(item) {
+ const { statusCode } = item;
+ return statusCode === 'APPROVED' && this.$checkPermi(['schsf:mcVisit:modification'])
+ },
+ // 作废权限
+ cancelPermission(item) {
+ return (item.publishStatus === 'EDITING' || item.statusCode === 'APPROVED') && this.$checkPermi(['schsf:mcVisit:cancel'])
+ },
bfColorStatus(status, type) {
const bgColorMap = {
'3': '#EFF1FD',
@@ -260,6 +287,10 @@
return textColorMap[status] || '';
}
},
+ refreshList() {
+ this.params.pageNum = 1
+ this.initData()
+ },
async initData() {
let {
code,
diff --git a/pages/login/mobile.vue b/pages/login/mobile.vue
index 0611296..e3311d2 100644
--- a/pages/login/mobile.vue
+++ b/pages/login/mobile.vue
@@ -227,6 +227,7 @@
uni.$u.toast('登录成功');
//获取全部字典信息 保存至store
this.rememberPassword()
+ this.$store.dispatch('GetInfo')
this.$store.dispatch('loadDictDatas')
setTimeout(() => {
// uni.navigateTo({
--
libgit2 0.21.2