This commit is contained in:
范强强
2023-03-23 15:39:03 +08:00
parent 59fabf25fb
commit b5cdf10015
5 changed files with 469 additions and 564 deletions
@@ -487,7 +487,7 @@
<a-select allowClear <a-select allowClear
:placeholder="$t('pleaseSelect')+$t('expeditionProcess')" :placeholder="$t('pleaseSelect')+$t('expeditionProcess')"
mode="multiple" mode="multiple"
v-model="formInlineQuestion.questionStatus"> v-model="formInlineQuestion.expeditingType">
<a-select-option :value="item.value" v-for="item in questionList"> <a-select-option :value="item.value" v-for="item in questionList">
<span class="itemOption-index" :title="item.name"> <span class="itemOption-index" :title="item.name">
{{ item.name }} {{ item.name }}
@@ -559,7 +559,7 @@
roleSwitchingList: [], roleSwitchingList: [],
formInlineQuestion: {}, formInlineQuestion: {},
rulesRoleQuestion: { rulesRoleQuestion: {
questionStatus: [ expeditingType: [
{ {
required: true, required: true,
message: this.$t('expeditionProcess') + this.$t('cannotEmpty'), message: this.$t('expeditionProcess') + this.$t('cannotEmpty'),
@@ -569,11 +569,11 @@
}, },
questionList: [ questionList: [
{ {
value: '1', value: 'lawsInventoryDesignExpediting',
name: this.$t('designComplianceProcess') name: this.$t('designComplianceProcess')
}, },
{ {
value: '2', value: 'lawsInventoryVerifyExpediting',
name: this.$t('validationComplianceProcess') name: this.$t('validationComplianceProcess')
} }
], ],
@@ -1524,13 +1524,13 @@
handleOkQuestion() { handleOkQuestion() {
this.$refs.ruleFormQuestion.validate(valid => { this.$refs.ruleFormQuestion.validate(valid => {
let formInlineQuestion = JSON.parse(JSON.stringify(this.formInlineQuestion)) let formInlineQuestion = JSON.parse(JSON.stringify(this.formInlineQuestion))
if (formInlineQuestion.questionStatus && formInlineQuestion.questionStatus.length > 0) { if (formInlineQuestion.expeditingType && formInlineQuestion.expeditingType.length > 0) {
formInlineQuestion.questionStatus = formInlineQuestion.questionStatus.join(',') formInlineQuestion.expeditingType = formInlineQuestion.expeditingType.join(',')
} }
let query = { let query = {
ids: this.questionIdList.join(','), ids: this.questionIdList.join(','),
projectLibraryId: this.$route.query.id, projectLibraryId: this.$route.query.id,
questionStatus: formInlineQuestion.questionStatus expeditingType: formInlineQuestion.expeditingType
} }
this.confirmLoadingQuestion = true this.confirmLoadingQuestion = true
postAction('project/projectLawsInventoryEO/expediting', query).then((res) => { postAction('project/projectLawsInventoryEO/expediting', query).then((res) => {
@@ -50,9 +50,6 @@
</template> </template>
<span style="float: right;overflow: hidden;" class="table-page-search-submitButtons"> <span style="float: right;overflow: hidden;" class="table-page-search-submitButtons">
<a-col :md="12" :sm="24"> <a-col :md="12" :sm="24">
<globalAdvancedQuery ref="globalAdvancedQueryRef"
@handleSuperQuery="handleSuperQuery"
:fieldList="fieldList"/>
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button> <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> <a-button class="box-button" style="margin-left: 8px" @click="searchReset">{{$t('reset')}}</a-button>
<a @click="handleToggleSearch" style="margin-left: 8px"> <a @click="handleToggleSearch" style="margin-left: 8px">
@@ -103,14 +100,10 @@
<script> <script>
import { getAction, postAction } from '@/api/manage' import { getAction, postAction } from '@/api/manage'
import globalAdvancedQuery from '@/components/globalAdvancedQuery/index'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header' import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: 'codeNumber', name: 'codeNumber',
components: {
globalAdvancedQuery
},
mixins: [ResizeHeader, ResizeColumnProvide], mixins: [ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
@@ -184,7 +177,6 @@ export default {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
total: 0, total: 0,
fieldList: [],
queryParamQuery: {}, queryParamQuery: {},
queryConditionVOList: [] queryConditionVOList: []
} }
@@ -202,7 +194,6 @@ export default {
this.selectedRowKeys = [] this.selectedRowKeys = []
this.queryConditionVOList = [] this.queryConditionVOList = []
this.replacePage() this.replacePage()
this.queryConditionInventory()
}, },
// number() { // number() {
// this.regulation = '' // this.regulation = ''
@@ -214,9 +205,6 @@ export default {
searchReset() { searchReset() {
this.pageNo = 1 this.pageNo = 1
this.queryParam = {} this.queryParam = {}
this.queryConditionVOList = []
this.$refs.globalAdvancedQueryRef.resetLine()
this.$refs.globalAdvancedQueryRef.emitCallback()
this.replacePage() this.replacePage()
}, },
onChange(page, pageSize) { onChange(page, pageSize) {
@@ -228,18 +216,6 @@ export default {
this.pageSize = pageSize this.pageSize = pageSize
this.replacePage() this.replacePage()
}, },
queryConditionInventory() {
let query = {
flag: 1
}
getAction(this.url.queryConditionInventory, query).then((res) => {
if (res.success) {
this.fieldList = res.result || []
} else {
this.fieldList = []
}
})
},
replacePage() { replacePage() {
let queryConditionVOList = JSON.parse(JSON.stringify(this.queryConditionVOList)) let queryConditionVOList = JSON.parse(JSON.stringify(this.queryConditionVOList))
let query = { let query = {
@@ -268,20 +244,6 @@ export default {
handleCancel() { handleCancel() {
this.visible = false this.visible = false
}, },
handleSuperQuery(params, matchType) {
let sqp = {}
if (!params || (params && params.length == 0)) {
this.queryConditionVOList = []
this.$refs.globalAdvancedQueryRef.superQueryFlag = false
} else {
this.$refs.globalAdvancedQueryRef.superQueryFlag = true
this.queryConditionVOList = params
this.queryConditionVOList.forEach(res => {
res.type = matchType
})
}
this.replacePage()
},
handleSubmit() { handleSubmit() {
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
this.confirmLoading = true this.confirmLoading = true
@@ -56,7 +56,7 @@
<div class="drawer-bootom-button"> <div class="drawer-bootom-button">
<a-button @click="handleCancel" style="margin-right: 16px">{{$t('cancel')}}</a-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> <a-button @click="handleSubmit" type="primary" :loading="confirmLoading">{{$t('determine')}}</a-button>
</div> </div>
</a-drawer> </a-drawer>
</template> </template>
@@ -144,6 +144,9 @@ export default {
// this.loading = false // this.loading = false
// } // }
// }) // })
},
handleSubmit(){
}, },
onSelectChange(value) { onSelectChange(value) {
this.selectedRowKeys = value this.selectedRowKeys = value
@@ -48,7 +48,7 @@
:components="drag(columns,'columns')" :components="drag(columns,'columns')"
:loading="loading" :loading="loading"
:pagination="false" :pagination="false"
:scroll="{x: '100%'}" :scroll="{x: '100%',y:'calc(100vh - 300px)'}"
rowKey="id" rowKey="id"
:data-source="dataSource" :data-source="dataSource"
:columns="columns" :columns="columns"
@@ -67,7 +67,7 @@
<a class="text-operation" <a class="text-operation"
v-has="'dummyInventoryBase:issue'" v-has="'dummyInventoryBase:issue'"
@click="withdraw(record)"> @click="withdraw(record)">
{{record.state == 2 ? $t('release') : $t('withdraw')}} {{!record.state || record.state == 2 ? $t('release') : $t('withdraw')}}
</a> </a>
<!-- v-if="record.createBy == userData.username || administrators"--> <!-- v-if="record.createBy == userData.username || administrators"-->
<a class="text-operation" :disabled="record.state == 1?true:false" <a class="text-operation" :disabled="record.state == 1?true:false"
@@ -309,7 +309,7 @@ export default {
withdraw(val) { withdraw(val) {
let item = {} let item = {}
let content = '' let content = ''
if (val.state == 2) { if (!val.state || val.state == 2) {
content = this.$t('confirmRelease') content = this.$t('confirmRelease')
item.state = 1 item.state = 1
} else { } else {
@@ -66,13 +66,29 @@
v-model="queryParam.serialNumber"></j-input> v-model="queryParam.serialNumber"></j-input>
</div> </div>
</a-col> </a-col>
<template v-if="toggleSearchStatus">
<a-col :md="6" :sm="8">
<div class="box-title-text">
<div class="title-text" :title="$t('areaOfResponsibility')">
<span>{{$t('areaOfResponsibility')}}</span>
</div>
<j-dict-select-tag class="box-input"
v-model="queryParam.dutyTerritory"
:placeholder="$t('PleaseSelect')+$t('areaOfResponsibility')"
:type="'select'"
:triggerChange="false" :dictCode="'duty_territory'"/>
</div>
</a-col>
</template>
<span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons"> <span style="float: right;overflow: hidden;margin-right: 11px" class="table-page-search-submitButtons">
<a-col :md="6" :sm="24"> <a-col :md="6" :sm="24">
<globalAdvancedQuery ref="globalAdvancedQueryRef"
@handleSuperQuery="handleSuperQuery"
:fieldList="fieldList"/>
<a-button class="box-button" type="primary" @click="searchQuery">{{$t('query')}}</a-button> <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> <a-button class="box-button" style="margin-left: 8px"
@click="searchReset">{{$t('reset')}}</a-button>
<a @click="handleToggleSearch" style="margin-left: 8px">
{{ !toggleSearchStatus ? $t('open') : $t('away') }}
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
</a>
</a-col> </a-col>
</span> </span>
</a-row> </a-row>
@@ -107,13 +123,13 @@
</div> </div>
<!-- 调取--> <!-- 调取-->
<!-- v-if="isTrue"--> <!-- v-if="isTrue"-->
<!-- <div v-if="isTrue"--> <div v-if="isTrue"
<!-- @click="transferClick"--> @click="transferClick"
<!-- v-has="'dummyInventoryInfo:copyInfoByIds'"--> v-has="'dummyInventoryInfo:copyInfoByIds'"
<!-- class="operator-text" >--> class="operator-text">
<!-- <a-icon type="profile"/>--> <a-icon type="profile"/>
<!-- {{$t('Transfer')}}--> {{$t('Transfer')}}
<!-- </div>--> </div>
<!-- 添加--> <!-- 添加-->
<!-- v-if="isTrue"--> <!-- v-if="isTrue"-->
<div v-if="isTrue" <div v-if="isTrue"
@@ -254,10 +270,10 @@ export default {
isTrue: false, isTrue: false,
isFalse: false, isFalse: false,
isbutton: false, isbutton: false,
queryParamQuery: {}, toggleSearchStatus:false,
dataSource: [], dataSource: [],
url: { url: {
list: '/authDummy/authDummyInventoryInfoEO/page', list: '/authDummy/authDummyInventoryInfoEO/list',
logList: '/authDummy/authDummyLog/page',//更新log logList: '/authDummy/authDummyLog/page',//更新log
exportTemplate: '/authDummy/authDummyInventoryInfoEO/exportTemplate',//模板下载 exportTemplate: '/authDummy/authDummyInventoryInfoEO/exportTemplate',//模板下载
exportData: '/authDummy/authDummyInventoryInfoEO/exportData',//导出 exportData: '/authDummy/authDummyInventoryInfoEO/exportData',//导出
@@ -267,7 +283,7 @@ export default {
editModel: '/authDummy/authDummyInventoryInfoEO/edit',//编辑 editModel: '/authDummy/authDummyInventoryInfoEO/edit',//编辑
setBatch: '/authDummy/authDummyInventoryInfoEO/setBatch',//批量设置 setBatch: '/authDummy/authDummyInventoryInfoEO/setBatch',//批量设置
importZipUrl: '/authDummy/authDummyInventoryInfoEO/importData',//导入 importZipUrl: '/authDummy/authDummyInventoryInfoEO/importData',//导入
number: '/project/projectLawsInventoryEO/list', number: '/project/projectLawsInventoryEO/list'
}, },
queryParam: {}, queryParam: {},
orderByField: '', orderByField: '',
@@ -277,7 +293,8 @@ export default {
align: 'left', align: 'left',
dataIndex: 'category', dataIndex: 'category',
width: 150, width: 150,
ellipsis: true, fixed: 'left',
ellipsis: true
}, },
{ {
title: this.$t('inspectionItems'), title: this.$t('inspectionItems'),
@@ -285,6 +302,7 @@ export default {
dataIndex: 'inspectionItem', dataIndex: 'inspectionItem',
width: 150, width: 150,
ellipsis: true, ellipsis: true,
fixed: 'left',
scopedSlots: { customRender: 'inspectionItems' } scopedSlots: { customRender: 'inspectionItems' }
}, },
{ {
@@ -292,35 +310,35 @@ export default {
align: 'left', align: 'left',
dataIndex: 'configItem', dataIndex: 'configItem',
width: 150, width: 150,
ellipsis: true, ellipsis: true
}, },
{ {
title: 'WVTA ID', title: 'WVTA ID',
align: 'left', align: 'left',
dataIndex: 'wvtaId', dataIndex: 'wvtaId',
width: 150, width: 150,
ellipsis: true, ellipsis: true
}, },
{ {
title: this.$t('standard'), title: this.$t('standard'),
align: 'left', align: 'left',
dataIndex: 'serialNumber', dataIndex: 'serialNumber',
width: 150, width: 150,
ellipsis: true, ellipsis: true
}, },
{ {
title: this.$t('areaOfResponsibility'), title: this.$t('areaOfResponsibility'),
align: 'left', align: 'left',
dataIndex: 'dutyTerritoryName', dataIndex: 'dutyTerritoryName',
width: 200, width: 200,
ellipsis: true, ellipsis: true
}, },
{ {
title: this.$t('typeOfDeliverables'), title: this.$t('typeOfDeliverables'),
align: 'left', align: 'left',
dataIndex: 'deliverableTypeName', dataIndex: 'deliverableTypeName',
width: 200, width: 200,
ellipsis: true, ellipsis: true
}, },
{ {
title: this.$t('operation'), title: this.$t('operation'),
@@ -331,71 +349,7 @@ export default {
} }
], ],
selectedRowKeys: [], selectedRowKeys: [],
loading: false, loading: false
fieldList: [
{
type: '',
value: 'shi4Yong4Fan4Wei2',
text: this.$t('scopeOfApplication'),
dictCode: 'apply_scope'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
},
{
type: '',
value: 'state',
text: this.$t('status'),
dictCode: 'state'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
},
{
type: 'string',
value: 'correspondingStandard',
text: this.$t('correspondingStandard')
},
{
type: '',
value: 'region',
text: this.$t('zoneOfApplication'),
dictCode: 'region'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
},
{
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: 'string',
value: 'wvtaId',
text: 'WVTA ID'
},
{
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: '',
value: 'dutyTerritory',
text: this.$t('areaOfResponsibility'),
dictCode: 'duty_territory'//只要 dictCode 有值,无论 type 是什么,都显示为字典下拉框
}
]
} }
}, },
created() { created() {
@@ -412,26 +366,15 @@ export default {
this.isFalse = this.$route.query.title == '虚拟认证清单详情' ? true : false this.isFalse = this.$route.query.title == '虚拟认证清单详情' ? true : false
this.getList() this.getList()
}, },
computed: { computed: {},
},
methods: { methods: {
...mapGetters(['userInfo']), ...mapGetters(['userInfo']),
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.getList()
},
onSelectChange(value) { onSelectChange(value) {
this.selectedRowKeys = value this.selectedRowKeys = value
}, },
handleToggleSearch() {
this.toggleSearchStatus = !this.toggleSearchStatus
},
UpdateLogClick() { UpdateLogClick() {
this.$refs.UpdateLogRef.getList({ dummyInventoryBaseId: this.$route.query.id }) this.$refs.UpdateLogRef.getList({ dummyInventoryBaseId: this.$route.query.id })
}, },
@@ -441,8 +384,6 @@ export default {
}, },
//清空 //清空
searchReset() { searchReset() {
this.$refs.globalAdvancedQueryRef.resetLine()
this.$refs.globalAdvancedQueryRef.emitCallback()
this.queryParam = {} this.queryParam = {}
this.getList() this.getList()
}, },
@@ -451,9 +392,9 @@ export default {
downloadFile(this.url.exportTemplate, this.$t('VirtualAuthenticationList') + this.$t('importTemplate') + '.xls', {}) downloadFile(this.url.exportTemplate, this.$t('VirtualAuthenticationList') + this.$t('importTemplate') + '.xls', {})
}, },
//调取 //调取
// transferClick() { transferClick() {
// this.$refs.transferListRef.transferModel() this.$refs.transferListRef.transferModel()
// }, },
//添加 //添加
handleAdd() { handleAdd() {
this.$refs.addModelRef.addModel() this.$refs.addModelRef.addModel()
@@ -463,7 +404,6 @@ export default {
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys)) let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
let query = { let query = {
...this.queryParam, ...this.queryParam,
...this.queryParamQuery,
ids: selectedRowKeys.join(','), ids: selectedRowKeys.join(','),
authDummyInventoryBaseId: this.$route.query.id authDummyInventoryBaseId: this.$route.query.id
} }
@@ -557,7 +497,6 @@ export default {
getList() { getList() {
let query = { let query = {
...this.queryParam, ...this.queryParam,
...this.queryParamQuery,
orderBy: this.orderBy, orderBy: this.orderBy,
orderByField: this.orderByField, orderByField: this.orderByField,
authDummyInventoryBaseId: this.$route.query.id authDummyInventoryBaseId: this.$route.query.id
@@ -565,7 +504,7 @@ export default {
this.loading = true this.loading = true
getAction(this.url.list, query).then((res) => { getAction(this.url.list, query).then((res) => {
if (res.success) { if (res.success) {
this.dataSource = res.result.records || [] this.dataSource = res.result || []
this.loading = false this.loading = false
} else { } else {
this.loading = false this.loading = false
@@ -590,7 +529,7 @@ export default {
}) })
} }
}) })
}, }
} }
} }
@@ -632,6 +571,7 @@ export default {
display: flex; display: flex;
} }
} }
.Virtual-detail-content { .Virtual-detail-content {
padding: 0 32px 0 32px; padding: 0 32px 0 32px;
box-sizing: border-box; box-sizing: border-box;