平台件项目库 法规清单关联平台件编辑

This commit is contained in:
zyx.net
2023-09-20 13:43:49 +08:00
parent 4d3ddee406
commit acee333cc8
3 changed files with 96 additions and 4 deletions
+1
View File
@@ -1975,4 +1975,5 @@ module.exports = {
Associatedplatform:'Associated platform',
associatedItem:'There are multiple matching items in the platform item. Please select the associated item',
unpublishedregulationsselected:'Only unpublished regulations can be selected',
PlatformInformation:'Platform Information',
}
+1
View File
@@ -3931,4 +3931,5 @@ module.exports = {
Associatedplatform:'关联平台件',
associatedItem:'在平台件项目中包含多条匹配内容请选择关联项',
unpublishedregulationsselected:'仅能选择未发布的法规',
PlatformInformation:'平台件信息',
}
@@ -575,6 +575,26 @@
</a-col>
</a-row>
</div>
<div class="header-text" v-if='dataList && dataList.length > 0'>
&nbsp;{{$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-spin>
<div class="drawer-bootom-button">
@@ -591,7 +611,8 @@
<script>
import Standardselection from '@/components/Standardselection/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 moment from 'moment'
import { mapGetters } from 'vuex'
@@ -603,13 +624,66 @@
PersonnelSelection,
uploadFile
},
mixins: [ResizeHeader, ResizeColumnProvide],
props: ['url'],
data() {
return {
visible: false,
confirmLoading: false,
loading: false,
rejectCauseListOne: [],
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: {
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) {
// if (val.designFlowStatus == 'Task to be confirmed' || val.designFlowStatus == 'Results to be submitted' ||
// val.designFlowStatus == 'Results to be reviewed') {
@@ -764,7 +845,11 @@
// return false
// }
if (val.roleCodeIndex == '0' || val.roleCodeIndex == '1') {
return false
if(this.dataList && this.dataList.length > 0) {
return true
}else{
return false
}
} else {
return true
}
@@ -777,8 +862,12 @@
// return false
// }
if (val.roleCodeIndex == '0' || val.roleCodeIndex == '1') {
return false
} else {
if(this.dataList && this.dataList.length > 0) {
return true
}else{
return false
}
} else{
return true
}
},
@@ -921,6 +1010,7 @@
item.verifyDeliverableType = item.verifyDeliverableType ? item.verifyDeliverableType.split(',') : []
item.dutyDepart = item.dutyDepart ? item.dutyDepart.split(',') : []
item.dutyTerritory = item.dutyTerritory ? item.dutyTerritory.split(',') : []
this.dataList = item.projectLawsInventoryEOS ? item.projectLawsInventoryEOS :[]
this.getRejectCause(item.id)
if (item.dutyDepart && item.dutyDepart.length > 0) {
this.getDutyTerritory(item.dutyDepart.join(','))