diff --git a/jero-web/src/views/projectManagement/components/ProjectDetails.vue b/jero-web/src/views/projectManagement/components/ProjectDetails.vue index ea759280f..577cbc4b8 100644 --- a/jero-web/src/views/projectManagement/components/ProjectDetails.vue +++ b/jero-web/src/views/projectManagement/components/ProjectDetails.vue @@ -167,6 +167,7 @@ @@ -239,6 +240,9 @@ if (res.success) { this.cut = res.cut this.queryForm = res.result[0] || {} + if (this.$refs.projectStatusRef){ + this.$refs.projectStatusRef.getData(this.queryForm) + } if (this.cut == 'en') { this.queryForm.brandText = this.queryForm.brandTextEn } else { diff --git a/jero-web/src/views/projectManagement/components/nonConformance.vue b/jero-web/src/views/projectManagement/components/nonConformance.vue index 808cc8872..421b11d3f 100644 --- a/jero-web/src/views/projectManagement/components/nonConformance.vue +++ b/jero-web/src/views/projectManagement/components/nonConformance.vue @@ -149,7 +149,8 @@
- {{result.problemState ? result.problemState : ''}} @@ -165,19 +166,22 @@ {{result.problemState ? result.problemState : ''}}
- - - + + + {{ $t('See') }} - {{ $t('edit') }} - {{ $t('deleteLib') }} @@ -203,500 +207,513 @@ \ No newline at end of file diff --git a/jero-web/src/views/projectManagement/components/projectStatus.vue b/jero-web/src/views/projectManagement/components/projectStatus.vue index ee34ebcd4..d1fff51e3 100644 --- a/jero-web/src/views/projectManagement/components/projectStatus.vue +++ b/jero-web/src/views/projectManagement/components/projectStatus.vue @@ -29,7 +29,8 @@ - + @@ -56,12 +57,25 @@ return { activeKey: this.$t('regulatoryComplianceManagement'), selectedRowKeys: [], - idList: [] + idList: [], + queryForm: {} } }, methods: { + getData(data) { + this.queryForm = data + this.queryForm = { ...this.queryForm } + if (this.$refs.nonConformanceRef) { + this.$refs.nonConformanceRef.getData(this.queryForm) + } + }, activeKeyChange() { this.$emit('projectStatusForm', this.activeKey) + if (this.activeKey == this.$t('Problemanagement')) { + this.$nextTick(() => { + this.$refs.nonConformanceRef.getData(this.queryForm) + }) + } }, currentStatus(item) { this.$emit('currentStatus', item) diff --git a/jero-web/src/views/projectManagement/projectNonConformance/moudles/addModel.vue b/jero-web/src/views/projectManagement/projectNonConformance/moudles/addModel.vue index 80c0e6529..4bdffcda9 100644 --- a/jero-web/src/views/projectManagement/projectNonConformance/moudles/addModel.vue +++ b/jero-web/src/views/projectManagement/projectNonConformance/moudles/addModel.vue @@ -89,10 +89,50 @@ + + + {{ item.name}} + + + + + + + {{item}} + + + +
- - - - - - - - - - -
+ + + + + + + + + + +
' + ' ' + this.$t('Problemstate') + this.$t('by') + '\'' + this.problemState + '\'' + this.$t('Changeto') + '\'' + value + '\'' + let text = '

' + this.userInfo().username + ' ' + time + '

' + ' ' + this.$t('Problemstate') + this.$t('by') + '\'' + this.problemState + '\'' + this.$t('Changeto') + '\'' + value + '\'' if (JSON.stringify(this.formInline.progressTrackingList[0]) == '{}' || this.formInline.progressTrackingList[0].progressTracking == '') { this.formInline.progressTrackingList.forEach((item, index) => { item.progressTracking = text @@ -681,7 +740,7 @@ ...mapGetters(['userInfo']), add() { this.templateDisabled = false - this.getNameList() + // this.getNameList() this.getFirstLevelDutyTerritory() this.title = this.$t('newlyAdded') this.visible = true @@ -699,8 +758,17 @@ }) }, edit(row) { - console.log(row) - this.getNameList() + this.projectNameList = [] + if (row.projectType == 'model') { + this.getNameList() + if (this.formInline.projectId != null) { + this.formInline.projectId = this.formInline.projectId.split(',') + } else { + this.formInline.projectId = undefined + } + } else if (row.projectType == 'numberPlatform' || row.projectType == 'carPlatform') { + this.getPlatform(row.projectType) + } this.getFirstLevelDutyTerritory() this.title = this.$t('edit') this.problemState = row.problemState @@ -722,11 +790,6 @@ if (this.formInline.fileLinkList == null) { this.formInline.fileLinkList = [{}] } - if (this.formInline.projectId != null) { - this.formInline.projectId = this.formInline.projectId.split(',') - } else { - this.formInline.projectId = undefined - } this.visible = true this.disabled = false this.templateDisabled = true @@ -753,7 +816,7 @@ TrackingModelForm(row) { let time = moment(new Date()).format('YYYY-MM-DD HH:mm:ss') console.log(row) - let text = '

'+this.userInfo().username + ' ' + time +'

' + row + let text = '

' + this.userInfo().username + ' ' + time + '

' + row console.log(text) this.formInline.progressTrackingList.forEach((item, index) => { if (!item.progressTracking) { @@ -807,7 +870,6 @@ }) }, handleSubmit() { - console.log(this.formInline) this.$refs.ruleForm.validate(valid => { if (valid) { this.confirmLoading = true @@ -970,10 +1032,29 @@ putAwayClick() { this.isDescription = !this.isDescription }, - openClick(item){ + openClick(item) { item.isDescription = !item.isDescription - this.formInline = {...this.formInline} + this.formInline = { ...this.formInline } }, + platformChange(value) { + this.projectNameList = [] + this.relatedItemsList = [] + if (value == 'model') { + this.formInline.projectId = [] + this.getNameList() + } else if (value == 'numberPlatform' || value == 'carPlatform') { + this.formInline.projectId = undefined + this.getPlatform(value) + }else{ + this.formInline.projectId = undefined + } + this.formInline = { ...this.formInline } + }, + getPlatform(platform) { + getAction('/project/projectLibraryBase/getPlatform', { platform: platform }).then((res) => { + this.relatedItemsList = res || [] + }) + } } } @@ -985,11 +1066,13 @@ .ant-input-disabled { color: rgba(0, 0, 0, 0.65) !important; } - .text-class{ + + .text-class { color: rgba(0, 0, 0, 0.65); font-weight: bold; } - p{ + + p { margin: 0; padding: 0; } @@ -1117,7 +1200,8 @@ ::v-deep .itemModel-explain .ql-container { height: calc(100% - 100px); } - .text-box{ + + .text-box { width: 100%; height: 200px; display: inline-block; diff --git a/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue b/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue index 5631b0596..995ce517f 100644 --- a/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue +++ b/jero-web/src/views/projectManagement/projectNonConformance/moudles/detilModel.vue @@ -82,14 +82,56 @@
+ + + {{ item.name}} + + + + + :autoClearSearchValue="false" + :placeholder="$t('PleaseSelect')+$t('RelatedItems')"> + + + {{item}} + + + + { + this.relatedItemsList = res || [] + }) } } }