From 9ba26093c43fb2339784e084299cb5d922971728 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167>
Date: Tue, 7 Mar 2023 17:58:29 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E8=AE=A4=E8=AF=81=E6=B8=85?=
=?UTF-8?q?=E5=8D=95=E8=A7=92=E8=89=B2=E5=88=87=E6=8D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
jero-web/src/common/lang/en-us.js | 1 +
jero-web/src/common/lang/zh-cn.js | 1 +
.../ProjectDetails/index.vue | 55 ++-
.../components/TaskListModel.vue | 2 +-
.../components/certificationList/index.vue | 363 ++++++++++++++++--
.../components/listOfRegulations.vue | 2 +
6 files changed, 379 insertions(+), 45 deletions(-)
diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js
index b18a0b0e6..a9277aab8 100644
--- a/jero-web/src/common/lang/en-us.js
+++ b/jero-web/src/common/lang/en-us.js
@@ -1403,4 +1403,5 @@ module.exports = {
missionAccepted:'Mission Accepted',
missionRejection:'Mission Rejection',
turnToDo:'Turn To Do',
+ initiateTask:'Initiate a Task',
}
\ No newline at end of file
diff --git a/jero-web/src/common/lang/zh-cn.js b/jero-web/src/common/lang/zh-cn.js
index d142c0cd5..8e64e06f5 100644
--- a/jero-web/src/common/lang/zh-cn.js
+++ b/jero-web/src/common/lang/zh-cn.js
@@ -1504,4 +1504,5 @@ module.exports = {
missionAccepted:'任务接受',
missionRejection:'任务拒绝',
turnToDo:'转办',
+ initiateTask:'发起任务',
}
\ No newline at end of file
diff --git a/jero-web/src/views/projectManagement/ProjectDetails/index.vue b/jero-web/src/views/projectManagement/ProjectDetails/index.vue
index 296cb1747..bc1917952 100644
--- a/jero-web/src/views/projectManagement/ProjectDetails/index.vue
+++ b/jero-web/src/views/projectManagement/ProjectDetails/index.vue
@@ -34,7 +34,7 @@
v-if="textTitle === $t('certificationList') || textTitle === $t('listOfRegulations')"
@click="roleSwitchingClick">
- {{$t('roleSwitching')}}
+ {{roleSwitchName}}
@@ -59,12 +59,12 @@
{{$t('certificationList')}}
-
-
-
-
-
-
+
+
+
+
+
+
@@ -127,6 +127,7 @@
@@ -134,7 +135,9 @@
-
+
@@ -187,8 +190,33 @@
historicalVersionUrl: '',
queryUserPremissionByProjectLibraryId: '/project/projectCertificationDirectoryEO/queryUserPremissionByProjectLibraryId'
},
+ roleSwitchListCn: {
+ '0': 'studio工程师',
+ '1': '法规工程师',
+ '2': '认证工程师',
+ '4': '法规工程师/认证工程师',
+ '11': '领导角色',
+ '12': '系统管理员',
+ '13': 'Viewer',
+ '14': '品牌管理员',
+ '20': '接口人',
+ '21': '责任人'
+ },
+ roleSwitchListEn: {
+ '0': 'R&H Studio',
+ '1': 'studio',
+ '2': 'homo',
+ '4': 'Regulatory Engineer/Certification Engineer',
+ '11': 'R&H Manager',
+ '12': 'admin',
+ '13': 'Viewer',
+ '14': 'BrandAdministrator',
+ '20': 'Interface person',
+ '21': 'Person liable'
+ },
areaOfResponsibility: {},
- engineeringInterfacePerson: ''
+ engineeringInterfacePerson: '',
+ roleSwitchName: ''
}
},
created() {
@@ -360,6 +388,15 @@
} else {
this.$refs.certificationListRef.roleSwitchingClick()
}
+ },
+ getRoleSwitch(value) {
+ console.log(value)
+ let long = localStorage.getItem('language') || 'zh-cn'
+ if (long == 'zh-cn'){
+ this.roleSwitchName = this.roleSwitchListCn[value]
+ }else{
+ this.roleSwitchName = this.roleSwitchListEn[value]
+ }
}
}
}
diff --git a/jero-web/src/views/projectManagement/components/TaskListModel.vue b/jero-web/src/views/projectManagement/components/TaskListModel.vue
index 75489baf1..8430cd4f2 100644
--- a/jero-web/src/views/projectManagement/components/TaskListModel.vue
+++ b/jero-web/src/views/projectManagement/components/TaskListModel.vue
@@ -208,7 +208,7 @@
this.disabled = true
}
} else {
- if (val.roleCode == '2' || val.roleCode == '4') {
+ if (val.roleCode == '2') {
this.disabled = false
} else {
this.disabled = true
diff --git a/jero-web/src/views/projectManagement/components/certificationList/index.vue b/jero-web/src/views/projectManagement/components/certificationList/index.vue
index 98d16cee0..0f908d6a8 100644
--- a/jero-web/src/views/projectManagement/components/certificationList/index.vue
+++ b/jero-web/src/views/projectManagement/components/certificationList/index.vue
@@ -34,10 +34,10 @@
:getPopupContainer="triggerNode=> triggerNode.parentNode"
v-model="queryParam.flowStatus">
-
- {{ item.label }}
+
+ {{ item.name }}
@@ -67,67 +67,95 @@
+
+
-
-
+
+
+
+
{{ $t('preservation') }}
+
+
+
+
+
+
{{ $t('CertificationDirectory') }}
-
-
+
+
+
+
{{ $t('changeSetting') }}
-
+
+
+
{{ $t('referenceDeliverables') }}
+
-
-
-
-
+
+
+
{{ $t('templateDownload') }}
+
+
+
+
+
+
+
+
+
+
+
@@ -143,46 +171,70 @@
+
+
+
+
-
+
+
+
- {{ $t('initiatingProcess') }}
+ {{ $t('initiateTask') }}
-
-
+
+
+
+
{{ $t('returnToStudio') }}
-
+
+
+
-
-
+
+
+
+
{{ $t('returnedForApproval') }}
-
+
+
+
{{ $t('missionAccepted') }}
-
-
+
+
+
+
{{ $t('missionRejection') }}
-
+
+
+
-
-
+
+
+
+
+
@@ -204,7 +256,9 @@
:columns="columns"
>
-
+
{{ $t('edit') }}
{{ $t('deleteLib') }}
+
+
+ {{ (record.deliveryResult === 'null' || record.deliveryResult === '' ||
+ record.deliveryResult == null) ? $t('clickUpload') : $t('viewUploadedFiles')
+ }}
+
+
+
+ {{$t('viewFile')}}
+
+ --
+
+
+
+
+ {{text}}
+
+
+
+ {{text}}
+
+
+
+ {{text}}
+
+
+
+ {{result.certificationProgress_dictText ? result.certificationProgress_dictText : $t('maintainProgress')}}
+
+
@@ -223,6 +329,8 @@
+
+
{
this.getAndUserId()
})
@@ -508,11 +638,41 @@
}
}
}
+ if (this.roleSwitchingCode == 20 || this.roleSwitchingCode == 21 ||this.roleSwitchingCode == 11 ||
+ this.roleSwitchingCode == 12 || this.roleSwitchingCode == 13 || this.roleSwitchingCode == 14){
+ for (let i = 0; i < columns.length; i++) {
+ if (columns[i].title == this.$t('reportNo')) {
+ columns.splice(i, 1)
+ i--
+ }
+ if (columns[i].title == this.$t('productModel')) {
+ columns.splice(i, 1)
+ i--
+ }
+ if (columns[i].title == this.$t('nameOfManufacturer')) {
+ columns.splice(i, 1)
+ i--
+ }
+ if (columns[i].title == this.$t('CertificationProgress')) {
+ columns.splice(i, 1)
+ i--
+ }
+ }
+ }
return columns
}
},
methods: {
...mapGetters(['userInfo']),
+ getProcessStatus() {
+ getAction('/project/projectCertificationInventoryEO/getFlowStatusList', {}).then((res) => {
+ if (res.success) {
+ this.processStatusList = res.result || []
+ } else {
+ this.processStatusList = []
+ }
+ })
+ },
disabledDate(current) {
return current && current < moment().subtract(1, 'day')
},
@@ -696,6 +856,7 @@
withdrawClick() {
},
+ //催办
questionClick() {
},
@@ -761,6 +922,7 @@
}
this.roleSwitchingCode = this.formInlineRoleSwitching.roleSwitchingCode
this.getList()
+ this.$emit('getRoleSwitch',this.roleSwitchingCode)
} else {
this.JLoading = false
}
@@ -798,6 +960,7 @@
this.visibleRoleSwitching = false
this.confirmLoadingRoleSwitching = false
this.getList()
+ this.$emit('getRoleSwitch',this.roleSwitchingCode)
} else {
this.confirmLoadingRoleSwitching = false
this.$message.warning(this.$t('operationFailed'))
@@ -808,6 +971,80 @@
},
handleCancelRoleSwitching() {
this.visibleRoleSwitching = false
+ },
+ //保存
+ preservationClick() {
+
+ },
+ //引用交付物
+ referenceDeliverablesClick() {
+
+ },
+ //修改配置
+ changeSettingClick() {
+
+ },
+ //发起流程
+ initiatingProcessClick() {
+
+ },
+ //退回至Studio
+ returnToStudioClick() {
+
+ },
+ //审批通过
+ ApprovedClick() {
+
+ },
+ //审批退回
+ returnedForApprovalClick() {
+
+ },
+ //任务接受
+ missionAcceptedClick() {
+
+ },
+ //任务退回
+ missionRejectionClick() {
+
+ },
+ //提交
+ submitClick() {
+
+ },
+ //转办
+ turnToDoClick() {
+
+ },
+ clickButtonToUpload(item, index) {
+ this.$refs.uploadFile.perentHandleFunc()
+ this.$refs.uploadFile.visible = true
+ this.uploadName = item
+ this.uploadIndex = index
+ getAction('sys/common/getFileInfos', { id: this.dataSource[this.uploadIndex][this.uploadName] }).then((res) => {
+ if (res.success) {
+ this.$refs.uploadFile.perentHandleFunc(res.result)
+ } else {
+ this.$refs.uploadFile.perentHandleFunc()
+ }
+ })
+ },
+ /** 上传文件的回调 */
+ uploadSuccess(data) {
+ let attIdList = []
+ if (data && data.length > 0) {
+ data.map(item => {
+ attIdList.push(item.id || data.name)
+ })
+ }
+ /** 赋值给当前对应的表单文件 */
+ this.dataSource[this.uploadIndex][this.uploadName] = attIdList.join(',')
+ this.dataSource = [...this.dataSource]
+ },
+ CertificationProgressClick(val) {
+ let item = JSON.parse(JSON.stringify(val))
+ item.roleCode = this.roleSwitchingCode
+ this.$refs.TaskListModelRef.getData(item, this.$t('CertificationProgress'))
}
}
}
@@ -1098,6 +1335,62 @@
padding-bottom: 0 !important;
overflow: scroll !important;
}
+
+ .button-text {
+ height: 38px;
+ width: calc(100%);
+ line-height: 38px;
+ background: #fff;
+ border: 1px #00B3BE solid;
+ color: #00B3BE;
+ }
+
+ .box-input-index {
+ display: inline-block;
+ height: 38px;
+ width: 100%;
+ }
+
+ .box-content-Progress {
+ width: 88px;
+ height: 32px;
+ display: inline-block;
+ text-align: center;
+ line-height: 32px;
+ border-radius: 4px;
+ background: #f1f3f5;
+ color: #919399;
+ }
+
+ .box-content-cou {
+ cursor: pointer;
+ }
+
+ .accordColor {
+ background: #dbf6e2;
+ color: #26BD4B;
+ }
+
+ .nonConformityColor {
+ background: #f3dddd;
+ color: #E83030;
+ }
+
+ .TrackedColor {
+ background: #f6ebdb;
+ color: #FDA71C;
+ }
+
+ .notInvolvedColor {
+ background: #eef1f4;
+ color: #707486;
+ }
+
+ .submittedColor {
+ color: #00B3BE;
+ background: #ddf3f4;
+ }
+