fix 79401
This commit is contained in:
+9
-21
@@ -43,11 +43,9 @@
|
|||||||
<!-- 实际稽查人 -->
|
<!-- 实际稽查人 -->
|
||||||
<template v-slot:actualInspector="{text, record}">
|
<template v-slot:actualInspector="{text, record}">
|
||||||
<div class="table-form" v-if="isInputInspectionReport">
|
<div class="table-form" v-if="isInputInspectionReport">
|
||||||
<a-select v-model="record.actualInspectUser" style="width: 100%" allowClear
|
<user-selection :placeholder="$t('pleaseSelect')+$t('workCenter.esInspectionProcess.actualInspector')" :show-btn="false"
|
||||||
:placeholder="$t('pleaseSelect')+$t('workCenter.esInspectionProcess.actualInspector')"
|
type="radio" :nameStr="record.actualInspectUser_dictText" @nameChange="nameChange($event, record)"
|
||||||
show-search :filter-option="filterOption">
|
v-model="record.actualInspectUser" />
|
||||||
<a-select-option v-for="item in userList" :key="item.id" :value="item.id">{{ item.realname + '(' + item.username + ')' }}</a-select-option>
|
|
||||||
</a-select>
|
|
||||||
</div>
|
</div>
|
||||||
<a-tooltip v-else overlay-class-name="tooltip-style">
|
<a-tooltip v-else overlay-class-name="tooltip-style">
|
||||||
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
||||||
@@ -92,15 +90,15 @@ import InspectionProcessTableModal
|
|||||||
from '@views/workCenter/enterpriseStandardInspectionProcess/modules/InspectionProcessTableModal'
|
from '@views/workCenter/enterpriseStandardInspectionProcess/modules/InspectionProcessTableModal'
|
||||||
import InspectionProcessContent
|
import InspectionProcessContent
|
||||||
from '@views/workCenter/enterpriseStandardInspectionProcess/modules/InspectionProcessContent'
|
from '@views/workCenter/enterpriseStandardInspectionProcess/modules/InspectionProcessContent'
|
||||||
import { getUserList } from '@api/api'
|
|
||||||
import InspectionProcessReport
|
import InspectionProcessReport
|
||||||
from '@views/workCenter/enterpriseStandardInspectionProcess/modules/InspectionProcessReport'
|
from '@views/workCenter/enterpriseStandardInspectionProcess/modules/InspectionProcessReport'
|
||||||
import InspectionProcessRectificationPlan
|
import InspectionProcessRectificationPlan
|
||||||
from '@views/workCenter/enterpriseStandardInspectionProcess/modules/InspectionProcessRectificationPlan'
|
from '@views/workCenter/enterpriseStandardInspectionProcess/modules/InspectionProcessRectificationPlan'
|
||||||
import { EsInspectionProcess } from '@/enums/commonEnums'
|
import { EsInspectionProcess } from '@/enums/commonEnums'
|
||||||
|
import UserSelection from '@comp/selection/UserSelection'
|
||||||
export default {
|
export default {
|
||||||
name: 'InspectionProcessTable',
|
name: 'InspectionProcessTable',
|
||||||
components: { InspectionProcessRectificationPlan, InspectionProcessReport, InspectionProcessContent, InspectionProcessTableModal, JTable },
|
components: { UserSelection, InspectionProcessRectificationPlan, InspectionProcessReport, InspectionProcessContent, InspectionProcessTableModal, JTable },
|
||||||
mixins: [JeroListMixin],
|
mixins: [JeroListMixin],
|
||||||
props: {
|
props: {
|
||||||
// 当前节点
|
// 当前节点
|
||||||
@@ -122,7 +120,6 @@ export default {
|
|||||||
delete: '/esinspect/processEsInspect/delete'
|
delete: '/esinspect/processEsInspect/delete'
|
||||||
},
|
},
|
||||||
model: {},
|
model: {},
|
||||||
userList: [],
|
|
||||||
dataSource: [],
|
dataSource: [],
|
||||||
// 需要删除的数据id(前端添加后没有保存表的数据没有id)
|
// 需要删除的数据id(前端添加后没有保存表的数据没有id)
|
||||||
delIds: [],
|
delIds: [],
|
||||||
@@ -255,12 +252,11 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
|
||||||
if (this.isInputInspectionReport) {
|
|
||||||
this.getUserList()
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
|
// 实际稽查人名字回显
|
||||||
|
nameChange (value, record) {
|
||||||
|
record.actualInspectUser_dictText = value
|
||||||
|
},
|
||||||
// 子表格删除数据事件(将删除id统一收集)
|
// 子表格删除数据事件(将删除id统一收集)
|
||||||
addDelIds (list) {
|
addDelIds (list) {
|
||||||
this.delIds.push(...list)
|
this.delIds.push(...list)
|
||||||
@@ -269,14 +265,6 @@ export default {
|
|||||||
getDelIds () {
|
getDelIds () {
|
||||||
return Array.from(new Set(this.delIds)).filter(item => item).join(',')
|
return Array.from(new Set(this.delIds)).filter(item => item).join(',')
|
||||||
},
|
},
|
||||||
// 返回用户列表
|
|
||||||
getUserList () {
|
|
||||||
getUserList({ pageNo: -1, pageSize: -1, order: 'desc', column: 'createTime' }).then(res => {
|
|
||||||
if (res.success) {
|
|
||||||
this.userList = res.result.records || []
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 稽查内容
|
// 稽查内容
|
||||||
handleInspectionContent (record, index) {
|
handleInspectionContent (record, index) {
|
||||||
this.$refs.inspectionProcessContent.show(record, index)
|
this.$refs.inspectionProcessContent.show(record, index)
|
||||||
|
|||||||
+12
-21
@@ -28,11 +28,12 @@
|
|||||||
<!-- 稽查联络人 -->
|
<!-- 稽查联络人 -->
|
||||||
<template v-slot:inspectionContactPerson="{text, record}">
|
<template v-slot:inspectionContactPerson="{text, record}">
|
||||||
<div class="table-form" v-if="isInitiate">
|
<div class="table-form" v-if="isInitiate">
|
||||||
<a-select v-model="record.liaisons" style="width: 100%" allowClear
|
<user-select-by-contact
|
||||||
show-search :filter-option="filterOption"
|
v-model="record.liaisons"
|
||||||
:placeholder="$t('pleaseSelect')+$t('workCenter.incExtensionRequest.inspectionContactPerson')">
|
:name-str="record.liaisons_dictText"
|
||||||
<a-select-option v-for="item in userList" :key="item.id" :value="item.id">{{ item.realname + '(' + item.username + ')' }}</a-select-option>
|
:showBtn="false"
|
||||||
</a-select>
|
:placeholder="$t('pleaseSelect')+$t('workCenter.incExtensionRequest.inspectionContactPerson')"
|
||||||
|
@nameChange="nameChange($event, record)" />
|
||||||
</div>
|
</div>
|
||||||
<a-tooltip v-else overlay-class-name="tooltip-style">
|
<a-tooltip v-else overlay-class-name="tooltip-style">
|
||||||
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
||||||
@@ -60,15 +61,15 @@
|
|||||||
<script>
|
<script>
|
||||||
import JTable from '@comp/jero/JTable'
|
import JTable from '@comp/jero/JTable'
|
||||||
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
import { JeroListMixin } from '@/mixins/JeroListMixin'
|
||||||
import { getUserList } from '@api/api'
|
|
||||||
import ExtensionRequestTableModal
|
import ExtensionRequestTableModal
|
||||||
from '@views/workCenter/inspectionExtensionRequestProcess/modules/ExtensionRequestTableModal'
|
from '@views/workCenter/inspectionExtensionRequestProcess/modules/ExtensionRequestTableModal'
|
||||||
import RequestExtensionModal from '@views/workCenter/inspectionExtensionRequestProcess/modules/RequestExtensionModal'
|
import RequestExtensionModal from '@views/workCenter/inspectionExtensionRequestProcess/modules/RequestExtensionModal'
|
||||||
import { InspectionExtensionRequestProcess } from '@/enums/commonEnums'
|
import { InspectionExtensionRequestProcess } from '@/enums/commonEnums'
|
||||||
import { editInspectExtensionTable } from '@api/workCenter'
|
import { editInspectExtensionTable } from '@api/workCenter'
|
||||||
|
import UserSelectByContact from '@comp/selection/UserSelectByContact'
|
||||||
export default {
|
export default {
|
||||||
name: 'ExtensionRequestTable',
|
name: 'ExtensionRequestTable',
|
||||||
components: { RequestExtensionModal, ExtensionRequestTableModal, JTable },
|
components: { UserSelectByContact, RequestExtensionModal, ExtensionRequestTableModal, JTable },
|
||||||
mixins: [JeroListMixin],
|
mixins: [JeroListMixin],
|
||||||
props: {
|
props: {
|
||||||
// 当前节点
|
// 当前节点
|
||||||
@@ -90,7 +91,6 @@ export default {
|
|||||||
delete: '/esinspectdelayapply/processEsInspectDelayApply/delete'
|
delete: '/esinspectdelayapply/processEsInspectDelayApply/delete'
|
||||||
},
|
},
|
||||||
model: {},
|
model: {},
|
||||||
userList: [],
|
|
||||||
dataSource: [],
|
dataSource: [],
|
||||||
allColumns: [
|
allColumns: [
|
||||||
{
|
{
|
||||||
@@ -215,12 +215,11 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
|
||||||
if (this.isInitiate) {
|
|
||||||
this.getUserList()
|
|
||||||
}
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
|
// 稽查联络人名字回显
|
||||||
|
nameChange (value, record) {
|
||||||
|
record.liaisons_dictText = value
|
||||||
|
},
|
||||||
// 父组件获取删除的ids
|
// 父组件获取删除的ids
|
||||||
getDelIds () {
|
getDelIds () {
|
||||||
return Array.from(new Set(this.delIds)).filter(item => item).join(',')
|
return Array.from(new Set(this.delIds)).filter(item => item).join(',')
|
||||||
@@ -270,14 +269,6 @@ export default {
|
|||||||
requestExtensionCallback (row, index) {
|
requestExtensionCallback (row, index) {
|
||||||
this.dataSource.splice(index, 1, row)
|
this.dataSource.splice(index, 1, row)
|
||||||
},
|
},
|
||||||
// 返回用户列表
|
|
||||||
getUserList () {
|
|
||||||
getUserList({ pageNo: -1, pageSize: -1, order: 'desc', column: 'createTime' }).then(res => {
|
|
||||||
if (res.success) {
|
|
||||||
this.userList = res.result.records || []
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// 跳转详情
|
// 跳转详情
|
||||||
detailClick (record) {
|
detailClick (record) {
|
||||||
this.$openPageNewSheet({
|
this.$openPageNewSheet({
|
||||||
|
|||||||
Reference in New Issue
Block a user