Commit ce7680eb by 米嘉伟

Merge branch 'dev_zwpt' of http://39.99.224.27:9022/changchao/founder_vue into dev_zwpt

parents f0af3fa6 9a82ce94
<template>
<el-container
class="confirm-page"
direction="vertical"
>
<div class="confirm_header_search">
<div
class="width100 margin_top24_bottom24"
style="display: flex; align-items: center; position: relative"
>
<div class="display_style">
<span class="labelFont">条码号:</span>
<el-input
maxlength="23"
show-word-limit
clearable
class="el_input tmh"
v-model="reqParam.contrastCustomSearchReq.barcode"
placeholder="请输入条码号"
></el-input>
</div>
<div class="display_style">
<span class="labelFont">用户:</span>
<el-select
class="el_select"
v-model="reqParam.contrastCustomSearchReq.userid"
@change="selectUserInfo"
clearable
@clear="clearUser"
>
<el-option
v-for="(item, index) in userOption"
:key="index"
:label="item.label"
:value="item.userid"
>
</el-option>
</el-select>
</div>
<div class="display_style">
<span class="labelFont">查询ID:</span>
<el-input
class="el_input"
placeholder="请输入查询ID"
v-model="reqParam.contrastCustomSearchReq.qqid"
></el-input>
</div>
<div class="display_style">
<span class="labelFont">任务号:</span>
<el-input
class="el_input"
placeholder="请输入任务号"
v-model="reqParam.contrastCustomSearchReq.qid"
></el-input>
</div>
<div
class="display_style send_time"
style="display: flex; align-items: center"
>
<span class="labelFont">发送时间:</span>
<el-date-picker
v-model="startEndDate"
style="display: flex; align-items: center"
class="el_data_picker"
type="daterange"
range-separator="-"
start-placeholder="开始时间"
end-placeholder="结束时间"
:picker-options="{
<el-container class="confirm-page" direction="vertical">
<div class="confirm_header_search">
<div class="width100 margin_top24_bottom24" style="display: flex; align-items: center; position: relative">
<div class="display_style">
<span class="labelFont">条码号:</span>
<el-input maxlength="23" show-word-limit clearable class="el_input tmh" v-model="reqParam.contrastCustomSearchReq.barcode" placeholder="请输入条码号"></el-input>
</div>
<div class="display_style">
<span class="labelFont">用户:</span>
<el-select class="el_select" v-model="reqParam.contrastCustomSearchReq.userid" @change="selectUserInfo" clearable @clear="clearUser">
<el-option v-for="(item, index) in userOption" :key="index" :label="item.label" :value="item.userid">
</el-option>
</el-select>
</div>
<div class="display_style">
<span class="labelFont">查询ID:</span>
<el-input class="el_input" placeholder="请输入查询ID" v-model="reqParam.contrastCustomSearchReq.qqid"></el-input>
</div>
<div class="display_style">
<span class="labelFont">任务号:</span>
<el-input class="el_input" placeholder="请输入任务号" v-model="reqParam.contrastCustomSearchReq.qid"></el-input>
</div>
<div class="display_style send_time" style="display: flex; align-items: center">
<span class="labelFont">发送时间:</span>
<el-date-picker v-model="startEndDate" style="display: flex; align-items: center" class="el_data_picker" type="daterange" range-separator="-" start-placeholder="开始时间" end-placeholder="结束时间" :picker-options="{
disabledDate: disabledDate,
}"
>
</el-date-picker>
</div>
<div class="pRight">
<div
class="clear_btn"
@click="clearParams('yes')"
:style="{ visibility: newStr ? '' : 'hidden' }"
>
清空
</div>
<el-button
type="primary"
class="f-primary-button"
@click="search"
>筛选
</el-button>
</div>
</div>
<div class="width100 margin_top24_bottom24 display_style">
<div class="display_style prevent">
<label class="btnLabel">查询类型:</label>
<div
v-for="(btn, index) in queryTypeBtns"
:key="index"
>
<!-- <div-->
<!-- class="btn"-->
<!-- @click="getQueryType(btn, 'querytypes')"-->
<!-- :class="[-->
<!-- reqParam.contrastCustomSearchReq.querytypes.includes(-->
<!-- btn.value-->
<!-- ) && btn.value === '2'-->
<!-- ? 'btn-active-zc'-->
<!-- : ''-->
<!-- ]"-->
<!-- >-->
<div
class="btn1"
@click="getQueryType(btn, 'querytypes')"
:class="[
}">
</el-date-picker>
</div>
<div class="pRight">
<div class="clear_btn" @click="clearParams('yes')" :style="{ visibility: newStr ? '' : 'hidden' }">
清空
</div>
<el-button type="primary" class="f-primary-button" @click="search">筛选
</el-button>
</div>
</div>
<div class="width100 margin_top24_bottom24 display_style">
<div class="display_style prevent">
<label class="btnLabel">查询类型:</label>
<div v-for="(btn, index) in queryTypeBtns" :key="index">
<!-- <div-->
<!-- class="btn"-->
<!-- @click="getQueryType(btn, 'querytypes')"-->
<!-- :class="[-->
<!-- reqParam.contrastCustomSearchReq.querytypes.includes(-->
<!-- btn.value-->
<!-- ) && btn.value === '2'-->
<!-- ? 'btn-active-zc'-->
<!-- : ''-->
<!-- ]"-->
<!-- >-->
<div class="btn1" @click="getQueryType(btn, 'querytypes')" :class="[
btn.value === '2'
? 'btn-active-zc'
: btn.value === '3'
......@@ -119,291 +61,170 @@
: btn.value === '0'
? 'btn-active-cc'
: '',
]"
>
{{ btn.name }}
</div>
</div>
</div>
<p class="shu"></p>
<div class="display_style prevent">
<label class="btnLabel">优先级:</label>
<div
v-for="(btn, index) in queryClassBtns"
:key="index"
>
<div
class="btn"
@click="getQueryType(btn, 'queryclasss')"
:class="[
]">
{{ btn.name }}
</div>
</div>
</div>
<p class="shu"></p>
<div class="display_style prevent">
<label class="btnLabel">优先级:</label>
<div v-for="(btn, index) in queryClassBtns" :key="index">
<div class="btn" @click="getQueryType(btn, 'queryclasss')" :class="[
reqParam.contrastCustomSearchReq.queryclasss.includes(btn.value)
? 'btn-active'
: '',
]"
>
{{ btn.name }}
</div>
</div>
</div>
<p class="shu"></p>
<div class="display_style">
<label class="btnLabel">是否远程:</label>
<div
v-for="(btn, index) in remoteFlagBtns"
:key="index"
>
<div
class="btn"
@click="getQueryType(btn, 'remoteflags')"
:class="[
]">
{{ btn.name }}
</div>
</div>
</div>
<p class="shu"></p>
<div class="display_style">
<label class="btnLabel">是否远程:</label>
<div v-for="(btn, index) in remoteFlagBtns" :key="index">
<div class="btn" @click="getQueryType(btn, 'remoteflags')" :class="[
reqParam.contrastCustomSearchReq.remoteflags.includes(btn.value)
? 'btn-active'
: '',
]"
>
{{ btn.name }}
</div>
</div>
</div>
<div class="display_style">
<!-- <el-checkbox
]">
{{ btn.name }}
</div>
</div>
</div>
<div class="display_style">
<!-- <el-checkbox
><span>显示系统自发查询</span></el-checkbox
> -->
</div>
</div>
<div class="width100 margin_top24_bottom24 display_style">
<label class="width70 btnLabel">状态选择:</label>
<!-- -1:无效;0:等待比对;1:正在比对;9:比对出错;10:比对完成(等待认定);11:正在认定;19:认定出错;20:认定完成(等待复核);21:正在复核;29:复核出错;30;复合完成;99:标记删除-->
<div
class="btn"
@click="allQueryType()"
>全部
</div>
<div
v-for="(btn, index) in queryStateBtns"
:key="index"
>
<div
class="btn"
@click="getQueryType(btn, 'querystates')"
:class="[
</div>
</div>
<div class="width100 margin_top24_bottom24 display_style">
<label class="width70 btnLabel">状态选择:</label>
<!-- -1:无效;0:等待比对;1:正在比对;9:比对出错;10:比对完成(等待认定);11:正在认定;19:认定出错;20:认定完成(等待复核);21:正在复核;29:复核出错;30;复合完成;99:标记删除-->
<div class="btn" @click="allQueryType()">全部
</div>
<div v-for="(btn, index) in queryStateBtns" :key="index">
<div class="btn" @click="getQueryType(btn, 'querystates')" :class="[
reqParam.contrastCustomSearchReq.querystates.includes(btn.value)
? 'btn-active'
: '',
]"
>
{{ btn.name }}
</div>
</div>
</div>
]">
{{ btn.name }}
</div>
</div>
<div class="confirm_main">
<div class="confirm_main_search margin0 width100">
<div class="display_style style-one">
<el-button
type="info"
@click="batch"
>批量操作
</el-button>
<div class="middle style-middle">
<!-- <div class="font" @click="clearAll()">
</div>
</div>
<div class="confirm_main">
<div class="confirm_main_search margin0 width100">
<div class="display_style style-one">
<el-button type="info" @click="batch">批量操作
</el-button>
<div class="middle style-middle">
<!-- <div class="font" @click="clearAll()">
<span>全部数据</span>
<i class="iconfont icon-xiala"></i>
</div> -->
<div class="el-tag-box">
<el-tag
style="margin-right: 10px"
:key="index"
v-for="(tag, index) in dynamicTags"
closable
:disable-transitions="false"
@close="handleClose(tag)"
>
{{ tag.name }}
</el-tag>
</div>
</div>
</div>
<div class="display_style confirm_main_button">
<div
class="rgrd"
@click="$refs.recognitionDialog.open()"
>
<!-- <img src="@/assets/img/person1.png" alt="" /> -->
<i class="iconfont icon-rengongrending"></i>
<span>人工认定</span>
</div>
<!-- 自定义列 起 -->
<div class="margin0">
<el-dropdown trigger="click">
<el-button type="info">自定义列</el-button>
<el-dropdown-menu slot="dropdown" class="el-dropdown-content-bg">
<el-checkbox-group
v-model="checkedProps"
@change="changeCheckbox"
>
<el-checkbox
v-for="(item, index) in defaultTableProps"
:label="item.prop"
:key="index"
>
{{ item.colume }}
</el-checkbox>
</el-checkbox-group>
</el-dropdown-menu>
</el-dropdown>
</div>
<!-- 自定义列 止 -->
<!-- 复制条码号 起 -->
<el-button
type="info"
v-if="roleArr.includes('C-1-3')"
v-clipboard:copy="barcode"
@click="getBarcode"
v-clipboard:success="onCopy"
v-clipboard:error="onError"
>
复制条码
</el-button>
<!-- 复制条码号 止 -->
<el-button
type="info"
@click="delMore"
v-if="roleArr.includes('C-1-4')"
>删除
</el-button>
<!-- <el-button>发查询</el-button>-->
</div>
<div class="el-tag-box">
<el-tag style="margin-right: 10px" :key="index" v-for="(tag, index) in dynamicTags" closable :disable-transitions="false" @close="handleClose(tag)">
{{ tag.name }}
</el-tag>
</div>
<el-tag
class="removeDia"
style="width: 100%; color: #666666; margin-bottom: 0.5rem"
v-show="isShowTip"
>
<i
class="iconfont icon-tanhao1"
style="color: #055fe7; font-size: 1rem; margin: 0 0.625rem"
></i>
已选择
<span style="color: #055fe7">{{ selectionData.length }}</span> 项​
<span v-html="'&nbsp;&nbsp;'"></span>
<el-link
type="primary"
:underline="false"
:style="{
</div>
</div>
<div class="display_style confirm_main_button">
<div class="rgrd" @click="$refs.recognitionDialog.open()">
<!-- <img src="@/assets/img/person1.png" alt="" /> -->
<i class="iconfont icon-rengongrending"></i>
<span>人工认定</span>
</div>
<!-- 自定义列 起 -->
<div class="margin0">
<el-dropdown trigger="click">
<el-button type="info">自定义列</el-button>
<el-dropdown-menu slot="dropdown" class="el-dropdown-content-bg">
<el-checkbox-group v-model="checkedProps" @change="changeCheckbox">
<el-checkbox v-for="(item, index) in defaultTableProps" :label="item.prop" :key="index">
{{ item.colume }}
</el-checkbox>
</el-checkbox-group>
</el-dropdown-menu>
</el-dropdown>
</div>
<!-- 自定义列 止 -->
<!-- 复制条码号 起 -->
<el-button type="info" v-if="roleArr.includes('C-1-3')" v-clipboard:copy="barcode" @click="getBarcode" v-clipboard:success="onCopy" v-clipboard:error="onError">
复制条码
</el-button>
<!-- 复制条码号 止 -->
<el-button type="info" @click="delMore" v-if="roleArr.includes('C-1-4')">删除
</el-button>
<!-- <el-button>发查询</el-button>-->
</div>
</div>
<el-tag class="removeDia" style="width: 100%; color: #666666; margin-bottom: 0.5rem" v-show="isShowTip">
<i class="iconfont icon-tanhao1" style="color: #055fe7; font-size: 1rem; margin: 0 0.625rem"></i>
已选择
<span style="color: #055fe7">{{ selectionData.length }}</span> 项​
<span v-html="'&nbsp;&nbsp;'"></span>
<el-link type="primary" :underline="false" :style="{
marginLeft: '1.25rem',
color: selectionData.length > 0 ? '#055FE7' : '#C2C4C7',
}"
@click="toggleSelection()"
>清除
</el-link>
</el-tag>
<div class="confirm_main_table">
<el-table
style="width: 100%"
:height="height"
:border="false"
@selection-change="handleSelectionChange"
ref="confirmTable"
tooltip-effect="dark"
:data="list"
:key="tableKey"
:class="{ delSelection: !selectBoo }"
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
row-key="queryId"
@row-click="confirm"
@expand-change="hadnlExpandChange"
>
<!-- @select-all="handleSelectAll" -->
<el-table-column
type="selection"
height
width="auto"
></el-table-column>
<el-table-column
prop=""
label="任务号/查询ID"
:width="cxyrdWidth1"
>
<template #header>
<div class="tableHeader">
<span>任务号 </span>
<span>/ 查询ID</span>
</div>
</template>
<template slot-scope="scope">
<svg-icon
style="
}" @click="toggleSelection()">清除
</el-link>
</el-tag>
<div class="confirm_main_table">
<el-table style="width: 100%" :height="height" :border="false" @selection-change="handleSelectionChange" ref="confirmTable" tooltip-effect="dark" :data="list" :key="tableKey" :class="{ delSelection: !selectBoo }" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }" row-key="queryId" @row-click="confirm" @expand-change="hadnlExpandChange">
<!-- @select-all="handleSelectAll" -->
<el-table-column type="selection" height width="auto"></el-table-column>
<el-table-column prop="" label="任务号/查询ID" :width="cxyrdWidth1">
<template #header>
<div class="tableHeader">
<span>任务号 </span>
<span>/ 查询ID</span>
</div>
</template>
<template slot-scope="scope">
<svg-icon style="
width: 0.875rem;
height: 0.6875rem;
margin-bottom: 0.125rem;
margin-left: 0.3125rem;
"
v-if="scope.row.children || scope.row.children === null"
icon-class="tree_f"
>
</svg-icon>
<svg-icon
style="
" v-if="scope.row.children || scope.row.children === null" icon-class="tree_f">
</svg-icon>
<svg-icon style="
width: 0.8125rem;
height: 0.375rem;
margin: 0 0 0.1875rem 0;
"
v-else-if="!scope.row.children || scope.row.children !== null"
icon-class="tree_c"
></svg-icon>
{{
" v-else-if="!scope.row.children || scope.row.children !== null" icon-class="tree_c"></svg-icon>
{{
scope.row.children || scope.row.children === null
? scope.row.qid
: scope.row.qqid
}}
<div
v-show="scope.row.children && scope.row.children !== null"
class="children-count"
>
{{ scope.row.children ? scope.row.children.length : 0 }}
</div>
</template>
</el-table-column>
<el-table-column
v-for="(item, index) in tableProps"
show-overflow-tooltip
:key="index"
:label="item.colume"
:prop="item.prop"
:width="item.width"
:sortable="
<div v-show="scope.row.children && scope.row.children !== null" class="children-count">
{{ scope.row.children ? scope.row.children.length : 0 }}
</div>
</template>
</el-table-column>
<el-table-column v-for="(item, index) in tableProps" show-overflow-tooltip :key="index" :label="item.colume" :prop="item.prop" :width="item.width" :sortable="
item.prop == 'affirmtime' ||
item.prop == 'requestdatetime' ||
item.prop == 'queryclass'
? true
: false
"
>
">
<template slot-scope="scope">
<template v-if="item.prop === 'querytype'">
<div
v-if="scope.row.querytype === '3'"
style="color: #055fe7"
>
<div v-if="scope.row.querytype === '3'" style="color: #055fe7">
{{ scope.row.queryTypeName }}
</div>
<div
v-else-if="scope.row.querytype === '0'"
style="color: #fa9500"
>
<div v-else-if="scope.row.querytype === '0'" style="color: #fa9500">
{{ scope.row.queryTypeName }}
</div>
<div
v-else-if="scope.row.querytype === '1'"
style="color: #e60012"
>
<div v-else-if="scope.row.querytype === '1'" style="color: #e60012">
{{ scope.row.queryTypeName }}
</div>
<div
v-else-if="scope.row.querytype === '2'"
style="color: #00b47a"
>
<div v-else-if="scope.row.querytype === '2'" style="color: #00b47a">
{{ scope.row.queryTypeName }}
</div>
<div v-else>
......@@ -415,16 +236,9 @@
{{ scope.row.barcode }}
<!-- {{ scope.row.artificialAffirmFlag }} -->
<div v-if="scope.row.barcode && scope.row.artificialAffirmFlag !='1'">
<img
class="history"
:src="historyUrl"
@click.stop="getDialog(scope.row)"
/>
<img class="history" :src="historyUrl" @click.stop="getDialog(scope.row)" />
</div>
<div
v-if="scope.row.barcode && scope.row.artificialAffirmFlag=='1'"
class="rgbq"
>
<div v-if="scope.row.barcode && scope.row.artificialAffirmFlag=='1'" class="rgbq">
<p>人工</p>
</div>
</div>
......@@ -454,90 +268,53 @@
{{ dataFormat(scope.row, item.prop) }}</template>
</template>
</el-table-column>
<el-table-column
width="auto"
label="操作"
align="left"
>
<el-table-column width="auto" label="操作" align="left">
<template slot-scope="scope">
<Confirmation
content="复制条码"
v-if="scope.row.barcode && roleArr.includes('C-1-5')"
>
<img
style="
<Confirmation content="复制条码" v-if="scope.row.barcode && roleArr.includes('C-1-5')">
<img style="
width: 1rem;
height: 1rem;
margin-right: 1.125rem;
cursor: pointer;
"
src="@/assets/img/qbryk/fz.svg"
@click.stop="
" src="@/assets/img/qbryk/fz.svg" @click.stop="
() => {
delSelect();
edit(scope.row);
}
" />
</Confirmation>
<div @click.stop="() => {}">
<Confirmation
:ref="getPopConfirmRef(scope.$index)"
v-if="scope.row.barcode && roleArr.includes('C-1-6')"
@onConfirm="delOne(scope.row.qqid)"
content="删除"
:hintBoo="true"
>
<div slot="reference">
<img
style="width: 1rem; height: 1rem; cursor: pointer"
:src="delUrl"
@click="
</Confirmation>
<div @click.stop="() => {}">
<Confirmation :ref="getPopConfirmRef(scope.$index)" v-if="scope.row.barcode && roleArr.includes('C-1-6')" @onConfirm="delOne(scope.row.qqid)" content="删除" :hintBoo="true">
<div slot="reference">
<img style="width: 1rem; height: 1rem; cursor: pointer" :src="delUrl" @click="
() => {
clickCancle(scope.$index)
delSelect()
}
"/>
</div>
</Confirmation>
</div>
</template>
</el-table-column>
</el-table>
</div>
</div>
<div class="footer">
" />
</div>
</Confirmation>
</div>
</template>
</el-table-column>
</el-table>
</div>
</div>
<div class="footer">
<span class="count">共{{ reqParam.page.total }} 条记录 第{{ reqParam.page.currPage }}/{{
size
}}页</span>
<el-pagination
class="paging"
background
@size-change="handleSizeChange"
@current-change="handleCurrPageChange"
:current-page="reqParam.page.currPage"
:page-sizes="[10, 20, 50, 100]"
:page-size="reqParam.page.pageSize"
layout="prev, pager, next"
:total="reqParam.page.total"
>
</el-pagination>
</div>
<el-pagination class="paging" background @size-change="handleSizeChange" @current-change="handleCurrPageChange" :current-page="reqParam.page.currPage" :page-sizes="[10, 20, 50, 100]" :page-size="reqParam.page.pageSize" layout="prev, pager, next" :total="reqParam.page.total">
</el-pagination>
</div>
<el-dialog :visible.sync="historyDialogVisible" style="z-index: 1500">
</el-dialog>
<recognitionDialog ref="recognitionDialog"></recognitionDialog>
<el-dialog
:visible.sync="historyDialogVisible"
style="z-index: 1500"
>
</el-dialog>
<recognitionDialog ref="recognitionDialog"></recognitionDialog>
<Fcxtj
:isShowFcx="isShowFcx"
:type="dialogType"
ref="fcxtj"
:dialogQid="dialogQid"
></Fcxtj>
</el-container>
<Fcxtj :isShowFcx="isShowFcx" :type="dialogType" ref="fcxtj" :dialogQid="dialogQid"></Fcxtj>
</el-container>
</template>
<script>
......@@ -553,8 +330,8 @@ import recognitionDialog from './modules/Recognition_dialog.vue'
export default {
name: 'cxyrd',
components: {SvgIcon, Confirmation, Fcxtj, recognitionDialog},
data() {
components: { SvgIcon, Confirmation, Fcxtj, recognitionDialog },
data () {
return {
size: 0, //表格页数
isShowFcx: false,
......@@ -615,39 +392,39 @@ export default {
//标签数组
dynamicTags: [],
queryTypeBtns: [
{value: '2', name: '正查', type: 'querytypes'},
{value: '1', name: '倒查', type: 'querytypes'},
{value: '0', name: '查重', type: 'querytypes'},
{value: '3', name: '串查', type: 'querytypes'},
{ value: '2', name: '正查', type: 'querytypes' },
{ value: '1', name: '倒查', type: 'querytypes' },
{ value: '0', name: '查重', type: 'querytypes' },
{ value: '3', name: '串查', type: 'querytypes' },
],
queryClassBtns: [
{value: '3', name: '低', type: 'queryclasss'},
{value: '2', name: '普通', type: 'queryclasss'},
{value: '1', name: '高', type: 'queryclasss'},
{ value: '3', name: '低', type: 'queryclasss' },
{ value: '2', name: '普通', type: 'queryclasss' },
{ value: '1', name: '高', type: 'queryclasss' },
],
remoteFlagBtns: [
{value: '0', name: '本地查询', type: 'remoteflags'},
{value: '0', name: '远程查询', type: 'remoteflags'},
{value: '0', name: '城市', type: 'remoteflags'},
{value: '0', name: '国家库', type: 'remoteflags'},
{ value: '0', name: '本地查询', type: 'remoteflags' },
{ value: '0', name: '远程查询', type: 'remoteflags' },
{ value: '0', name: '城市', type: 'remoteflags' },
{ value: '0', name: '国家库', type: 'remoteflags' },
],
queryStateBtns: [
{value: '0', name: '等待比对', type: 'querystates'},
{value: '1', name: '正在比对', type: 'querystates'},
{value: '11', name: '正在认定', type: 'querystates'},
{value: '20', name: '认定完成', type: 'querystates'},
{value: '21', name: '正在复核', type: 'querystates'},
{value: '30', name: '复核完成', type: 'querystates'},
{value: '-3', name: '无特征', type: 'querystates'},
{value: '19', name: '认定出错', type: 'querystates'},
{value: '29', name: '复核出错', type: 'querystates'},
{value: '99', name: '标记删除', type: 'querystates'},
{value: '-1', name: '无效', type: 'querystates'},
{value: '-2', name: '同步特征', type: 'querystates'},
{value: '10', name: '比对完成', type: 'querystates'},
{value: '9', name: '比对出错', type: 'querystates'},
{value: 'rg', name: '人工认定', type: 'querystates'},
{value: 'sb', name: '闪捕未认定', type: 'querystates'},
{ value: '0', name: '等待比对', type: 'querystates' },
{ value: '1', name: '正在比对', type: 'querystates' },
{ value: '11', name: '正在认定', type: 'querystates' },
{ value: '20', name: '认定完成', type: 'querystates' },
{ value: '21', name: '正在复核', type: 'querystates' },
{ value: '30', name: '复核完成', type: 'querystates' },
{ value: '-3', name: '无特征', type: 'querystates' },
{ value: '19', name: '认定出错', type: 'querystates' },
{ value: '29', name: '复核出错', type: 'querystates' },
{ value: '99', name: '标记删除', type: 'querystates' },
{ value: '-1', name: '无效', type: 'querystates' },
{ value: '-2', name: '同步特征', type: 'querystates' },
{ value: '10', name: '比对完成', type: 'querystates' },
{ value: '9', name: '比对出错', type: 'querystates' },
{ value: 'rg', name: '人工认定', type: 'querystates' },
{ value: 'sb', name: '闪捕未认定', type: 'querystates' },
],
expanded: false, // 展开标志
historyDialogVisible: false,
......@@ -661,7 +438,7 @@ export default {
popConfirmIndex: -1,
}
},
created() {
created () {
let self = this
let w1 = 1920
let h1 = 400
......@@ -676,7 +453,7 @@ export default {
},
watch: {
selectBoo: {
handler(newval) {
handler (newval) {
if (this.selectBoo) {
this.isShowTip = true
} else {
......@@ -685,7 +462,7 @@ export default {
},
},
// 批量处理
checkedProps(val) {
checkedProps (val) {
this.tableProps = this.defaultTableProps.filter(
(i) => val.indexOf(i.prop) >= 0
)
......@@ -694,10 +471,10 @@ export default {
},
},
computed: {
roleArr() {
roleArr () {
return this.$store.state.layout.Menu
},
newStr() {
newStr () {
let obj = this.reqParam.contrastCustomSearchReq
let str = ''
for (let key in obj) {
......@@ -718,19 +495,19 @@ export default {
},
},
methods: {
getPopConfirmRef(index) {
getPopConfirmRef (index) {
return this.popConfirmName + index
},
canclePopConfirm() {
canclePopConfirm () {
if (this.popConfirmIndex !== -1) {
this.$refs[this.getPopConfirmRef(this.popConfirmIndex)].cancel()
}
},
clickCancle(index) {
clickCancle (index) {
this.canclePopConfirm()
this.popConfirmIndex = index
},
disabledDate(a) {
disabledDate (a) {
if (a.getTime() > new Date().getTime()) {
return true
} else {
......@@ -739,7 +516,7 @@ export default {
},
//
// 获取认定列表
search(type) {
search (type) {
this.getParam()
if (type) {
this.reqParam.page.currPage = 1
......@@ -788,7 +565,7 @@ export default {
})
},
// 格式化参数
getParam() {
getParam () {
if (this.startEndDate !== null) {
this.reqParam.contrastCustomSearchReq.sendTimeStart = moment(
this.startEndDate[0]
......@@ -799,12 +576,12 @@ export default {
}
},
// 选择用户下拉框变化时 当前页为1
selectUserInfo() {
selectUserInfo () {
this.reqParam.page.currPage = 1
this.search()
},
// 清空用户id
clearUser() {
clearUser () {
this.reqParam.contrastCustomSearchReq.username = null
},
/**
......@@ -812,7 +589,7 @@ export default {
* @param {*}
* @return {*}
*/
getUserList() {
getUserList () {
let self = this
NetUtil.cxyrdUser.userList().then(res => {
console.log(res)
......@@ -828,7 +605,7 @@ export default {
})
},
// 获取用户信息
getUserInfo(val) {
getUserInfo (val) {
var userInfo = []
val.forEach((item) => {
var user = {}
......@@ -849,7 +626,7 @@ export default {
// //console.info("用户信息==>", this.userOption);
},
// 用户信息去重
unique(arr) {
unique (arr) {
// 需要唯一标识来对数组进行过滤
// 定义常量res,值为一个map对象实例
const res = new Map()
......@@ -860,8 +637,8 @@ export default {
)
},
// 多条件查询 获取查询条件
getQueryType(data, type) {
let {name, value} = data
getQueryType (data, type) {
let { name, value } = data
let list = this.reqParam.contrastCustomSearchReq[type]
console.log(name)
console.log(value)
......@@ -893,7 +670,7 @@ export default {
this.search('yes')
},
// 格式化
dataFormat(row, prop) {
dataFormat (row, prop) {
// colnum为使用了formatter的列
// clonum.property为当前列的prop值
// row为当前行,是一个类数组对象,可通过[]拿值
......@@ -904,7 +681,7 @@ export default {
}
},
// 优先级格式化
queryClassFormat(row, colnum) {
queryClassFormat (row, colnum) {
let prop = colnum.property
let showProp = null
for (let i = 0; i < this.queryClassList.length; i++) {
......@@ -914,7 +691,7 @@ export default {
return showProp
},
// 多选删除
delMore() {
delMore () {
if (this.selectBoo == false) {
this.selectBoo = true
return
......@@ -946,7 +723,7 @@ export default {
})
},
// 单选删除
delOne(val) {
delOne (val) {
// 将传入的qqid转为数组
let qqid = []
qqid.push(val)
......@@ -954,10 +731,10 @@ export default {
this.doDelete(qqid)
},
// 请求删除接口
doDelete(qqid) {
doDelete (qqid) {
// 删除确认提示
this.$axios
.post('/api/queryque/delete', {qqid: qqid})
.post('/api/queryque/delete', { qqid: qqid })
.then((response) => {
if (response.data.code === 0) {
this.$message.success('删除成功')
......@@ -968,7 +745,7 @@ export default {
})
},
// 认定
confirm(row) {
confirm (row) {
if (!this.roleArr.includes('C-1-8')) return
let self = this
if (
......@@ -987,7 +764,7 @@ export default {
}, 200)
},
//点击列表进入页面
enterInto(row) {
enterInto (row) {
// !scope.row.querycfg
if (row.children && row.children.length > 0) {
if (row.children[0].querytype === '0') {
......@@ -1005,19 +782,19 @@ export default {
// 父级
let routeUrl = this.$router.resolve({
path: '/confirm/TL',
query: {qid: row.qid, qqid: row.qqid, type: 'father'},
query: { qid: row.qid, qqid: row.qqid, type: 'father' },
})
window.open(routeUrl.href, '_blank')
} else if (row.children[0].querytype === '3') {
let routeUrl = this.$router.resolve({
path: '/confirm/LL',
query: {qid: row.qid, qqid: row.qqid, type: 'father'},
query: { qid: row.qid, qqid: row.qqid, type: 'father' },
})
window.open(routeUrl.href, '_blank')
} else if (row.children[0].querytype === '2') {
let routeUrl = this.$router.resolve({
path: '/confirm/LT',
query: {qid: row.qid, qqid: row.qqid, type: 'father'},
query: { qid: row.qid, qqid: row.qqid, type: 'father' },
})
window.open(routeUrl.href, '_blank')
} else {
......@@ -1041,20 +818,20 @@ export default {
// 子级
let routeUrl = this.$router.resolve({
path: str + 'TL',
query: {qid: row.qid, qqid: row.qqid, type: 'son'},
query: { qid: row.qid, qqid: row.qqid, type: 'son' },
})
window.open(routeUrl.href, '_blank')
} else if (row.querytype === '3') {
// 子级
let routeUrl = this.$router.resolve({
path: str + 'LL',
query: {qid: row.qid, qqid: row.qqid, type: 'son'},
query: { qid: row.qid, qqid: row.qqid, type: 'son' },
})
window.open(routeUrl.href, '_blank')
} else if (row.querytype === '2') {
let routeUrl = this.$router.resolve({
path: str + 'LT',
query: {qid: row.qid, qqid: row.qqid, type: 'son'},
query: { qid: row.qid, qqid: row.qqid, type: 'son' },
})
window.open(routeUrl.href, '_blank')
} else {
......@@ -1062,12 +839,12 @@ export default {
}
}
},
delSelect() {
delSelect () {
this.selectBoo = false
this.toggleSelection()
},
// 编辑
edit(row) {
edit (row) {
let self = this
this.$copyText(row.barcode).then(
function (e) {
......@@ -1098,7 +875,7 @@ export default {
// }
// },
// 展开或关闭行
hadnlExpandChange(row, expanded) {
hadnlExpandChange (row, expanded) {
// 获取展开标志
this.expanded = expanded
// 获取下标
......@@ -1153,11 +930,11 @@ export default {
}
},
// table表格选中获取数据
handleSelectionChange(val) {
handleSelectionChange (val) {
this.selectionData = val
},
// 复制条码号 获取选中条码值
getBarcode() {
getBarcode () {
let self = this
this.barcode = []
if (this.selectBoo == false) {
......@@ -1175,7 +952,7 @@ export default {
}
},
// 复制成功时的回调函数
onCopy(e) {
onCopy (e) {
//console.info(this.barcode);
if (this.barcode.length !== 0) {
this.$message({
......@@ -1186,11 +963,11 @@ export default {
}
},
// 复制失败时的回调函数
onError(e) {
onError (e) {
this.$message.error('抱歉,复制条码号失败!')
},
// 自定义展示列 多选框
changeCheckbox() {
changeCheckbox () {
this.tableKey++
// //console.info("默认", this.defaultTableProps);
// //console.info("table", this.tableProps);
......@@ -1207,8 +984,8 @@ export default {
this.search()
},
// 标签关闭 isTag:是否为标签点击
handleClose(tag) {
let {type, value} = tag
handleClose (tag) {
let { type, value } = tag
this.dynamicTags = this.dynamicTags.filter(
(item) => item.value !== value
)
......@@ -1219,14 +996,14 @@ export default {
this.search('yes')
},
// 标签生成
tagClick(name) {
tagClick (name) {
if (this.dynamicTags.indexOf(name) === -1) {
this.dynamicTags.push(name)
} else {
this.$message.error('该筛选条件已存在!请重新选择!')
}
},
getDialog(obj) {
getDialog (obj) {
let index = obj.barcode.indexOf('R')
if (index >= 0) {
this.dialogType = 'ry'
......@@ -1239,7 +1016,7 @@ export default {
}, 20)
},
// 全部状态
allQueryType() {
allQueryType () {
let newdynamicTags = []
this.dynamicTags.forEach((item, index) => {
if (item.type !== 'querystates') {
......@@ -1251,17 +1028,17 @@ export default {
this.$set(this.reqParam.contrastCustomSearchReq, 'querystates', [])
this.search('yes')
},
showHistory() {
showHistory () {
this.historyDialogVisible = true
},
// 全部数据
clearAll() {
clearAll () {
this.dynamicTags = []
this.clearParams()
this.search('yes')
},
// 清空筛选条件
clearParams(type) {
clearParams (type) {
// this.remoteFlag = null;
this.startEndDate = null
this.reqParam.page.currPage = 1
......@@ -1286,7 +1063,7 @@ export default {
// this.tableProps = this.defaultTableProps;
// },
// 批量操作
batch() {
batch () {
this.selectBoo = !this.selectBoo
this.toggleSelection()
},
......@@ -1295,7 +1072,7 @@ export default {
* @param {*}
* @return {*}
*/
toggleSelection(rows) {
toggleSelection (rows) {
if (rows) {
rows.forEach((row) => {
this.$refs.confirmTable.toggleRowSelection(row)
......@@ -1307,23 +1084,23 @@ export default {
//console.log(this.selectionData);
},
},
activated() {
activated () {
this.$bus.on('enter', () => {
this.search('yes')
})
},
deactivated() {
deactivated () {
this.$bus.off('enter')
},
beforeDestroy() {
beforeDestroy () {
this.$bus.off('enter')
},
mounted() {
mounted () {
this.$bus.on('enter', () => {
this.search('yes')
})
if (this.$route.query.type == 'mh') {
let obj = {value: 'sb', name: '闪捕未认定', type: 'querystates'}
let obj = { value: 'sb', name: '闪捕未认定', type: 'querystates' }
this.getQueryType(obj, 'querystates')
} else {
this.search('yes')
......@@ -1333,27 +1110,27 @@ export default {
},
}
// 用户ID 下拉的数据
const users = [{username: '张三'}, {username: '李四'}, {username: '赵6'}]
const users = [{ username: '张三' }, { username: '李四' }, { username: '赵6' }]
const content = [
// { colume: "任务号", prop: "aid", width: 100 },
// { colume: "查询号", prop: "qqid", width: 100 },
{colume: '源条码号', prop: 'barcode', width: '270'},
{colume: '候选个数', prop: 'maxcandidatecnt', width: 'auto'},
{colume: '查询类型', prop: 'querytype', width: 'auto'},
{colume: '状态', prop: 'queryStateName', width: 'auto'},
{ colume: '源条码号', prop: 'barcode', width: '270' },
{ colume: '候选个数', prop: 'maxcandidatecnt', width: 'auto' },
{ colume: '查询类型', prop: 'querytype', width: 'auto' },
{ colume: '状态', prop: 'queryStateName', width: 'auto' },
// { colume: "是否删除", prop: "removeFlag", width: "auto" },
{colume: '优先级', prop: 'queryclass', width: 'auto'},
{colume: '认定时间', prop: 'affirmtime', width: '170'},
{colume: '发送时间', prop: 'requestdatetime', width: '170'},
{colume: '比中概率', prop: 'hitpossibility', width: 'auto'},
{colume: '用户名', prop: 'userid', width: 'auto'},
{ colume: '优先级', prop: 'queryclass', width: 'auto' },
{ colume: '认定时间', prop: 'affirmtime', width: '170' },
{ colume: '发送时间', prop: 'requestdatetime', width: '170' },
{ colume: '比中概率', prop: 'hitpossibility', width: 'auto' },
{ colume: '用户名', prop: 'userid', width: 'auto' },
]
const setQueryClass = [
{queryclass: '1', name: '最高'},
{queryclass: '2', name: '高'},
{queryclass: '3', name: '中'},
{queryclass: '4', name: '低'},
{queryclass: '5', name: '最低'},
{ queryclass: '1', name: '最高' },
{ queryclass: '2', name: '高' },
{ queryclass: '3', name: '中' },
{ queryclass: '4', name: '低' },
{ queryclass: '5', name: '最低' },
]
</script>
<style scoped lang="scss">
......@@ -2399,5 +2176,8 @@ const setQueryClass = [
background-repeat: no-repeat;
transform: rotate(180deg) !important;
}
// 修改下拉框样式
.el-select-dropdown__item {
padding-left: 20px;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment