Commit 41a0d536 by 米嘉伟

Merge branch 'dev_zwpt' of http://47.92.108.28/changchao/founder_vue into dev_zwpt

parents 8d6dea51 a3fe02bd
......@@ -62,7 +62,8 @@ export default {
let destbarcode = sessionStorage.getItem('destbarcode') || ''
let qqid = sessionStorage.getItem('qqid') || ''
let qid = sessionStorage.getItem('qid') || ''
let querytype = 1
// 2:正查
let querytype = 2
this.$axios({
method: 'post',
url: '/api/matchcand/affirm/hit',
......@@ -88,8 +89,35 @@ export default {
* @return {*}
*/
Rdwc () {
let self = this
console.log('认定完成');
let affirmState = 1
let srcseqno = sessionStorage.getItem('srcseqno') || ''
let destseqno = sessionStorage.getItem('destseqno') || ''
let srcbarcode = sessionStorage.getItem('srcbarcode') || ''
let destbarcode = sessionStorage.getItem('destbarcode') || ''
let qqid = sessionStorage.getItem('qqid') || ''
let qid = sessionStorage.getItem('qid') || ''
// 2:正查
let querytype = 2
this.$axios({
method: 'post',
url: '/api/matchcand/affirm/finish',
data: {
affirmState,
srcseqno,
destseqno,
srcbarcode,
destbarcode,
qqid,
qid,
querytype
}
}).then(response => {
// 跟新列表数据
self.$bus.emit('updateFinderSource')
console.log(response);
})
}
},
};
......
......@@ -657,7 +657,7 @@ export default {
// 打开新页面
let routeUrl = this.$router.resolve({
path: "/confirm/LT",
query: { rowData: row }
query: { rowData: row.qid }
});
window.open(routeUrl.href, "_blank");
}
......
......@@ -13,7 +13,7 @@
<el-checkbox v-model="checked">显示已比中候选</el-checkbox>
</div>
<div class="lt_candidate_number">
<el-table highlight-current-row @current-change="handleCurrentChange" class="lt_candidate_table" height="800" :data="tableData">
<el-table highlight-current-row @current-change="handleCurrentChange" class="lt_candidate_table" height="800" :data="tableData" :row-class-name="tableRowClassName">
<el-table-column label="排名" type="index" width="50">
</el-table-column>
<!-- <el-table-column label="排名" width="50"></el-table-column>-->
......@@ -127,6 +127,7 @@ export default {
created () {
let self = this
self.$bus.on('initCandidate', (tableData) => {
console.log(tableData);
self.tableData = tableData
self.total = self.tableData.length
self.sourceTableData = tableData
......@@ -135,6 +136,26 @@ export default {
},
methods: {
/**
* @description: 比中与认定完成添加样式
* @param {*} row
* @param {*} column
* @param {*} rowIndex
* @param {*} columnIndex
* @return {*}
*/
tableRowClassName ({ row, column, rowIndex, columnIndex }) {
console.log(row);
// 比中的行
if (row.affirmStatus == 2) {
console.log(row);
return "Bizhong"
} else if (row.affirmStatus == 1) {
// 认定完成的行
console.log(row);
return "Identification"
}
},
/**
* @description: 切换指位选择
* @param {*}
* @return {*}
......@@ -927,18 +948,33 @@ export default {
handleCurrentChange (val, old) {
let self = this
console.log(val);
// 存储目标条码号
sessionStorage.setItem('destbarcode', val.destbarcode)
// 存储目的数据序号
sessionStorage.setItem('destseqno', val.destid)
// this.$axios.get(`/api/api/org/plainByBarcode/R1100002487002018050034/1/`)
this.$axios.get(`/api/org/plainByBarcode/${val.destbarcode}/${val.destid}/`)
.then(response => {
console.log(response);
self.$bus.emit('changImageEditTarget', response.data.ret.image)
if (val != null) {
// 存储目标条码号
sessionStorage.setItem('destbarcode', val.destbarcode)
// 存储目的数据序号
sessionStorage.setItem('destseqno', val.destid)
// this.$axios.get(`/api/api/org/plainByBarcode/R1100002487002018050034/1/`)
this.$axios.get(`/api/org/plainByBarcode/${val.destbarcode}/${val.destid}/`)
.then(response => {
console.log(response);
self.$bus.emit('changImageEditTarget', response.data.ret.image)
})
}
}
},
watch: {
checked (newValue, oldValue) {
console.log();
if (newValue) {
this.tableData = this.sourceTableData
} else {
this.tableData = this.sourceTableData.filter(item => {
return item.affirmStatus != 2
})
console.log(this.tableData);
}
}
}
},
};
const candidates = [
{
......@@ -974,99 +1010,117 @@ const candidates = [
];
</script>
<style scoped lang="scss">
div {
display: inline-block;
}
<style lang="scss">
.lt_candidate {
width: 100%;
height: 100%;
background: #f6f8fa;
border-radius: 8px;
}
.lt_candidate .lt_cnadidate_search {
width: 100%;
height: 48px;
}
.lt_candidate .lt_cnadidate_checked {
width: 100%;
height: 31px;
display: flex;
justify-content: flex-end;
}
.lt_candidate .lt_candidate_number {
width: 100%;
}
.lt_candidate .lt_candidate_bottom {
text-align: center;
height: 40px;
width: 100%;
}
.el-select .el-input {
width: 130px;
}
.input-with-select .el-input-group__prepend {
background-color: #fff;
}
.selectFinger {
z-index: 10;
position: absolute;
top: 187px;
right: 60px;
width: 236px;
height: 194px;
background: #FFFFFF;
box-shadow: 0px 6px 10px 2px rgba(0, 21, 51, 0.06);
border-radius: 4px;
border: 1px solid #E6E6E8;
padding: 8px 0;
box-sizing: border-box;
display: flex;
flex-direction: column;
.left-title, .right-title {
font-size: 14px;
font-family: MicrosoftYaHei;
color: #666666;
padding-left: 16px;
div {
display: inline-block;
}
.right-title {
margin-top: 7px;
.lt_cnadidate_search {
width: 100%;
height: 48px;
}
.line {
cursor: pointer;
box-sizing: border-box;
padding-left: 8px;
.lt_cnadidate_checked {
width: 100%;
height: 31px;
display: flex;
align-items: center;
width: 234px;
height: 32px;
.selected {
width: 14px;
height: 14px;
margin-right: 10px;
box-sizing: border-box;
display: flex;
justify-content: flex-end;
}
.lt_candidate_number {
width: 100%;
}
.lt_candidate_bottom {
text-align: center;
height: 40px;
width: 100%;
}
.el-select {
.el-input {
width: 130px;
}
.selected-type {
font-size: 14px;
font-family: MicrosoftYaHei;
color: #333333;
margin-right: 24px;
}
.input-with-select {
.el-input-group__prepend {
background-color: #fff;
}
.item {
}
.selectFinger {
z-index: 10;
position: absolute;
// top: 187px;
// right: 60px;
top: 220px;
right: 60px;
width: 236px;
height: 194px;
background: #FFFFFF;
box-shadow: 0px 6px 10px 2px rgba(0, 21, 51, 0.06);
border-radius: 4px;
border: 1px solid #E6E6E8;
padding: 8px 0;
box-sizing: border-box;
display: flex;
flex-direction: column;
.left-title, .right-title {
font-size: 14px;
font-family: MicrosoftYaHei;
color: #999999;
margin-right: 16px;
color: #666666;
padding-left: 16px;
}
.right-title {
margin-top: 7px;
}
.line {
cursor: pointer;
box-sizing: border-box;
padding-left: 8px;
display: flex;
align-items: center;
width: 234px;
height: 32px;
.selected {
width: 14px;
height: 14px;
margin-right: 10px;
box-sizing: border-box;
display: flex;
}
.selected-type {
font-size: 14px;
font-family: MicrosoftYaHei;
color: #333333;
margin-right: 24px;
}
.item {
font-size: 14px;
font-family: MicrosoftYaHei;
color: #999999;
margin-right: 16px;
&.active {
color: #006AFF;
}
}
&.active {
color: #006AFF;
background: #F5F5F7;
}
}
&.active {
background: #F5F5F7;
}
.Bizhong {
.cell {
color: #FF0039;
}
}
.Identification {
.cell {
color: #055FE7;
}
}
}
</style>
<template>
<div class="lt_src">
<div class="lt_top">
<label>任务号:{{ tableData.qid }}</label>
<!-- <label>任务号:{{ tableData.qid }}</label> -->
<label>任务号:{{ rwh }}</label>
<el-checkbox v-model="checked">显示已认定完成查询ID</el-checkbox>
</div>
<div class="lt_middle">
<!-- 源数据区 -->
<div class="lt_middle_src_data">
<el-table ref="singleTable" highlight-current-row @current-change="handleCurrentChange" :data="dataList" class="lt_candidate_table border_radius" :height="tableHeight" @row-click="getFirgerPrintDetail">
<el-table ref="singleTable" highlight-current-row @current-change="handleCurrentChange" :data="dataList" class="lt_candidate_table border_radius" :height="tableHeight" @row-click="getFirgerPrintDetail" :row-class-name="tableRowClassName">
<el-table-column prop="qqid" label="查询ID" width="80"></el-table-column>
<el-table-column prop="barcode" label="源条码号" width="190"></el-table-column>
<el-table-column prop="maxcandidatecnt" label="枚数" width="80"></el-table-column>
......@@ -42,17 +43,18 @@
export default {
name: "LTSrc",
props: ["srcData"],
watch: {
srcData: {
immediate: true,
handler (val) {
console.info("源数据传入组件的值为===>", val);
this.tableData = val;
}
}
},
// watch: {
// srcData: {
// immediate: true,
// handler (val) {
// console.info("源数据传入组件的值为===>", val);
// this.tableData = val;
// }
// }
// },
data () {
return {
rwh: null,
checked: true,
enumerate: null,
tableData: null,
......@@ -60,6 +62,7 @@ export default {
fingerSrc: require("../../../assets/img/img.png"),
isShowPrint: true,
tableHeight: 368,
sourceDataList: [],
dataList: [],
total: 0,
fingerTotal: 0,
......@@ -70,11 +73,30 @@ export default {
},
methods: {
/**
* @description: 比中与认定完成添加样式
* @param {*} row
* @param {*} column
* @param {*} rowIndex
* @param {*} columnIndex
* @return {*}
*/
tableRowClassName ({ row, column, rowIndex, columnIndex }) {
// 比中的行
if (row.affirmStatus == 2 || row.affirmStatus == 3) {
console.log(row);
return "Bizhong"
} else if (row.affirmStatus == 1) {
// 认定完成的行
console.log(row);
return "Identification"
}
},
/**
* @description: 选择切换
* @param {*} val
* @param {*} old
* @return {*}
*/
*/
handleCurrentChange (val, old) {
this.currentRow = val;
console.log(val);
......@@ -110,7 +132,8 @@ export default {
.post("/api/queryque/standardAll", {})
.then(response => {
console.log(response);
self.dataList = response.data.ret
self.sourceDataList = response.data.ret
self.dataList = self.sourceDataList
self.total = response.data.ret.length
console.log(self.dataList);
// 默认选中第一行
......@@ -135,6 +158,7 @@ export default {
},
// 指纹部分 增加边框
changeStyle (index, imageInfo) {
console.log(imageInfo);
let self = this
this.isActive = index;
console.log(this.isActive);
......@@ -142,16 +166,16 @@ export default {
sessionStorage.setItem('srcseqno', imageInfo.seq)
this.$bus.emit('changImageEdit', imageInfo.image)
this.$axios.post(`/api/query/matchcand/dest/${self.qqid}/${imageInfo.seq}`, {})
.then(response => {
console.log(response);
self.$bus.emit('initCandidate', response.data.ret)
})
.then(response => {
console.log(response);
self.$bus.emit('initCandidate', response.data.ret)
})
},
/**
* @description: 展开收缩切换
* @param {*}
* @return {*}
*/
*/
changeTableHeight () {
this.isShowPrint = !this.isShowPrint
if (!this.isShowPrint) {
......@@ -163,7 +187,28 @@ export default {
}
}
},
watch: {
/**
* @description: 过滤显示已认定完成查询ID
* @param {*} newValue
* @param {*} oldValue
* @return {*}
*/
checked(newValue, oldValue) {
console.log(newValue);
if(newValue) {
this.dataList = this.sourceDataList
} else {
this.dataList = this.sourceDataList.filter(item => {
return item.affirmStatus != 1
})
console.log(this.dataList);
}
}
},
mounted () {
console.log(this.$route.query.rowData);
this.rwh = this.$route.query.rowData
let self = this
// 初始状态下 展示当前任务的第一条指纹信息(指纹个数)
// this.enumerate = datas[0].enumerate;
......@@ -197,116 +242,124 @@ const datas = [
];
</script>
<style scoped lang="scss">
div {
display: inline-block;
}
label {
margin-right: 67px;
}
.el-button {
margin-left: 32px;
width: 24px;
height: 16px;
font-size: 12px;
font-family: MicrosoftYaHei;
color: #055fe7;
line-height: 16px;
font-weight: 350;
}
<style lang="scss">
.lt_src {
width: 100%;
height: 100%;
}
.lt_src .lt_top {
width: 100%;
margin: 0 0 10px 0;
}
.lt_src .lt_middle {
width: 100%;
height: 100%;
background: #ffffff;
border-radius: 8px;
}
.lt_middle_src_data {
border-radius: 8px;
width: 100%;
height: 416px;
}
.lt_middle_src_data .finger_print_number {
width: 100%;
height: 40px;
}
.lt_middle_finger_print {
width: 100%;
}
/* 指纹部分 */
.lt_middle_finger_print .lt_middle_finger_prints {
background: #f6f8fa;
margin-top: 12px;
overflow-y: auto;
width: 100%;
height: 400px;
}
/*底部的统计数据*/
.lt_middle_bottom {
text-align: center;
background: #f6f8fa;
height: 40px;
width: 100%;
font-size: 12px;
font-family: MicrosoftYaHei;
color: #999999;
}
/* 单个指纹*/
.finger_print {
position: relative;
width: 106px;
height: 106px;
background: #ffffff;
border-radius: 2px;
border: 1px solid #cccccc;
margin: 8px 4px 8px 4px;
img {
position: absolute;
top: 0;
left: 0;
div {
display: inline-block;
}
}
.finger_print_active {
position: relative;
width: 106px;
height: 106px;
background: #ffffff;
border-radius: 2px;
border: 1px solid #055fe7;
.finger_print_number {
color: #ffffff;
label {
margin-right: 67px;
}
.el-button {
margin-left: 32px;
width: 24px;
height: 16px;
font-size: 12px;
font-family: MicrosoftYaHei;
color: #055fe7;
line-height: 16px;
font-weight: 350;
}
.lt_top {
width: 100%;
margin: 0 0 10px 0;
}
.lt_middle {
width: 100%;
height: 100%;
background: #ffffff;
border-radius: 8px;
}
.lt_middle_src_data {
border-radius: 8px;
width: 100%;
height: 416px;
.Bizhong {
.cell {
color: #FF0039;
}
}
.Identification {
.cell {
color: #055FE7;
}
}
.finger_print_number {
width: 100%;
height: 40px;
}
}
.lt_middle_finger_print {
width: 100%;
.lt_middle_finger_prints {
background: #f6f8fa;
margin-top: 12px;
overflow-y: auto;
width: 100%;
height: 400px;
}
}
/*底部的统计数据*/
.lt_middle_bottom {
text-align: center;
background: #f6f8fa;
height: 40px;
width: 100%;
font-size: 12px;
font-family: MicrosoftYaHei;
color: #999999;
}
/* 单个指纹*/
.finger_print {
position: relative;
width: 106px;
height: 106px;
background: #ffffff;
border-radius: 2px;
border: 1px solid #cccccc;
margin: 8px 4px 8px 4px;
img {
position: absolute;
top: 0;
left: 0;
}
.finger_print_number {
font-size: 12px;
width: 24px;
height: 24px;
background: #ddebff;
border-radius: 0px 0px 7px 0px;
z-index: 20;
position: absolute;
top: 0;
left: 0;
display: flex;
justify-content: center;
align-items: center;
}
.finger_print_number_active {
position: absolute;
top: 0;
left: 0;
width: 24px;
height: 24px;
background: #055fe7;
border-radius: 0px 0px 7px 0px;
}
}
.finger_print_active {
position: relative;
width: 106px;
height: 106px;
background: #ffffff;
border-radius: 2px;
border: 1px solid #055fe7;
.finger_print_number {
color: #ffffff;
font-size: 12px;
}
}
}
/* 单个指纹 左上角的序号*/
.finger_print .finger_print_number {
font-size: 12px;
width: 24px;
height: 24px;
background: #ddebff;
border-radius: 0px 0px 7px 0px;
z-index: 20;
position: absolute;
top: 0;
left: 0;
display: flex;
justify-content: center;
align-items: center;
}
.finger_print .finger_print_number_active {
position: absolute;
top: 0;
left: 0;
width: 24px;
height: 24px;
background: #055fe7;
border-radius: 0px 0px 7px 0px;
}
</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