update 专项项目库

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