|
|
@ -162,6 +162,19 @@ |
|
|
|
}} |
|
|
|
</el-descriptions-item> |
|
|
|
</el-descriptions> |
|
|
|
<el-row style="margin: 8px 0 0 0 ;"> |
|
|
|
<el-col :span="8" style="text-align: center;">合计</el-col> |
|
|
|
<el-col :span="8" style="text-align: center;">¥{{ allhejialljineLocalTemp }}</el-col> |
|
|
|
<el-col :span="8" style="text-align: center;">输赢总预测</el-col> |
|
|
|
</el-row> |
|
|
|
<div style="height: 24vh; overflow-y: auto;"> |
|
|
|
<el-row v-for="(item, index) in alljineLocalTemp" :key="index"> |
|
|
|
<el-col :span="8" style="text-align: center;">{{ item.value }}</el-col> |
|
|
|
<el-col :span="8" style="text-align: center;">¥{{ item.jine }}</el-col> |
|
|
|
<el-col :span="8" :style="`text-align: center;color:${item.pei > 0 ? '#000000' : '#ff0000'}`">¥ {{ item.pei |
|
|
|
}}</el-col> |
|
|
|
</el-row> |
|
|
|
</div> |
|
|
|
<!-- <el-descriptions :title="selectChangci.title" direction="vertical" :column="6" size="large" border> |
|
|
|
<el-descriptions-item> |
|
|
|
<template #label> |
|
|
@ -300,6 +313,8 @@ export default { |
|
|
|
resultTitle: 0, |
|
|
|
resultTitleti: 0, |
|
|
|
resultTitlefu: 0, |
|
|
|
alljineLocalTemp: {}, |
|
|
|
allhejialljineLocalTemp: 0, |
|
|
|
changciList: [], |
|
|
|
changciValue: "", |
|
|
|
headerList: [], |
|
|
@ -346,17 +361,17 @@ export default { |
|
|
|
// ge: 0 |
|
|
|
}, |
|
|
|
screenshotStatus: false, |
|
|
|
yidanyizu: /一单一组[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
yizuliu: /组六[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
yizusan: /组三[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
yidu: /毒[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
yishuangfei: /双飞[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
yidingwei: /定位[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
yibudingwei: /不定位[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
yifushi: /复式[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
yidanyizu: /一单一组[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
yizuliu: /组六[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
yizusan: /组三[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
yidu: /毒[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
yishuangfei: /双飞[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
yidingwei: /定位[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
yibudingwei: /不定位[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
yifushi: /复式[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
yiquanbaoduizi: /全包对子/, |
|
|
|
yidan: /单[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
yizu: /组[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
yidan: /单[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
yizu: /组[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
jine: /[合计|共]+(\d+)元*/ |
|
|
|
} |
|
|
|
}, |
|
|
@ -439,17 +454,17 @@ export default { |
|
|
|
// 将分割后的每个字符串剔除含有日期的字符串和带退的行 |
|
|
|
leftTextArr = leftTextArr.filter(item => { return !(item.match(/\d{2}:\d{2}:\d{2}/g) || item.includes("退")) }) |
|
|
|
// 将剩下的字符串末尾最多两个汉字的最后一个数字取出 |
|
|
|
// yidanyizu: /一单一组[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
// yizuliu: /1组六[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
// yizusan: /1组三[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
// yidu: /1毒[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
// yishuangfei: /1双飞[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
// yidingwei: /1定位[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
// yibudingwei: /1不定位[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
// yifushi: /1复式[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
// yiquanbaoduizi: /1全包对子[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
// yidan: /1单[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
// yizu: /1组[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
// yidanyizu: /一单一组[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
// yizuliu: /1组六[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
// yizusan: /1组三[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
// yidu: /1毒[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
// yishuangfei: /1双飞[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
// yidingwei: /1定位[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
// yibudingwei: /1不定位[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
// yifushi: /1复式[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
// yiquanbaoduizi: /1全包对子[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
// yidan: /1单[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
// yizu: /1组[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
// jine: /[合计|共]+(\d+)元*/ |
|
|
|
for (let i = 0; i < leftTextArr.length; i++) { |
|
|
|
let item = leftTextArr[i]; |
|
|
@ -467,7 +482,7 @@ export default { |
|
|
|
// 一单一组 |
|
|
|
if (item.match(this.yidanyizu)) { |
|
|
|
let match = item.match(this.yidanyizu) |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,\.]+/g, ','); |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ','); |
|
|
|
haoma = _.compact(_.split(numbers, ",")) |
|
|
|
let danxuanList = [] |
|
|
|
let zuxuanList = [] |
|
|
@ -498,7 +513,7 @@ export default { |
|
|
|
// 1组六 |
|
|
|
else if (item.match(this.yizuliu)) { |
|
|
|
let match = item.match(this.yizuliu) |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,\.]+/g, ','); |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ','); |
|
|
|
haoma = _.compact(_.split(numbers, ",")) |
|
|
|
let groupBy = _.groupBy(haoma, o => { return `${o}`.length }); |
|
|
|
for (let key in groupBy) { |
|
|
@ -517,7 +532,7 @@ export default { |
|
|
|
// 1组三 |
|
|
|
else if (item.match(this.yizusan)) { |
|
|
|
let match = item.match(this.yizusan) |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,\.]+/g, ','); |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ','); |
|
|
|
haoma = _.compact(_.split(numbers, ",")) |
|
|
|
let groupBy = _.groupBy(haoma, o => { return `${o}`.length }); |
|
|
|
for (let key in groupBy) { |
|
|
@ -535,7 +550,7 @@ export default { |
|
|
|
// 1毒 |
|
|
|
else if (item.match(this.yidu)) { |
|
|
|
let match = item.match(this.yidu) |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,\.]+/g, ','); |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ','); |
|
|
|
haoma = _.compact(_.split(numbers, ",")) |
|
|
|
let duslist = [] |
|
|
|
for (let j = 0; j < haoma.length; j++) { |
|
|
@ -555,7 +570,7 @@ export default { |
|
|
|
// 1双飞 |
|
|
|
else if (item.match(this.yishuangfei)) { |
|
|
|
let match = item.match(this.yishuangfei) |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,\.]+/g, ','); |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ','); |
|
|
|
haoma = _.compact(_.split(numbers, ",")) |
|
|
|
let shaungfeislist = [] |
|
|
|
for (let j = 0; j < haoma.length; j++) { |
|
|
@ -575,7 +590,7 @@ export default { |
|
|
|
// 1定位 |
|
|
|
else if (item.match(this.yidingwei)) { |
|
|
|
let match = item.match(this.yidingwei) |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,\.]+/g, ','); |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ','); |
|
|
|
haoma = _.compact(_.split(numbers, ",")) |
|
|
|
let dingweislist = [] |
|
|
|
for (let j = 0; j < haoma.length; j++) { |
|
|
@ -595,7 +610,7 @@ export default { |
|
|
|
// 1不定位 |
|
|
|
else if (item.match(this.yibudingwei)) { |
|
|
|
let match = item.match(this.yibudingwei) |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,\.]+/g, ','); |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ','); |
|
|
|
haoma = _.compact(_.split(numbers, ",")) |
|
|
|
let budingweislist = [] |
|
|
|
for (let j = 0; j < haoma.length; j++) { |
|
|
@ -615,7 +630,7 @@ export default { |
|
|
|
// 1复式 |
|
|
|
else if (item.match(this.yifushi)) { |
|
|
|
let match = item.match(this.yifushi) |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,\.]+/g, ','); |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ','); |
|
|
|
haoma = _.compact(_.split(numbers, ",")) |
|
|
|
let budingweislist = [] |
|
|
|
for (let j = 0; j < haoma.length; j++) { |
|
|
@ -648,7 +663,7 @@ export default { |
|
|
|
// 1单 |
|
|
|
else if (item.match(this.yidan)) { |
|
|
|
let match = item.match(this.yidan) |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,\.]+/g, ','); |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ','); |
|
|
|
haoma = _.compact(_.split(numbers, ",")) |
|
|
|
let danxuanList = [] |
|
|
|
for (let j = 0; j < haoma.length; j++) { |
|
|
@ -668,7 +683,7 @@ export default { |
|
|
|
// 1组 |
|
|
|
else if (item.match(this.yizu)) { |
|
|
|
let match = item.match(this.yizu) |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,\.]+/g, ','); |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ','); |
|
|
|
haoma = _.compact(_.split(numbers, ",")) |
|
|
|
let zuxuanList = [] |
|
|
|
for (let j = 0; j < haoma.length; j++) { |
|
|
@ -754,7 +769,6 @@ export default { |
|
|
|
this.resultTitleti = 0 |
|
|
|
this.resultTitlefu = 0 |
|
|
|
let rightTableDataTemptiTempObj = _.groupBy(rightTableDataTemptiTemp, 'name') |
|
|
|
console.log(99777, rightTableDataTemptiTempObj) |
|
|
|
let rightTableDataTemptiTempLocal = [] |
|
|
|
for (let key in rightTableDataTemptiTempObj) { |
|
|
|
let value = rightTableDataTemptiTempObj[key]; |
|
|
@ -1053,17 +1067,17 @@ export default { |
|
|
|
// 将分割后的每个字符串剔除含有日期的字符串和带退的行 |
|
|
|
leftTextArr = leftTextArr.filter(item => { return !(item.match(/\d{2}:\d{2}:\d{2}/g) || item.includes("退")) }) |
|
|
|
// 将剩下的字符串末尾最多两个汉字的最后一个数字取出 |
|
|
|
// yidanyizu: /一单一组[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
// yizuliu: /1组六[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
// yizusan: /1组三[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
// yidu: /1毒[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
// yishuangfei: /1双飞[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
// yidingwei: /1定位[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
// yibudingwei: /1不定位[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
// yifushi: /1复式[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
// yiquanbaoduizi: /1全包对子[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
// yidan: /1单[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
// yizu: /1组[:|:]*([\d,.\s]+)(?=合计|共*)/, |
|
|
|
// yidanyizu: /一单一组[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
// yizuliu: /1组六[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
// yizusan: /1组三[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
// yidu: /1毒[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
// yishuangfei: /1双飞[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
// yidingwei: /1定位[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
// yibudingwei: /1不定位[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
// yifushi: /1复式[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
// yiquanbaoduizi: /1全包对子[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
// yidan: /1单[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
// yizu: /1组[:|:]*([\d,,.\s]+)(?=合计|共*)/, |
|
|
|
// jine: /[合计|共]+(\d+)元*/ |
|
|
|
for (let i = 0; i < leftTextArr.length; i++) { |
|
|
|
let item = leftTextArr[i]; |
|
|
@ -1081,7 +1095,7 @@ export default { |
|
|
|
// 一单一组 |
|
|
|
if (item.match(this.yidanyizu)) { |
|
|
|
let match = item.match(this.yidanyizu) |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,\.]+/g, ','); |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ','); |
|
|
|
haoma = _.compact(_.split(numbers, ",")) |
|
|
|
let danxuanList = [] |
|
|
|
let zuxuanList = [] |
|
|
@ -1112,7 +1126,7 @@ export default { |
|
|
|
// 1组六 |
|
|
|
else if (item.match(this.yizuliu)) { |
|
|
|
let match = item.match(this.yizuliu) |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,\.]+/g, ','); |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ','); |
|
|
|
haoma = _.compact(_.split(numbers, ",")) |
|
|
|
let groupBy = _.groupBy(haoma, o => { return `${o}`.length }); |
|
|
|
for (let key in groupBy) { |
|
|
@ -1131,7 +1145,7 @@ export default { |
|
|
|
// 1组三 |
|
|
|
else if (item.match(this.yizusan)) { |
|
|
|
let match = item.match(this.yizusan) |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,\.]+/g, ','); |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ','); |
|
|
|
haoma = _.compact(_.split(numbers, ",")) |
|
|
|
let groupBy = _.groupBy(haoma, o => { return `${o}`.length }); |
|
|
|
for (let key in groupBy) { |
|
|
@ -1149,7 +1163,7 @@ export default { |
|
|
|
// 1毒 |
|
|
|
else if (item.match(this.yidu)) { |
|
|
|
let match = item.match(this.yidu) |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,\.]+/g, ','); |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ','); |
|
|
|
haoma = _.compact(_.split(numbers, ",")) |
|
|
|
let duslist = [] |
|
|
|
for (let j = 0; j < haoma.length; j++) { |
|
|
@ -1169,7 +1183,7 @@ export default { |
|
|
|
// 1双飞 |
|
|
|
else if (item.match(this.yishuangfei)) { |
|
|
|
let match = item.match(this.yishuangfei) |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,\.]+/g, ','); |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ','); |
|
|
|
haoma = _.compact(_.split(numbers, ",")) |
|
|
|
let shaungfeislist = [] |
|
|
|
for (let j = 0; j < haoma.length; j++) { |
|
|
@ -1189,7 +1203,7 @@ export default { |
|
|
|
// 1定位 |
|
|
|
else if (item.match(this.yidingwei)) { |
|
|
|
let match = item.match(this.yidingwei) |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,\.]+/g, ','); |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ','); |
|
|
|
haoma = _.compact(_.split(numbers, ",")) |
|
|
|
let dingweislist = [] |
|
|
|
for (let j = 0; j < haoma.length; j++) { |
|
|
@ -1209,7 +1223,7 @@ export default { |
|
|
|
// 1不定位 |
|
|
|
else if (item.match(this.yibudingwei)) { |
|
|
|
let match = item.match(this.yibudingwei) |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,\.]+/g, ','); |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ','); |
|
|
|
haoma = _.compact(_.split(numbers, ",")) |
|
|
|
let budingweislist = [] |
|
|
|
for (let j = 0; j < haoma.length; j++) { |
|
|
@ -1229,7 +1243,7 @@ export default { |
|
|
|
// 1复式 |
|
|
|
else if (item.match(this.yifushi)) { |
|
|
|
let match = item.match(this.yifushi) |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,\.]+/g, ','); |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ','); |
|
|
|
haoma = _.compact(_.split(numbers, ",")) |
|
|
|
let budingweislist = [] |
|
|
|
for (let j = 0; j < haoma.length; j++) { |
|
|
@ -1262,7 +1276,7 @@ export default { |
|
|
|
// 1单 |
|
|
|
else if (item.match(this.yidan)) { |
|
|
|
let match = item.match(this.yidan) |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,\.]+/g, ','); |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ','); |
|
|
|
haoma = _.compact(_.split(numbers, ",")) |
|
|
|
let danxuanList = [] |
|
|
|
for (let j = 0; j < haoma.length; j++) { |
|
|
@ -1282,7 +1296,7 @@ export default { |
|
|
|
// 1组 |
|
|
|
else if (item.match(this.yizu)) { |
|
|
|
let match = item.match(this.yizu) |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,\.]+/g, ','); |
|
|
|
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ','); |
|
|
|
haoma = _.compact(_.split(numbers, ",")) |
|
|
|
let zuxuanList = [] |
|
|
|
for (let j = 0; j < haoma.length; j++) { |
|
|
@ -1339,8 +1353,9 @@ export default { |
|
|
|
} |
|
|
|
//alljine= [{"key":"danxuan","name":"体彩:1单","data":[{"type":"danxuan","value":["684"],"jine":2},{"type":"danxuan","value":["784"],"jine":2},{"type":"danxuan","value":["876"],"jine":2},{"type":"danxuan","value":["784"],"jine":6}]},{"key":"zuxuan","name":"体彩:1组","data":[{"type":"zuxuan","value":["684"],"jine":2},{"type":"zuxuan","value":["784"],"jine":2},{"type":"zuxuan","value":["876"],"jine":2},{"type":"zuxuan","value":["214"],"jine":4}]},{"key":"zuliu4","name":"体彩:1组六4码","data":[{"type":"zuliu4","numbers":["1269"],"jine":10}]},{"key":"zuliu5","name":"体彩:1组六5码","data":[{"type":"zuliu5","numbers":["12069"],"jine":10}]},{"key":"zuliu6","name":"体彩:1组六6码","data":[{"type":"zuliu6","numbers":["120769"],"jine":10}]},{"key":"zusan3","name":"体彩:1组三3码","data":[{"type":"zusan3","numbers":["874"],"jine":10}]},{"key":"shuangfei","name":"体彩:1双飞","data":[{"type":"shuangfei","value":["98"],"jine":10}]},{"key":"dingwei","name":"体彩:1定位","data":[{"type":"dingwei","value":["324"],"jine":10}]}] |
|
|
|
let alljineLocal = {} |
|
|
|
for (let i = 0; i < alljine.length; i++) { |
|
|
|
let element = alljine[i] |
|
|
|
let alljineLocalList = _.cloneDeep(alljine) |
|
|
|
for (let i = 0; i < alljineLocalList.length; i++) { |
|
|
|
let element = alljineLocalList[i] |
|
|
|
// 处理1单的玩法 |
|
|
|
if (element.key == 'danxuan') { |
|
|
|
let dataObj = { |
|
|
@ -1352,8 +1367,10 @@ export default { |
|
|
|
dataObj.all += Number(item.jine) |
|
|
|
for (let k = 0; k < item.value.length; k++) { |
|
|
|
let xiangmu = `${item.value[k]}`; |
|
|
|
item["pei"] = Number(item.jine) |
|
|
|
if (xiangmu === zhonghaoma) { |
|
|
|
dataObj.zhong += Number(item.jine) * Number(formData[element.key]) |
|
|
|
item["pei"] = -Number(item.jine) * Number(formData[element.key]) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1372,8 +1389,10 @@ export default { |
|
|
|
let xiangmu = `${item.value[k]}`; |
|
|
|
let xiangmuArr = xiangmu.split(''); |
|
|
|
let zhonghaomaArr = zhonghaoma.split(''); |
|
|
|
item["pei"] = Number(item.jine) |
|
|
|
if (_.difference(zhonghaomaArr, xiangmuArr).length === 0) { |
|
|
|
dataObj.zhong += Number(item.jine) * Number(formData[element.key]) |
|
|
|
item["pei"] = -Number(item.jine) * Number(formData[element.key]) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1392,8 +1411,10 @@ export default { |
|
|
|
let xiangmu = `${item.value[k]}`; |
|
|
|
let xiangmuArr = xiangmu.split(''); |
|
|
|
let zhonghaomaArr = zhonghaoma.split(''); |
|
|
|
item["pei"] = Number(item.jine) |
|
|
|
if (_.difference(zhonghaomaArr, xiangmuArr).length === 0) { |
|
|
|
dataObj.zhong += Number(item.jine) * Number(formData[element.key]) |
|
|
|
item["pei"] = -Number(item.jine) * Number(formData[element.key]) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1412,8 +1433,10 @@ export default { |
|
|
|
let xiangmu = `${item.value[k]}`; |
|
|
|
let xiangmuArr = xiangmu.split(''); |
|
|
|
let zhonghaomaArr = zhonghaoma.split(''); |
|
|
|
item["pei"] = Number(item.jine) |
|
|
|
if (_.difference(zhonghaomaArr, xiangmuArr).length === 0) { |
|
|
|
dataObj.zhong += Number(item.jine) * Number(formData[element.key]) |
|
|
|
item["pei"] = -Number(item.jine) * Number(formData[element.key]) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1432,8 +1455,10 @@ export default { |
|
|
|
let xiangmu = `${item.value[k]}`; |
|
|
|
let xiangmuArr = xiangmu.split(''); |
|
|
|
let zhonghaomaArr = zhonghaoma.split(''); |
|
|
|
item["pei"] = Number(item.jine) |
|
|
|
if (_.difference(zhonghaomaArr, xiangmuArr).length === 0) { |
|
|
|
dataObj.zhong += Number(item.jine) * Number(formData[element.key]) |
|
|
|
item["pei"] = -Number(item.jine) * Number(formData[element.key]) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1452,8 +1477,10 @@ export default { |
|
|
|
let xiangmu = `${item.value[k]}`; |
|
|
|
let xiangmuArr = xiangmu.split(''); |
|
|
|
let zhonghaomaArr = zhonghaoma.split(''); |
|
|
|
item["pei"] = Number(item.jine) |
|
|
|
if (_.difference(zhonghaomaArr, xiangmuArr).length === 0) { |
|
|
|
dataObj.zhong += Number(item.jine) * Number(formData[element.key]) |
|
|
|
item["pei"] = -Number(item.jine) * Number(formData[element.key]) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1472,8 +1499,10 @@ export default { |
|
|
|
let xiangmu = `${item.value[k]}`; |
|
|
|
let xiangmuArr = xiangmu.split(''); |
|
|
|
let zhonghaomaArr = zhonghaoma.split(''); |
|
|
|
item["pei"] = Number(item.jine) |
|
|
|
if (_.difference(zhonghaomaArr, xiangmuArr).length <= 1) { |
|
|
|
dataObj.zhong += Number(item.jine) * Number(formData[element.key]) |
|
|
|
item["pei"] = -Number(item.jine) * Number(formData[element.key]) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1492,8 +1521,10 @@ export default { |
|
|
|
let xiangmu = `${item.value[k]}`; |
|
|
|
let xiangmuArr = xiangmu.split(''); |
|
|
|
let zhonghaomaArr = zhonghaoma.split(''); |
|
|
|
item["pei"] = Number(item.jine) |
|
|
|
if (_.difference(zhonghaomaArr, xiangmuArr).length <= 1) { |
|
|
|
dataObj.zhong += Number(item.jine) * Number(formData[element.key]) |
|
|
|
item["pei"] = -Number(item.jine) * Number(formData[element.key]) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1512,8 +1543,10 @@ export default { |
|
|
|
let xiangmu = `${item.value[k]}`; |
|
|
|
let xiangmuArr = xiangmu.split(''); |
|
|
|
let zhonghaomaArr = zhonghaoma.split(''); |
|
|
|
item["pei"] = Number(item.jine) |
|
|
|
if (_.difference(zhonghaomaArr, xiangmuArr).length <= 1) { |
|
|
|
dataObj.zhong += Number(item.jine) * Number(formData[element.key]) |
|
|
|
item["pei"] = -Number(item.jine) * Number(formData[element.key]) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1532,8 +1565,10 @@ export default { |
|
|
|
let xiangmu = `${item.value[k]}`; |
|
|
|
let xiangmuArr = xiangmu.split(''); |
|
|
|
let zhonghaomaArr = zhonghaoma.split(''); |
|
|
|
item["pei"] = Number(item.jine) |
|
|
|
if (_.difference(zhonghaomaArr, xiangmuArr).length <= 1) { |
|
|
|
dataObj.zhong += Number(item.jine) * Number(formData[element.key]) |
|
|
|
item["pei"] = -Number(item.jine) * Number(formData[element.key]) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1552,8 +1587,10 @@ export default { |
|
|
|
let xiangmu = `${item.value[k]}`; |
|
|
|
let xiangmuArr = xiangmu.split(''); |
|
|
|
let zhonghaomaArr = zhonghaoma.split(''); |
|
|
|
item["pei"] = Number(item.jine) |
|
|
|
if (_.difference(zhonghaomaArr, xiangmuArr).length === 2) { |
|
|
|
dataObj.zhong += Number(item.jine) * Number(formData[element.key]) |
|
|
|
item["pei"] = -Number(item.jine) * Number(formData[element.key]) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1578,10 +1615,13 @@ export default { |
|
|
|
count++ |
|
|
|
} |
|
|
|
} |
|
|
|
item["pei"] = Number(item.jine) |
|
|
|
if (count === 1) { |
|
|
|
dataObj.zhong += Number(item.jine) * Number(formData[`${element.key}1`]) |
|
|
|
item["pei"] = -Number(item.jine) * Number(formData[`${element.key}1`]) |
|
|
|
} else if (count > 1) { |
|
|
|
dataObj.zhong += Number(item.jine) * Number(formData[`${element.key}2`]) |
|
|
|
item["pei"] = -Number(item.jine) * Number(formData[`${element.key}2`]) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1606,8 +1646,10 @@ export default { |
|
|
|
// count++ |
|
|
|
// } |
|
|
|
// } |
|
|
|
// item["pei"] = Number(item.jine) |
|
|
|
// if (count >= 1) { |
|
|
|
// dataObj.zhong += Number(item.jine) * 9 |
|
|
|
// item["pei"] = -Number(item.jine) * 9 |
|
|
|
// } |
|
|
|
// } |
|
|
|
// } |
|
|
@ -1632,8 +1674,10 @@ export default { |
|
|
|
count++ |
|
|
|
} |
|
|
|
} |
|
|
|
item["pei"] = Number(item.jine) |
|
|
|
if (count >= 2) { |
|
|
|
dataObj.zhong += Number(item.jine) * Number(formData[element.key]) |
|
|
|
item["pei"] = -Number(item.jine) * Number(formData[element.key]) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1658,8 +1702,10 @@ export default { |
|
|
|
count++ |
|
|
|
} |
|
|
|
} |
|
|
|
item["pei"] = Number(item.jine) |
|
|
|
if (count >= 3) { |
|
|
|
dataObj.zhong += Number(item.jine) * Number(formData[element.key]) |
|
|
|
item["pei"] = -Number(item.jine) * Number(formData[element.key]) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1676,8 +1722,10 @@ export default { |
|
|
|
dataObj.all += Number(item.jine) |
|
|
|
let zhonghaomaArr = zhonghaoma.split(''); |
|
|
|
zhonghaomaArr = _.uniq(zhonghaomaArr) |
|
|
|
item["pei"] = Number(item.jine) |
|
|
|
if (zhonghaomaArr.length < 3) { |
|
|
|
dataObj.zhong += Number(item.jine) * Number(formData[element.key]) |
|
|
|
item["pei"] = -Number(item.jine) * Number(formData[element.key]) |
|
|
|
} |
|
|
|
} |
|
|
|
alljineLocal[element.key] = dataObj |
|
|
@ -1686,6 +1734,7 @@ export default { |
|
|
|
this.tongjiValue = 0 |
|
|
|
this.zhongjiangshuTotal = 0 |
|
|
|
this.zhongjiangshucount = 0 |
|
|
|
console.log(1688, alljineLocal); |
|
|
|
for (let key in alljineLocal) { |
|
|
|
this.tongjiValue += alljineLocal[key].all |
|
|
|
this.zhongjiangshuTotal += alljineLocal[key].zhong |
|
|
@ -1693,12 +1742,42 @@ export default { |
|
|
|
this.zhongjiangshucount++ |
|
|
|
} |
|
|
|
} |
|
|
|
// console.log(alljineLocal) |
|
|
|
// ElMessage({ |
|
|
|
// type: 'success', |
|
|
|
// message: JSON.stringify(haomaList), |
|
|
|
// duration: 3000 |
|
|
|
// }) |
|
|
|
let alljineLocalListTemp = [] |
|
|
|
for (let k = 0; k < alljineLocalList.length; k++) { |
|
|
|
let element = alljineLocalList[k]; |
|
|
|
for (let l = 0; l < element.data.length; l++) { |
|
|
|
let item = element.data[l]; |
|
|
|
alljineLocalListTemp.push({ |
|
|
|
value: `${item.value[0] || ""}`, |
|
|
|
pei: item.pei, |
|
|
|
jine: item.jine, |
|
|
|
type: element.name.split(":")[1].replace("1", "") |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
let alljineLocalGroupy = _.groupBy(alljineLocalListTemp, 'value') |
|
|
|
let alljineLocalGroupyList = [] |
|
|
|
this.allhejialljineLocalTemp = 0 |
|
|
|
for (let key in alljineLocalGroupy) { |
|
|
|
let alljineLocalGroupyItem = { |
|
|
|
value: key, |
|
|
|
pei: 0, |
|
|
|
jine: 0, |
|
|
|
type: [] |
|
|
|
} |
|
|
|
for (let m = 0; m < alljineLocalGroupy[key].length; m++) { |
|
|
|
console.log(88888, alljineLocalGroupy[key]) |
|
|
|
let element = alljineLocalGroupy[key][m]; |
|
|
|
alljineLocalGroupyItem.pei = alljineLocalGroupyItem.pei + (((100 - (this.fuwufei.fuwufeiValue || 0)) * Number(element.pei)) / 100) |
|
|
|
alljineLocalGroupyItem.jine += element.jine |
|
|
|
alljineLocalGroupyItem.type.push(element.type) |
|
|
|
} |
|
|
|
this.allhejialljineLocalTemp += alljineLocalGroupyItem.jine |
|
|
|
alljineLocalGroupyList.push(alljineLocalGroupyItem) |
|
|
|
} |
|
|
|
alljineLocalGroupyList = _.sortBy(alljineLocalGroupyList, 'pei').reverse() |
|
|
|
this.alljineLocalTemp = alljineLocalGroupyList |
|
|
|
return haomaList |
|
|
|
}, |
|
|
|
}, |
|
|
|