修改平台件项目中条目详情应显示被引用的车型项目列表

This commit is contained in:
范强强
2023-10-24 10:25:41 +08:00
parent 33b8ebdcc3
commit 10e1974a21
@@ -149,12 +149,12 @@
</span> </span>
</a-select-option> </a-select-option>
</a-select> </a-select>
<!-- <j-multi-select-tag class="box-input" v-model="formInline.dutyTerritory"--> <!-- <j-multi-select-tag class="box-input" v-model="formInline.dutyTerritory"-->
<!-- @change="dutyTerritoryChange"--> <!-- @change="dutyTerritoryChange"-->
<!-- :disabled="formInline.roleCodeIndex == 1 ? false : true"--> <!-- :disabled="formInline.roleCodeIndex == 1 ? false : true"-->
<!-- :placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"--> <!-- :placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"-->
<!-- :type="'select'"--> <!-- :type="'select'"-->
<!-- :triggerChange="false" :dictCode="'duty_territory'"/>--> <!-- :triggerChange="false" :dictCode="'duty_territory'"/>-->
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
@@ -167,20 +167,20 @@
<span class="title-text-text" :title="$t('regulatoryEngineer')">{{$t('regulatoryEngineer')}}</span> <span class="title-text-text" :title="$t('regulatoryEngineer')">{{$t('regulatoryEngineer')}}</span>
</div> </div>
<a-form-model-item class="itemModel" :prop="'regulationOwnerIdName'"> <a-form-model-item class="itemModel" :prop="'regulationOwnerIdName'">
<!-- <a-select :placeholder="$t('PleaseSelect')+$t('regulatoryEngineer')"--> <!-- <a-select :placeholder="$t('PleaseSelect')+$t('regulatoryEngineer')"-->
<!-- class="box-input"--> <!-- class="box-input"-->
<!-- :disabled="formInline.roleCodeIndex == 1 ? false : true"--> <!-- :disabled="formInline.roleCodeIndex == 1 ? false : true"-->
<!-- :getPopupContainer="triggerNode=> triggerNode.parentNode"--> <!-- :getPopupContainer="triggerNode=> triggerNode.parentNode"-->
<!-- allowClear--> <!-- allowClear-->
<!-- v-model="formInline.regulationOwnerId">--> <!-- v-model="formInline.regulationOwnerId">-->
<!-- <a-select-option v-for="(item, key) in regulatoryEngineerList"--> <!-- <a-select-option v-for="(item, key) in regulatoryEngineerList"-->
<!-- :key="key"--> <!-- :key="key"-->
<!-- :value="item.value">--> <!-- :value="item.value">-->
<!-- <span style="display: inline-block;width: 100%" :title=" item.name">--> <!-- <span style="display: inline-block;width: 100%" :title=" item.name">-->
<!-- {{ item.name }}--> <!-- {{ item.name }}-->
<!-- </span>--> <!-- </span>-->
<!-- </a-select-option>--> <!-- </a-select-option>-->
<!-- </a-select>--> <!-- </a-select>-->
<PersonnelSelection :query="{db_field_name:'regulationOwnerId',db_field_txt:$t('regulatoryEngineer')}" <PersonnelSelection :query="{db_field_name:'regulationOwnerId',db_field_txt:$t('regulatoryEngineer')}"
:isSingleChoice="true" :isSingleChoice="true"
:personneQuery="formInline" :personneQuery="formInline"
@@ -198,26 +198,27 @@
<span class="title-text-text" :title="$t('engineeringInterfacePerson')">{{$t('engineeringInterfacePerson')}}</span> <span class="title-text-text" :title="$t('engineeringInterfacePerson')">{{$t('engineeringInterfacePerson')}}</span>
</div> </div>
<a-form-model-item class="itemModel" :prop="'engineeringInterfacePersonName'"> <a-form-model-item class="itemModel" :prop="'engineeringInterfacePersonName'">
<!-- <a-select :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')"--> <!-- <a-select :placeholder="$t('PleaseSelect')+$t('engineeringInterfacePerson')"-->
<!-- class="box-input"--> <!-- class="box-input"-->
<!-- allowClear--> <!-- allowClear-->
<!-- :getPopupContainer="triggerNode=> triggerNode.parentNode"--> <!-- :getPopupContainer="triggerNode=> triggerNode.parentNode"-->
<!-- v-model="formInline.engineeringInterfacePerson">--> <!-- v-model="formInline.engineeringInterfacePerson">-->
<!-- <a-select-option v-for="(item, key) in engineeringInterfacePersonList"--> <!-- <a-select-option v-for="(item, key) in engineeringInterfacePersonList"-->
<!-- :key="key"--> <!-- :key="key"-->
<!-- :value="item.value">--> <!-- :value="item.value">-->
<!-- <span style="display: inline-block;width: 100%" :title=" item.name ">--> <!-- <span style="display: inline-block;width: 100%" :title=" item.name ">-->
<!-- {{ item.name }}--> <!-- {{ item.name }}-->
<!-- </span>--> <!-- </span>-->
<!-- </a-select-option>--> <!-- </a-select-option>-->
<!-- </a-select>--> <!-- </a-select>-->
<PersonnelSelection :query="{db_field_name:'engineeringInterfacePerson',db_field_txt:$t('engineeringInterfacePerson')}" <PersonnelSelection
:isSingleChoice="true" :query="{db_field_name:'engineeringInterfacePerson',db_field_txt:$t('engineeringInterfacePerson')}"
:personneQuery="formInline" :isSingleChoice="true"
v-if="visible" :personneQuery="formInline"
:disabled="isEdit(this.formInline)" v-if="visible"
@change="PersonnelSelectionChange" :disabled="isEdit(this.formInline)"
v-model="formInline.engineeringInterfacePersonName"/> @change="PersonnelSelectionChange"
v-model="formInline.engineeringInterfacePersonName"/>
</a-form-model-item> </a-form-model-item>
</div> </div>
</a-col> </a-col>
@@ -589,6 +590,25 @@
</a-col> </a-col>
</a-row> </a-row>
</div> </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-form-model>
</a-spin> </a-spin>
<div class="drawer-bootom-button"> <div class="drawer-bootom-button">
@@ -606,12 +626,14 @@
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 { getAction, postAction, putAction } from '@/api/manage'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
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'
export default { export default {
name: 'listEditModel', name: 'listEditModel',
mixins: [ResizeHeader, ResizeColumnProvide],
components: { components: {
Standardselection, Standardselection,
PersonnelSelection, PersonnelSelection,
@@ -621,6 +643,53 @@
data() { data() {
return { return {
visible: false, visible: false,
dataList: [],
selectedRowKeys: [],
loading: false,
columns: [
{
title: this.$t('entryName'),
dataIndex: 'projectName',
align: 'left',
ellipsis: true,
width: 120
},
{
title: this.$t('design') + this.$t('typeOfDeliverables'),
dataIndex: 'designDeliverableTypeName',
align: 'left',
ellipsis: true,
width: 180
},
{
title: this.$t('design') + this.$t('deliverableTemplate'),
align: 'left',
width: 180,
ellipsis: true,
dataIndex: 'designDeliverableTemplateName'
},
{
title: this.$t('verify') + this.$t('typeOfDeliverables'),
dataIndex: 'verifyDeliverableTypeName',
align: 'left',
ellipsis: true,
width: 200
},
{
title: this.$t('verify') + this.$t('deliverableTemplate'),
dataIndex: 'verifyDeliverableTemplateName',
align: 'left',
ellipsis: true,
width: 200
}
// {
// title: this.$t('operation'),
// align: 'left',
// fixed: 'right',
// width: 130,
// scopedSlots: { customRender: 'operation' }
// }
],
confirmLoading: false, confirmLoading: false,
rejectCauseListOne: [], rejectCauseListOne: [],
firstLevelDutyTerritoryList: [], firstLevelDutyTerritoryList: [],
@@ -761,6 +830,9 @@
this.userInfoQuery = this.userInfo() this.userInfoQuery = this.userInfo()
}, },
methods: { methods: {
onSelectChange(value) {
this.selectedRowKeys = value
},
getFirstLevelDutyTerritory() { getFirstLevelDutyTerritory() {
getAction('/sys/dictItem/getFirstLevelDutyTerritory', {}).then((res) => { getAction('/sys/dictItem/getFirstLevelDutyTerritory', {}).then((res) => {
if (res.success) { if (res.success) {
@@ -928,6 +1000,7 @@
this.verifyDutyList = [] this.verifyDutyList = []
this.prehomoDutyList = [] this.prehomoDutyList = []
this.getDeliverableTree() this.getDeliverableTree()
this.getQueryQuoteList(item)
item.designDeliverableType = item.designDeliverableType ? item.designDeliverableType.split(',') : [] item.designDeliverableType = item.designDeliverableType ? item.designDeliverableType.split(',') : []
item.prehomoDeliverableType = item.prehomoDeliverableType ? item.prehomoDeliverableType.split(',') : [] item.prehomoDeliverableType = item.prehomoDeliverableType ? item.prehomoDeliverableType.split(',') : []
item.verifyDeliverableType = item.verifyDeliverableType ? item.verifyDeliverableType.split(',') : [] item.verifyDeliverableType = item.verifyDeliverableType ? item.verifyDeliverableType.split(',') : []
@@ -940,15 +1013,24 @@
// if (item.dutyTerritory && item.dutyTerritory.length > 0) { // if (item.dutyTerritory && item.dutyTerritory.length > 0) {
// this.queryPersonByProject(item) // this.queryPersonByProject(item)
// } else { // } else {
this.formInline = item this.formInline = item
this.formInline = { ...this.formInline } this.formInline = { ...this.formInline }
// } // }
console.log(this.formInline)
console.log(this.formInline.dutyTerritory)
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.ruleForm.clearValidate() this.$refs.ruleForm.clearValidate()
}) })
}, },
getQueryQuoteList(item) {
console.log(item)
getAction('/platform/projectLibraryBase/queryQuoteList', { platformLawsInventoryId: item.id }).then((res) => {
if (res.success) {
this.dataList = res.result || []
console.log(this.dataList)
} else {
this.dataList = []
}
})
},
clickButtonToUpload(item) { clickButtonToUpload(item) {
let isTrue = false let isTrue = false
if (item == 'designDeliverableTemplate') { if (item == 'designDeliverableTemplate') {