RXSWIN页面布局
This commit is contained in:
@@ -1955,4 +1955,6 @@ module.exports = {
|
|||||||
Reasonforreturn:'Reason for return',
|
Reasonforreturn:'Reason for return',
|
||||||
maintenanceTemplate:'Maintenance template',
|
maintenanceTemplate:'Maintenance template',
|
||||||
UserFeedback:'User Feedback',
|
UserFeedback:'User Feedback',
|
||||||
|
Correspondingversion:'Corresponding version',
|
||||||
|
Listcreationtime:'List creation time',
|
||||||
}
|
}
|
||||||
@@ -3911,4 +3911,6 @@ module.exports = {
|
|||||||
Modifyremarks:'修改备注',
|
Modifyremarks:'修改备注',
|
||||||
Reasonforreturn:'退回原因',
|
Reasonforreturn:'退回原因',
|
||||||
UserFeedback:'用户反馈',
|
UserFeedback:'用户反馈',
|
||||||
|
Correspondingversion:'对应版本',
|
||||||
|
Listcreationtime:'清单创建时间',
|
||||||
}
|
}
|
||||||
@@ -69,13 +69,23 @@
|
|||||||
<span class="text-field-right" :title="queryForm.vehiclePlatform"
|
<span class="text-field-right" :title="queryForm.vehiclePlatform"
|
||||||
>{{queryForm.vehiclePlatform}}</span>
|
>{{queryForm.vehiclePlatform}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="text-field">
|
||||||
|
<span class="text-field-left" :title="'RXSWIN'">RXSWIN</span>
|
||||||
|
<span class="text-field-right text-field-right-color" :title="RXSWIN"
|
||||||
|
>
|
||||||
|
<span v-has="'projectRelatedPersonnel:page'"
|
||||||
|
@click="rxswinClick">
|
||||||
|
<a-icon type="eye"/>RXSWIN{{$t('detailedList')}}
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="content-text">
|
||||||
<div class="text-field">
|
<div class="text-field">
|
||||||
<span class="text-field-left" :title="$t('softwareVersion')">{{$t('softwareVersion')}}</span>
|
<span class="text-field-left" :title="$t('softwareVersion')">{{$t('softwareVersion')}}</span>
|
||||||
<span class="text-field-right" :title="queryForm.softwareVersion"
|
<span class="text-field-right" :title="queryForm.softwareVersion"
|
||||||
>{{queryForm.softwareVersion}}</span>
|
>{{queryForm.softwareVersion}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="content-text">
|
|
||||||
<div class="text-field">
|
<div class="text-field">
|
||||||
<span class="text-field-left" :title="$t('dehicleDevelopmentPlan')">{{$t('dehicleDevelopmentPlan')}}</span>
|
<span class="text-field-left" :title="$t('dehicleDevelopmentPlan')">{{$t('dehicleDevelopmentPlan')}}</span>
|
||||||
<span class="text-field-right text-field-right-color"
|
<span class="text-field-right text-field-right-color"
|
||||||
@@ -90,6 +100,15 @@
|
|||||||
@click="urlClick(queryForm.attestationPlan)"
|
@click="urlClick(queryForm.attestationPlan)"
|
||||||
>{{queryForm.attestationPlan}}</span>
|
>{{queryForm.attestationPlan}}</span>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- <div class="text-field">-->
|
||||||
|
<!-- <span class="text-field-left" :title="$t('configurationInformation')">{{$t('configurationInformation')}}</span>-->
|
||||||
|
<!-- <span class="text-field-right text-field-right-color"-->
|
||||||
|
<!-- :title="queryForm.ipdInfo"-->
|
||||||
|
<!-- @click="urlClick(queryForm.ipdInfo)"-->
|
||||||
|
<!-- >{{queryForm.ipdInfo}}</span>-->
|
||||||
|
<!-- </div>-->
|
||||||
|
</div>
|
||||||
|
<div class="content-text">
|
||||||
<div class="text-field">
|
<div class="text-field">
|
||||||
<span class="text-field-left" :title="$t('configurationInformation')">{{$t('configurationInformation')}}</span>
|
<span class="text-field-left" :title="$t('configurationInformation')">{{$t('configurationInformation')}}</span>
|
||||||
<span class="text-field-right text-field-right-color"
|
<span class="text-field-right text-field-right-color"
|
||||||
@@ -97,9 +116,7 @@
|
|||||||
@click="urlClick(queryForm.ipdInfo)"
|
@click="urlClick(queryForm.ipdInfo)"
|
||||||
>{{queryForm.ipdInfo}}</span>
|
>{{queryForm.ipdInfo}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="text-field">
|
||||||
<div class="content-text">
|
|
||||||
<div class="text-field-content">
|
|
||||||
<span class="text-field-left" :title="$t('explain')">{{$t('explain')}}</span>
|
<span class="text-field-left" :title="$t('explain')">{{$t('explain')}}</span>
|
||||||
<span class="text-field-right" :title="queryForm.explanation"
|
<span class="text-field-right" :title="queryForm.explanation"
|
||||||
>{{queryForm.explanation}}</span>
|
>{{queryForm.explanation}}</span>
|
||||||
@@ -153,6 +170,7 @@
|
|||||||
@projectStatusForm="projectStatusForm"/>
|
@projectStatusForm="projectStatusForm"/>
|
||||||
<versionStatistics ref="versionStatisticsRef" @versionStatisticsForm="versionStatisticsForm"/>
|
<versionStatistics ref="versionStatisticsRef" @versionStatisticsForm="versionStatisticsForm"/>
|
||||||
<listOfRelevantPersonnel ref="listOfRelevantPersonnelRef"/>
|
<listOfRelevantPersonnel ref="listOfRelevantPersonnelRef"/>
|
||||||
|
<rxswinModel ref="rxswinModelRef"/>
|
||||||
<addModel :url="url" ref="addModelRef" @addModelList="addModelList"/>
|
<addModel :url="url" ref="addModelRef" @addModelList="addModelList"/>
|
||||||
<settingList :url="url" ref="settingListRef" @settingListForm="settingListForm"/>
|
<settingList :url="url" ref="settingListRef" @settingListForm="settingListForm"/>
|
||||||
</div>
|
</div>
|
||||||
@@ -161,6 +179,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import * as echarts from 'echarts'
|
import * as echarts from 'echarts'
|
||||||
import listOfRelevantPersonnel from './listOfRelevantPersonnel'
|
import listOfRelevantPersonnel from './listOfRelevantPersonnel'
|
||||||
|
import rxswinModel from './rxswinModel'
|
||||||
import { getAction, postAction, downloadFile, putAction } from '@/api/manage'
|
import { getAction, postAction, downloadFile, putAction } from '@/api/manage'
|
||||||
import addModel from './addModel'
|
import addModel from './addModel'
|
||||||
import versionStatistics from './versionStatistics'
|
import versionStatistics from './versionStatistics'
|
||||||
@@ -173,6 +192,7 @@
|
|||||||
name: 'ProjectDetails',
|
name: 'ProjectDetails',
|
||||||
components: {
|
components: {
|
||||||
listOfRelevantPersonnel,
|
listOfRelevantPersonnel,
|
||||||
|
rxswinModel,
|
||||||
addModel,
|
addModel,
|
||||||
settingList,
|
settingList,
|
||||||
projectStatus,
|
projectStatus,
|
||||||
@@ -237,6 +257,9 @@
|
|||||||
ListOfRelevantPersonnelClick() {
|
ListOfRelevantPersonnelClick() {
|
||||||
this.$refs.listOfRelevantPersonnelRef.getData()
|
this.$refs.listOfRelevantPersonnelRef.getData()
|
||||||
},
|
},
|
||||||
|
rxswinClick(){
|
||||||
|
this.$refs.rxswinModelRef.getData()
|
||||||
|
},
|
||||||
urlClick(val) {
|
urlClick(val) {
|
||||||
if (val) {
|
if (val) {
|
||||||
window.open(val)
|
window.open(val)
|
||||||
|
|||||||
@@ -0,0 +1,674 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<a-drawer
|
||||||
|
:title="'RXSWIN'"
|
||||||
|
:width="1280"
|
||||||
|
:visible="visible"
|
||||||
|
:maskClosable="false"
|
||||||
|
@close="handleCancel"
|
||||||
|
>
|
||||||
|
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :md="12" :sm="8">
|
||||||
|
<div class="box-title-text-search">
|
||||||
|
<div class="title-text-search" :title="$t('standard')">
|
||||||
|
<span>{{$t('standard')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-input class="box-input-search" :placeholder="$t('PleaseEnter') + $t('standard')"
|
||||||
|
v-model="queryParam.vdr"></a-input>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
|
||||||
|
<template v-if="toggleSearchStatus">
|
||||||
|
<a-col :md="12" :sm="8">
|
||||||
|
<div class="box-title-text-search">
|
||||||
|
<div class="title-text-search" :title="$t('theme')">
|
||||||
|
<span>{{$t('theme')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-input class="box-input-search" :placeholder="$t('PleaseEnter') + $t('theme')"
|
||||||
|
v-model="queryParam.vdr"></a-input>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :md="12" :sm="8">
|
||||||
|
<div class="box-title-text-search">
|
||||||
|
<div class="title-text-search" :title="'RXSWIN'">
|
||||||
|
<span>RXSWIN</span>
|
||||||
|
</div>
|
||||||
|
<a-input class="box-input-search" :placeholder="$t('PleaseEnter') + 'RXSWIN'"
|
||||||
|
v-model="queryParam.vdr"></a-input>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :md="12" :sm="8">
|
||||||
|
<div class="box-title-text-search">
|
||||||
|
<div class="title-text-search" :title="$t('Correspondingversion')">
|
||||||
|
<span>{{$t('Correspondingversion')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-select :placeholder="$t('PleaseSelect')+$t('Correspondingversion')"
|
||||||
|
allowClear
|
||||||
|
show-search
|
||||||
|
class="box-input-search"
|
||||||
|
optionFilterProp="label"
|
||||||
|
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||||
|
v-model="queryParam.firstLevelDutyTerritory">
|
||||||
|
<a-select-option v-for="(item, key) in firstLevelDutyTerritoryList"
|
||||||
|
:key="key"
|
||||||
|
:label="item.key"
|
||||||
|
:value="item.key">
|
||||||
|
<span style="display: inline-block;width: 100%" :title=" item.key ">
|
||||||
|
{{ item.key }}
|
||||||
|
</span>
|
||||||
|
</a-select-option>
|
||||||
|
</a-select>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</template>
|
||||||
|
<span style="float: right;overflow: hidden;margin-right: 11px;margin-bottom: 20px"
|
||||||
|
class="table-page-search-submitButtons">
|
||||||
|
<a @click="handleToggleSearch">
|
||||||
|
{{ !toggleSearchStatus ? $t('open') : $t('away') }}
|
||||||
|
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
|
||||||
|
</a>
|
||||||
|
<a-button class="box-button-search" style="margin-left: 8px"
|
||||||
|
@click="searchReset">{{$t('reset')}}</a-button>
|
||||||
|
<a-button class="box-button-search" style="margin-left: 8px" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
|
||||||
|
</span>
|
||||||
|
</a-row>
|
||||||
|
</a-form>
|
||||||
|
<div class="table-operator">
|
||||||
|
<div class="operator-text" @click="handleAdd" v-has="'dict:add'">
|
||||||
|
<a-icon type="plus"/>
|
||||||
|
{{$t('newlyAdded')}}
|
||||||
|
</div>
|
||||||
|
<div @click="handleModule" v-has="'projectRelatedPersonnel:exportTemplate'" class="operator-text">
|
||||||
|
<a-icon type="download"/>
|
||||||
|
{{$t('templateDownload')}}
|
||||||
|
</div>
|
||||||
|
<div @click="handleExport" v-has="'projectRelatedPersonnel:exportXls'" class="operator-text">
|
||||||
|
<a-icon type="export" :rotate="-90"/>
|
||||||
|
{{$t('export')}}
|
||||||
|
</div>
|
||||||
|
<div class="operator-text"
|
||||||
|
v-has="'projectRelatedPersonnel:importExcel'">
|
||||||
|
<ImportFile :url="url" :projectId="$route.query.id" :isTrue="true" :accept="'.xls'"
|
||||||
|
@getList="getPersonnelList"/>
|
||||||
|
</div>
|
||||||
|
<div class="operator-text"
|
||||||
|
@click="batDeleteClick"
|
||||||
|
v-has="'projectRelatedPersonnel:setting'">
|
||||||
|
<a-icon type="delete"/>
|
||||||
|
{{$t('BatchDelete')}}
|
||||||
|
</div>
|
||||||
|
<!-- 调取-->
|
||||||
|
<div @click="transferClick"
|
||||||
|
v-has="'dummyInventoryInfo:copyInfoByIds'"
|
||||||
|
class="operator-text">
|
||||||
|
<a-icon type="profile"/>
|
||||||
|
{{$t('Transfer')}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- rowKey="id"
|
||||||
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"-->
|
||||||
|
<a-table
|
||||||
|
class="table"
|
||||||
|
:components="drag(columns,'columns')"
|
||||||
|
:columns="columns"
|
||||||
|
rowKey="id"
|
||||||
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||||
|
@change="tableOnChange"
|
||||||
|
:pagination="false"
|
||||||
|
:scroll="{x:800,y: 500}"
|
||||||
|
:data-source="dataSource"
|
||||||
|
:loading="loading"
|
||||||
|
>
|
||||||
|
<span slot="operation" slot-scope="record">
|
||||||
|
<a class="text" v-has="'projectRelatedPersonnel:edit'" @click="edit(record)">
|
||||||
|
{{$t('edit')}}
|
||||||
|
</a>
|
||||||
|
<a class="text" v-has="'projectRelatedPersonnel:edit'" @click="del(record)">
|
||||||
|
{{$t('delete')}}
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
|
</a-table>
|
||||||
|
<!-- <div class="page">-->
|
||||||
|
<!-- <a-pagination-->
|
||||||
|
<!-- :show-total="total => $t('total')+` ${total} `+$t('strip')"-->
|
||||||
|
<!-- show-quick-jumper-->
|
||||||
|
<!-- show-size-changer-->
|
||||||
|
<!-- :page-size.sync="pageSize"-->
|
||||||
|
<!-- :total="total"-->
|
||||||
|
<!-- @change="pageOnChange"-->
|
||||||
|
<!-- @showSizeChange="SizeChange"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </div>-->
|
||||||
|
<div class="drawer-bootom-button">
|
||||||
|
<a-button style="margin-right: 8px" @click="handleCancel">{{$t('cancel')}}</a-button>
|
||||||
|
<a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('determine')}}</a-button>
|
||||||
|
</div>
|
||||||
|
</a-drawer>
|
||||||
|
<!-- 新增编辑-->
|
||||||
|
<a-modal
|
||||||
|
:title="title"
|
||||||
|
:width="600"
|
||||||
|
:visible="editVisible"
|
||||||
|
:maskClosable="false"
|
||||||
|
@ok="editOk"
|
||||||
|
@cancel="editVisible = false"
|
||||||
|
>
|
||||||
|
<a-spin :spinning="confirmLoading">
|
||||||
|
<a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="24">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="Required">*</span>
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('standard')">{{$t('standard')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="standard">
|
||||||
|
<Standardselection
|
||||||
|
:query="{'db_field_txt':$t('standard')}"
|
||||||
|
:standard="formInline"
|
||||||
|
:disabled="false"
|
||||||
|
v-model="formInline.dutyTerritory"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="24">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text" :title="$t('theme')">
|
||||||
|
<span class="Required">*</span>
|
||||||
|
<span class="title-text-text">{{$t('theme')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="theme">
|
||||||
|
<a-input class="box-input" :placeholder="$t('PleaseEnter') + $t('theme')"
|
||||||
|
v-model="queryParam.theme" :maxLength="100"></a-input>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="24">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text" :title="'RXSWIN'">
|
||||||
|
<span class="Required">*</span>
|
||||||
|
<span class="title-text-text">RXSWIN</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="RXSWIN">
|
||||||
|
<a-input class="box-input" :placeholder="$t('PleaseEnter') + 'RXSWIN'"
|
||||||
|
v-model="queryParam.RXSWIN" :maxLength="100"></a-input>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-form-model>
|
||||||
|
</a-spin>
|
||||||
|
</a-modal>
|
||||||
|
<transferList :url="url" @transferListForm="transferListForm" ref="transferListRef"/>
|
||||||
|
<transferListvirtal :url="url" @transferListFormHomo="transferListFormHomo" ref="transferListvirtalRef"/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import PersonnelSelection from '@/components/PersonnelSelection/index'
|
||||||
|
import SelectedBy from '@/components/SelectedBy/index'
|
||||||
|
import personBatting from './personBatting'
|
||||||
|
import Standardselection from '@/components/Standardselection/index'
|
||||||
|
import { getAction, postAction, downloadFile, putAction } from '@/api/manage'
|
||||||
|
import ImportFile from '@/components/ImportFile/index'
|
||||||
|
import transferList from './transferListRxswin'
|
||||||
|
import transferListvirtal from './transferListvirtalRxswin'
|
||||||
|
import { mapGetters } from 'vuex'
|
||||||
|
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
|
||||||
|
import { deleteAction } from '../../../api/manage'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'listOfRelevantPersonnel',
|
||||||
|
components: {
|
||||||
|
PersonnelSelection,
|
||||||
|
Standardselection,
|
||||||
|
transferList,
|
||||||
|
transferListvirtal,
|
||||||
|
ImportFile,
|
||||||
|
personBatting,
|
||||||
|
SelectedBy
|
||||||
|
},
|
||||||
|
mixins: [ResizeHeader, ResizeColumnProvide],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
toggleSearchStatus: false,
|
||||||
|
firstLevelDutyTerritoryList:[],
|
||||||
|
visible: false,
|
||||||
|
queryParam: {},
|
||||||
|
title:'',
|
||||||
|
selectVisible: false,
|
||||||
|
submitLoading: false,
|
||||||
|
selectLoading: false,
|
||||||
|
columns: [
|
||||||
|
{
|
||||||
|
title: this.$t('standard'),
|
||||||
|
align: 'left',
|
||||||
|
dataIndex: 'standard',
|
||||||
|
ellipsis: true,
|
||||||
|
sorter:true,
|
||||||
|
width: 170
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('theme'),
|
||||||
|
align: 'left',
|
||||||
|
dataIndex: 'theme',
|
||||||
|
ellipsis: true,
|
||||||
|
sorter:true,
|
||||||
|
width: 300
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'RXSWIN',
|
||||||
|
align: 'left',
|
||||||
|
dataIndex: 'RXSWIN',
|
||||||
|
ellipsis: true,
|
||||||
|
sorter:true,
|
||||||
|
width: 170
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('Correspondingversion'),
|
||||||
|
align: 'left',
|
||||||
|
dataIndex: 'Correspondingversion',
|
||||||
|
ellipsis: true,
|
||||||
|
sorter:true,
|
||||||
|
width: 170
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('operation'),
|
||||||
|
align: 'left',
|
||||||
|
width: 110,
|
||||||
|
fixed: 'right',
|
||||||
|
scopedSlots: { customRender: 'operation' }
|
||||||
|
}
|
||||||
|
],
|
||||||
|
dataSource: [],
|
||||||
|
selectDataSource:[],
|
||||||
|
loading: false,
|
||||||
|
editVisible: false,
|
||||||
|
confirmLoading: false,
|
||||||
|
formInline: {},
|
||||||
|
rules: {
|
||||||
|
standard: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('standard') + this.$t('cannotEmpty'),
|
||||||
|
trigger: 'blur'
|
||||||
|
},
|
||||||
|
// {
|
||||||
|
// max: 100,
|
||||||
|
// message: this.$t('certifiedEngineer') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
|
||||||
|
// trigger: 'change'
|
||||||
|
// }
|
||||||
|
],
|
||||||
|
theme: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('theme') + this.$t('cannotEmpty'),
|
||||||
|
trigger: 'blur'
|
||||||
|
},
|
||||||
|
// {
|
||||||
|
// max: 100,
|
||||||
|
// message: this.$t('areaOfResponsibility') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
|
||||||
|
// trigger: 'change'
|
||||||
|
// }
|
||||||
|
],
|
||||||
|
RXSWIN: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: 'RXSWIN' + this.$t('cannotEmpty'),
|
||||||
|
trigger: 'blur'
|
||||||
|
},
|
||||||
|
// {
|
||||||
|
// max: 100,
|
||||||
|
// message: this.$t('regulatoryEngineer') + this.$t('cannotExceed') + 100 + this.$t('Characters'),
|
||||||
|
// trigger: 'change'
|
||||||
|
// }
|
||||||
|
],
|
||||||
|
},
|
||||||
|
// total: 0,
|
||||||
|
// pageSize: 10,
|
||||||
|
// pageNo: 1,
|
||||||
|
url: {
|
||||||
|
page: '/project/projectRelatedPersonnel/page',
|
||||||
|
edit: '/project/projectRelatedPersonnel/edit',
|
||||||
|
exportData: '/project/projectRelatedPersonnel/exportXls',
|
||||||
|
importZipUrl: '/project/projectRelatedPersonnel/importExcel',
|
||||||
|
queryCertificationEngineer: '/project/projectRelatedPersonnel/queryCertificationEngineer'
|
||||||
|
},
|
||||||
|
selectedRowKeys: [],
|
||||||
|
dictOptionsValue: [],
|
||||||
|
administrators: false,
|
||||||
|
userIds:'',
|
||||||
|
userName:'',
|
||||||
|
orderBy: '1',
|
||||||
|
orderByField: '',
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
...mapGetters(['userInfo']),
|
||||||
|
getFirstLevelDutyTerritory() {
|
||||||
|
getAction('/sys/dictItem/getFirstLevelDutyTerritory', {}).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.firstLevelDutyTerritoryList = res.result
|
||||||
|
} else {
|
||||||
|
this.firstLevelDutyTerritoryList = []
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getData() {
|
||||||
|
this.visible = true
|
||||||
|
this.queryParam = {}
|
||||||
|
this.administrators = false
|
||||||
|
this.getFirstLevelDutyTerritory()
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
handleToggleSearch() {
|
||||||
|
this.toggleSearchStatus = !this.toggleSearchStatus
|
||||||
|
},
|
||||||
|
tableOnChange(pagination, filters, sorter) {
|
||||||
|
this.orderBy = sorter.order == 'ascend' ? '1' : '2'
|
||||||
|
if (sorter.columnKey == 'dutyTerritory_dictText') {
|
||||||
|
this.orderByField = 'dutyTerritory'
|
||||||
|
} else if (sorter.columnKey == 'lawEngineerName') {
|
||||||
|
this.orderByField = 'lawEngineer'
|
||||||
|
}else if (sorter.columnKey == 'engineeringInterfacePersonName') {
|
||||||
|
this.orderByField = 'engineeringInterfacePerson'
|
||||||
|
}else if (sorter.columnKey == 'engineerLawSetName') {
|
||||||
|
this.orderByField = 'engineerLawSet'
|
||||||
|
} else if (sorter.columnKey == 'engineerAttSetName') {
|
||||||
|
this.orderByField = 'engineerAttSet'
|
||||||
|
} else {
|
||||||
|
this.orderByField = sorter.columnKey
|
||||||
|
}
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
personBattingTable() {
|
||||||
|
this.selectedRowKeys = []
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
handleCancel() {
|
||||||
|
this.visible = false
|
||||||
|
},
|
||||||
|
handleSubmit() {
|
||||||
|
this.visible = false
|
||||||
|
},
|
||||||
|
batDeleteClick() {
|
||||||
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
|
let _this = this
|
||||||
|
this.$confirm({
|
||||||
|
content: _this.$t('ConfirmDelete'),
|
||||||
|
onOk() {
|
||||||
|
// postAction('/project/problemKnowledgeBaseReplyEO/deleteBatch', { ids: this.selectedRowKeys }).then((res) => {
|
||||||
|
// if (res.success) {
|
||||||
|
// _this.$message.success(_this.$t('OperationSuccessful'))
|
||||||
|
// _this.getList()
|
||||||
|
// } else {
|
||||||
|
// _this.$message.warning(res.message)
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
|
}
|
||||||
|
},
|
||||||
|
deleteData(name) {
|
||||||
|
this.formInline[name] = ''
|
||||||
|
this.formInline = { ...this.formInline }
|
||||||
|
},
|
||||||
|
getPersonnelList() {
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
editOk() {
|
||||||
|
this.$refs.ruleForm.validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
if (!this.formInline.certificationEngineer) {
|
||||||
|
this.formInline.certificationEngineer = ''
|
||||||
|
}
|
||||||
|
this.confirmLoading = true
|
||||||
|
putAction(this.url.edit, this.formInline).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.editVisible = false
|
||||||
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
|
this.confirmLoading = false
|
||||||
|
this.getList()
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
|
this.confirmLoading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
edit(item) {
|
||||||
|
this.editVisible = true
|
||||||
|
this.title = this.$t('edit')
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.formInline = JSON.parse(JSON.stringify(item))
|
||||||
|
this.$refs.ruleForm.clearValidate()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleAdd(){
|
||||||
|
this.editVisible = true
|
||||||
|
this.title = this.$t('newlyAdded')
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.formInline = {}
|
||||||
|
this.$refs.ruleForm.clearValidate()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
del(item){
|
||||||
|
let _this = this
|
||||||
|
this.$confirm({
|
||||||
|
content: _this.$t('ConfirmDelete'),
|
||||||
|
onOk() {
|
||||||
|
// postAction('/project/problemKnowledgeBaseReplyEO/deleteBatch', { ids: item.id }).then((res) => {
|
||||||
|
// if (res.success) {
|
||||||
|
// _this.$message.success(_this.$t('OperationSuccessful'))
|
||||||
|
// _this.getList()
|
||||||
|
// } else {
|
||||||
|
// _this.$message.warning(res.message)
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
onSelectChange(value) {
|
||||||
|
this.selectedRowKeys = value
|
||||||
|
},
|
||||||
|
searchQuery() {
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
searchReset() {
|
||||||
|
this.queryParam = {}
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
getList() {
|
||||||
|
let query = {
|
||||||
|
projectId: this.$route.query.id,
|
||||||
|
...this.queryParam,
|
||||||
|
orderBy: this.orderBy,
|
||||||
|
orderByField: this.orderByField,
|
||||||
|
}
|
||||||
|
this.loading = true
|
||||||
|
postAction(this.url.page, query).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.dataSource = res.result || []
|
||||||
|
// this.total = res.result.total
|
||||||
|
this.loading = false
|
||||||
|
} else {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleExport() {
|
||||||
|
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||||
|
let query = {
|
||||||
|
id: selectedRowKeys.join(','),
|
||||||
|
projectId: this.$route.query.id
|
||||||
|
}
|
||||||
|
downloadFile(this.url.exportData, this.$t('ListOfRelevantPersonnel') + '.xls', query, this.Deselect)
|
||||||
|
},
|
||||||
|
Deselect() {
|
||||||
|
this.selectedRowKeys = []
|
||||||
|
},
|
||||||
|
handleModule() {
|
||||||
|
downloadFile('project/projectRelatedPersonnel/exportTemplate', this.$t('ListOfRelevantPersonnel') + '.xls', {})
|
||||||
|
},
|
||||||
|
//调取
|
||||||
|
transferClick() {
|
||||||
|
this.$refs.transferListRef.transferModel()
|
||||||
|
},
|
||||||
|
transferListForm(id) {
|
||||||
|
this.$refs.transferListvirtalRef.transferModel(id)
|
||||||
|
},
|
||||||
|
transferListFormHomo() {
|
||||||
|
this.$refs.transferListRef.handleCancel()
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style>
|
||||||
|
.box-input-search .ant-select-selection--single {
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input-search .ant-select-selection--multiple {
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input-search .ant-select-selection__rendered {
|
||||||
|
line-height: 38px;
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<style scoped>
|
||||||
|
@import '~@assets/less/common.less';
|
||||||
|
|
||||||
|
.box-title-text {
|
||||||
|
line-height: 1.4;
|
||||||
|
display: flex;
|
||||||
|
/*align-items: center;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-text {
|
||||||
|
width: 114px;
|
||||||
|
text-align: right;
|
||||||
|
display: inline-block;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 14px;
|
||||||
|
margin-right: 16px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
height: 42px;
|
||||||
|
line-height: 48px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input {
|
||||||
|
display: inline-block;
|
||||||
|
height: 38px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.itemModel {
|
||||||
|
width: calc(100% - 130px);
|
||||||
|
display: inline-block;
|
||||||
|
margin-top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Required {
|
||||||
|
color: red;
|
||||||
|
margin-right: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-text-text {
|
||||||
|
margin-top: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page {
|
||||||
|
text-align: right;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-operator {
|
||||||
|
text-align: right;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.itemOption {
|
||||||
|
display: inline-block;
|
||||||
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
-o-text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-title-text-search {
|
||||||
|
line-height: 1.4;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-text-search {
|
||||||
|
width: 110px;
|
||||||
|
color: #000F16;
|
||||||
|
display: inline-block;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 14px;
|
||||||
|
margin-right: 16px;
|
||||||
|
margin-top: 3px;
|
||||||
|
text-align: right;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input-search {
|
||||||
|
display: inline-block;
|
||||||
|
width: calc(100% - 100px);
|
||||||
|
height: 38px;
|
||||||
|
margin-top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-button-search {
|
||||||
|
height: 38px;
|
||||||
|
/*margin-top: 2px;*/
|
||||||
|
}
|
||||||
|
|
||||||
|
.drawer-bootom-button {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
width: 100%;
|
||||||
|
z-index: 100;
|
||||||
|
border-top: 1px solid #e8e8e8;
|
||||||
|
padding: 10px 16px;
|
||||||
|
text-align: right;
|
||||||
|
left: 0;
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 0 0 2px 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*/deep/.table .ant-table-thead > tr > th {*/
|
||||||
|
/* font-weight: bolder;*/
|
||||||
|
/*}*/
|
||||||
|
|
||||||
|
/*/deep/.table .ant-table-tbody > tr > td {*/
|
||||||
|
/* color: #040B29 ;*/
|
||||||
|
/*}*/
|
||||||
|
|
||||||
|
.table {
|
||||||
|
margin-bottom: 60px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,232 @@
|
|||||||
|
<template>
|
||||||
|
<a-drawer
|
||||||
|
:title="$t('Transfer')"
|
||||||
|
:maskClosable="false"
|
||||||
|
:width="1000"
|
||||||
|
placement="right"
|
||||||
|
:closable="true"
|
||||||
|
@close="handleCancel"
|
||||||
|
:visible="visible"
|
||||||
|
style="height: 100%;overflow: auto;padding-bottom: 53px;">
|
||||||
|
<div style="margin-bottom: 60px">
|
||||||
|
<a-table
|
||||||
|
:components="drag(columns,'columns')"
|
||||||
|
:columns="columns"
|
||||||
|
rowKey="id"
|
||||||
|
:scroll="{x: 800}"
|
||||||
|
:data-source="dataList"
|
||||||
|
:pagination="false"
|
||||||
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange,columnTitle:' ' }"
|
||||||
|
:loading="loading">
|
||||||
|
|
||||||
|
</a-table>
|
||||||
|
<div class="page" v-if="dataList.length > 0">
|
||||||
|
<a-pagination
|
||||||
|
:show-total="total => $t('total')+` ${total} `+$t('strip')"
|
||||||
|
show-quick-jumper
|
||||||
|
show-size-changer
|
||||||
|
:page-size.sync="pageSize"
|
||||||
|
:total="total"
|
||||||
|
:current="pageNo"
|
||||||
|
@change="onChange"
|
||||||
|
@showSizeChange="SizeChange"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="drawer-bootom-button">
|
||||||
|
<a-button @click="handleCancel" style="margin-right: 16px">{{$t('cancel')}}</a-button>
|
||||||
|
<a-button @click="handleSubmit(undefined)" type="primary" :loading="confirmLoading">{{$t('determine')}}</a-button>
|
||||||
|
</div>
|
||||||
|
</a-drawer>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { getAction, postAction } from '@/api/manage'
|
||||||
|
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'transferList',
|
||||||
|
components: {},
|
||||||
|
props: ['url'],
|
||||||
|
mixins: [ResizeHeader, ResizeColumnProvide],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
queryParam: {},
|
||||||
|
confirmLoading: false,
|
||||||
|
selectedRowKeys: [],
|
||||||
|
columns: [
|
||||||
|
{
|
||||||
|
title: this.$t('projectVersion'),
|
||||||
|
dataIndex: 'name',
|
||||||
|
align: 'left',
|
||||||
|
ellipsis: true,
|
||||||
|
width: 235
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('Listcreationtime'),
|
||||||
|
dataIndex: 'useExplain',
|
||||||
|
align: 'left',
|
||||||
|
ellipsis: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
dataList: [],
|
||||||
|
content: [],
|
||||||
|
loading: false,
|
||||||
|
pageNo: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
total: 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
transferModel() {
|
||||||
|
this.visible = true
|
||||||
|
this.queryParam = {}
|
||||||
|
this.selectedRowKeys = []
|
||||||
|
this.replacePage()
|
||||||
|
},
|
||||||
|
searchQuery() {
|
||||||
|
this.pageNo = 1
|
||||||
|
this.replacePage()
|
||||||
|
},
|
||||||
|
searchReset() {
|
||||||
|
this.pageNo = 1
|
||||||
|
this.queryParam = {}
|
||||||
|
this.replacePage()
|
||||||
|
},
|
||||||
|
onChange(page, pageSize) {
|
||||||
|
this.pageNo = page
|
||||||
|
this.replacePage()
|
||||||
|
},
|
||||||
|
SizeChange(page, pageSize) {
|
||||||
|
this.pageNo = 1
|
||||||
|
this.pageSize = pageSize
|
||||||
|
this.replacePage()
|
||||||
|
},
|
||||||
|
replacePage() {
|
||||||
|
let query = {
|
||||||
|
pageNo: this.pageNo,
|
||||||
|
pageSize: this.pageSize,
|
||||||
|
...this.queryParam
|
||||||
|
}
|
||||||
|
this.loading = true
|
||||||
|
postAction(this.url.transferUrl, query).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.dataList = res.result.records || []
|
||||||
|
this.total = res.result.total
|
||||||
|
this.loading = false
|
||||||
|
} else {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
onSelectChange(value) {
|
||||||
|
this.selectedRowKeys = value
|
||||||
|
if (this.selectedRowKeys.length > 1) {
|
||||||
|
this.selectedRowKeys.shift()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleCancel() {
|
||||||
|
this.visible = false
|
||||||
|
},
|
||||||
|
handleSubmit(flag) {
|
||||||
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
|
this.confirmLoading = true
|
||||||
|
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||||
|
this.confirmLoading = false
|
||||||
|
this.$emit('transferListForm',selectedRowKeys.join(','))
|
||||||
|
this.selectedRowKeys = []
|
||||||
|
// postAction(this.url.addModel, {
|
||||||
|
// dummyInventoryBaseId: selectedRowKeys.join(','),
|
||||||
|
// projectLibraryId: this.$route.query.id,
|
||||||
|
// flag: flag
|
||||||
|
// }).then((res) => {
|
||||||
|
// if (res.success) {
|
||||||
|
// this.confirmLoading = false
|
||||||
|
// this.$message.success(this.$t('OperationSuccessful'))
|
||||||
|
// this.visible = false
|
||||||
|
// this.selectedRowKeys = []
|
||||||
|
// this.$emit('transferListForm')
|
||||||
|
// } else {
|
||||||
|
// if (res.message == '该虚拟清单的维护清单中没有数据,是否需要添加') {
|
||||||
|
// this.confirmLoading = false
|
||||||
|
// this.getAdd()
|
||||||
|
// return
|
||||||
|
// }
|
||||||
|
// this.$message.warning(this.$t('operationFailed'))
|
||||||
|
// this.confirmLoading = false
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
|
}
|
||||||
|
},
|
||||||
|
getAdd() {
|
||||||
|
let _this = this
|
||||||
|
this.$confirm({
|
||||||
|
content: _this.$t('TheDoesNotContainData'),
|
||||||
|
onOk() {
|
||||||
|
_this.handleSubmit('1')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.page {
|
||||||
|
text-align: right;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.drawer-bootom-button {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
z-index: 100;
|
||||||
|
width: 100%;
|
||||||
|
border-top: 1px solid #e8e8e8;
|
||||||
|
padding: 10px 16px;
|
||||||
|
text-align: right;
|
||||||
|
left: 0;
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 0 0 2px 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-title-text {
|
||||||
|
line-height: 1.4;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-text {
|
||||||
|
width: 20%;
|
||||||
|
min-width: 110px;
|
||||||
|
color: #000F16;
|
||||||
|
display: inline-block;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 14px;
|
||||||
|
margin-right: 16px;
|
||||||
|
margin-top: 3px;
|
||||||
|
text-align: right;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input {
|
||||||
|
display: inline-block;
|
||||||
|
width: 70%;
|
||||||
|
height: 38px;
|
||||||
|
margin-top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-button {
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,348 @@
|
|||||||
|
<template>
|
||||||
|
<a-drawer
|
||||||
|
:title="$t('Transfer')"
|
||||||
|
:maskClosable="false"
|
||||||
|
:width="1100"
|
||||||
|
placement="right"
|
||||||
|
:closable="true"
|
||||||
|
@close="handleCancel"
|
||||||
|
:visible="visible"
|
||||||
|
style="height: 100%;overflow: auto;padding-bottom: 53px;">
|
||||||
|
<div style="margin-bottom: 60px">
|
||||||
|
<div class="table-page-search-wrapper">
|
||||||
|
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :md="12" :sm="5">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text" :title="$t('standard')">
|
||||||
|
<span>{{$t('standard')}}</span>
|
||||||
|
</div>
|
||||||
|
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('standard')"
|
||||||
|
v-model="queryParam.serialNumber"></j-input>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :md="12" :sm="5">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text" :title="$t('title')">
|
||||||
|
<span>{{$t('title')}}</span>
|
||||||
|
</div>
|
||||||
|
<j-input class="box-input" :placeholder="$t('PleaseEnter')+$t('title')"
|
||||||
|
v-model="queryParam.title"></j-input>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
|
||||||
|
<a-col :md="12" :sm="24">
|
||||||
|
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button>
|
||||||
|
<a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button>
|
||||||
|
<globalAdvancedQuery ref="globalAdvancedQueryRef"
|
||||||
|
@handleSuperQuery="handleSuperQuery"
|
||||||
|
:fieldList="fieldList"/>
|
||||||
|
</a-col>
|
||||||
|
</span>
|
||||||
|
</a-row>
|
||||||
|
</a-form>
|
||||||
|
</div>
|
||||||
|
<a-table
|
||||||
|
:columns="columns"
|
||||||
|
rowKey="id"
|
||||||
|
:scroll="{x: 800,y:'calc(100vh - 330px)'}"
|
||||||
|
:data-source="dataList"
|
||||||
|
:pagination="false"
|
||||||
|
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
||||||
|
:loading="loading">
|
||||||
|
|
||||||
|
</a-table>
|
||||||
|
<!-- <div class="page" v-if="dataList.length > 0">-->
|
||||||
|
<!-- <a-pagination-->
|
||||||
|
<!-- :show-total="total => $t('total')+` ${total} `+$t('strip')"-->
|
||||||
|
<!-- show-quick-jumper-->
|
||||||
|
<!-- show-size-changer-->
|
||||||
|
<!-- :page-size.sync="pageSize"-->
|
||||||
|
<!-- :total="total"-->
|
||||||
|
<!-- :current="pageNo"-->
|
||||||
|
<!-- @change="onChange"-->
|
||||||
|
<!-- @showSizeChange="SizeChange"-->
|
||||||
|
<!-- />-->
|
||||||
|
<!-- </div>-->
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="drawer-bootom-button">
|
||||||
|
<a-button @click="handleCancel" style="margin-right: 16px">{{$t('cancel')}}</a-button>
|
||||||
|
<a-button @click="handleSubmit(undefined)" type="primary" :loading="confirmLoading">{{$t('submit')}}</a-button>
|
||||||
|
</div>
|
||||||
|
</a-drawer>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { getAction, postAction } from '@/api/manage'
|
||||||
|
import globalAdvancedQuery from '@/components/globalAdvancedQuery/index'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'transferList',
|
||||||
|
components: {
|
||||||
|
globalAdvancedQuery
|
||||||
|
},
|
||||||
|
props: ['url'],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
queryParam: {},
|
||||||
|
confirmLoading: false,
|
||||||
|
selectedRowKeys: [],
|
||||||
|
columns: [
|
||||||
|
{
|
||||||
|
title: this.$t('standard'),
|
||||||
|
align: 'left',
|
||||||
|
dataIndex: 'standard',
|
||||||
|
ellipsis: true,
|
||||||
|
sorter:true,
|
||||||
|
width: 170
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('theme'),
|
||||||
|
align: 'left',
|
||||||
|
dataIndex: 'theme',
|
||||||
|
ellipsis: true,
|
||||||
|
sorter:true,
|
||||||
|
width: 300
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'RXSWIN',
|
||||||
|
align: 'left',
|
||||||
|
dataIndex: 'RXSWIN',
|
||||||
|
ellipsis: true,
|
||||||
|
sorter:true,
|
||||||
|
width: 170
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('Correspondingversion'),
|
||||||
|
align: 'left',
|
||||||
|
dataIndex: 'Correspondingversion',
|
||||||
|
ellipsis: true,
|
||||||
|
sorter:true,
|
||||||
|
width: 170
|
||||||
|
},
|
||||||
|
],
|
||||||
|
fieldList: [
|
||||||
|
{
|
||||||
|
type: 'string',
|
||||||
|
value: 'subtitle',
|
||||||
|
text: this.$t('subtitle')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: '',
|
||||||
|
value: 'region',
|
||||||
|
text: this.$t('zoneOfApplication'),
|
||||||
|
dictCode: 'region'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'string',
|
||||||
|
value: 'correspondingStandard',
|
||||||
|
text: this.$t('correspondingStandard')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: '',
|
||||||
|
value: 'implementType',
|
||||||
|
text: this.$t('implementationCategory'),
|
||||||
|
dictCode: 'implement_type'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'date',
|
||||||
|
value: 'xin1Che1Xing2Shi2Shi1Ri4Qi1',
|
||||||
|
text: this.$t('ImplementationDate')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'date',
|
||||||
|
value: 'implementTime',
|
||||||
|
text: this.$t('vehicleInProductionDate')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: '',
|
||||||
|
value: 'attestationType',
|
||||||
|
text: this.$t('certificationType'),
|
||||||
|
dictCode: 'attestation_type'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: '',
|
||||||
|
value: 'attestationRank',
|
||||||
|
text: this.$t('certificationLevel'),
|
||||||
|
dictCode: 'attestation_rank'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'string',
|
||||||
|
value: 'applicableSupplement',
|
||||||
|
text: this.$t('applicableSupplement')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'string',
|
||||||
|
value: 'wvtaId',
|
||||||
|
text: 'WVTA ID'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: '',
|
||||||
|
value: 'dutyTerritory',
|
||||||
|
text: this.$t('areaOfResponsibility'),
|
||||||
|
dictCode: 'duty_territory'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
|
||||||
|
},
|
||||||
|
|
||||||
|
],
|
||||||
|
dataList: [],
|
||||||
|
content: [],
|
||||||
|
loading: false,
|
||||||
|
dummyInventoryBaseId:'',
|
||||||
|
pageNo: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
total: 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
transferModel(id) {
|
||||||
|
this.visible = true
|
||||||
|
this.dummyInventoryBaseId = id
|
||||||
|
this.queryParam = {}
|
||||||
|
this.selectedRowKeys = []
|
||||||
|
this.replacePage()
|
||||||
|
},
|
||||||
|
searchQuery() {
|
||||||
|
this.pageNo = 1
|
||||||
|
this.replacePage()
|
||||||
|
},
|
||||||
|
searchReset() {
|
||||||
|
this.pageNo = 1
|
||||||
|
this.queryParam = {}
|
||||||
|
this.replacePage()
|
||||||
|
this.$refs.globalAdvancedQueryRef.resetLine()
|
||||||
|
this.$refs.globalAdvancedQueryRef.emitCallback()
|
||||||
|
},
|
||||||
|
onChange(page, pageSize) {
|
||||||
|
this.pageNo = page
|
||||||
|
this.replacePage()
|
||||||
|
},
|
||||||
|
SizeChange(page, pageSize) {
|
||||||
|
this.pageNo = 1
|
||||||
|
this.pageSize = pageSize
|
||||||
|
this.replacePage()
|
||||||
|
},
|
||||||
|
handleSuperQuery(params, matchType) {
|
||||||
|
let sqp = {}
|
||||||
|
if (!params || (params && params.length == 0)) {
|
||||||
|
sqp['superQueryParams'] = ''
|
||||||
|
this.$refs.globalAdvancedQueryRef.superQueryFlag = false
|
||||||
|
} else {
|
||||||
|
this.$refs.globalAdvancedQueryRef.superQueryFlag = true
|
||||||
|
sqp['superQueryParams'] = encodeURI(JSON.stringify(params))
|
||||||
|
sqp['superQueryMatchType'] = matchType
|
||||||
|
}
|
||||||
|
this.queryParamQuery = sqp
|
||||||
|
this.replacePage()
|
||||||
|
},
|
||||||
|
replacePage() {
|
||||||
|
let query = {
|
||||||
|
// pageNo: this.pageNo,
|
||||||
|
// pageSize: this.pageSize,
|
||||||
|
...this.queryParamQuery,
|
||||||
|
...this.queryParam,
|
||||||
|
dummyInventoryBaseId: this.dummyInventoryBaseId
|
||||||
|
}
|
||||||
|
this.loading = true
|
||||||
|
getAction('/dummy/dummyInventoryInfoEO/list', query).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.dataList = res.result || []
|
||||||
|
this.loading = false
|
||||||
|
} else {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
onSelectChange(value) {
|
||||||
|
this.selectedRowKeys = value
|
||||||
|
// if (this.selectedRowKeys.length > 1) {
|
||||||
|
// this.selectedRowKeys.shift()
|
||||||
|
// }
|
||||||
|
},
|
||||||
|
handleCancel() {
|
||||||
|
this.visible = false
|
||||||
|
},
|
||||||
|
handleSubmit(flag) {
|
||||||
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
|
this.confirmLoading = true
|
||||||
|
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
|
||||||
|
postAction('project/projectLawsInventoryEO/add', {
|
||||||
|
dummyInventoryBaseId: this.dummyInventoryBaseId,
|
||||||
|
projectLibraryId: this.$route.query.id,
|
||||||
|
dummyids: selectedRowKeys.join(','),
|
||||||
|
}).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.confirmLoading = false
|
||||||
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
|
this.visible = false
|
||||||
|
this.selectedRowKeys = []
|
||||||
|
this.$emit('transferListFormHomo')
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
|
this.confirmLoading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.page {
|
||||||
|
text-align: right;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.drawer-bootom-button {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
z-index: 100;
|
||||||
|
width: 100%;
|
||||||
|
border-top: 1px solid #e8e8e8;
|
||||||
|
padding: 10px 16px;
|
||||||
|
text-align: right;
|
||||||
|
left: 0;
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 0 0 2px 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-title-text {
|
||||||
|
line-height: 1.4;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-text {
|
||||||
|
width: 20%;
|
||||||
|
min-width: 110px;
|
||||||
|
color: #000F16;
|
||||||
|
display: inline-block;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 14px;
|
||||||
|
margin-right: 16px;
|
||||||
|
margin-top: 3px;
|
||||||
|
text-align: right;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input {
|
||||||
|
display: inline-block;
|
||||||
|
width: 70%;
|
||||||
|
height: 38px;
|
||||||
|
margin-top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-button {
|
||||||
|
height: 38px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user