双中心修改
This commit is contained in:
parent
bf8e2226a7
commit
abb3e1bb47
@ -3,20 +3,22 @@ import promptAction from '@ohos.promptAction'
|
|||||||
import router from '@ohos.router'
|
import router from '@ohos.router'
|
||||||
import { dateFormat } from '../utils/tools'
|
import { dateFormat } from '../utils/tools'
|
||||||
import FileUtil from '../../common/utils/File'
|
import FileUtil from '../../common/utils/File'
|
||||||
import AccountTable from '../../common/database/tables/AccountTable';
|
import AccountTable from '../../common/database/tables/AccountTable'
|
||||||
import MA_SYSSET from '../../common/constants/MA_SYSSET';
|
import MA_SYSSET from '../../common/constants/MA_SYSSET'
|
||||||
import { takePhoto, deleteAllFileByPiC } from '../../common/service/videoService'
|
import { takePhoto } from '../../common/service/videoService'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
getDataBaseTable,
|
|
||||||
upDateTable,
|
|
||||||
getMySystemSetTable,
|
|
||||||
delSyncTable,
|
delSyncTable,
|
||||||
upDataZhongxinginitialization
|
getDataBaseTable,
|
||||||
|
getMySystemSetTable,
|
||||||
|
upDataZhongxinginitialization,
|
||||||
|
upDateTable
|
||||||
} from '../../common/service/initable'
|
} from '../../common/service/initable'
|
||||||
import { GlobalConfig } from '../../config/index'
|
import { GlobalConfig } from '../../config/index'
|
||||||
import testNapi from '@ohos.hiserialsdk'
|
import testNapi from '@ohos.hiserialsdk'
|
||||||
|
|
||||||
let num = 0
|
let num = 0
|
||||||
|
|
||||||
export async function getliushuiNum(context) {
|
export async function getliushuiNum(context) {
|
||||||
console.log('getLiushuihao')
|
console.log('getLiushuihao')
|
||||||
const fileUtil = new FileUtil(context)
|
const fileUtil = new FileUtil(context)
|
||||||
@ -39,6 +41,7 @@ export async function getliushuiNum(context){
|
|||||||
// return str
|
// return str
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//配置流水号
|
//配置流水号
|
||||||
export async function setliushuiNum(context) {
|
export async function setliushuiNum(context) {
|
||||||
const fileUtil = new FileUtil(context)
|
const fileUtil = new FileUtil(context)
|
||||||
@ -79,7 +82,7 @@ export async function getDoubleCeneterTable(param) {
|
|||||||
return new Promise(async (reslove, reject) => {
|
return new Promise(async (reslove, reject) => {
|
||||||
// MA_SYSSET双中心下做合并表格操作
|
// MA_SYSSET双中心下做合并表格操作
|
||||||
const db = new AccountTable(() => {
|
const db = new AccountTable(() => {
|
||||||
}, MA_SYSSET);
|
}, MA_SYSSET, param.context);
|
||||||
db.getRdbStore(() => {
|
db.getRdbStore(() => {
|
||||||
db.query('0', async (array) => {
|
db.query('0', async (array) => {
|
||||||
if (array.length) {
|
if (array.length) {
|
||||||
@ -130,6 +133,7 @@ export async function getDoubleCeneterTable(param) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//单中心存表
|
//单中心存表
|
||||||
export async function getSingleCenterTable(param) {
|
export async function getSingleCenterTable(param) {
|
||||||
return new Promise((reslove, reject) => {
|
return new Promise((reslove, reject) => {
|
||||||
@ -259,8 +263,10 @@ export async function takePhotoFn(context) {
|
|||||||
}
|
}
|
||||||
}, 3000)
|
}, 3000)
|
||||||
}
|
}
|
||||||
|
|
||||||
let fd
|
let fd
|
||||||
const devPath = "/dev/ttyS3"
|
const devPath = "/dev/ttyS3"
|
||||||
|
|
||||||
function openChuankouFn(callback) {
|
function openChuankouFn(callback) {
|
||||||
console.log('SerialOpen in indexservice, path=' + devPath)
|
console.log('SerialOpen in indexservice, path=' + devPath)
|
||||||
|
|
||||||
@ -323,7 +329,9 @@ function getChuankouFnMsg() {
|
|||||||
// let revTestInfo = testNapi?.SerialRecv(globalThis.fd, timeout);
|
// let revTestInfo = testNapi?.SerialRecv(globalThis.fd, timeout);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let chuankou
|
let chuankou
|
||||||
|
|
||||||
export async function getChuankouFn() {
|
export async function getChuankouFn() {
|
||||||
if (globalThis.fd) {
|
if (globalThis.fd) {
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user