diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js index f46b83a73..8bab38230 100644 --- a/jero-web/src/common/lang/en-us.js +++ b/jero-web/src/common/lang/en-us.js @@ -1955,4 +1955,13 @@ module.exports = { Reasonforreturn:'Reason for return', maintenanceTemplate:'Maintenance template', UserFeedback:'User Feedback', + Relevantlawsregulations:'Relevant laws and regulations', + Problemstate:'Problem state', + descriptions:'Descriptions', + documents:'Documents', + examineapproveevidence:'Examine and approve evidence', + conculsion:'Conculsion', + progresstracking:'Progress Tracking', + Fileupload:'File upload', + Addresslink:'Address link', } \ 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 0292fa24a..e50d526ce 100644 --- a/jero-web/src/common/lang/zh-cn.js +++ b/jero-web/src/common/lang/zh-cn.js @@ -3911,4 +3911,13 @@ module.exports = { Modifyremarks:'修改备注', Reasonforreturn:'退回原因', UserFeedback:'用户反馈', + Relevantlawsregulations:'相关法规', + Problemstate:'问题状态', + descriptions:'描述和分析', + documents:'相关文件', + examineapproveevidence:'审批证据', + conculsion:'结论', + progresstracking:'进度追踪', + Fileupload:'文件上传', + Addresslink:'地址链接', } \ No newline at end of file diff --git a/jero-web/src/views/projectManagement/projectNonConformance/index.vue b/jero-web/src/views/projectManagement/projectNonConformance/index.vue index 26225f031..d9e3294cd 100644 --- a/jero-web/src/views/projectManagement/projectNonConformance/index.vue +++ b/jero-web/src/views/projectManagement/projectNonConformance/index.vue @@ -3,15 +3,6 @@
- -
-
- {{$t('standard')}} -
- -
-
@@ -23,110 +14,84 @@
-
- {{$t('areaOfResponsibility')}} +
+ {{$t('Relevantlawsregulations')}}
- + +
+ + +
+
+ {{$t('RelatedItems')}} +
+ + + + {{ item.projectName}} + + +
@@ -142,6 +107,10 @@
+
+ + {{$t('newlyAdded')}} +
{{ $t('export') }} @@ -161,10 +130,33 @@ :data-source="dataSource" :columns="columns" > - - - {{text}} - + + + + + +
+ + {{result.certificationProgress_dictText ? result.certificationProgress_dictText : $t('toBeStarted')}} + +
+ + + {{ $t('See') }} + + + {{ $t('edit') }} + + + {{ $t('deleteLib') }} +
@@ -181,6 +173,8 @@ />
+ + @@ -189,12 +183,16 @@ import PersonnelSelection from '@/components/PersonnelSelection/index' import designCompliance from '../../toDoCenter/projectRegulationTasks/components/designCompliance' import store from '@/store/' + import addModel from './moudles/addModel' + import detilModel from './moudles/detilModel' import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header' export default { name: 'projectNonConformance', components: { PersonnelSelection, + addModel, + detilModel, designCompliance }, mixins:[ResizeHeader, ResizeColumnProvide], @@ -205,10 +203,16 @@ dataSource: [], selectedRowKeys: [], projectNameList: [], + ProblemstateList:[this.$t('red'),this.$t('yellow'),this.$t('green'),], + CertificationColor: { + 'red': 'nonConformityColor', + 'green': 'accordColor', + 'yellow': 'TrackedColor', + }, toggleSearchStatus: false, columns: [ { - title: this.$t('standard'), + title: this.$t('title'), align: 'left', dataIndex: 'serialNumber', width: 170, @@ -216,33 +220,18 @@ scopedSlots: { customRender: 'standard' } }, { - title: this.$t('title'), + title: this.$t('Relevantlawsregulations'), align: 'left', dataIndex: 'title', width: 170, - scopedSlots: { customRender: 'standard' } - }, - { - title: this.$t('ProcessType'), - align: 'left', - dataIndex: 'flowType', - width: 150, - sorter:true, - ellipsis: true - }, - { - title: this.$t('areaOfResponsibility'), - align: 'left', - dataIndex: 'dutyTerritory', - width: 100, sorter:true, ellipsis: true }, { title: this.$t('RelatedItems'), align: 'left', - dataIndex: 'projectName', - width: 180, + dataIndex: 'RelatedItems', + width: 170, sorter:true, ellipsis: true }, @@ -250,23 +239,55 @@ title: this.$t('problemType'), align: 'left', dataIndex: 'problemType', + width: 170, + sorter:true, + ellipsis: true, + scopedSlots: { customRender: 'CertificationProgress' } + }, + { + title: this.$t('statisticalNodes'), + align: 'left', + dataIndex: 'dutyTerritory', + width: 100, + sorter:true, + ellipsis: true + }, + { + title: this.$t('creator'), + align: 'left', + dataIndex: 'creator', + width: 100, + sorter:true, + ellipsis: true + }, + { + title: this.$t('Problemstate'), + align: 'left', + dataIndex: 'Problemstate', width: 120, sorter:true, ellipsis: true }, { - title: this.$t('Sponsor'), + title: this.$t('createTime'), align: 'left', - dataIndex: 'initiator', + dataIndex: 'createTime', sorter:true, - width: 100 + width: 180 }, { - title: this.$t('personLiable'), + title: this.$t('updateTime'), align: 'left', - dataIndex: 'duty', + dataIndex: 'updateTime', sorter:true, - width: 100 + width: 180 + }, + { + title: this.$t('operation'), + align: 'left', + fixed: 'right', + width: localStorage.getItem('language') == 'zh-cn' ? 160 : 180, + scopedSlots: { customRender: 'operation' } } ], total: 0, @@ -274,6 +295,7 @@ pageNo: 1, orderBy: '1', orderByField: '', + long: '', isPersonnelSelection:true, url: { page: '/project/ncrTrackController/queryPage', @@ -288,6 +310,7 @@ } }, mounted() { + this.long = localStorage.getItem('language') || 'zh-cn' this.getList() this.getNameList() }, @@ -320,6 +343,9 @@ this.pageNo = 1 this.getList() }, + addModelForm(){ + this.getList() + }, onSelectChange(value) { this.content = [] this.selectedRowKeys = value @@ -384,6 +410,31 @@ } }) }, + handleAdd(){ + this.$refs.addModelRef.add() + }, + edit(record){ + this.$refs.addModelRef.edit(JSON.parse(JSON.stringify(record))) + }, + detil(record){ + this.designFlowStatusClick(record) + }, + deleteLib(record){ + let _this = this + this.$confirm({ + content: _this.$t('ConfirmDelete'), + onOk() { + deleteAction(_this.url.deleteBatch, { id: record.id }).then((res) => { + if (res.success) { + _this.$message.success(_this.$t('OperationSuccessful')) + _this.getList() + } else { + _this.$message.warning(res.message) + } + }) + } + }) + }, handleExport() { let query = { ...this.queryParam, diff --git a/jero-web/src/views/projectManagement/projectNonConformance/moudles/addModel.vue b/jero-web/src/views/projectManagement/projectNonConformance/moudles/addModel.vue new file mode 100644 index 000000000..de8ad4ea5 --- /dev/null +++ b/jero-web/src/views/projectManagement/projectNonConformance/moudles/addModel.vue @@ -0,0 +1,757 @@ + + + + + \ No newline at end of file diff --git a/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue b/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue new file mode 100644 index 000000000..7d06b0f9d --- /dev/null +++ b/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue @@ -0,0 +1,751 @@ + + + + + \ No newline at end of file