Browse Source

11.4

master
lichong 5 months ago
parent
commit
b84f3f35ff
  1. 2
      front/package.json
  2. 42
      front/src/renderer/src/views/shujufenxi.vue

2
front/package.json

@ -1,6 +1,6 @@
{
"name": "electron",
"version": "1.0.14",
"version": "1.0.15",
"description": "An Electron application with Vue",
"main": "./out/main/index.js",
"author": "lichong",

42
front/src/renderer/src/views/shujufenxi.vue

@ -419,7 +419,20 @@ export default {
dayjs: dayjs,
leftText: "",
typeObj: { "1": "体彩", "2": "福彩" },
placeholderLeftText: "",
placeholderLeftText: `一单一组:034,036合计8
7单5组034687合计48
034036合计4
084756合计4
组六01234512356合计20
组三12342345合计20
1合计10
双飞58合计20
一码定位百1十4个8合计30
两码定位百十85合计30元
复式112223合计60
全包对子合计20
豹子1合计2
`,
rightTableData: [],
rightTableDataTi: [],
rightTableDataFu: [],
@ -546,10 +559,10 @@ export default {
}
this.dailishangList = dailishangListTemp
let selectItem = _.find(this.dailishangList, { check: true })
if (!selectItem) {
if (!selectItem && this.dailishangList.length) {
this.dailishangList[0].check = true
this.rightTableData = []
} else {
} else if (selectItem) {
this.rightTableData = JSON.parse(selectItem.rightTableData || "[]")
}
},
@ -589,6 +602,10 @@ export default {
},
//
async leftTongji() {
if (!this.dailishangList.length) {
ElMessage.error("请先添加代理人")
return
}
let leftTextArr = this.leftText.split("\n")
// 退
leftTextArr = leftTextArr.filter(item => { return !(item.match(/\d{2}:\d{2}:\d{2}/g) || item.includes("退")) })
@ -767,9 +784,12 @@ export default {
let baiReg = /百(\d+)/
let shiReg = /十(\d+)/
let geReg = /个(\d+)/
let baiList = item.match(baiReg)[1].split("")
let shiList = item.match(shiReg)[1].split("")
let geList = item.match(geReg)[1].split("")
let baiArr = item.match(baiReg) || ["", ""]
let shiArr = item.match(shiReg) || ["", ""]
let geArr = item.match(geReg) || ["", ""]
let baiList = baiArr[1].split("")
let shiList = shiArr[1].split("")
let geList = geArr[1].split("")
let length = baiList.length + shiList.length + geList.length
if (jine % (length * 10) !== 0) {
errorText.push(itemTemp)
@ -814,9 +834,12 @@ export default {
let baishiReg = /百十(\d+(?:[,,]\d+)*)/
let shigeReg = /十个(\d+(?:[,,]\d+)*)/
let baigeReg = /百个(\d+(?:[,,]\d+)*)/
let baishiList = item.match(baishiReg)[1].split(/[,,]/)
let shigeList = item.match(shigeReg)[1].split(/[,,]/)
let baigeList = item.match(baigeReg)[1].split(/[,,]/)
let baishiArr = item.match(baishiReg) || ["", ""]
let shigeArr = item.match(shigeReg) || ["", ""]
let baigeArr = item.match(baigeReg) || ["", ""]
let baishiList = baishiArr[1].split(/[,,]/)
let shigeList = shigeArr[1].split(/[,,]/)
let baigeList = baigeArr[1].split(/[,,]/)
let length = baishiList.length + shigeList.length + baigeList.length
if (jine % (length * 10) !== 0) {
errorText.push(itemTemp)
@ -861,6 +884,7 @@ export default {
let match = item.match(this.fushi)
let numbers = match[1].replace(/\s+/g, '').replace(/[,,\.]+/g, ',');
haoma = _.compact(_.split(numbers, ","))
console.log(887, haoma);
if (jine % (haoma.length * 6) !== 0) {
errorText.push(itemTemp)
continue

Loading…
Cancel
Save