Commit ce7680eb by 米嘉伟

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

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