平台件项目库 法规清单关联平台件编辑
This commit is contained in:
@@ -1975,4 +1975,5 @@ module.exports = {
|
|||||||
Associatedplatform:'Associated platform',
|
Associatedplatform:'Associated platform',
|
||||||
associatedItem:'There are multiple matching items in the platform item. Please select the associated item',
|
associatedItem:'There are multiple matching items in the platform item. Please select the associated item',
|
||||||
unpublishedregulationsselected:'Only unpublished regulations can be selected',
|
unpublishedregulationsselected:'Only unpublished regulations can be selected',
|
||||||
|
PlatformInformation:'Platform Information',
|
||||||
}
|
}
|
||||||
@@ -3931,4 +3931,5 @@ module.exports = {
|
|||||||
Associatedplatform:'关联平台件',
|
Associatedplatform:'关联平台件',
|
||||||
associatedItem:'在平台件项目中包含多条匹配内容,请选择关联项',
|
associatedItem:'在平台件项目中包含多条匹配内容,请选择关联项',
|
||||||
unpublishedregulationsselected:'仅能选择未发布的法规',
|
unpublishedregulationsselected:'仅能选择未发布的法规',
|
||||||
|
PlatformInformation:'平台件信息',
|
||||||
}
|
}
|
||||||
@@ -575,6 +575,26 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="header-text" v-if='dataList && dataList.length > 0'>
|
||||||
|
{{$t('PlatformInformation')}}
|
||||||
|
</div>
|
||||||
|
<a-table
|
||||||
|
v-if='dataList && dataList.length > 0'
|
||||||
|
:components="drag(columns,'columns')"
|
||||||
|
:columns="columns"
|
||||||
|
rowKey="id"
|
||||||
|
:scroll="{x: 1000}"
|
||||||
|
:data-source="dataList"
|
||||||
|
:pagination="false"
|
||||||
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange,columnTitle:'' }"
|
||||||
|
:loading="loading">
|
||||||
|
|
||||||
|
<span slot="operation" slot-scope="record" class="operate">
|
||||||
|
<a class="text-operation"
|
||||||
|
@click="disassociate(record)">{{$t('disassociate')}}</a>
|
||||||
|
</span>
|
||||||
|
</a-table>
|
||||||
</a-form-model>
|
</a-form-model>
|
||||||
</a-spin>
|
</a-spin>
|
||||||
<div class="drawer-bootom-button">
|
<div class="drawer-bootom-button">
|
||||||
@@ -591,7 +611,8 @@
|
|||||||
<script>
|
<script>
|
||||||
import Standardselection from '@/components/Standardselection/index'
|
import Standardselection from '@/components/Standardselection/index'
|
||||||
import PersonnelSelection from '@/components/PersonnelSelection/index'
|
import PersonnelSelection from '@/components/PersonnelSelection/index'
|
||||||
import { getAction, postAction, putAction } from '@/api/manage'
|
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
|
||||||
|
import { getAction, postAction, putAction, deleteAction } from '@/api/manage'
|
||||||
import uploadFile from '@/components/uploadFile/file'
|
import uploadFile from '@/components/uploadFile/file'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
@@ -603,13 +624,66 @@
|
|||||||
PersonnelSelection,
|
PersonnelSelection,
|
||||||
uploadFile
|
uploadFile
|
||||||
},
|
},
|
||||||
|
mixins: [ResizeHeader, ResizeColumnProvide],
|
||||||
props: ['url'],
|
props: ['url'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
visible: false,
|
visible: false,
|
||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
|
loading: false,
|
||||||
rejectCauseListOne: [],
|
rejectCauseListOne: [],
|
||||||
firstLevelDutyTerritoryList: [],
|
firstLevelDutyTerritoryList: [],
|
||||||
|
selectedRowKeys: [],
|
||||||
|
dataList: [],
|
||||||
|
columns: [
|
||||||
|
{
|
||||||
|
title: this.$t('entryName'),
|
||||||
|
dataIndex: 'projectNameId',
|
||||||
|
align: 'left',
|
||||||
|
ellipsis: true,
|
||||||
|
sorter:true,
|
||||||
|
width: 120
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('design')+ this.$t('typeOfDeliverables'),
|
||||||
|
dataIndex: 'designDeliverableTypeName',
|
||||||
|
align: 'left',
|
||||||
|
ellipsis: true,
|
||||||
|
sorter:true,
|
||||||
|
width: 180
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('design')+ this.$t('deliverableTemplate'),
|
||||||
|
align: 'left',
|
||||||
|
width: 180,
|
||||||
|
sorter:true,
|
||||||
|
ellipsis: true,
|
||||||
|
dataIndex: 'designDeliverableTemplate'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('verify')+ this.$t('typeOfDeliverables'),
|
||||||
|
dataIndex: 'verifyDeliverableTypeName',
|
||||||
|
align: 'left',
|
||||||
|
ellipsis: true,
|
||||||
|
sorter:true,
|
||||||
|
width: 180
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('verify')+ this.$t('deliverableTemplate'),
|
||||||
|
dataIndex: 'verifyDeliverableTemplate',
|
||||||
|
align: 'left',
|
||||||
|
ellipsis: true,
|
||||||
|
sorter:true,
|
||||||
|
width: 180
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('operation'),
|
||||||
|
align: 'left',
|
||||||
|
fixed: 'right',
|
||||||
|
width: 110,
|
||||||
|
scopedSlots: { customRender: 'operation' }
|
||||||
|
}
|
||||||
|
],
|
||||||
rules: {
|
rules: {
|
||||||
attestationRank: [
|
attestationRank: [
|
||||||
{
|
{
|
||||||
@@ -756,6 +830,13 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
onSelectChange(value) {
|
||||||
|
this.selectedRowKeys = value
|
||||||
|
},
|
||||||
|
disassociate(val){
|
||||||
|
this.dataList = this.dataList.splice(val.id, 1)
|
||||||
|
console.log(this.dataList)
|
||||||
|
},
|
||||||
isEdit(val) {
|
isEdit(val) {
|
||||||
// if (val.designFlowStatus == 'Task to be confirmed' || val.designFlowStatus == 'Results to be submitted' ||
|
// if (val.designFlowStatus == 'Task to be confirmed' || val.designFlowStatus == 'Results to be submitted' ||
|
||||||
// val.designFlowStatus == 'Results to be reviewed') {
|
// val.designFlowStatus == 'Results to be reviewed') {
|
||||||
@@ -764,7 +845,11 @@
|
|||||||
// return false
|
// return false
|
||||||
// }
|
// }
|
||||||
if (val.roleCodeIndex == '0' || val.roleCodeIndex == '1') {
|
if (val.roleCodeIndex == '0' || val.roleCodeIndex == '1') {
|
||||||
return false
|
if(this.dataList && this.dataList.length > 0) {
|
||||||
|
return true
|
||||||
|
}else{
|
||||||
|
return false
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
@@ -777,8 +862,12 @@
|
|||||||
// return false
|
// return false
|
||||||
// }
|
// }
|
||||||
if (val.roleCodeIndex == '0' || val.roleCodeIndex == '1') {
|
if (val.roleCodeIndex == '0' || val.roleCodeIndex == '1') {
|
||||||
return false
|
if(this.dataList && this.dataList.length > 0) {
|
||||||
} else {
|
return true
|
||||||
|
}else{
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
} else{
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -921,6 +1010,7 @@
|
|||||||
item.verifyDeliverableType = item.verifyDeliverableType ? item.verifyDeliverableType.split(',') : []
|
item.verifyDeliverableType = item.verifyDeliverableType ? item.verifyDeliverableType.split(',') : []
|
||||||
item.dutyDepart = item.dutyDepart ? item.dutyDepart.split(',') : []
|
item.dutyDepart = item.dutyDepart ? item.dutyDepart.split(',') : []
|
||||||
item.dutyTerritory = item.dutyTerritory ? item.dutyTerritory.split(',') : []
|
item.dutyTerritory = item.dutyTerritory ? item.dutyTerritory.split(',') : []
|
||||||
|
this.dataList = item.projectLawsInventoryEOS ? item.projectLawsInventoryEOS :[]
|
||||||
this.getRejectCause(item.id)
|
this.getRejectCause(item.id)
|
||||||
if (item.dutyDepart && item.dutyDepart.length > 0) {
|
if (item.dutyDepart && item.dutyDepart.length > 0) {
|
||||||
this.getDutyTerritory(item.dutyDepart.join(','))
|
this.getDutyTerritory(item.dutyDepart.join(','))
|
||||||
|
|||||||
Reference in New Issue
Block a user