diff --git a/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue b/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue
index 4ee21b81f..346e34e1b 100644
--- a/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue
+++ b/src/pages/regulatoryRepository/enterpriseStandardPlan/index.vue
@@ -15,8 +15,8 @@
-
-
+
+
@@ -105,6 +105,12 @@
align="center"
width="120">
+
+
+ {{ scope.row.standCode }}
+
+
+
+
+
+
@@ -252,7 +270,7 @@
-
+
@@ -901,6 +919,92 @@
}, e => {
});
},
+ // 点击查看
+ handlePreview(item,fs) {
+ // const mj = item.attrInfoMap.QBMJ
+ // if (mj === 'GXNX7D6H59') {
+ // // C1所有人都可查看
+ // let routeUrl = this.$router.resolve({
+ // name: 'OtherBussStandardDetails',
+ // params: {
+ // id: item.id,
+ // pageType: 'BUSINESS_STAND'
+ // }
+ // })
+ // window.open(routeUrl.href, '_blank')
+ // } else if (mj === 'JLAPYG7YCT') {
+ // // C2只能让起草部门人员即填写中的相关部门/涉及会签部门人员可看
+ // // (起草部门、相关部门、会签部门,部门下所有人员)
+ // const attrInfoMap = item.attrInfoMap || {}
+ // const xgbm = attrInfoMap.XGBM || '' // 相关部门
+ // const qcbm = attrInfoMap.ZRBM || '' // 起草部门
+ // const xghqbm = attrInfoMap.XHQBM || '' // 相关会签部门
+ // const bm = [xgbm, qcbm, xghqbm].join(',') // 全部部门 字符串拼接
+ // const currentUserInfo = this.userInfo
+ // const currentBm = [currentUserInfo.orgId, currentUserInfo.pOrgId] // 当前用户的部门和科室
+ // const inBm = currentBm.some(item => {
+ // return bm.indexOf(item) > -1
+ // })
+ // // 如果当前用户的部门和科室不在全部部门里 就不允许查看
+ // if (!inBm) {
+ // this.$message.warning('当前用户无权限查看此详情')
+ // return false
+ // }
+ // let routeUrl = this.$router.resolve({
+ // name: 'OtherBussStandardDetails',
+ // params: {
+ // id: item.id,
+ // pageType: 'BUSINESS_STAND'
+ // }
+ // })
+ // window.open(routeUrl.href, '_blank')
+ // } else if (mj === 'ACF675Z88W') {
+ // // C3采取单独授权查看(当前实现只能主起草人、其他起草人看即可,后续的授权4月份开发)
+ // const attrInfoMap = item.attrInfoMap || {}
+ // const zyqcr = attrInfoMap.ZYQCR || '' // 主要起草人
+ // const qtqcr = attrInfoMap.QTQCR || '' // 主要起草人
+ // const qcr = [zyqcr, qtqcr].join(',') // 全部起草人 字符串拼接
+ // const userInfo = this.userInfo
+ // const currentId = userInfo.userId // 当前用户的id
+ // // 如果当前用户的部门和科室不在全部部门里 就不允许查看
+ // if (!(qcr.indexOf(currentId) > -1)) {
+ // // this.$message.warning('当前用户无权限查看此详情')
+ // this.$http.get('lawss/sarBussionessStand/selectPerson', {
+ // qbid: item.id
+ // }, {
+ // _this: this
+ // }, res => {
+ // if (res.data === "1") {
+ // // 为1有权限
+ // let routeUrl = this.$router.resolve({
+ // name: 'OtherBussStandardDetails',
+ // params: {
+ // id: item.id,
+ // pageType: 'BUSINESS_STAND'
+ // }
+ // })
+ // window.open(routeUrl.href, '_blank')
+ // } else {
+ // this.$message.warning('当前用户无权限查看此详情')
+ // return false
+ // }
+ // }, e => {
+ // return false
+ //
+ // })
+ //
+ // }
+ // }
+ let routeUrl = this.$router.resolve({
+ name: 'OtherBussStandardDetails',
+ params: {
+ id: fs ? (fs === 'fs' ? item.standId:item.id) : item.id,
+ pageType: 'BUSINESS_STAND'
+ }
+ })
+ console.log(routeUrl)
+ window.open(routeUrl.href, '_blank')
+ },
workGroupOk () {
if (this.workGroupList.length > 1) {
this.$message.warning('仅能选择一个工作组')