update 专项项目库
This commit is contained in:
@@ -25,7 +25,7 @@ const editInconformityItem = (params) => postAction('/projectLibrary/lawsEvaluat
|
|||||||
const batchCloseInconformityItem = (params) => postAction('/projectLibrary/lawsEvaluationNotMet/batchClose', params)
|
const batchCloseInconformityItem = (params) => postAction('/projectLibrary/lawsEvaluationNotMet/batchClose', params)
|
||||||
|
|
||||||
// 专项项目库-编辑
|
// 专项项目库-编辑
|
||||||
const editSpecialProjectLibrary = (params) => postAction('', params)
|
const editSpecialProjectLibrary = (params) => postAction('/projectLibrary/lawsSpecialProjectLibrary/edit', params)
|
||||||
|
|
||||||
export {
|
export {
|
||||||
addVehicleItemLibrary,
|
addVehicleItemLibrary,
|
||||||
|
|||||||
@@ -114,6 +114,7 @@ export const JeroListMixin = {
|
|||||||
this.ipagination.current = 1
|
this.ipagination.current = 1
|
||||||
}
|
}
|
||||||
const params = this.getQueryParams()// 查询条件
|
const params = this.getQueryParams()// 查询条件
|
||||||
|
console.log(params)
|
||||||
this.loading = true
|
this.loading = true
|
||||||
getAction(this.url.list, params).then((res) => {
|
getAction(this.url.list, params).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
|
|||||||
@@ -24,8 +24,9 @@
|
|||||||
<!--车型-->
|
<!--车型-->
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="6" :sm="8">
|
||||||
<a-form-item :label="$t('projectLibrary.specialProjectLibrary.vehicleModel')" :labelCol="{span: 6}" :wrapperCol="{span: 14}">
|
<a-form-item :label="$t('projectLibrary.specialProjectLibrary.vehicleModel')" :labelCol="{span: 6}" :wrapperCol="{span: 14}">
|
||||||
<a-input :placeholder="$t('pleaseEnter') + $t('projectLibrary.specialProjectLibrary.vehicleModel')"
|
<j-multi-select-tag dict-code="model_series"
|
||||||
v-model="queryParam.vehicleModel"></a-input>
|
:placeholder="$t('pleaseSelect') + $t('projectLibrary.specialProjectLibrary.vehicleModel')"
|
||||||
|
v-model="queryParam.modelSeries" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<template v-if="toggleSearchStatus">
|
<template v-if="toggleSearchStatus">
|
||||||
@@ -48,7 +49,7 @@
|
|||||||
:placeholder="$t('pleaseSelect')+$t('projectLibrary.specialProjectLibrary.complianceAssessmentResults')"
|
:placeholder="$t('pleaseSelect')+$t('projectLibrary.specialProjectLibrary.complianceAssessmentResults')"
|
||||||
type="select"
|
type="select"
|
||||||
:triggerChange="false"
|
:triggerChange="false"
|
||||||
dict-code="" />
|
dict-code="standards_assess_results" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!--是否立项-->
|
<!--是否立项-->
|
||||||
@@ -93,6 +94,7 @@
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<j-table
|
<j-table
|
||||||
|
:loading="loading"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:can-drag="true"
|
:can-drag="true"
|
||||||
@@ -115,11 +117,7 @@
|
|||||||
|
|
||||||
<!--依据描述-->
|
<!--依据描述-->
|
||||||
<template v-slot:basisDescription="{text, record}">
|
<template v-slot:basisDescription="{text, record}">
|
||||||
<a-tooltip overlay-class-name="tooltip-style">
|
<div class="table-text can-click-table-text" @click="viewBasisDescription(record)">{{ $t('view') }}</div>
|
||||||
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
|
||||||
<div class="table-text can-click-table-text" v-if="text || text === 0" @click="viewBasisDescription">{{ text }}</div>
|
|
||||||
<div v-else class="table-text">{{ global.emptyLine }}</div>
|
|
||||||
</a-tooltip>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!--工作令编号、项目名称-->
|
<!--工作令编号、项目名称-->
|
||||||
@@ -155,6 +153,7 @@ import JTable from '../../../components/jero/JTable'
|
|||||||
import { JeroListMixin } from '../../../mixins/JeroListMixin'
|
import { JeroListMixin } from '../../../mixins/JeroListMixin'
|
||||||
import BasisDescriptionModal from './modules/BasisDescriptionModal'
|
import BasisDescriptionModal from './modules/BasisDescriptionModal'
|
||||||
import SpecialProjectLibraryModal from './modules/SpecialProjectLibraryModal'
|
import SpecialProjectLibraryModal from './modules/SpecialProjectLibraryModal'
|
||||||
|
import { StandardSource } from '../../../enums/commonEnums'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'SpecialProjectLibrary',
|
name: 'SpecialProjectLibrary',
|
||||||
@@ -167,7 +166,7 @@ export default {
|
|||||||
{
|
{
|
||||||
dataIndex: 'source_dictText',
|
dataIndex: 'source_dictText',
|
||||||
title: this.$t('standardSelect.source'),
|
title: this.$t('standardSelect.source'),
|
||||||
width: 150
|
width: 100
|
||||||
},
|
},
|
||||||
// 标准编号
|
// 标准编号
|
||||||
{
|
{
|
||||||
@@ -188,7 +187,7 @@ export default {
|
|||||||
{
|
{
|
||||||
dataIndex: 'termNumber',
|
dataIndex: 'termNumber',
|
||||||
title: this.$t('workCenter.enStandardRevision.clauseNumber'),
|
title: this.$t('workCenter.enStandardRevision.clauseNumber'),
|
||||||
width: 150
|
width: 120
|
||||||
},
|
},
|
||||||
// 条款名称
|
// 条款名称
|
||||||
{
|
{
|
||||||
@@ -210,15 +209,15 @@ export default {
|
|||||||
},
|
},
|
||||||
// 合规评估结果
|
// 合规评估结果
|
||||||
{
|
{
|
||||||
dataIndex: 'result',
|
dataIndex: 'result_dictText',
|
||||||
title: this.$t('projectLibrary.specialProjectLibrary.complianceAssessmentResults'),
|
title: this.$t('projectLibrary.specialProjectLibrary.complianceAssessmentResults'),
|
||||||
width: 120
|
width: 120
|
||||||
},
|
},
|
||||||
// 依据描述
|
// 依据描述
|
||||||
{
|
{
|
||||||
dataIndex: 'basisDescription',
|
dataIndex: 'description',
|
||||||
title: this.$t('projectLibrary.specialProjectLibrary.basisDescription'),
|
title: this.$t('projectLibrary.specialProjectLibrary.basisDescription'),
|
||||||
width: 180,
|
width: 120,
|
||||||
scopedSlots: { customRender: 'basisDescription' }
|
scopedSlots: { customRender: 'basisDescription' }
|
||||||
},
|
},
|
||||||
// 评估日期
|
// 评估日期
|
||||||
@@ -226,7 +225,7 @@ export default {
|
|||||||
dataIndex: 'valuationTime',
|
dataIndex: 'valuationTime',
|
||||||
title: this.$t('projectLibrary.vehicleItemLibrary.dateOfEvaluation'),
|
title: this.$t('projectLibrary.vehicleItemLibrary.dateOfEvaluation'),
|
||||||
sorter: true,
|
sorter: true,
|
||||||
width: 180
|
width: 150
|
||||||
},
|
},
|
||||||
// 是否立项
|
// 是否立项
|
||||||
{
|
{
|
||||||
@@ -238,21 +237,19 @@ export default {
|
|||||||
{
|
{
|
||||||
dataIndex: 'workNumber',
|
dataIndex: 'workNumber',
|
||||||
title: this.$t('projectLibrary.workOrderNumber'),
|
title: this.$t('projectLibrary.workOrderNumber'),
|
||||||
width: 120,
|
width: 120
|
||||||
scopedSlots: { customRender: 'project' }
|
|
||||||
},
|
},
|
||||||
// 项目名称
|
// 项目名称
|
||||||
{
|
{
|
||||||
dataIndex: 'projectName',
|
dataIndex: 'projectName',
|
||||||
title: this.$t('projectLibrary.projectName'),
|
title: this.$t('projectLibrary.projectName'),
|
||||||
width: 150,
|
width: 150
|
||||||
scopedSlots: { customRender: 'project' }
|
|
||||||
},
|
},
|
||||||
// 流程编号
|
// 流程编号
|
||||||
{
|
{
|
||||||
dataIndex: 'processNum',
|
dataIndex: 'processNum',
|
||||||
title: this.$t('workCenter.processCenter.processNumber'),
|
title: this.$t('workCenter.processCenter.processNumber'),
|
||||||
width: 120,
|
width: 180,
|
||||||
scopedSlots: { customRender: 'process' }
|
scopedSlots: { customRender: 'process' }
|
||||||
},
|
},
|
||||||
// 操作
|
// 操作
|
||||||
@@ -274,9 +271,7 @@ export default {
|
|||||||
clickEvent: 'handleEdit',
|
clickEvent: 'handleEdit',
|
||||||
has: 'specialProjectLibrary:edit'
|
has: 'specialProjectLibrary:edit'
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
disableMixinCreated: true,
|
|
||||||
dataSource: [{ id: 1, basisDescription: '1111' }]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -284,10 +279,10 @@ export default {
|
|||||||
* 跳转标准详情
|
* 跳转标准详情
|
||||||
* @param record
|
* @param record
|
||||||
*/
|
*/
|
||||||
toDetailPage ({ standardId, splitStandardSource }) {
|
toDetailPage ({ standardId, source }) {
|
||||||
let path
|
let path
|
||||||
// 根据来源跳转不同的详情页
|
// 根据来源跳转不同的详情页
|
||||||
switch (splitStandardSource) {
|
switch (source) {
|
||||||
// 国内
|
// 国内
|
||||||
case StandardSource.DOMESTIC.value:
|
case StandardSource.DOMESTIC.value:
|
||||||
path = '/standardRegulationLibrary/DomesticStandardDetail'
|
path = '/standardRegulationLibrary/DomesticStandardDetail'
|
||||||
@@ -316,13 +311,15 @@ export default {
|
|||||||
/**
|
/**
|
||||||
* 查看依据详情
|
* 查看依据详情
|
||||||
*/
|
*/
|
||||||
viewBasisDescription () {
|
viewBasisDescription ({ processTermId }) {
|
||||||
this.$refs.basisDescriptionModal.open()
|
this.$refs.basisDescriptionModal.open(processTermId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
|
.table-page-search-wrapper .ant-form-inline .ant-form-item > .ant-form-item-label {
|
||||||
|
min-width: 90px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -11,33 +11,16 @@
|
|||||||
<div class="table-page-search-wrapper">
|
<div class="table-page-search-wrapper">
|
||||||
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<!--部门-->
|
|
||||||
<a-col :md="6" :sm="12">
|
|
||||||
<a-form-model-item :label="$t('department')" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
|
||||||
<a-tree-select
|
|
||||||
tree-node-filter-prop="title"
|
|
||||||
v-model="queryParam.responsibleDepartment"
|
|
||||||
:maxTagCount="1"
|
|
||||||
:show-search="true"
|
|
||||||
:filterTreeNode="filterTreeOption"
|
|
||||||
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
|
||||||
class="box-input"
|
|
||||||
style="width: 100%"
|
|
||||||
:tree-data="departList"
|
|
||||||
:placeholder="$t('pleaseSelect') + $t('department')"
|
|
||||||
/>
|
|
||||||
</a-form-model-item>
|
|
||||||
</a-col>
|
|
||||||
<!--姓名-->
|
<!--姓名-->
|
||||||
<a-col :md="6" :sm="12">
|
<a-col :md="6" :sm="12">
|
||||||
<a-form-item :label="$t('userSelect.name')">
|
<a-form-item :label="$t('userSelect.name')">
|
||||||
<j-input :placeholder="$t('pleaseEnter') + $t('userSelect.name')" v-model="queryParam.workNumber"></j-input>
|
<a-input :placeholder="$t('pleaseEnter') + $t('userSelect.name')" v-model="queryParam.realName"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<!--工号-->
|
<!--工号-->
|
||||||
<a-col :md="6" :sm="12">
|
<a-col :md="6" :sm="12">
|
||||||
<a-form-item :label="$t('user.workNo')">
|
<a-form-item :label="$t('user.workNo')">
|
||||||
<j-input :placeholder="$t('pleaseEnter') + $t('user.workNo')" v-model="queryParam.workNumber"></j-input>
|
<a-input :placeholder="$t('pleaseEnter') + $t('user.workNo')" v-model="queryParam.userName"></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
||||||
@@ -65,7 +48,8 @@
|
|||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
|
|
||||||
<template v-slot:basisDescription="{text}">
|
<template v-slot:basisDescription="{text}">
|
||||||
<div class="basis-description">{{ text }}</div>
|
<div class="basis-description" v-if="text || text === 0">{{ text }}</div>
|
||||||
|
<div v-else class="table-text">{{ global.emptyLine }}</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-slot:file="{text, record}">
|
<template v-slot:file="{text, record}">
|
||||||
@@ -121,50 +105,44 @@ export default {
|
|||||||
},
|
},
|
||||||
// 姓名
|
// 姓名
|
||||||
{
|
{
|
||||||
dataIndex: '1',
|
dataIndex: 'designEngineer_dictText',
|
||||||
title: this.$t('userSelect.name'),
|
title: this.$t('userSelect.name'),
|
||||||
width: 100
|
width: 100
|
||||||
},
|
},
|
||||||
// 工号
|
|
||||||
{
|
|
||||||
dataIndex: '2',
|
|
||||||
title: this.$t('user.workNo'),
|
|
||||||
width: 100
|
|
||||||
},
|
|
||||||
// 部门
|
|
||||||
{
|
|
||||||
dataIndex: '3',
|
|
||||||
title: this.$t('department'),
|
|
||||||
width: 100
|
|
||||||
},
|
|
||||||
// 车型
|
// 车型
|
||||||
{
|
{
|
||||||
dataIndex: '4',
|
dataIndex: 'modelSeries_dictText',
|
||||||
title: this.$t('projectLibrary.specialProjectLibrary.vehicleModel'),
|
title: this.$t('projectLibrary.specialProjectLibrary.vehicleModel'),
|
||||||
width: 100
|
width: 100
|
||||||
},
|
},
|
||||||
// 依据描述
|
// 依据描述
|
||||||
{
|
{
|
||||||
dataIndex: 'nameWorkNo',
|
dataIndex: 'description',
|
||||||
title: this.$t('projectLibrary.specialProjectLibrary.basisDescription'),
|
title: this.$t('projectLibrary.specialProjectLibrary.basisDescription'),
|
||||||
width: 250,
|
width: 250,
|
||||||
scopedSlots: { customRender: 'basisDescription' }
|
scopedSlots: { customRender: 'basisDescription' }
|
||||||
},
|
},
|
||||||
// 佐证材料
|
// 佐证材料
|
||||||
{
|
{
|
||||||
dataIndex: '5',
|
dataIndex: 'fileId',
|
||||||
title: this.$t('projectLibrary.specialProjectLibrary.supportingMaterial'),
|
title: this.$t('projectLibrary.specialProjectLibrary.supportingMaterial'),
|
||||||
width: 120
|
width: 120
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
image: false,
|
image: false,
|
||||||
imageUrl: null
|
imageUrl: null,
|
||||||
|
url: {
|
||||||
|
list: '/process/projectStandard/getTermUserList'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
open () {
|
open (processTermId) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.getDepartTreeList()
|
this.getDepartTreeList()
|
||||||
|
this.filters = {
|
||||||
|
termId: processTermId
|
||||||
|
}
|
||||||
this.loadData(1)
|
this.loadData(1)
|
||||||
},
|
},
|
||||||
handleOk () {
|
handleOk () {
|
||||||
|
|||||||
Reference in New Issue
Block a user