unify-external-plugin-platform 0.0.3-81 → 0.0.3-83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.playwright-mcp/console-2026-10-20T08-16-33-810Z.log +2 -0
- package/.playwright-mcp/console-2026-10-20T08-23-15-477Z.log +3 -0
- package/.playwright-mcp/page-2026-10-20T08-16-33-990Z.yml +63 -0
- package/.playwright-mcp/page-2026-10-20T08-16-56-968Z.yml +0 -0
- package/.playwright-mcp/page-2026-10-20T08-23-16-001Z.yml +63 -0
- package/.playwright-mcp/page-2026-10-20T08-23-31-168Z.yml +0 -0
- package/dist/external-plugin.common.js +1197 -516
- package/dist/external-plugin.umd.js +1197 -516
- package/dist/external-plugin.umd.min.js +1 -1
- package/package.json +1 -1
|
@@ -83178,8 +83178,8 @@ var scanner_cameravue_type_template_id_00e9072f_scoped_true_render = function re
|
|
|
83178
83178
|
};
|
|
83179
83179
|
var scanner_cameravue_type_template_id_00e9072f_scoped_true_staticRenderFns = [];
|
|
83180
83180
|
|
|
83181
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=template&id=
|
|
83182
|
-
var
|
|
83181
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=template&id=3fc2d979&
|
|
83182
|
+
var scanner_camera_componentvue_type_template_id_3fc2d979_render = function render() {
|
|
83183
83183
|
var _vm = this,
|
|
83184
83184
|
_c = _vm._self._c;
|
|
83185
83185
|
return _c('div', {
|
|
@@ -83313,7 +83313,7 @@ var scanner_camera_componentvue_type_template_id_1d5723dd_render = function rend
|
|
|
83313
83313
|
}
|
|
83314
83314
|
}, [_vm._v("旋转180°")])], 1)], 1) : _vm._e(), _vm._t("action")]], 2)])]);
|
|
83315
83315
|
};
|
|
83316
|
-
var
|
|
83316
|
+
var scanner_camera_componentvue_type_template_id_3fc2d979_staticRenderFns = [];
|
|
83317
83317
|
|
|
83318
83318
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
83319
83319
|
function _typeof(obj) {
|
|
@@ -86085,6 +86085,647 @@ _defineProperty(ViisanPluginService, "secondaryCameraDevNum", -1);
|
|
|
86085
86085
|
_defineProperty(ViisanPluginService, "cachedDevInfos", []);
|
|
86086
86086
|
_defineProperty(ViisanPluginService, "reqIdCounter", 0);
|
|
86087
86087
|
_defineProperty(ViisanPluginService, "previewFrameCallback", null);
|
|
86088
|
+
;// CONCATENATED MODULE: ./packages/service/external-plugins/ewp-plugin-socket.service.ts
|
|
86089
|
+
|
|
86090
|
+
|
|
86091
|
+
/**
|
|
86092
|
+
* 沃斯德人证交互终端
|
|
86093
|
+
* E窗通WEBSOCKET服务
|
|
86094
|
+
*
|
|
86095
|
+
* */
|
|
86096
|
+
|
|
86097
|
+
var EWindowPassMethodCode;
|
|
86098
|
+
(function (EWindowPassMethodCode) {
|
|
86099
|
+
/** 读取社保卡 */
|
|
86100
|
+
EWindowPassMethodCode["iReadCardBas"] = "iReadCardBas";
|
|
86101
|
+
/** 获取签名*/
|
|
86102
|
+
EWindowPassMethodCode["GetSignName_Base64"] = "GetSignName_Base64";
|
|
86103
|
+
/** 读取二代身份证 */
|
|
86104
|
+
EWindowPassMethodCode["ReadIDCard_Base64"] = "ReadIDCard_Base64";
|
|
86105
|
+
/** 人证比对 */
|
|
86106
|
+
EWindowPassMethodCode["FaceValidateWithIdCard_Base64"] = "FaceValidateWithIdCard_Base64";
|
|
86107
|
+
/** 获取指纹 */
|
|
86108
|
+
EWindowPassMethodCode["FingerPrint_Base64"] = "FingerPrint_Base64";
|
|
86109
|
+
/** 读取二代身份证(新版统一外接设备插件平台) */
|
|
86110
|
+
EWindowPassMethodCode["iReadIdentityCard"] = "iReadIdentityCard";
|
|
86111
|
+
/** 开启视频预览(新版统一外接设备插件平台) */
|
|
86112
|
+
EWindowPassMethodCode["VideoStart"] = "VideoStart";
|
|
86113
|
+
/** 关闭视频预览 */
|
|
86114
|
+
EWindowPassMethodCode["VideoStop"] = "VideoStop";
|
|
86115
|
+
/** 拍摄抓图 */
|
|
86116
|
+
EWindowPassMethodCode["VideoGetImage"] = "VideoGetImage";
|
|
86117
|
+
/** 旋转图像 */
|
|
86118
|
+
EWindowPassMethodCode["VideoRotate"] = "VideoRotate";
|
|
86119
|
+
/** 实时视频流(设备异步推送帧,非请求应答) */
|
|
86120
|
+
EWindowPassMethodCode["VideoStream"] = "VideoStream";
|
|
86121
|
+
})(EWindowPassMethodCode || (EWindowPassMethodCode = {}));
|
|
86122
|
+
const EWindowPassMethodDesc = {
|
|
86123
|
+
[EWindowPassMethodCode.iReadCardBas]: '读取社保卡',
|
|
86124
|
+
[EWindowPassMethodCode.GetSignName_Base64]: '获取签名',
|
|
86125
|
+
[EWindowPassMethodCode.ReadIDCard_Base64]: '读取二代身份证',
|
|
86126
|
+
[EWindowPassMethodCode.FaceValidateWithIdCard_Base64]: '人证比对',
|
|
86127
|
+
[EWindowPassMethodCode.FingerPrint_Base64]: '获取指纹',
|
|
86128
|
+
[EWindowPassMethodCode.iReadIdentityCard]: '读取二代身份证信息',
|
|
86129
|
+
[EWindowPassMethodCode.VideoStart]: '开启视频预览',
|
|
86130
|
+
[EWindowPassMethodCode.VideoStop]: '关闭视频预览',
|
|
86131
|
+
[EWindowPassMethodCode.VideoGetImage]: '拍摄抓图',
|
|
86132
|
+
[EWindowPassMethodCode.VideoRotate]: '旋转图像'
|
|
86133
|
+
};
|
|
86134
|
+
class EWindowPassService {
|
|
86135
|
+
/** 摄像头WebSocket连接(预览需长连接接收帧推送,与read()的短连接相互独立) */
|
|
86136
|
+
|
|
86137
|
+
/** 摄像头建连Promise(防止并发重复建连) */
|
|
86138
|
+
|
|
86139
|
+
/** 摄像头待响应的请求(同一时间仅一个) */
|
|
86140
|
+
|
|
86141
|
+
/** 预览帧回调(VideoStream帧数据) */
|
|
86142
|
+
|
|
86143
|
+
/** 是否处于预览中(单任务模式标记,预览期间禁止其他指令) */
|
|
86144
|
+
|
|
86145
|
+
static startConnect(method) {
|
|
86146
|
+
if (this.ws && this.ws.readyState === WebSocket.CONNECTING) {
|
|
86147
|
+
return this;
|
|
86148
|
+
}
|
|
86149
|
+
let webSocketUrl = '';
|
|
86150
|
+
switch (method) {
|
|
86151
|
+
case EWindowPassMethodCode.FingerPrint_Base64:
|
|
86152
|
+
webSocketUrl = this.fingerPrintBasWebSocketUrl;
|
|
86153
|
+
break;
|
|
86154
|
+
default:
|
|
86155
|
+
webSocketUrl = this.iReadCardBasWebSocketUrl;
|
|
86156
|
+
break;
|
|
86157
|
+
}
|
|
86158
|
+
const ws = new WebSocket(webSocketUrl);
|
|
86159
|
+
let resolved;
|
|
86160
|
+
const onConnect = new Promise(resolve => {
|
|
86161
|
+
resolved = resolve;
|
|
86162
|
+
});
|
|
86163
|
+
ws.onopen = () => {
|
|
86164
|
+
resolved(true);
|
|
86165
|
+
};
|
|
86166
|
+
ws.onmessage = event => {
|
|
86167
|
+
if (method === EWindowPassMethodCode.FingerPrint_Base64) {
|
|
86168
|
+
// 指纹后端返回的是string
|
|
86169
|
+
event = {
|
|
86170
|
+
...event,
|
|
86171
|
+
data: JSON.stringify({
|
|
86172
|
+
fingerPrintInfo: event.data
|
|
86173
|
+
})
|
|
86174
|
+
};
|
|
86175
|
+
}
|
|
86176
|
+
this.handleMessage(event);
|
|
86177
|
+
};
|
|
86178
|
+
ws.onclose = () => this.handleClose();
|
|
86179
|
+
ws.onerror = () => this.handleError();
|
|
86180
|
+
this.ws = ws;
|
|
86181
|
+
return onConnect;
|
|
86182
|
+
}
|
|
86183
|
+
static handleError() {
|
|
86184
|
+
for (const type in this.requestStore) {
|
|
86185
|
+
this.requestStore.forEach(({
|
|
86186
|
+
reject
|
|
86187
|
+
}) => {
|
|
86188
|
+
reject('handleError');
|
|
86189
|
+
});
|
|
86190
|
+
}
|
|
86191
|
+
throw Error('统一插件平台E窗通设备功能加载失败');
|
|
86192
|
+
}
|
|
86193
|
+
static handleClose() {
|
|
86194
|
+
for (const type in this.requestStore) {
|
|
86195
|
+
this.requestStore.forEach(({
|
|
86196
|
+
reject
|
|
86197
|
+
}) => {
|
|
86198
|
+
reject('close');
|
|
86199
|
+
});
|
|
86200
|
+
}
|
|
86201
|
+
}
|
|
86202
|
+
static handleMessage(msg) {
|
|
86203
|
+
let data = '';
|
|
86204
|
+
try {
|
|
86205
|
+
data = JSON.parse(msg.data);
|
|
86206
|
+
} catch (e) {
|
|
86207
|
+
data = '';
|
|
86208
|
+
}
|
|
86209
|
+
this.requestStore.forEach(({
|
|
86210
|
+
resolve
|
|
86211
|
+
}) => {
|
|
86212
|
+
resolve(data);
|
|
86213
|
+
});
|
|
86214
|
+
this.requestStore = [];
|
|
86215
|
+
this.ws.close();
|
|
86216
|
+
}
|
|
86217
|
+
static async read(method) {
|
|
86218
|
+
if (this.previewActive) {
|
|
86219
|
+
// 单任务模式:预览期间调用其他指令会导致设备驱动闪退,直接拦截
|
|
86220
|
+
throw Error('高拍仪预览进行中,请先关闭预览后再操作其他设备功能');
|
|
86221
|
+
}
|
|
86222
|
+
await this.startConnect(method);
|
|
86223
|
+
const methodDesc = EWindowPassMethodDesc[method];
|
|
86224
|
+
if (this.ws.readyState === 1) {
|
|
86225
|
+
if (method !== EWindowPassMethodCode.FingerPrint_Base64) console.log(methodDesc + '连接成功');
|
|
86226
|
+
let jsonString;
|
|
86227
|
+
// outTimes:超时时间(秒)
|
|
86228
|
+
switch (method) {
|
|
86229
|
+
case EWindowPassMethodCode.ReadIDCard_Base64:
|
|
86230
|
+
// cardReader:0 读卡器-USB;1 读卡器-COM
|
|
86231
|
+
jsonString = JSON.stringify({
|
|
86232
|
+
method,
|
|
86233
|
+
args: {
|
|
86234
|
+
outTimes: 30,
|
|
86235
|
+
cardReader: 1
|
|
86236
|
+
}
|
|
86237
|
+
});
|
|
86238
|
+
break;
|
|
86239
|
+
case EWindowPassMethodCode.FaceValidateWithIdCard_Base64:
|
|
86240
|
+
// cardReader:0 读卡器-USB;1 读卡器-COM
|
|
86241
|
+
jsonString = JSON.stringify({
|
|
86242
|
+
method,
|
|
86243
|
+
args: {
|
|
86244
|
+
outTimes: 30,
|
|
86245
|
+
cardReader: 1,
|
|
86246
|
+
cameraType: 0
|
|
86247
|
+
}
|
|
86248
|
+
});
|
|
86249
|
+
break;
|
|
86250
|
+
case EWindowPassMethodCode.iReadCardBas:
|
|
86251
|
+
// icType:1接触卡;2非接触卡;3自动(接触优先);4自动(非接优先)
|
|
86252
|
+
jsonString = JSON.stringify({
|
|
86253
|
+
method,
|
|
86254
|
+
args: {
|
|
86255
|
+
icType: '1'
|
|
86256
|
+
}
|
|
86257
|
+
});
|
|
86258
|
+
break;
|
|
86259
|
+
case EWindowPassMethodCode.iReadIdentityCard:
|
|
86260
|
+
// 新版统一外接设备插件平台接口,无参数
|
|
86261
|
+
jsonString = JSON.stringify({
|
|
86262
|
+
method,
|
|
86263
|
+
args: {}
|
|
86264
|
+
});
|
|
86265
|
+
break;
|
|
86266
|
+
case EWindowPassMethodCode.FingerPrint_Base64:
|
|
86267
|
+
// 获取指纹:getimgae,颜色(0黑色 1红色), 质量(默认0), 图像大小(288,360),类型(0民用,1公安)
|
|
86268
|
+
jsonString = 'getimgae,1,0,288,0';
|
|
86269
|
+
break;
|
|
86270
|
+
default:
|
|
86271
|
+
jsonString = JSON.stringify({
|
|
86272
|
+
method,
|
|
86273
|
+
args: {
|
|
86274
|
+
outTimes: 30
|
|
86275
|
+
}
|
|
86276
|
+
});
|
|
86277
|
+
break;
|
|
86278
|
+
}
|
|
86279
|
+
this.ws.send(jsonString);
|
|
86280
|
+
return new Promise((resolve, reject) => {
|
|
86281
|
+
if (!this.requestStore) {
|
|
86282
|
+
this.requestStore = [];
|
|
86283
|
+
}
|
|
86284
|
+
this.requestStore.push({
|
|
86285
|
+
resolve,
|
|
86286
|
+
reject
|
|
86287
|
+
});
|
|
86288
|
+
});
|
|
86289
|
+
} else {
|
|
86290
|
+
throw Error('统一插件平台' + methodDesc + '未准备完成');
|
|
86291
|
+
}
|
|
86292
|
+
}
|
|
86293
|
+
/**
|
|
86294
|
+
* 读取二代身份证(兼容新版统一外接设备插件平台iReadIdentityCard接口)
|
|
86295
|
+
* 优先使用新版iReadIdentityCard指令,失败时自动改用旧版ReadIDCard_Base64指令
|
|
86296
|
+
* */
|
|
86297
|
+
static async idCardRead(method = EWindowPassMethodCode.ReadIDCard_Base64) {
|
|
86298
|
+
try {
|
|
86299
|
+
return await EWindowPassService.newIdCardRead();
|
|
86300
|
+
} catch (e) {
|
|
86301
|
+
// 新版指令读取失败(设备服务为旧版或暂不可用),改用旧版ReadIDCard_Base64指令读取
|
|
86302
|
+
console.log('新版接口读取二代身份证失败,尝试旧版E窗通接口==>', e);
|
|
86303
|
+
return await EWindowPassService.oldIdCardRead();
|
|
86304
|
+
}
|
|
86305
|
+
}
|
|
86306
|
+
/**
|
|
86307
|
+
* 读取二代身份证-旧版E窗通指令(ReadIDCard_Base64)
|
|
86308
|
+
* */
|
|
86309
|
+
static async oldIdCardRead() {
|
|
86310
|
+
const readData = await EWindowPassService.read(EWindowPassMethodCode.ReadIDCard_Base64);
|
|
86311
|
+
console.log('读取二代身份证==>', readData);
|
|
86312
|
+
if (!readData) {
|
|
86313
|
+
throw Error('未匹配可用的E窗通读取设备');
|
|
86314
|
+
}
|
|
86315
|
+
if (readData.retVal !== 0) {
|
|
86316
|
+
throw Error("读取二代身份证失败,返回值:" + readData.retVal + ",错误信息:" + readData.errMsg);
|
|
86317
|
+
}
|
|
86318
|
+
const idInfo = readData.idInfo.data;
|
|
86319
|
+
const {
|
|
86320
|
+
name,
|
|
86321
|
+
sex,
|
|
86322
|
+
birthday,
|
|
86323
|
+
address,
|
|
86324
|
+
id_num,
|
|
86325
|
+
nations
|
|
86326
|
+
} = idInfo;
|
|
86327
|
+
const IDCardData = {
|
|
86328
|
+
info: {
|
|
86329
|
+
name,
|
|
86330
|
+
sex,
|
|
86331
|
+
birthday: birthday.replace('-', '').replace('-', ''),
|
|
86332
|
+
address,
|
|
86333
|
+
cardId: id_num,
|
|
86334
|
+
nation: nations
|
|
86335
|
+
},
|
|
86336
|
+
headImage: readData.idPhotoPicBase64
|
|
86337
|
+
};
|
|
86338
|
+
console.log('读取二代身份证结果==>', IDCardData);
|
|
86339
|
+
return IDCardData;
|
|
86340
|
+
}
|
|
86341
|
+
/**
|
|
86342
|
+
* 读取二代身份证-新版统一外接设备插件平台指令(iReadIdentityCard)
|
|
86343
|
+
* 返回:{method:'iReadIdentityCard',retVal:0,errMsg:'',idCardInfo:'二代证信息',photoBase64,photoFrontBase64,photoBackBase64}
|
|
86344
|
+
* */
|
|
86345
|
+
static async newIdCardRead() {
|
|
86346
|
+
const readData = await EWindowPassService.read(EWindowPassMethodCode.iReadIdentityCard);
|
|
86347
|
+
console.log('读取二代身份证(新版接口)==>', readData);
|
|
86348
|
+
if (!readData) {
|
|
86349
|
+
throw Error('未匹配可用的E窗通读取设备');
|
|
86350
|
+
}
|
|
86351
|
+
if (readData.retVal !== 0) {
|
|
86352
|
+
throw Error("读取二代身份证失败,返回值:" + readData.retVal + ",错误信息:" + readData.errMsg);
|
|
86353
|
+
}
|
|
86354
|
+
// 各字段:姓名|性别|民族|出生日期|住址|身份证号|签发机关|签发日期|有效期至
|
|
86355
|
+
const idInfoArray = (readData.idCardInfo || '').split('|');
|
|
86356
|
+
const birthday = (idInfoArray[3] || '').replace('-', '').replace('-', '');
|
|
86357
|
+
const IDCardData = {
|
|
86358
|
+
info: {
|
|
86359
|
+
name: idInfoArray[0],
|
|
86360
|
+
sex: idInfoArray[1],
|
|
86361
|
+
birthday,
|
|
86362
|
+
address: idInfoArray[4],
|
|
86363
|
+
cardId: idInfoArray[5],
|
|
86364
|
+
nation: idInfoArray[2],
|
|
86365
|
+
police: idInfoArray[6],
|
|
86366
|
+
validStart: idInfoArray[7],
|
|
86367
|
+
validEnd: idInfoArray[8]
|
|
86368
|
+
},
|
|
86369
|
+
headImage: readData.photoBase64
|
|
86370
|
+
};
|
|
86371
|
+
console.log('读取二代身份证结果==>', IDCardData);
|
|
86372
|
+
return IDCardData;
|
|
86373
|
+
}
|
|
86374
|
+
/**
|
|
86375
|
+
* 人证比对
|
|
86376
|
+
*/
|
|
86377
|
+
static async faceValidateWithIdCardRead() {
|
|
86378
|
+
const readData = await EWindowPassService.read(EWindowPassMethodCode.FaceValidateWithIdCard_Base64);
|
|
86379
|
+
console.log('人证比对==>', readData);
|
|
86380
|
+
if (!readData) {
|
|
86381
|
+
throw Error('未匹配可用的E窗通读取设备');
|
|
86382
|
+
}
|
|
86383
|
+
if (readData.retVal !== 0) {
|
|
86384
|
+
throw Error("人证比对失败,返回值:" + readData.retVal + ",错误信息:" + readData.errMsg);
|
|
86385
|
+
}
|
|
86386
|
+
const idInfo = readData.idInfo.data;
|
|
86387
|
+
const {
|
|
86388
|
+
name,
|
|
86389
|
+
sex,
|
|
86390
|
+
birth,
|
|
86391
|
+
address,
|
|
86392
|
+
idNo,
|
|
86393
|
+
nation
|
|
86394
|
+
} = idInfo;
|
|
86395
|
+
const IDCardData = {
|
|
86396
|
+
idCard: {
|
|
86397
|
+
info: {
|
|
86398
|
+
name,
|
|
86399
|
+
sex,
|
|
86400
|
+
birthday: birth.replace('-', '').replace('-', ''),
|
|
86401
|
+
address,
|
|
86402
|
+
cardId: idNo,
|
|
86403
|
+
nation
|
|
86404
|
+
},
|
|
86405
|
+
headImage: readData.idPhotoBase64
|
|
86406
|
+
},
|
|
86407
|
+
faceimg: readData.scenceBase64
|
|
86408
|
+
};
|
|
86409
|
+
console.log('人证比对结果==>', IDCardData);
|
|
86410
|
+
return IDCardData;
|
|
86411
|
+
}
|
|
86412
|
+
/** 读取社保卡 */
|
|
86413
|
+
static async socialSecurityCardRead() {
|
|
86414
|
+
const readData = await EWindowPassService.read(EWindowPassMethodCode.iReadCardBas);
|
|
86415
|
+
if (!readData) {
|
|
86416
|
+
throw Error('未匹配可用的E窗通读取设备');
|
|
86417
|
+
}
|
|
86418
|
+
if (readData.retVal !== 0) {
|
|
86419
|
+
throw Error("读取社保卡基本信息失败,返回值:" + readData.retVal + ",错误信息:" + readData.outInfo);
|
|
86420
|
+
}
|
|
86421
|
+
// 返回数据:330100|350781196403072943|W57681892|331100D10600000300657BCF88899F8E|张三|3B6D000000815444368660330100286BCF|1.00|2020-08-12|2030-08-12|1|SN00000000|(邮编|身份证号|卡号|社会保障号码|姓名|...不知道是什么信息了)
|
|
86422
|
+
const outInfo = readData.outInfo;
|
|
86423
|
+
const outInfoArray = outInfo.split('|');
|
|
86424
|
+
const cardId = outInfoArray[1];
|
|
86425
|
+
const birthday = IdCardCommonUtils.getBirthdayByIdNumber(cardId).replace('-', '').replace('-', '');
|
|
86426
|
+
const sex = IdCardCommonUtils.getGenderByIdNumber(cardId);
|
|
86427
|
+
const IDCardData = {
|
|
86428
|
+
info: {
|
|
86429
|
+
name: outInfoArray[4],
|
|
86430
|
+
sex,
|
|
86431
|
+
birthday,
|
|
86432
|
+
address: '',
|
|
86433
|
+
cardId
|
|
86434
|
+
},
|
|
86435
|
+
headImage: ''
|
|
86436
|
+
};
|
|
86437
|
+
console.log('读取社保卡==>', readData);
|
|
86438
|
+
return IDCardData;
|
|
86439
|
+
}
|
|
86440
|
+
/** 获取签名-base64 */
|
|
86441
|
+
static async signNameRead() {
|
|
86442
|
+
const readData = await EWindowPassService.read(EWindowPassMethodCode.GetSignName_Base64);
|
|
86443
|
+
if (!readData) {
|
|
86444
|
+
throw Error('未匹配可用的E窗通读取设备');
|
|
86445
|
+
}
|
|
86446
|
+
if (readData.retVal !== 0) {
|
|
86447
|
+
throw Error("读取签名失败,返回值:" + readData.retVal + ",错误信息:" + readData.errMsg);
|
|
86448
|
+
}
|
|
86449
|
+
console.log('获取签名==>', readData);
|
|
86450
|
+
return readData.signPicBase64;
|
|
86451
|
+
}
|
|
86452
|
+
/** 获取指纹*/
|
|
86453
|
+
static async fingerPrintRead() {
|
|
86454
|
+
let timeOver = 30;
|
|
86455
|
+
async function readFingerPrint() {
|
|
86456
|
+
const readData = await EWindowPassService.read(EWindowPassMethodCode.FingerPrint_Base64);
|
|
86457
|
+
if (!readData) {
|
|
86458
|
+
throw Error('未匹配可用的E窗通读取设备');
|
|
86459
|
+
}
|
|
86460
|
+
let list = readData.fingerPrintInfo.split("|");
|
|
86461
|
+
console.log(list);
|
|
86462
|
+
let ret = Number(list[1]);
|
|
86463
|
+
if (ret > 1) {
|
|
86464
|
+
if (timeOver > 0) {
|
|
86465
|
+
timeOver--;
|
|
86466
|
+
return await readFingerPrint();
|
|
86467
|
+
} else {
|
|
86468
|
+
return {
|
|
86469
|
+
status: 'error',
|
|
86470
|
+
data: '已超时,请重新操作,按压指纹'
|
|
86471
|
+
};
|
|
86472
|
+
}
|
|
86473
|
+
} else {
|
|
86474
|
+
return {
|
|
86475
|
+
status: 'success',
|
|
86476
|
+
data: readData.fingerPrintInfo
|
|
86477
|
+
};
|
|
86478
|
+
}
|
|
86479
|
+
}
|
|
86480
|
+
let {
|
|
86481
|
+
status,
|
|
86482
|
+
data
|
|
86483
|
+
} = await readFingerPrint();
|
|
86484
|
+
if (status === 'error') {
|
|
86485
|
+
throw Error(data);
|
|
86486
|
+
} else {
|
|
86487
|
+
let [method, result, quality, image, featureCode] = data.split('|');
|
|
86488
|
+
// getimgae|1|68|......|......
|
|
86489
|
+
// method:方法,result:返回的状态,quality:指纹图片质量,image:图片base64,featureCode:指纹特征码
|
|
86490
|
+
return {
|
|
86491
|
+
method,
|
|
86492
|
+
result,
|
|
86493
|
+
quality,
|
|
86494
|
+
image,
|
|
86495
|
+
featureCode
|
|
86496
|
+
};
|
|
86497
|
+
}
|
|
86498
|
+
}
|
|
86499
|
+
// ==================== 高拍仪(图像设备简洁版) ====================
|
|
86500
|
+
// 协议说明(对照E窗通测试专用.html摄像简洁版章节):
|
|
86501
|
+
// VideoStart:开启预览(cameraNo:1-文档摄像头/主头,2-人像摄像头/副头;isEdgeDetection:0-不裁切,1-自动裁切),
|
|
86502
|
+
// 成功后设备在同一条连接上持续推送VideoStream帧,连接必须保持;
|
|
86503
|
+
// VideoGetImage:拍摄抓图(预览开启后调用,返回imgBase64,预览保持可连续拍摄);
|
|
86504
|
+
// VideoStop:关闭预览(离开页面、切换摄像头/裁剪方式时调用);
|
|
86505
|
+
// 设备为单任务模式:预览期间禁止调用读卡/签名等其他指令,否则驱动会闪退,read()中已做拦截。
|
|
86506
|
+
/**
|
|
86507
|
+
* 建立(或复用)摄像头WebSocket长连接
|
|
86508
|
+
*/
|
|
86509
|
+
static connectCamera() {
|
|
86510
|
+
if (!this.cameraConnectPromise) {
|
|
86511
|
+
this.cameraConnectPromise = new Promise((resolve, reject) => {
|
|
86512
|
+
const ws = new WebSocket(this.iReadCardBasWebSocketUrl);
|
|
86513
|
+
this.cameraWs = ws;
|
|
86514
|
+
ws.onopen = () => resolve(ws);
|
|
86515
|
+
ws.onmessage = event => this.handleCameraMessage(event);
|
|
86516
|
+
ws.onclose = () => {
|
|
86517
|
+
this.cameraWs = null;
|
|
86518
|
+
this.cameraConnectPromise = null;
|
|
86519
|
+
this.previewActive = false;
|
|
86520
|
+
this.failCameraPending(new Error('摄像头连接已关闭'));
|
|
86521
|
+
};
|
|
86522
|
+
ws.onerror = () => {
|
|
86523
|
+
this.cameraWs = null;
|
|
86524
|
+
this.cameraConnectPromise = null;
|
|
86525
|
+
this.previewActive = false;
|
|
86526
|
+
this.failCameraPending(new Error('摄像头连接异常'));
|
|
86527
|
+
reject(new Error('统一插件平台E窗通摄像头功能加载失败'));
|
|
86528
|
+
};
|
|
86529
|
+
});
|
|
86530
|
+
}
|
|
86531
|
+
return this.cameraConnectPromise;
|
|
86532
|
+
}
|
|
86533
|
+
/**
|
|
86534
|
+
* 处理摄像头连接返回消息
|
|
86535
|
+
* VideoStream(预览帧)为设备异步推送,直接交给预览回调,不占用请求应答通道;
|
|
86536
|
+
* 其余消息视为上一次请求的应答(拍摄/旋转的应答会插在帧流中间到达,按method分流)。
|
|
86537
|
+
*/
|
|
86538
|
+
static handleCameraMessage(event) {
|
|
86539
|
+
let data;
|
|
86540
|
+
try {
|
|
86541
|
+
data = JSON.parse(event.data);
|
|
86542
|
+
} catch (e) {
|
|
86543
|
+
console.warn('收到无法解析的摄像头消息:', event.data);
|
|
86544
|
+
return;
|
|
86545
|
+
}
|
|
86546
|
+
if (data.method === EWindowPassMethodCode.VideoStream) {
|
|
86547
|
+
if (this.streamHandler && data.imgBase64) {
|
|
86548
|
+
this.streamHandler(data.imgBase64);
|
|
86549
|
+
}
|
|
86550
|
+
return;
|
|
86551
|
+
}
|
|
86552
|
+
if (this.cameraPending) {
|
|
86553
|
+
const pending = this.cameraPending;
|
|
86554
|
+
this.cameraPending = null;
|
|
86555
|
+
clearTimeout(pending.timer);
|
|
86556
|
+
pending.resolve(data);
|
|
86557
|
+
} else {
|
|
86558
|
+
console.warn('收到未预期的摄像头返回:', data);
|
|
86559
|
+
}
|
|
86560
|
+
}
|
|
86561
|
+
/** 使当前摄像头待响应的请求失败(连接断开/异常时兜底) */
|
|
86562
|
+
static failCameraPending(err) {
|
|
86563
|
+
if (this.cameraPending) {
|
|
86564
|
+
const pending = this.cameraPending;
|
|
86565
|
+
this.cameraPending = null;
|
|
86566
|
+
clearTimeout(pending.timer);
|
|
86567
|
+
pending.reject(err);
|
|
86568
|
+
}
|
|
86569
|
+
}
|
|
86570
|
+
/**
|
|
86571
|
+
* 摄像头核心请求方法:建立连接 -> 发送JSON指令 -> 等待返回(预览期间连接保持不断开)
|
|
86572
|
+
*/
|
|
86573
|
+
static cameraRequest(method, args = {}, timeout = 30 * 1000) {
|
|
86574
|
+
if (this.cameraPending) {
|
|
86575
|
+
return Promise.reject(new Error('上一次摄像头请求尚未返回,请勿并发调用'));
|
|
86576
|
+
}
|
|
86577
|
+
return this.connectCamera().then(ws => {
|
|
86578
|
+
return new Promise((resolve, reject) => {
|
|
86579
|
+
const timer = setTimeout(() => {
|
|
86580
|
+
this.cameraPending = null;
|
|
86581
|
+
reject(new Error('调用' + (EWindowPassMethodDesc[method] || method) + '超时(' + timeout / 1000 + '秒)'));
|
|
86582
|
+
}, timeout);
|
|
86583
|
+
this.cameraPending = {
|
|
86584
|
+
resolve,
|
|
86585
|
+
reject,
|
|
86586
|
+
timer
|
|
86587
|
+
};
|
|
86588
|
+
const jsonString = JSON.stringify({
|
|
86589
|
+
method,
|
|
86590
|
+
args
|
|
86591
|
+
});
|
|
86592
|
+
console.log((EWindowPassMethodDesc[method] || method) + '请求:', jsonString);
|
|
86593
|
+
ws.send(jsonString);
|
|
86594
|
+
});
|
|
86595
|
+
});
|
|
86596
|
+
}
|
|
86597
|
+
/**
|
|
86598
|
+
* 开启摄像头预览(主头/副头)
|
|
86599
|
+
* @param type 'main'-文档摄像头(主头);'vice'-人像摄像头(副头)
|
|
86600
|
+
* @param isEdgeDetection 裁剪方式:0-不裁切;1-自动裁切(开启预览时设定,切换裁剪方式需重新开启预览)
|
|
86601
|
+
*/
|
|
86602
|
+
static async turnOnTheCamera(type = 'main', isEdgeDetection = 0) {
|
|
86603
|
+
// 切换摄像头/裁剪方式:先无条件发送VideoStop关闭当前预览(避免设备端残留预览导致切换失败),失败时忽略继续
|
|
86604
|
+
try {
|
|
86605
|
+
await this.videoStop();
|
|
86606
|
+
} catch (e) {
|
|
86607
|
+
// 未在预览中或关闭失败时忽略,继续重新开启
|
|
86608
|
+
}
|
|
86609
|
+
const cameraNo = type === 'vice' ? 2 : 1;
|
|
86610
|
+
await this.videoStart(cameraNo, isEdgeDetection);
|
|
86611
|
+
}
|
|
86612
|
+
/**
|
|
86613
|
+
* 开启视频预览(成功后设备在同一条连接上持续推送VideoStream帧,需先订阅onVideoStream)
|
|
86614
|
+
* @param cameraNo 摄像头编号:1-文档摄像头;2-人像摄像头
|
|
86615
|
+
* @param isEdgeDetection 裁剪方式:0-不裁切;1-自动裁切
|
|
86616
|
+
*/
|
|
86617
|
+
static async videoStart(cameraNo = 1, isEdgeDetection = 0) {
|
|
86618
|
+
const readData = await EWindowPassService.cameraRequest(EWindowPassMethodCode.VideoStart, {
|
|
86619
|
+
cameraNo,
|
|
86620
|
+
isEdgeDetection
|
|
86621
|
+
});
|
|
86622
|
+
console.log('开启视频预览==>', readData);
|
|
86623
|
+
if (!readData) {
|
|
86624
|
+
throw Error('未匹配可用的E窗通读取设备');
|
|
86625
|
+
}
|
|
86626
|
+
if (readData.retVal !== 0) {
|
|
86627
|
+
throw Error("开启视频预览失败,返回值:" + readData.retVal + ",错误信息:" + readData.errMsg);
|
|
86628
|
+
}
|
|
86629
|
+
this.previewActive = true;
|
|
86630
|
+
}
|
|
86631
|
+
/**
|
|
86632
|
+
* 订阅实时视频流(开启预览后设备持续推送帧数据)
|
|
86633
|
+
* @param handler 回调,参数为每帧图片Base64数据(渲染时拼接 data:image/jpeg;base64,)
|
|
86634
|
+
*/
|
|
86635
|
+
static onVideoStream(handler) {
|
|
86636
|
+
this.streamHandler = handler;
|
|
86637
|
+
}
|
|
86638
|
+
/** 取消订阅实时视频流 */
|
|
86639
|
+
static offVideoStream() {
|
|
86640
|
+
this.streamHandler = null;
|
|
86641
|
+
}
|
|
86642
|
+
/**
|
|
86643
|
+
* 拍照(预览中抓取当前画面,返回图片Base64数据;预览保持不断开,可连续拍摄)
|
|
86644
|
+
* @param type 'main'-文档摄像头;'vice'-人像摄像头(拍照作用于当前预览画面,仅保持与组件调用习惯一致)
|
|
86645
|
+
*/
|
|
86646
|
+
static async scanByCamera(type = 'main') {
|
|
86647
|
+
return await this.videoGetImage();
|
|
86648
|
+
}
|
|
86649
|
+
/**
|
|
86650
|
+
* 拍摄抓图(须在预览开启后调用)
|
|
86651
|
+
* @param imagePath 设备端保存路径(如 D:\test.png)
|
|
86652
|
+
* @returns 图片Base64数据
|
|
86653
|
+
*/
|
|
86654
|
+
static async videoGetImage(imagePath = 'D:\\test.png') {
|
|
86655
|
+
if (!this.previewActive) {
|
|
86656
|
+
throw Error('请先开启摄像头预览');
|
|
86657
|
+
}
|
|
86658
|
+
const readData = await EWindowPassService.cameraRequest(EWindowPassMethodCode.VideoGetImage, {
|
|
86659
|
+
imagePath
|
|
86660
|
+
});
|
|
86661
|
+
console.log('拍摄抓图==>', readData);
|
|
86662
|
+
if (!readData) {
|
|
86663
|
+
throw Error('未匹配可用的E窗通读取设备');
|
|
86664
|
+
}
|
|
86665
|
+
if (readData.retVal !== 0) {
|
|
86666
|
+
throw Error("拍摄抓图失败,返回值:" + readData.retVal + ",错误信息:" + readData.errMsg);
|
|
86667
|
+
}
|
|
86668
|
+
return readData.imgBase64;
|
|
86669
|
+
}
|
|
86670
|
+
/**
|
|
86671
|
+
* 关闭视频预览(停止帧推送;切换摄像头/裁剪方式时由turnOnTheCamera先行调用)
|
|
86672
|
+
* 无论当前是否处于预览状态都会发送指令,设备未在预览时会返回失败(retVal!==0)
|
|
86673
|
+
*/
|
|
86674
|
+
static async videoStop() {
|
|
86675
|
+
const readData = await EWindowPassService.cameraRequest(EWindowPassMethodCode.VideoStop);
|
|
86676
|
+
console.log('关闭视频预览==>', readData);
|
|
86677
|
+
if (!readData) {
|
|
86678
|
+
throw Error('未匹配可用的E窗通读取设备');
|
|
86679
|
+
}
|
|
86680
|
+
if (readData.retVal !== 0) {
|
|
86681
|
+
throw Error("关闭视频预览失败,返回值:" + readData.retVal + ",错误信息:" + readData.errMsg);
|
|
86682
|
+
}
|
|
86683
|
+
this.previewActive = false;
|
|
86684
|
+
}
|
|
86685
|
+
/**
|
|
86686
|
+
* 关闭摄像头(离开页面/点关闭按钮时调用:关闭预览、取消帧订阅并断开摄像头连接)
|
|
86687
|
+
*/
|
|
86688
|
+
static async stopCamera() {
|
|
86689
|
+
if (this.cameraWs && this.previewActive) {
|
|
86690
|
+
try {
|
|
86691
|
+
await this.videoStop();
|
|
86692
|
+
} catch (e) {
|
|
86693
|
+
// 忽略关闭预览异常,继续清理连接
|
|
86694
|
+
}
|
|
86695
|
+
}
|
|
86696
|
+
this.offVideoStream();
|
|
86697
|
+
if (this.cameraWs) {
|
|
86698
|
+
try {
|
|
86699
|
+
this.cameraWs.close();
|
|
86700
|
+
} catch (e) {
|
|
86701
|
+
// 忽略关闭异常
|
|
86702
|
+
}
|
|
86703
|
+
this.cameraWs = null;
|
|
86704
|
+
}
|
|
86705
|
+
this.cameraConnectPromise = null;
|
|
86706
|
+
this.previewActive = false;
|
|
86707
|
+
}
|
|
86708
|
+
/** 旋转图像(旋转当前预览画面) */
|
|
86709
|
+
static async videoRotate() {
|
|
86710
|
+
const readData = await EWindowPassService.cameraRequest(EWindowPassMethodCode.VideoRotate);
|
|
86711
|
+
console.log('旋转图像==>', readData);
|
|
86712
|
+
if (!readData) {
|
|
86713
|
+
throw Error('未匹配可用的E窗通读取设备');
|
|
86714
|
+
}
|
|
86715
|
+
if (readData.retVal !== 0) {
|
|
86716
|
+
throw Error("旋转图像失败,返回值:" + readData.retVal + ",错误信息:" + readData.errMsg);
|
|
86717
|
+
}
|
|
86718
|
+
}
|
|
86719
|
+
}
|
|
86720
|
+
_defineProperty(EWindowPassService, "iReadCardBasWebSocketUrl", 'ws://127.0.0.1:5847');
|
|
86721
|
+
_defineProperty(EWindowPassService, "fingerPrintBasWebSocketUrl", 'ws://127.0.0.1:9000');
|
|
86722
|
+
_defineProperty(EWindowPassService, "ws", void 0);
|
|
86723
|
+
_defineProperty(EWindowPassService, "requestStore", []);
|
|
86724
|
+
_defineProperty(EWindowPassService, "cameraWs", null);
|
|
86725
|
+
_defineProperty(EWindowPassService, "cameraConnectPromise", null);
|
|
86726
|
+
_defineProperty(EWindowPassService, "cameraPending", null);
|
|
86727
|
+
_defineProperty(EWindowPassService, "streamHandler", null);
|
|
86728
|
+
_defineProperty(EWindowPassService, "previewActive", false);
|
|
86088
86729
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=script&lang=js&
|
|
86089
86730
|
|
|
86090
86731
|
|
|
@@ -86096,12 +86737,13 @@ _defineProperty(ViisanPluginService, "previewFrameCallback", null);
|
|
|
86096
86737
|
|
|
86097
86738
|
|
|
86098
86739
|
|
|
86740
|
+
|
|
86099
86741
|
const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
86100
86742
|
/* harmony default export */ var scanner_camera_componentvue_type_script_lang_js_ = ({
|
|
86101
86743
|
name: "scanner-camera-component",
|
|
86102
86744
|
props: {
|
|
86103
86745
|
/**
|
|
86104
|
-
* 高拍仪型号 0-捷宇;3:方正高影仪;4:紫图速拍仪;5-良田;6-国产一体机;7-赞采;8-汉王高拍仪;9-本机摄像头拍照;10
|
|
86746
|
+
* 高拍仪型号 0-捷宇;3:方正高影仪;4:紫图速拍仪;5-良田;6-国产一体机;7-赞采;8-汉王高拍仪;9-本机摄像头拍照;10-维山高拍仪;11-沃斯德人证交互终端
|
|
86105
86747
|
*/
|
|
86106
86748
|
machineType: {
|
|
86107
86749
|
//
|
|
@@ -86213,6 +86855,8 @@ const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
|
86213
86855
|
}
|
|
86214
86856
|
// 清理维山高拍仪预览轮询
|
|
86215
86857
|
this.stopViisanPreview();
|
|
86858
|
+
// 清理沃斯德人证交互终端预览
|
|
86859
|
+
this.stopEwpPreview();
|
|
86216
86860
|
},
|
|
86217
86861
|
methods: {
|
|
86218
86862
|
// 浏览器标签页关闭
|
|
@@ -86242,6 +86886,10 @@ const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
|
86242
86886
|
this.stopViisanPreview();
|
|
86243
86887
|
await ViisanPluginService.stopCamera(this.camera === 0);
|
|
86244
86888
|
break;
|
|
86889
|
+
case 11:
|
|
86890
|
+
// 沃斯德人证交互终端
|
|
86891
|
+
await this.stopEwpPreview();
|
|
86892
|
+
break;
|
|
86245
86893
|
}
|
|
86246
86894
|
},
|
|
86247
86895
|
/**
|
|
@@ -86323,6 +86971,18 @@ const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
|
86323
86971
|
}
|
|
86324
86972
|
break;
|
|
86325
86973
|
}
|
|
86974
|
+
case 11:
|
|
86975
|
+
{
|
|
86976
|
+
// 沃斯德人证交互终端(拍照作用于当前预览画面,预览保持可连续拍)
|
|
86977
|
+
let type = this.camera === 0 ? 'main' : 'vice';
|
|
86978
|
+
let res = await EWindowPassService.scanByCamera(type);
|
|
86979
|
+
if (res) {
|
|
86980
|
+
this.$emit('send-scanner-result', `${BEGIN_DATA}${res}`);
|
|
86981
|
+
} else {
|
|
86982
|
+
this.$message.error('拍照出错,请检查设备是否连接成功');
|
|
86983
|
+
}
|
|
86984
|
+
break;
|
|
86985
|
+
}
|
|
86326
86986
|
}
|
|
86327
86987
|
},
|
|
86328
86988
|
/**
|
|
@@ -86376,6 +87036,10 @@ const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
|
86376
87036
|
// 开启视频预览帧轮询(每 300ms 获取一帧)
|
|
86377
87037
|
this.startViisanPreview();
|
|
86378
87038
|
break;
|
|
87039
|
+
case 11:
|
|
87040
|
+
// 沃斯德人证交互终端(主头-文档摄像头)
|
|
87041
|
+
await this.startEwpPreview('main');
|
|
87042
|
+
break;
|
|
86379
87043
|
}
|
|
86380
87044
|
},
|
|
86381
87045
|
async getEloamFrame() {
|
|
@@ -86406,6 +87070,23 @@ const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
|
86406
87070
|
ViisanPluginService.setPreviewFrameCallback(null);
|
|
86407
87071
|
ViisanPluginService.stopVideoPreview();
|
|
86408
87072
|
},
|
|
87073
|
+
/**
|
|
87074
|
+
* 沃斯德人证交互终端 - 开启视频预览
|
|
87075
|
+
* 先设置预览帧回调再开启预览(已在预览中服务内部会自动先关闭再开启,支持切换主/副头)
|
|
87076
|
+
*/
|
|
87077
|
+
startEwpPreview(type) {
|
|
87078
|
+
EWindowPassService.onVideoStream(imgBase64 => {
|
|
87079
|
+
this.scannerVideoSrc = `${BEGIN_DATA}${imgBase64}`;
|
|
87080
|
+
});
|
|
87081
|
+
return EWindowPassService.turnOnTheCamera(type);
|
|
87082
|
+
},
|
|
87083
|
+
/**
|
|
87084
|
+
* 沃斯德人证交互终端 - 关闭视频预览并断开连接
|
|
87085
|
+
*/
|
|
87086
|
+
stopEwpPreview() {
|
|
87087
|
+
EWindowPassService.offVideoStream();
|
|
87088
|
+
return EWindowPassService.stopCamera();
|
|
87089
|
+
},
|
|
86409
87090
|
/**
|
|
86410
87091
|
* 启动电脑默认摄像头
|
|
86411
87092
|
* @param type 'main' 主摄像头, 'vice' 副摄像头
|
|
@@ -86510,6 +87191,10 @@ const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
|
86510
87191
|
await ViisanPluginService.turnOnTheCamera('vice');
|
|
86511
87192
|
this.startViisanPreview();
|
|
86512
87193
|
break;
|
|
87194
|
+
case 11:
|
|
87195
|
+
// 沃斯德人证交互终端(副头-人像摄像头,切换前先VideoStop关闭当前预览再开启)
|
|
87196
|
+
await this.startEwpPreview('vice');
|
|
87197
|
+
break;
|
|
86513
87198
|
}
|
|
86514
87199
|
},
|
|
86515
87200
|
async takePictureMerge(type) {
|
|
@@ -86826,10 +87511,10 @@ const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
|
86826
87511
|
});
|
|
86827
87512
|
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=script&lang=js&
|
|
86828
87513
|
/* harmony default export */ var component_scanner_camera_componentvue_type_script_lang_js_ = (scanner_camera_componentvue_type_script_lang_js_);
|
|
86829
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=style&index=0&id=
|
|
87514
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=style&index=0&id=3fc2d979&prod&lang=scss&
|
|
86830
87515
|
// extracted by mini-css-extract-plugin
|
|
86831
87516
|
|
|
86832
|
-
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=style&index=0&id=
|
|
87517
|
+
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=style&index=0&id=3fc2d979&prod&lang=scss&
|
|
86833
87518
|
|
|
86834
87519
|
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue
|
|
86835
87520
|
|
|
@@ -86842,8 +87527,8 @@ const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
|
86842
87527
|
|
|
86843
87528
|
var scanner_camera_component_component = normalizeComponent(
|
|
86844
87529
|
component_scanner_camera_componentvue_type_script_lang_js_,
|
|
86845
|
-
|
|
86846
|
-
|
|
87530
|
+
scanner_camera_componentvue_type_template_id_3fc2d979_render,
|
|
87531
|
+
scanner_camera_componentvue_type_template_id_3fc2d979_staticRenderFns,
|
|
86847
87532
|
false,
|
|
86848
87533
|
null,
|
|
86849
87534
|
null,
|
|
@@ -87092,186 +87777,19 @@ var PluginApiType;
|
|
|
87092
87777
|
})(PluginApiType || (PluginApiType = {}));
|
|
87093
87778
|
class IdCardReadService {
|
|
87094
87779
|
// 精伦身份证 JLSFZManage
|
|
87095
|
-
// 之前 SFZManage
|
|
87096
|
-
|
|
87097
|
-
static startConnect(type = PluginApiType.idcard) {
|
|
87098
|
-
if (this.ws && this.ws.readyState === WebSocket.CONNECTING) {
|
|
87099
|
-
return this;
|
|
87100
|
-
}
|
|
87101
|
-
let webSocketUrl = this.idcardWebSocketUrl;
|
|
87102
|
-
switch (type) {
|
|
87103
|
-
case PluginApiType.idcard:
|
|
87104
|
-
webSocketUrl = this.idcardWebSocketUrl;
|
|
87105
|
-
break;
|
|
87106
|
-
case PluginApiType.jlsfz:
|
|
87107
|
-
webSocketUrl = this.jlsfzWebSocketUrl;
|
|
87108
|
-
}
|
|
87109
|
-
const ws = new WebSocket(webSocketUrl);
|
|
87110
|
-
let resolved;
|
|
87111
|
-
const onConnect = new Promise(resolve => {
|
|
87112
|
-
resolved = resolve;
|
|
87113
|
-
});
|
|
87114
|
-
ws.onopen = () => {
|
|
87115
|
-
resolved(true);
|
|
87116
|
-
};
|
|
87117
|
-
ws.onmessage = event => this.handleMessage(event);
|
|
87118
|
-
ws.onclose = () => this.handleClose();
|
|
87119
|
-
ws.onerror = () => this.handleError();
|
|
87120
|
-
this.ws = ws;
|
|
87121
|
-
return onConnect;
|
|
87122
|
-
}
|
|
87123
|
-
static handleError() {
|
|
87124
|
-
for (const type in this.requestStore) {
|
|
87125
|
-
this.requestStore.forEach(({
|
|
87126
|
-
reject
|
|
87127
|
-
}) => {
|
|
87128
|
-
reject('handleError');
|
|
87129
|
-
});
|
|
87130
|
-
}
|
|
87131
|
-
throw Error('统一插件平台读取身份证功能加载失败');
|
|
87132
|
-
}
|
|
87133
|
-
static handleClose() {
|
|
87134
|
-
for (const type in this.requestStore) {
|
|
87135
|
-
this.requestStore.forEach(({
|
|
87136
|
-
reject
|
|
87137
|
-
}) => {
|
|
87138
|
-
reject('close');
|
|
87139
|
-
});
|
|
87140
|
-
}
|
|
87141
|
-
}
|
|
87142
|
-
static handleMessage(msg) {
|
|
87143
|
-
let data = '';
|
|
87144
|
-
try {
|
|
87145
|
-
data = JSON.parse(msg.data);
|
|
87146
|
-
} catch (e) {
|
|
87147
|
-
data = '';
|
|
87148
|
-
}
|
|
87149
|
-
this.requestStore.forEach(({
|
|
87150
|
-
resolve
|
|
87151
|
-
}) => {
|
|
87152
|
-
resolve(data);
|
|
87153
|
-
});
|
|
87154
|
-
this.requestStore = [];
|
|
87155
|
-
this.ws.close();
|
|
87156
|
-
}
|
|
87157
|
-
static async read(type = PluginApiType.idcard) {
|
|
87158
|
-
await this.startConnect(type);
|
|
87159
|
-
if (this.ws.readyState === 1) {
|
|
87160
|
-
this.ws.send(type);
|
|
87161
|
-
return new Promise((resolve, reject) => {
|
|
87162
|
-
if (!this.requestStore) {
|
|
87163
|
-
this.requestStore = [];
|
|
87164
|
-
}
|
|
87165
|
-
this.requestStore.push({
|
|
87166
|
-
resolve,
|
|
87167
|
-
reject
|
|
87168
|
-
});
|
|
87169
|
-
});
|
|
87170
|
-
} else {
|
|
87171
|
-
throw Error('统一插件平台读取身份证未准备完成');
|
|
87172
|
-
}
|
|
87173
|
-
}
|
|
87174
|
-
static async idCardCommonRead() {
|
|
87175
|
-
let idcardInfo;
|
|
87176
|
-
// 顺序不要调整,先连接精伦读卡器,最后连接普通读卡器(也就是PluginApiType.idcard,因为该项读卡失败不会返回消息)
|
|
87177
|
-
for (const t of [PluginApiType.jlsfz, PluginApiType.idcard]) {
|
|
87178
|
-
const readData = await IdCardReadService.read(t);
|
|
87179
|
-
if (readData && readData.hasOwnProperty('info')) {
|
|
87180
|
-
idcardInfo = readData;
|
|
87181
|
-
break;
|
|
87182
|
-
}
|
|
87183
|
-
}
|
|
87184
|
-
if (idcardInfo) {
|
|
87185
|
-
return idcardInfo;
|
|
87186
|
-
} else {
|
|
87187
|
-
throw Error('统一插件平台未匹配可用的读卡器');
|
|
87188
|
-
}
|
|
87189
|
-
}
|
|
87190
|
-
}
|
|
87191
|
-
_defineProperty(IdCardReadService, "idcardWebSocketUrl", 'ws://127.0.0.1:8152/SFZManage');
|
|
87192
|
-
_defineProperty(IdCardReadService, "jlsfzWebSocketUrl", 'ws://127.0.0.1:8152/JLSFZManage');
|
|
87193
|
-
_defineProperty(IdCardReadService, "ws", void 0);
|
|
87194
|
-
_defineProperty(IdCardReadService, "requestStore", []);
|
|
87195
|
-
class CameraReadService {
|
|
87196
|
-
static startConnect() {
|
|
87197
|
-
if (this.ws && this.ws.readyState === WebSocket.CONNECTING) {
|
|
87198
|
-
return this;
|
|
87199
|
-
}
|
|
87200
|
-
let webSocketUrl = this.cameraWebSocketUrl;
|
|
87201
|
-
const ws = new WebSocket(webSocketUrl);
|
|
87202
|
-
let resolved;
|
|
87203
|
-
const onConnect = new Promise(resolve => {
|
|
87204
|
-
resolved = resolve;
|
|
87205
|
-
});
|
|
87206
|
-
ws.onopen = () => {
|
|
87207
|
-
resolved(true);
|
|
87208
|
-
};
|
|
87209
|
-
ws.onmessage = event => this.handleMessage(event);
|
|
87210
|
-
ws.onclose = () => this.handleClose();
|
|
87211
|
-
ws.onerror = () => this.handleError();
|
|
87212
|
-
this.ws = ws;
|
|
87213
|
-
return onConnect;
|
|
87214
|
-
}
|
|
87215
|
-
static handleError() {
|
|
87216
|
-
for (const type in this.requestStore) {
|
|
87217
|
-
this.requestStore.forEach(({
|
|
87218
|
-
reject
|
|
87219
|
-
}) => {
|
|
87220
|
-
reject('handleError');
|
|
87221
|
-
});
|
|
87222
|
-
}
|
|
87223
|
-
throw Error('统一插件平台读取拍照功能加载失败');
|
|
87224
|
-
}
|
|
87225
|
-
static handleClose() {
|
|
87226
|
-
for (const type in this.requestStore) {
|
|
87227
|
-
this.requestStore.forEach(({
|
|
87228
|
-
reject
|
|
87229
|
-
}) => {
|
|
87230
|
-
reject('close');
|
|
87231
|
-
});
|
|
87232
|
-
}
|
|
87233
|
-
}
|
|
87234
|
-
static handleMessage(msg) {
|
|
87235
|
-
let data = msg.data;
|
|
87236
|
-
this.requestStore.forEach(({
|
|
87237
|
-
resolve
|
|
87238
|
-
}) => {
|
|
87239
|
-
resolve(data);
|
|
87240
|
-
});
|
|
87241
|
-
this.requestStore = [];
|
|
87242
|
-
this.ws.close();
|
|
87243
|
-
// this.ws = null;
|
|
87244
|
-
}
|
|
87245
|
-
|
|
87246
|
-
static async read() {
|
|
87247
|
-
await this.startConnect();
|
|
87248
|
-
if (this.ws.readyState === 1) {
|
|
87249
|
-
this.ws.send(PluginApiType.camera);
|
|
87250
|
-
return new Promise((resolve, reject) => {
|
|
87251
|
-
if (!this.requestStore) {
|
|
87252
|
-
this.requestStore = [];
|
|
87253
|
-
}
|
|
87254
|
-
this.requestStore.push({
|
|
87255
|
-
resolve,
|
|
87256
|
-
reject
|
|
87257
|
-
});
|
|
87258
|
-
});
|
|
87259
|
-
} else {
|
|
87260
|
-
throw Error('统一插件平台读取拍照未准备完成');
|
|
87261
|
-
}
|
|
87262
|
-
}
|
|
87263
|
-
}
|
|
87264
|
-
_defineProperty(CameraReadService, "cameraWebSocketUrl", 'ws://127.0.0.1:8152/SXTManage');
|
|
87265
|
-
_defineProperty(CameraReadService, "ws", void 0);
|
|
87266
|
-
_defineProperty(CameraReadService, "requestStore", []);
|
|
87267
|
-
class SignReadService {
|
|
87268
|
-
static startConnect(signMode) {
|
|
87780
|
+
// 之前 SFZManage
|
|
87781
|
+
|
|
87782
|
+
static startConnect(type = PluginApiType.idcard) {
|
|
87269
87783
|
if (this.ws && this.ws.readyState === WebSocket.CONNECTING) {
|
|
87270
87784
|
return this;
|
|
87271
87785
|
}
|
|
87272
|
-
let webSocketUrl = this.
|
|
87273
|
-
|
|
87274
|
-
|
|
87786
|
+
let webSocketUrl = this.idcardWebSocketUrl;
|
|
87787
|
+
switch (type) {
|
|
87788
|
+
case PluginApiType.idcard:
|
|
87789
|
+
webSocketUrl = this.idcardWebSocketUrl;
|
|
87790
|
+
break;
|
|
87791
|
+
case PluginApiType.jlsfz:
|
|
87792
|
+
webSocketUrl = this.jlsfzWebSocketUrl;
|
|
87275
87793
|
}
|
|
87276
87794
|
const ws = new WebSocket(webSocketUrl);
|
|
87277
87795
|
let resolved;
|
|
@@ -87295,7 +87813,7 @@ class SignReadService {
|
|
|
87295
87813
|
reject('handleError');
|
|
87296
87814
|
});
|
|
87297
87815
|
}
|
|
87298
|
-
throw Error('
|
|
87816
|
+
throw Error('统一插件平台读取身份证功能加载失败');
|
|
87299
87817
|
}
|
|
87300
87818
|
static handleClose() {
|
|
87301
87819
|
for (const type in this.requestStore) {
|
|
@@ -87307,7 +87825,12 @@ class SignReadService {
|
|
|
87307
87825
|
}
|
|
87308
87826
|
}
|
|
87309
87827
|
static handleMessage(msg) {
|
|
87310
|
-
let data =
|
|
87828
|
+
let data = '';
|
|
87829
|
+
try {
|
|
87830
|
+
data = JSON.parse(msg.data);
|
|
87831
|
+
} catch (e) {
|
|
87832
|
+
data = '';
|
|
87833
|
+
}
|
|
87311
87834
|
this.requestStore.forEach(({
|
|
87312
87835
|
resolve
|
|
87313
87836
|
}) => {
|
|
@@ -87316,11 +87839,10 @@ class SignReadService {
|
|
|
87316
87839
|
this.requestStore = [];
|
|
87317
87840
|
this.ws.close();
|
|
87318
87841
|
}
|
|
87319
|
-
static async read(
|
|
87320
|
-
await this.startConnect(
|
|
87842
|
+
static async read(type = PluginApiType.idcard) {
|
|
87843
|
+
await this.startConnect(type);
|
|
87321
87844
|
if (this.ws.readyState === 1) {
|
|
87322
|
-
|
|
87323
|
-
this.ws.send(signMode);
|
|
87845
|
+
this.ws.send(type);
|
|
87324
87846
|
return new Promise((resolve, reject) => {
|
|
87325
87847
|
if (!this.requestStore) {
|
|
87326
87848
|
this.requestStore = [];
|
|
@@ -87331,57 +87853,36 @@ class SignReadService {
|
|
|
87331
87853
|
});
|
|
87332
87854
|
});
|
|
87333
87855
|
} else {
|
|
87334
|
-
throw Error('
|
|
87856
|
+
throw Error('统一插件平台读取身份证未准备完成');
|
|
87857
|
+
}
|
|
87858
|
+
}
|
|
87859
|
+
static async idCardCommonRead() {
|
|
87860
|
+
let idcardInfo;
|
|
87861
|
+
// 顺序不要调整,先连接精伦读卡器,最后连接普通读卡器(也就是PluginApiType.idcard,因为该项读卡失败不会返回消息)
|
|
87862
|
+
for (const t of [PluginApiType.jlsfz, PluginApiType.idcard]) {
|
|
87863
|
+
const readData = await IdCardReadService.read(t);
|
|
87864
|
+
if (readData && readData.hasOwnProperty('info')) {
|
|
87865
|
+
idcardInfo = readData;
|
|
87866
|
+
break;
|
|
87867
|
+
}
|
|
87868
|
+
}
|
|
87869
|
+
if (idcardInfo) {
|
|
87870
|
+
return idcardInfo;
|
|
87871
|
+
} else {
|
|
87872
|
+
throw Error('统一插件平台未匹配可用的读卡器');
|
|
87335
87873
|
}
|
|
87336
87874
|
}
|
|
87337
87875
|
}
|
|
87338
|
-
_defineProperty(
|
|
87339
|
-
_defineProperty(
|
|
87340
|
-
_defineProperty(
|
|
87341
|
-
_defineProperty(
|
|
87342
|
-
|
|
87343
|
-
|
|
87344
|
-
|
|
87345
|
-
/**
|
|
87346
|
-
* 沃斯德人证交互终端
|
|
87347
|
-
* E窗通WEBSOCKET服务
|
|
87348
|
-
*
|
|
87349
|
-
* */
|
|
87350
|
-
|
|
87351
|
-
var EWindowPassMethodCode;
|
|
87352
|
-
(function (EWindowPassMethodCode) {
|
|
87353
|
-
/** 读取社保卡 */
|
|
87354
|
-
EWindowPassMethodCode["iReadCardBas"] = "iReadCardBas";
|
|
87355
|
-
/** 获取签名*/
|
|
87356
|
-
EWindowPassMethodCode["GetSignName_Base64"] = "GetSignName_Base64";
|
|
87357
|
-
/** 读取二代身份证 */
|
|
87358
|
-
EWindowPassMethodCode["ReadIDCard_Base64"] = "ReadIDCard_Base64";
|
|
87359
|
-
/** 人证比对 */
|
|
87360
|
-
EWindowPassMethodCode["FaceValidateWithIdCard_Base64"] = "FaceValidateWithIdCard_Base64";
|
|
87361
|
-
/** 获取指纹 */
|
|
87362
|
-
EWindowPassMethodCode["FingerPrint_Base64"] = "FingerPrint_Base64";
|
|
87363
|
-
})(EWindowPassMethodCode || (EWindowPassMethodCode = {}));
|
|
87364
|
-
const EWindowPassMethodDesc = {
|
|
87365
|
-
[EWindowPassMethodCode.iReadCardBas]: '读取社保卡',
|
|
87366
|
-
[EWindowPassMethodCode.GetSignName_Base64]: '获取签名',
|
|
87367
|
-
[EWindowPassMethodCode.ReadIDCard_Base64]: '读取二代身份证',
|
|
87368
|
-
[EWindowPassMethodCode.FaceValidateWithIdCard_Base64]: '人证比对',
|
|
87369
|
-
[EWindowPassMethodCode.FingerPrint_Base64]: '获取指纹'
|
|
87370
|
-
};
|
|
87371
|
-
class EWindowPassService {
|
|
87372
|
-
static startConnect(method) {
|
|
87876
|
+
_defineProperty(IdCardReadService, "idcardWebSocketUrl", 'ws://127.0.0.1:8152/SFZManage');
|
|
87877
|
+
_defineProperty(IdCardReadService, "jlsfzWebSocketUrl", 'ws://127.0.0.1:8152/JLSFZManage');
|
|
87878
|
+
_defineProperty(IdCardReadService, "ws", void 0);
|
|
87879
|
+
_defineProperty(IdCardReadService, "requestStore", []);
|
|
87880
|
+
class CameraReadService {
|
|
87881
|
+
static startConnect() {
|
|
87373
87882
|
if (this.ws && this.ws.readyState === WebSocket.CONNECTING) {
|
|
87374
87883
|
return this;
|
|
87375
87884
|
}
|
|
87376
|
-
let webSocketUrl =
|
|
87377
|
-
switch (method) {
|
|
87378
|
-
case EWindowPassMethodCode.FingerPrint_Base64:
|
|
87379
|
-
webSocketUrl = this.fingerPrintBasWebSocketUrl;
|
|
87380
|
-
break;
|
|
87381
|
-
default:
|
|
87382
|
-
webSocketUrl = this.iReadCardBasWebSocketUrl;
|
|
87383
|
-
break;
|
|
87384
|
-
}
|
|
87885
|
+
let webSocketUrl = this.cameraWebSocketUrl;
|
|
87385
87886
|
const ws = new WebSocket(webSocketUrl);
|
|
87386
87887
|
let resolved;
|
|
87387
87888
|
const onConnect = new Promise(resolve => {
|
|
@@ -87390,18 +87891,7 @@ class EWindowPassService {
|
|
|
87390
87891
|
ws.onopen = () => {
|
|
87391
87892
|
resolved(true);
|
|
87392
87893
|
};
|
|
87393
|
-
ws.onmessage = event =>
|
|
87394
|
-
if (method === EWindowPassMethodCode.FingerPrint_Base64) {
|
|
87395
|
-
// 指纹后端返回的是string
|
|
87396
|
-
event = {
|
|
87397
|
-
...event,
|
|
87398
|
-
data: JSON.stringify({
|
|
87399
|
-
fingerPrintInfo: event.data
|
|
87400
|
-
})
|
|
87401
|
-
};
|
|
87402
|
-
}
|
|
87403
|
-
this.handleMessage(event);
|
|
87404
|
-
};
|
|
87894
|
+
ws.onmessage = event => this.handleMessage(event);
|
|
87405
87895
|
ws.onclose = () => this.handleClose();
|
|
87406
87896
|
ws.onerror = () => this.handleError();
|
|
87407
87897
|
this.ws = ws;
|
|
@@ -87415,7 +87905,7 @@ class EWindowPassService {
|
|
|
87415
87905
|
reject('handleError');
|
|
87416
87906
|
});
|
|
87417
87907
|
}
|
|
87418
|
-
throw Error('
|
|
87908
|
+
throw Error('统一插件平台读取拍照功能加载失败');
|
|
87419
87909
|
}
|
|
87420
87910
|
static handleClose() {
|
|
87421
87911
|
for (const type in this.requestStore) {
|
|
@@ -87427,12 +87917,7 @@ class EWindowPassService {
|
|
|
87427
87917
|
}
|
|
87428
87918
|
}
|
|
87429
87919
|
static handleMessage(msg) {
|
|
87430
|
-
let data =
|
|
87431
|
-
try {
|
|
87432
|
-
data = JSON.parse(msg.data);
|
|
87433
|
-
} catch (e) {
|
|
87434
|
-
data = '';
|
|
87435
|
-
}
|
|
87920
|
+
let data = msg.data;
|
|
87436
87921
|
this.requestStore.forEach(({
|
|
87437
87922
|
resolve
|
|
87438
87923
|
}) => {
|
|
@@ -87440,237 +87925,105 @@ class EWindowPassService {
|
|
|
87440
87925
|
});
|
|
87441
87926
|
this.requestStore = [];
|
|
87442
87927
|
this.ws.close();
|
|
87928
|
+
// this.ws = null;
|
|
87443
87929
|
}
|
|
87444
|
-
|
|
87445
|
-
|
|
87446
|
-
|
|
87930
|
+
|
|
87931
|
+
static async read() {
|
|
87932
|
+
await this.startConnect();
|
|
87447
87933
|
if (this.ws.readyState === 1) {
|
|
87448
|
-
|
|
87449
|
-
let jsonString;
|
|
87450
|
-
// outTimes:超时时间(秒)
|
|
87451
|
-
switch (method) {
|
|
87452
|
-
case EWindowPassMethodCode.ReadIDCard_Base64:
|
|
87453
|
-
// cardReader:0 读卡器-USB;1 读卡器-COM
|
|
87454
|
-
jsonString = JSON.stringify({
|
|
87455
|
-
method,
|
|
87456
|
-
args: {
|
|
87457
|
-
outTimes: 30,
|
|
87458
|
-
cardReader: 1
|
|
87459
|
-
}
|
|
87460
|
-
});
|
|
87461
|
-
break;
|
|
87462
|
-
case EWindowPassMethodCode.FaceValidateWithIdCard_Base64:
|
|
87463
|
-
// cardReader:0 读卡器-USB;1 读卡器-COM
|
|
87464
|
-
jsonString = JSON.stringify({
|
|
87465
|
-
method,
|
|
87466
|
-
args: {
|
|
87467
|
-
outTimes: 30,
|
|
87468
|
-
cardReader: 1,
|
|
87469
|
-
cameraType: 0
|
|
87470
|
-
}
|
|
87471
|
-
});
|
|
87472
|
-
break;
|
|
87473
|
-
case EWindowPassMethodCode.iReadCardBas:
|
|
87474
|
-
// icType:1接触卡;2非接触卡;3自动(接触优先);4自动(非接优先)
|
|
87475
|
-
jsonString = JSON.stringify({
|
|
87476
|
-
method,
|
|
87477
|
-
args: {
|
|
87478
|
-
icType: '1'
|
|
87479
|
-
}
|
|
87480
|
-
});
|
|
87481
|
-
break;
|
|
87482
|
-
case EWindowPassMethodCode.FingerPrint_Base64:
|
|
87483
|
-
// 获取指纹:getimgae,颜色(0黑色 1红色), 质量(默认0), 图像大小(288,360),类型(0民用,1公安)
|
|
87484
|
-
jsonString = 'getimgae,1,0,288,0';
|
|
87485
|
-
break;
|
|
87486
|
-
default:
|
|
87487
|
-
jsonString = JSON.stringify({
|
|
87488
|
-
method,
|
|
87489
|
-
args: {
|
|
87490
|
-
outTimes: 30
|
|
87491
|
-
}
|
|
87492
|
-
});
|
|
87493
|
-
break;
|
|
87494
|
-
}
|
|
87495
|
-
this.ws.send(jsonString);
|
|
87934
|
+
this.ws.send(PluginApiType.camera);
|
|
87496
87935
|
return new Promise((resolve, reject) => {
|
|
87497
87936
|
if (!this.requestStore) {
|
|
87498
87937
|
this.requestStore = [];
|
|
87499
87938
|
}
|
|
87500
|
-
this.requestStore.push({
|
|
87501
|
-
resolve,
|
|
87502
|
-
reject
|
|
87503
|
-
});
|
|
87504
|
-
});
|
|
87505
|
-
} else {
|
|
87506
|
-
throw Error('
|
|
87507
|
-
}
|
|
87508
|
-
}
|
|
87509
|
-
/**
|
|
87510
|
-
* 读取二代身份证
|
|
87511
|
-
* */
|
|
87512
|
-
static async idCardRead(method = EWindowPassMethodCode.ReadIDCard_Base64) {
|
|
87513
|
-
const readData = await EWindowPassService.read(EWindowPassMethodCode.ReadIDCard_Base64);
|
|
87514
|
-
console.log('读取二代身份证==>', readData);
|
|
87515
|
-
if (!readData) {
|
|
87516
|
-
throw Error('未匹配可用的E窗通读取设备');
|
|
87517
|
-
}
|
|
87518
|
-
if (readData.retVal !== 0) {
|
|
87519
|
-
throw Error("读取二代身份证失败,返回值:" + readData.retVal + ",错误信息:" + readData.errMsg);
|
|
87520
|
-
}
|
|
87521
|
-
const idInfo = readData.idInfo.data;
|
|
87522
|
-
const {
|
|
87523
|
-
name,
|
|
87524
|
-
sex,
|
|
87525
|
-
birthday,
|
|
87526
|
-
address,
|
|
87527
|
-
id_num,
|
|
87528
|
-
nations
|
|
87529
|
-
} = idInfo;
|
|
87530
|
-
const IDCardData = {
|
|
87531
|
-
info: {
|
|
87532
|
-
name,
|
|
87533
|
-
sex,
|
|
87534
|
-
birthday: birthday.replace('-', '').replace('-', ''),
|
|
87535
|
-
address,
|
|
87536
|
-
cardId: id_num,
|
|
87537
|
-
nation: nations
|
|
87538
|
-
},
|
|
87539
|
-
headImage: readData.idPhotoPicBase64
|
|
87540
|
-
};
|
|
87541
|
-
console.log('读取二代身份证结果==>', IDCardData);
|
|
87542
|
-
return IDCardData;
|
|
87543
|
-
}
|
|
87544
|
-
/**
|
|
87545
|
-
* 人证比对
|
|
87546
|
-
*/
|
|
87547
|
-
static async faceValidateWithIdCardRead() {
|
|
87548
|
-
const readData = await EWindowPassService.read(EWindowPassMethodCode.FaceValidateWithIdCard_Base64);
|
|
87549
|
-
console.log('人证比对==>', readData);
|
|
87550
|
-
if (!readData) {
|
|
87551
|
-
throw Error('未匹配可用的E窗通读取设备');
|
|
87552
|
-
}
|
|
87553
|
-
if (readData.retVal !== 0) {
|
|
87554
|
-
throw Error("人证比对失败,返回值:" + readData.retVal + ",错误信息:" + readData.errMsg);
|
|
87555
|
-
}
|
|
87556
|
-
const idInfo = readData.idInfo.data;
|
|
87557
|
-
const {
|
|
87558
|
-
name,
|
|
87559
|
-
sex,
|
|
87560
|
-
birth,
|
|
87561
|
-
address,
|
|
87562
|
-
idNo,
|
|
87563
|
-
nation
|
|
87564
|
-
} = idInfo;
|
|
87565
|
-
const IDCardData = {
|
|
87566
|
-
idCard: {
|
|
87567
|
-
info: {
|
|
87568
|
-
name,
|
|
87569
|
-
sex,
|
|
87570
|
-
birthday: birth.replace('-', '').replace('-', ''),
|
|
87571
|
-
address,
|
|
87572
|
-
cardId: idNo,
|
|
87573
|
-
nation
|
|
87574
|
-
},
|
|
87575
|
-
headImage: readData.idPhotoBase64
|
|
87576
|
-
},
|
|
87577
|
-
faceimg: readData.scenceBase64
|
|
87578
|
-
};
|
|
87579
|
-
console.log('人证比对结果==>', IDCardData);
|
|
87580
|
-
return IDCardData;
|
|
87939
|
+
this.requestStore.push({
|
|
87940
|
+
resolve,
|
|
87941
|
+
reject
|
|
87942
|
+
});
|
|
87943
|
+
});
|
|
87944
|
+
} else {
|
|
87945
|
+
throw Error('统一插件平台读取拍照未准备完成');
|
|
87946
|
+
}
|
|
87581
87947
|
}
|
|
87582
|
-
|
|
87583
|
-
|
|
87584
|
-
|
|
87585
|
-
|
|
87586
|
-
|
|
87948
|
+
}
|
|
87949
|
+
_defineProperty(CameraReadService, "cameraWebSocketUrl", 'ws://127.0.0.1:8152/SXTManage');
|
|
87950
|
+
_defineProperty(CameraReadService, "ws", void 0);
|
|
87951
|
+
_defineProperty(CameraReadService, "requestStore", []);
|
|
87952
|
+
class SignReadService {
|
|
87953
|
+
static startConnect(signMode) {
|
|
87954
|
+
if (this.ws && this.ws.readyState === WebSocket.CONNECTING) {
|
|
87955
|
+
return this;
|
|
87587
87956
|
}
|
|
87588
|
-
|
|
87589
|
-
|
|
87957
|
+
let webSocketUrl = this.signWebSocketUrl;
|
|
87958
|
+
if (signMode === PluginApiType.hwSign) {
|
|
87959
|
+
webSocketUrl = this.hwSignWebSocketUrl;
|
|
87590
87960
|
}
|
|
87591
|
-
|
|
87592
|
-
|
|
87593
|
-
const
|
|
87594
|
-
|
|
87595
|
-
|
|
87596
|
-
|
|
87597
|
-
|
|
87598
|
-
info: {
|
|
87599
|
-
name: outInfoArray[4],
|
|
87600
|
-
sex,
|
|
87601
|
-
birthday,
|
|
87602
|
-
address: '',
|
|
87603
|
-
cardId
|
|
87604
|
-
},
|
|
87605
|
-
headImage: ''
|
|
87961
|
+
const ws = new WebSocket(webSocketUrl);
|
|
87962
|
+
let resolved;
|
|
87963
|
+
const onConnect = new Promise(resolve => {
|
|
87964
|
+
resolved = resolve;
|
|
87965
|
+
});
|
|
87966
|
+
ws.onopen = () => {
|
|
87967
|
+
resolved(true);
|
|
87606
87968
|
};
|
|
87607
|
-
|
|
87608
|
-
|
|
87969
|
+
ws.onmessage = event => this.handleMessage(event);
|
|
87970
|
+
ws.onclose = () => this.handleClose();
|
|
87971
|
+
ws.onerror = () => this.handleError();
|
|
87972
|
+
this.ws = ws;
|
|
87973
|
+
return onConnect;
|
|
87609
87974
|
}
|
|
87610
|
-
|
|
87611
|
-
|
|
87612
|
-
|
|
87613
|
-
|
|
87614
|
-
|
|
87975
|
+
static handleError() {
|
|
87976
|
+
for (const type in this.requestStore) {
|
|
87977
|
+
this.requestStore.forEach(({
|
|
87978
|
+
reject
|
|
87979
|
+
}) => {
|
|
87980
|
+
reject('handleError');
|
|
87981
|
+
});
|
|
87615
87982
|
}
|
|
87616
|
-
|
|
87617
|
-
|
|
87983
|
+
throw Error('统一插件平台签字板加载失败');
|
|
87984
|
+
}
|
|
87985
|
+
static handleClose() {
|
|
87986
|
+
for (const type in this.requestStore) {
|
|
87987
|
+
this.requestStore.forEach(({
|
|
87988
|
+
reject
|
|
87989
|
+
}) => {
|
|
87990
|
+
reject('close');
|
|
87991
|
+
});
|
|
87618
87992
|
}
|
|
87619
|
-
console.log('获取签名==>', readData);
|
|
87620
|
-
return readData.signPicBase64;
|
|
87621
87993
|
}
|
|
87622
|
-
|
|
87623
|
-
|
|
87624
|
-
|
|
87625
|
-
|
|
87626
|
-
|
|
87627
|
-
|
|
87628
|
-
|
|
87629
|
-
|
|
87630
|
-
|
|
87631
|
-
|
|
87632
|
-
|
|
87633
|
-
|
|
87634
|
-
|
|
87635
|
-
|
|
87636
|
-
|
|
87637
|
-
|
|
87638
|
-
|
|
87639
|
-
|
|
87640
|
-
data: '已超时,请重新操作,按压指纹'
|
|
87641
|
-
};
|
|
87994
|
+
static handleMessage(msg) {
|
|
87995
|
+
let data = msg.data;
|
|
87996
|
+
this.requestStore.forEach(({
|
|
87997
|
+
resolve
|
|
87998
|
+
}) => {
|
|
87999
|
+
resolve(data);
|
|
88000
|
+
});
|
|
88001
|
+
this.requestStore = [];
|
|
88002
|
+
this.ws.close();
|
|
88003
|
+
}
|
|
88004
|
+
static async read(signMode = PluginApiType.ywSign) {
|
|
88005
|
+
await this.startConnect(signMode);
|
|
88006
|
+
if (this.ws.readyState === 1) {
|
|
88007
|
+
console.log('签字板连接成功');
|
|
88008
|
+
this.ws.send(signMode);
|
|
88009
|
+
return new Promise((resolve, reject) => {
|
|
88010
|
+
if (!this.requestStore) {
|
|
88011
|
+
this.requestStore = [];
|
|
87642
88012
|
}
|
|
87643
|
-
|
|
87644
|
-
|
|
87645
|
-
|
|
87646
|
-
|
|
87647
|
-
|
|
87648
|
-
}
|
|
87649
|
-
}
|
|
87650
|
-
let {
|
|
87651
|
-
status,
|
|
87652
|
-
data
|
|
87653
|
-
} = await readFingerPrint();
|
|
87654
|
-
if (status === 'error') {
|
|
87655
|
-
throw Error(data);
|
|
88013
|
+
this.requestStore.push({
|
|
88014
|
+
resolve,
|
|
88015
|
+
reject
|
|
88016
|
+
});
|
|
88017
|
+
});
|
|
87656
88018
|
} else {
|
|
87657
|
-
|
|
87658
|
-
// getimgae|1|68|......|......
|
|
87659
|
-
// method:方法,result:返回的状态,quality:指纹图片质量,image:图片base64,featureCode:指纹特征码
|
|
87660
|
-
return {
|
|
87661
|
-
method,
|
|
87662
|
-
result,
|
|
87663
|
-
quality,
|
|
87664
|
-
image,
|
|
87665
|
-
featureCode
|
|
87666
|
-
};
|
|
88019
|
+
throw Error('统一插件平台签字板未准备完成');
|
|
87667
88020
|
}
|
|
87668
88021
|
}
|
|
87669
88022
|
}
|
|
87670
|
-
_defineProperty(
|
|
87671
|
-
_defineProperty(
|
|
87672
|
-
_defineProperty(
|
|
87673
|
-
_defineProperty(
|
|
88023
|
+
_defineProperty(SignReadService, "signWebSocketUrl", 'ws://127.0.0.1:8152/chromeManage');
|
|
88024
|
+
_defineProperty(SignReadService, "hwSignWebSocketUrl", 'ws://127.0.0.1:8152/HWSIGNManage');
|
|
88025
|
+
_defineProperty(SignReadService, "ws", void 0);
|
|
88026
|
+
_defineProperty(SignReadService, "requestStore", []);
|
|
87674
88027
|
;// CONCATENATED MODULE: ./packages/service/external-plugins/huada-plugin-socket.service.ts
|
|
87675
88028
|
|
|
87676
88029
|
|
|
@@ -90650,8 +91003,8 @@ id_card_reader_button.install = Vue => {
|
|
|
90650
91003
|
Vue.component(id_card_reader_button.name, id_card_reader_button);
|
|
90651
91004
|
};
|
|
90652
91005
|
/* harmony default export */ var id_card_reader_id_card_reader_button = (id_card_reader_button);
|
|
90653
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-nko/src/scanner-nko.vue?vue&type=template&id=
|
|
90654
|
-
var
|
|
91006
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-nko/src/scanner-nko.vue?vue&type=template&id=09b27ab8&
|
|
91007
|
+
var scanner_nkovue_type_template_id_09b27ab8_render = function render() {
|
|
90655
91008
|
var _vm = this,
|
|
90656
91009
|
_c = _vm._self._c;
|
|
90657
91010
|
return _c('el-container', {
|
|
@@ -90827,7 +91180,7 @@ var scanner_nkovue_type_template_id_2b36bc1b_render = function render() {
|
|
|
90827
91180
|
"value": item
|
|
90828
91181
|
}
|
|
90829
91182
|
});
|
|
90830
|
-
}), 1)], 1)], 1), _c('el-form', {
|
|
91183
|
+
}), 1)], 1)], 1), _vm.brand === 'nko' ? _c('el-form', {
|
|
90831
91184
|
attrs: {
|
|
90832
91185
|
"model": _vm.scanConfig,
|
|
90833
91186
|
"label-position": "right",
|
|
@@ -90856,7 +91209,7 @@ var scanner_nkovue_type_template_id_2b36bc1b_render = function render() {
|
|
|
90856
91209
|
"value": item
|
|
90857
91210
|
}
|
|
90858
91211
|
});
|
|
90859
|
-
}), 1)], 1)], 1), _c('div', {
|
|
91212
|
+
}), 1)], 1)], 1) : _vm._e(), _c('div', {
|
|
90860
91213
|
staticClass: "text-right"
|
|
90861
91214
|
}, [_c('el-button', {
|
|
90862
91215
|
attrs: {
|
|
@@ -90981,7 +91334,7 @@ var scanner_nkovue_type_template_id_2b36bc1b_render = function render() {
|
|
|
90981
91334
|
}
|
|
90982
91335
|
}, [_vm._v("上传")])], 1)])], 1)], 1);
|
|
90983
91336
|
};
|
|
90984
|
-
var
|
|
91337
|
+
var scanner_nkovue_type_template_id_09b27ab8_staticRenderFns = [];
|
|
90985
91338
|
|
|
90986
91339
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-exception.stack.js
|
|
90987
91340
|
var web_dom_exception_stack = __webpack_require__(2801);
|
|
@@ -91278,9 +91631,304 @@ _defineProperty(NkoService, "scanWebSocketUrl", 'ws://127.0.0.1:51818');
|
|
|
91278
91631
|
_defineProperty(NkoService, "ws", void 0);
|
|
91279
91632
|
_defineProperty(NkoService, "requestStore", []);
|
|
91280
91633
|
_defineProperty(NkoService, "fileList", []);
|
|
91634
|
+
;// CONCATENATED MODULE: ./packages/service/external-plugins/pantum-plugin-http.service.ts
|
|
91635
|
+
|
|
91636
|
+
|
|
91637
|
+
/**
|
|
91638
|
+
* 奔图扫描仪(Pantum Scan SDK)
|
|
91639
|
+
*
|
|
91640
|
+
* 奔图 SDK 提供本地 HTTP 服务(dss)完成扫描:
|
|
91641
|
+
* - http :http://127.0.0.1:3883
|
|
91642
|
+
* - https :https://127.0.0.1:3884(证书为服务目录下 cert/cert.crt,需重启服务生效)
|
|
91643
|
+
*
|
|
91644
|
+
* 生产环境存在 http / https 两种部署,页面为 https 时请求 http 接口会被浏览器
|
|
91645
|
+
* 当作混合内容拦截,故这里依据当前页面协议自动选择对应端口。
|
|
91646
|
+
*
|
|
91647
|
+
* 对外接口形态与 NkoService 保持一致(供 scanner-nko 组件通过 brand 切换复用):
|
|
91648
|
+
* 奔图特有的差异点(两段式取图、参数枚举映射、错误码翻译)全部封装在本服务内部。
|
|
91649
|
+
*/
|
|
91650
|
+
|
|
91651
|
+
/**
|
|
91652
|
+
* 错误码 -> 中文描述(摘自《奔图扫描SDK-HTTP接口说明文档》)
|
|
91653
|
+
*/
|
|
91654
|
+
const PANTUM_ERROR_MESSAGES = {
|
|
91655
|
+
1: '扫描仪未连接',
|
|
91656
|
+
2: '扫描仪连接中断',
|
|
91657
|
+
3: '与扫描仪通信发生错误',
|
|
91658
|
+
4: '参数设置错误',
|
|
91659
|
+
5: '当前的扫描设备不支持',
|
|
91660
|
+
6: '当前的文档来源不支持',
|
|
91661
|
+
7: '当前的色彩模式不支持',
|
|
91662
|
+
8: '当前的分辨率不支持',
|
|
91663
|
+
9: '当前的纸张类型不支持',
|
|
91664
|
+
10: '当前的图片保存格式不支持',
|
|
91665
|
+
11: '扫描仪忙',
|
|
91666
|
+
12: '文档进纸器无文档',
|
|
91667
|
+
13: '文档进纸器堵塞',
|
|
91668
|
+
14: '文档进纸器上盖打开',
|
|
91669
|
+
15: '未检测到原件尺寸,请开合平板盖',
|
|
91670
|
+
16: '重张进纸,请分离纸张并重新扫描',
|
|
91671
|
+
17: '扫描仪内部故障,请尝试重启设备或联系客服',
|
|
91672
|
+
18: '创建文件失败,请检查是否权限不足',
|
|
91673
|
+
19: '磁盘空间不足',
|
|
91674
|
+
20: '内存不足',
|
|
91675
|
+
21: '扫描仪中止扫描',
|
|
91676
|
+
22: '双向认证失败',
|
|
91677
|
+
23: '安全认证没有通过',
|
|
91678
|
+
24: '隔离设备接入,扫描禁用',
|
|
91679
|
+
25: '无效的路径',
|
|
91680
|
+
26: '文档进纸器取纸失败',
|
|
91681
|
+
27: '奇数页扫描完成,请把纸张放回自动进纸器,并在面板上按【开始】键继续扫描偶数页',
|
|
91682
|
+
28: '不支持该操作',
|
|
91683
|
+
29: '未检测到扫描仪',
|
|
91684
|
+
30: '保存失败',
|
|
91685
|
+
31: '加载动态库失败',
|
|
91686
|
+
32: '扫描 SDK 正在扫描,请稍后再试',
|
|
91687
|
+
33: 'ADF 混合扫描(自动尺寸)不支持的纸张类型,或进纸器规制未在对应纸张刻度处',
|
|
91688
|
+
34: '稿台上的 ADF 装置被抬起,稿台未被盖住',
|
|
91689
|
+
35: '不支持扫描来源为 ADF',
|
|
91690
|
+
36: '图像文件损坏',
|
|
91691
|
+
37: '打印机的扫描功能被禁用,请在打印机面板设置开启扫描功能',
|
|
91692
|
+
38: '未检测到稿台,请检查是否连接稿台配件,或选择文档进纸器',
|
|
91693
|
+
39: '当前连接的是 A4 稿台配件,无法扫描 A3 尺寸',
|
|
91694
|
+
40: '目标文件已存在',
|
|
91695
|
+
41: '源文件打开失败',
|
|
91696
|
+
42: '目标文件打开失败',
|
|
91697
|
+
43: '读取 BMP 文件失败',
|
|
91698
|
+
44: '读取 JPEG 文件失败',
|
|
91699
|
+
45: '操作已取消',
|
|
91700
|
+
46: '处理结果全为空白页',
|
|
91701
|
+
47: '当前的扫描页数设置不支持',
|
|
91702
|
+
48: '使用平板扫描时,文档进纸器不能放置纸张',
|
|
91703
|
+
49: '操作文件失败',
|
|
91704
|
+
50: '图像列表为空',
|
|
91705
|
+
51: '鉴别用户未登录',
|
|
91706
|
+
52: '鉴别用户不存在',
|
|
91707
|
+
53: '鉴别用户被冻结',
|
|
91708
|
+
54: '鉴别用户无权限',
|
|
91709
|
+
1001: '待获取的文件不存在',
|
|
91710
|
+
1002: '打开文件失败',
|
|
91711
|
+
1003: '文件删除失败',
|
|
91712
|
+
1004: '输入的 ID 不存在',
|
|
91713
|
+
1013: '无扫描作业',
|
|
91714
|
+
1014: '扫描作业不存在'
|
|
91715
|
+
};
|
|
91716
|
+
/**
|
|
91717
|
+
* 进纸模式:赞彩词汇 -> 奔图 src
|
|
91718
|
+
* 1:稿台;2:文档进纸器;3:文档进纸器双面
|
|
91719
|
+
*/
|
|
91720
|
+
const PANTUM_SOURCE_MAP = {
|
|
91721
|
+
'Flatbed': 1,
|
|
91722
|
+
'Adf-front': 2,
|
|
91723
|
+
'Adf-duplex': 3
|
|
91724
|
+
};
|
|
91725
|
+
/**
|
|
91726
|
+
* 扫描颜色:赞彩词汇 -> 奔图 colorType
|
|
91727
|
+
* 1:真彩色;2:灰度;3:黑白
|
|
91728
|
+
*/
|
|
91729
|
+
const PANTUM_MODE_MAP = {
|
|
91730
|
+
'Color': 1,
|
|
91731
|
+
'Gray': 2,
|
|
91732
|
+
'Lineart': 3
|
|
91733
|
+
};
|
|
91734
|
+
/**
|
|
91735
|
+
* 纸张类型:赞彩词汇 -> 奔图 geometry
|
|
91736
|
+
*/
|
|
91737
|
+
const PANTUM_PAPER_SIZE_MAP = {
|
|
91738
|
+
'MaxSize': '自动检测',
|
|
91739
|
+
'A3': 'A3',
|
|
91740
|
+
'A4': 'A4',
|
|
91741
|
+
'A5': 'A5',
|
|
91742
|
+
'JisB5': 'JIS_B5',
|
|
91743
|
+
'IsoB6': 'B6',
|
|
91744
|
+
'USExecutive': 'Executive'
|
|
91745
|
+
};
|
|
91746
|
+
/**
|
|
91747
|
+
* 文件格式:赞彩词汇 -> 奔图 saveFmt
|
|
91748
|
+
* 1:BMP;3:JPEG;4:PNG;5:单页压缩 TIFF
|
|
91749
|
+
* 暂不提供 Pdf(13)/Ofd(16):base64 结果无法在扫描结果列表直接预览
|
|
91750
|
+
*/
|
|
91751
|
+
const PANTUM_FILE_FORMAT_MAP = {
|
|
91752
|
+
'Bmp': 1,
|
|
91753
|
+
'Jpeg': 3,
|
|
91754
|
+
'Png': 4,
|
|
91755
|
+
'Tiff': 5
|
|
91756
|
+
};
|
|
91757
|
+
class PantumService {
|
|
91758
|
+
/**
|
|
91759
|
+
* 服务地址:依据当前页面协议自动选择端口
|
|
91760
|
+
* https 页面 -> https://127.0.0.1:3884(要求 dss 服务已配置证书并重启生效)
|
|
91761
|
+
* http 页面 -> http://127.0.0.1:3883
|
|
91762
|
+
*/
|
|
91763
|
+
static get baseUrl() {
|
|
91764
|
+
const isHttps = typeof window !== 'undefined' && window.location.protocol === 'https:';
|
|
91765
|
+
return isHttps ? 'https://127.0.0.1:3884' : 'http://127.0.0.1:3883';
|
|
91766
|
+
}
|
|
91767
|
+
/** 当前选中的设备(deviceId 形如 "devName|devAddr",无地址时为 devName) */
|
|
91768
|
+
|
|
91769
|
+
/**
|
|
91770
|
+
* GET 请求并返回 JSON(CustomAxios)
|
|
91771
|
+
* 网络异常时给出服务未启动 / 证书未配置的提示
|
|
91772
|
+
*/
|
|
91773
|
+
static async request(path, params = {}) {
|
|
91774
|
+
// CustomAxios 的 GET 查询串不做 URL 编码,含空格/中文的参数值(如 devName、geometry)在此预编码
|
|
91775
|
+
const encodedParams = {};
|
|
91776
|
+
Object.keys(params).filter(key => params[key] !== undefined && params[key] !== null && params[key] !== '').forEach(key => {
|
|
91777
|
+
encodedParams[key] = encodeURIComponent(String(params[key]));
|
|
91778
|
+
});
|
|
91779
|
+
try {
|
|
91780
|
+
return await CustomAxios.get(`${PantumService.baseUrl}${path}`, encodedParams);
|
|
91781
|
+
} catch (e) {
|
|
91782
|
+
// CustomAxios 失败时 reject 的是 xhr 对象:status 有值即 HTTP 错误,否则为网络不通
|
|
91783
|
+
const xhr = e;
|
|
91784
|
+
if (xhr && typeof xhr === 'object' && xhr.status) {
|
|
91785
|
+
throw Error(`奔图扫描服务请求失败,HTTP 状态码:${xhr.status}`);
|
|
91786
|
+
}
|
|
91787
|
+
const httpsTip = PantumService.baseUrl.indexOf('https://') === 0 ? ',且 https 证书(cert/cert.crt)已配置' : '';
|
|
91788
|
+
throw Error(`无法连接奔图扫描服务(${PantumService.baseUrl}),请确认扫描服务已启动${httpsTip}`);
|
|
91789
|
+
}
|
|
91790
|
+
}
|
|
91791
|
+
/**
|
|
91792
|
+
* 校验奔图接口返回码,resultCode 不为 0 时抛出中文错误
|
|
91793
|
+
*/
|
|
91794
|
+
static checkResult(response, action) {
|
|
91795
|
+
if (!response || response.resultCode === undefined || isNaN(Number(response.resultCode))) {
|
|
91796
|
+
throw Error(`${action}失败:奔图扫描服务返回数据异常`);
|
|
91797
|
+
}
|
|
91798
|
+
const code = Number(response.resultCode);
|
|
91799
|
+
if (code !== 0) {
|
|
91800
|
+
throw Error(`${action}失败,返回码:${code},错误信息:${PANTUM_ERROR_MESSAGES[code] || response.msg || '未知错误'}`);
|
|
91801
|
+
}
|
|
91802
|
+
}
|
|
91803
|
+
/**
|
|
91804
|
+
* 获取扫描仪设备列表(getAllDevList:含 USB 与网络设备)
|
|
91805
|
+
* 注:接口返回 data 的字段名以实际设备为准,此处做多字段兼容
|
|
91806
|
+
* @returns deviceId:设备标识,形如 "devName|devAddr"(无地址时为 devName)
|
|
91807
|
+
*/
|
|
91808
|
+
static async getDeivceList() {
|
|
91809
|
+
const response = await PantumService.request('/getAllDevList');
|
|
91810
|
+
this.checkResult(response, '获取奔图扫描仪设备列表');
|
|
91811
|
+
console.log('获取奔图扫描仪设备列表==>', response);
|
|
91812
|
+
const list = Array.isArray(response.data) ? response.data : [];
|
|
91813
|
+
const devices = list.map(item => {
|
|
91814
|
+
if (typeof item === 'string') {
|
|
91815
|
+
return {
|
|
91816
|
+
deviceId: item
|
|
91817
|
+
};
|
|
91818
|
+
}
|
|
91819
|
+
const devName = item.devName || item.dev_name || item.name || item.devNameInSetting || '';
|
|
91820
|
+
const devAddr = item.devAddr || item.dev_addr || item.address || '';
|
|
91821
|
+
const deviceId = devAddr ? `${devName}|${devAddr}` : devName || item.devId || item.id || '';
|
|
91822
|
+
return {
|
|
91823
|
+
deviceId
|
|
91824
|
+
};
|
|
91825
|
+
}).filter(item => item.deviceId);
|
|
91826
|
+
if (devices.length === 0) {
|
|
91827
|
+
throw Error('未检测到奔图扫描仪,请确认设备已连接且奔图扫描服务(dss)已启动');
|
|
91828
|
+
}
|
|
91829
|
+
return devices;
|
|
91830
|
+
}
|
|
91831
|
+
/**
|
|
91832
|
+
* 选中指定扫描仪(奔图无独立"打开设备"接口,仅记录待扫描设备)
|
|
91833
|
+
* @param scannerId 选中的扫描仪 ID(getDeivceList 返回的 deviceId)
|
|
91834
|
+
*/
|
|
91835
|
+
static async openScanDeivce(scannerId) {
|
|
91836
|
+
this.selectedDeviceId = scannerId || '';
|
|
91837
|
+
return {
|
|
91838
|
+
code: 0,
|
|
91839
|
+
msg: 'ok',
|
|
91840
|
+
data: null
|
|
91841
|
+
};
|
|
91842
|
+
}
|
|
91843
|
+
/**
|
|
91844
|
+
* 获取选中扫描仪可配置项
|
|
91845
|
+
* 奔图无能力查询接口,返回静态能力表(见 scanOptions)
|
|
91846
|
+
*/
|
|
91847
|
+
static async getScanOptions() {
|
|
91848
|
+
return PantumService.scanOptions;
|
|
91849
|
+
}
|
|
91850
|
+
/**
|
|
91851
|
+
* 常用参数的便捷配置能力(进纸模式、色彩、尺寸、DPI)
|
|
91852
|
+
* 奔图 scan 接口一次性携带全部参数,这里仅暂存,待 scan 时统一映射
|
|
91853
|
+
*/
|
|
91854
|
+
static async setScanBasicOptions(config) {
|
|
91855
|
+
this.pendingBasicOptions = config || {};
|
|
91856
|
+
return {
|
|
91857
|
+
code: 0,
|
|
91858
|
+
msg: 'ok',
|
|
91859
|
+
data: null
|
|
91860
|
+
};
|
|
91861
|
+
}
|
|
91862
|
+
/**
|
|
91863
|
+
* 扫描:调 /scan 后逐个 docid 调 /getImg64 取 base64 图片
|
|
91864
|
+
* @param fileFormat 文件保存格式(image-format 选项,如 Jpeg)
|
|
91865
|
+
* @param fileSavePath 保存路径(目录,为空时保存到服务临时路径)
|
|
91866
|
+
* @param fileNamePrefix 未使用(奔图由服务端自行命名)
|
|
91867
|
+
* @param fileNameFormat 未使用(同上)
|
|
91868
|
+
* @param fileTransferMode 未使用(奔图无传输模式概念)
|
|
91869
|
+
* @returns [{name, url}] name:文件名;url:可直接预览的 dataUrl
|
|
91870
|
+
*/
|
|
91871
|
+
static async scan(fileFormat, fileSavePath = '', fileNamePrefix = '', fileNameFormat = '', fileTransferMode = '') {
|
|
91872
|
+
const basic = this.pendingBasicOptions || {};
|
|
91873
|
+
const parts = (this.selectedDeviceId || '').split('|');
|
|
91874
|
+
const response = await PantumService.request('/scan', {
|
|
91875
|
+
devName: parts[0] || '',
|
|
91876
|
+
devAddr: parts[1] || '',
|
|
91877
|
+
saveFmt: PANTUM_FILE_FORMAT_MAP[fileFormat] || 3,
|
|
91878
|
+
src: PANTUM_SOURCE_MAP[basic.source] || 1,
|
|
91879
|
+
colorType: PANTUM_MODE_MAP[basic.mode] || 1,
|
|
91880
|
+
dpi: Number(basic.resolution) || 300,
|
|
91881
|
+
geometry: PANTUM_PAPER_SIZE_MAP[basic['paper-size']] || 'A4',
|
|
91882
|
+
// 旋转角度:0 不旋转;页数:0 全部;可选参数 / 条码识别:暂不开启
|
|
91883
|
+
rotate: 0,
|
|
91884
|
+
pages: 0,
|
|
91885
|
+
opt: 0,
|
|
91886
|
+
barcodeTag: 0,
|
|
91887
|
+
savePath: fileSavePath || ''
|
|
91888
|
+
});
|
|
91889
|
+
this.checkResult(response, '扫描');
|
|
91890
|
+
console.log('奔图扫描==>', response);
|
|
91891
|
+
// docs 元素形如 {docid},做裸 id 兼容
|
|
91892
|
+
const docids = (response.docs || []).map(doc => doc && doc.docid !== undefined ? doc.docid : doc);
|
|
91893
|
+
const fileList = [];
|
|
91894
|
+
for (const docid of docids) {
|
|
91895
|
+
const img = await PantumService.request('/getImg64', {
|
|
91896
|
+
docid
|
|
91897
|
+
});
|
|
91898
|
+
this.checkResult(img, '获取扫描图片');
|
|
91899
|
+
// getImg64 取后服务端即清除记录,dataUrl 需由前端持有
|
|
91900
|
+
fileList.push({
|
|
91901
|
+
name: img.filename || `${docid}`,
|
|
91902
|
+
url: `data:${img.mimetype};base64,${img.base64}`
|
|
91903
|
+
});
|
|
91904
|
+
}
|
|
91905
|
+
return fileList;
|
|
91906
|
+
}
|
|
91907
|
+
}
|
|
91908
|
+
_defineProperty(PantumService, "selectedDeviceId", '');
|
|
91909
|
+
_defineProperty(PantumService, "pendingBasicOptions", {});
|
|
91910
|
+
_defineProperty(PantumService, "scanOptions", {
|
|
91911
|
+
// 进纸模式:平板 / 进纸器正面 / 进纸器双面
|
|
91912
|
+
source: ['Flatbed', 'Adf-front', 'Adf-duplex'],
|
|
91913
|
+
// 扫描颜色:彩色 / 灰度 / 黑白
|
|
91914
|
+
mode: ['Color', 'Gray', 'Lineart'],
|
|
91915
|
+
// 分辨率
|
|
91916
|
+
resolution: ['75', '150', '300', '600', '1200'],
|
|
91917
|
+
// 纸张类型
|
|
91918
|
+
'paper-size': ['MaxSize', 'A3', 'A4', 'A5', 'JisB5', 'IsoB6', 'USExecutive'],
|
|
91919
|
+
// 文件格式
|
|
91920
|
+
'image-format': ['Bmp', 'Jpeg', 'Png', 'Tiff']
|
|
91921
|
+
});
|
|
91281
91922
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-nko/src/scanner-nko.vue?vue&type=script&lang=js&
|
|
91282
91923
|
|
|
91283
91924
|
|
|
91925
|
+
|
|
91926
|
+
|
|
91927
|
+
//品牌 → 扫描服务映射(两者接口形态一致,可互换),新增品牌在此加一行
|
|
91928
|
+
const BRAND_SERVICE_MAP = {
|
|
91929
|
+
nko: NkoService,
|
|
91930
|
+
pantum: PantumService
|
|
91931
|
+
};
|
|
91284
91932
|
/* harmony default export */ var scanner_nkovue_type_script_lang_js_ = ({
|
|
91285
91933
|
name: 'scanner-nko',
|
|
91286
91934
|
components: {},
|
|
@@ -91323,6 +91971,15 @@ _defineProperty(NkoService, "fileList", []);
|
|
|
91323
91971
|
fileTransferMode: {
|
|
91324
91972
|
default: '',
|
|
91325
91973
|
type: String
|
|
91974
|
+
},
|
|
91975
|
+
/**
|
|
91976
|
+
* 设备品牌,决定使用哪个扫描服务(两者接口形态一致)
|
|
91977
|
+
* nko - 赞彩五合一设备(默认)
|
|
91978
|
+
* pantum - 奔图扫描仪(本地 HTTP 服务)
|
|
91979
|
+
*/
|
|
91980
|
+
brand: {
|
|
91981
|
+
default: 'nko',
|
|
91982
|
+
type: String
|
|
91326
91983
|
}
|
|
91327
91984
|
},
|
|
91328
91985
|
data: () => {
|
|
@@ -91371,6 +92028,15 @@ _defineProperty(NkoService, "fileList", []);
|
|
|
91371
92028
|
isDeviceReady() {
|
|
91372
92029
|
return this.scanConfig.deviceId && this.deviceOpend;
|
|
91373
92030
|
},
|
|
92031
|
+
//当前品牌对应的扫描服务(未知品牌回退 NkoService)
|
|
92032
|
+
scanService() {
|
|
92033
|
+
const service = BRAND_SERVICE_MAP[this.brand];
|
|
92034
|
+
if (!service) {
|
|
92035
|
+
console.warn(`[scanner-nko] 未知的设备品牌:${this.brand},已回退为 NkoService`);
|
|
92036
|
+
return NkoService;
|
|
92037
|
+
}
|
|
92038
|
+
return service;
|
|
92039
|
+
},
|
|
91374
92040
|
imgUrls() {
|
|
91375
92041
|
return this.scanFileList.map(item => item.url);
|
|
91376
92042
|
}
|
|
@@ -91385,9 +92051,9 @@ _defineProperty(NkoService, "fileList", []);
|
|
|
91385
92051
|
}
|
|
91386
92052
|
},
|
|
91387
92053
|
methods: {
|
|
91388
|
-
/** localStorage 缓存 key */
|
|
92054
|
+
/** localStorage 缓存 key(按品牌隔离,避免不同设备记忆配置互相污染) */
|
|
91389
92055
|
_cacheKey() {
|
|
91390
|
-
return
|
|
92056
|
+
return `scanner-${this.brand}-config`;
|
|
91391
92057
|
},
|
|
91392
92058
|
/** 读取缓存的扫描配置 */
|
|
91393
92059
|
getCachedConfig() {
|
|
@@ -91423,10 +92089,15 @@ _defineProperty(NkoService, "fileList", []);
|
|
|
91423
92089
|
async initScanServiceAPI() {
|
|
91424
92090
|
this.pageLoadingText = '正在连接扫描服务,请稍候...';
|
|
91425
92091
|
this.pageLoading = true;
|
|
91426
|
-
|
|
91427
|
-
|
|
91428
|
-
|
|
91429
|
-
|
|
92092
|
+
try {
|
|
92093
|
+
// 获取设备列表
|
|
92094
|
+
this.deviceList = await this.scanService.getDeivceList();
|
|
92095
|
+
this.deviceOpend = true;
|
|
92096
|
+
} catch (e) {
|
|
92097
|
+
this.$message.error(e && e.message || '连接扫描服务失败');
|
|
92098
|
+
} finally {
|
|
92099
|
+
this.pageLoading = false;
|
|
92100
|
+
}
|
|
91430
92101
|
|
|
91431
92102
|
// 连接成功后,恢复缓存的扫描源(deviceId)
|
|
91432
92103
|
const cached = this.getCachedConfig();
|
|
@@ -91453,7 +92124,7 @@ _defineProperty(NkoService, "fileList", []);
|
|
|
91453
92124
|
this.scanConfig.source = null;
|
|
91454
92125
|
this.scanConfig.resolution = null;
|
|
91455
92126
|
this.scanConfig.mode = null;
|
|
91456
|
-
this.scanConfig.
|
|
92127
|
+
this.scanConfig.paperSize = null;
|
|
91457
92128
|
this.scanConfig.fileFormat = null;
|
|
91458
92129
|
this.sourceOptions = [];
|
|
91459
92130
|
this.modeOptions = [];
|
|
@@ -91481,28 +92152,33 @@ _defineProperty(NkoService, "fileList", []);
|
|
|
91481
92152
|
async getScanOptions() {
|
|
91482
92153
|
this.pageLoadingText = '正在获取扫描仪能力,请稍后...';
|
|
91483
92154
|
this.pageLoading = true;
|
|
91484
|
-
|
|
91485
|
-
|
|
91486
|
-
|
|
91487
|
-
|
|
91488
|
-
|
|
91489
|
-
|
|
91490
|
-
|
|
91491
|
-
|
|
91492
|
-
|
|
91493
|
-
|
|
91494
|
-
|
|
91495
|
-
|
|
91496
|
-
|
|
91497
|
-
|
|
91498
|
-
|
|
91499
|
-
|
|
91500
|
-
|
|
91501
|
-
|
|
91502
|
-
|
|
91503
|
-
|
|
91504
|
-
|
|
91505
|
-
|
|
92155
|
+
try {
|
|
92156
|
+
await this.scanService.openScanDeivce(this.scanConfig.deviceId);
|
|
92157
|
+
var options = await this.scanService.getScanOptions();
|
|
92158
|
+
this.sourceOptions = options.source;
|
|
92159
|
+
this.modeOptions = options.mode;
|
|
92160
|
+
this.resolutionOptions = options.resolution;
|
|
92161
|
+
this.paperSizeOptions = options['paper-size'];
|
|
92162
|
+
this.fileFormatOptions = options['image-format'];
|
|
92163
|
+
|
|
92164
|
+
// 恢复缓存配置:若缓存值在当前设备能力列表中则使用缓存值,否则取第一项
|
|
92165
|
+
const cached = this.getCachedConfig() || {};
|
|
92166
|
+
const isValid = (list, val) => val && list.includes(val);
|
|
92167
|
+
this.scanConfig.source = isValid(this.sourceOptions, cached.source) ? cached.source : this.sourceOptions[0] || null;
|
|
92168
|
+
this.scanConfig.mode = isValid(this.modeOptions, cached.mode) ? cached.mode : this.modeOptions[0] || null;
|
|
92169
|
+
this.scanConfig.resolution = isValid(this.resolutionOptions, cached.resolution) ? cached.resolution : this.resolutionOptions[0] || null;
|
|
92170
|
+
this.scanConfig.paperSize = isValid(this.paperSizeOptions, cached.paperSize) ? cached.paperSize : this.paperSizeOptions[0] || null;
|
|
92171
|
+
this.scanConfig.fileFormat = isValid(this.fileFormatOptions, cached.fileFormat) ? cached.fileFormat : this.fileFormatOptions[0] || null;
|
|
92172
|
+
// fileTransferMode 不依赖设备,直接恢复
|
|
92173
|
+
if (cached.fileTransferMode) {
|
|
92174
|
+
this.scanConfig.fileTransferMode = cached.fileTransferMode;
|
|
92175
|
+
}
|
|
92176
|
+
this.deviceOpend = true;
|
|
92177
|
+
} catch (e) {
|
|
92178
|
+
this.$message.error(e && e.message || '获取扫描仪能力失败');
|
|
92179
|
+
} finally {
|
|
92180
|
+
this.pageLoading = false;
|
|
92181
|
+
}
|
|
91506
92182
|
},
|
|
91507
92183
|
/**
|
|
91508
92184
|
* 点击扫描
|
|
@@ -91513,17 +92189,22 @@ _defineProperty(NkoService, "fileList", []);
|
|
|
91513
92189
|
}
|
|
91514
92190
|
this.pageLoadingText = '正在提交扫描请求,请稍后...';
|
|
91515
92191
|
this.pageLoading = true;
|
|
91516
|
-
|
|
91517
|
-
|
|
91518
|
-
|
|
91519
|
-
|
|
91520
|
-
|
|
91521
|
-
|
|
91522
|
-
|
|
91523
|
-
|
|
91524
|
-
|
|
91525
|
-
|
|
91526
|
-
|
|
92192
|
+
try {
|
|
92193
|
+
await this.scanService.setScanBasicOptions({
|
|
92194
|
+
source: this.scanConfig.source,
|
|
92195
|
+
mode: this.scanConfig.mode,
|
|
92196
|
+
'paper-size': this.scanConfig.paperSize,
|
|
92197
|
+
resolution: this.scanConfig.resolution
|
|
92198
|
+
});
|
|
92199
|
+
const data = await this.scanService.scan(this.scanConfig.fileFormat, this.fileSavePath, this.fileNamePrefix, this.fileNameFormat, this.scanConfig.fileTransferMode);
|
|
92200
|
+
this.scanFileList = [...this.scanFileList, ...data];
|
|
92201
|
+
// 扫描成功后缓存当前配置,下次使用时直接恢复
|
|
92202
|
+
this.saveConfigToCache();
|
|
92203
|
+
} catch (e) {
|
|
92204
|
+
this.$message.error(e && e.message || '扫描失败');
|
|
92205
|
+
} finally {
|
|
92206
|
+
this.pageLoading = false;
|
|
92207
|
+
}
|
|
91527
92208
|
},
|
|
91528
92209
|
//预览
|
|
91529
92210
|
previewImg(index) {
|
|
@@ -91554,10 +92235,10 @@ _defineProperty(NkoService, "fileList", []);
|
|
|
91554
92235
|
});
|
|
91555
92236
|
;// CONCATENATED MODULE: ./packages/scanner/scanner-nko/src/scanner-nko.vue?vue&type=script&lang=js&
|
|
91556
92237
|
/* harmony default export */ var src_scanner_nkovue_type_script_lang_js_ = (scanner_nkovue_type_script_lang_js_);
|
|
91557
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-nko/src/scanner-nko.vue?vue&type=style&index=0&id=
|
|
92238
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-nko/src/scanner-nko.vue?vue&type=style&index=0&id=09b27ab8&prod&lang=scss&
|
|
91558
92239
|
// extracted by mini-css-extract-plugin
|
|
91559
92240
|
|
|
91560
|
-
;// CONCATENATED MODULE: ./packages/scanner/scanner-nko/src/scanner-nko.vue?vue&type=style&index=0&id=
|
|
92241
|
+
;// CONCATENATED MODULE: ./packages/scanner/scanner-nko/src/scanner-nko.vue?vue&type=style&index=0&id=09b27ab8&prod&lang=scss&
|
|
91561
92242
|
|
|
91562
92243
|
;// CONCATENATED MODULE: ./packages/scanner/scanner-nko/src/scanner-nko.vue
|
|
91563
92244
|
|
|
@@ -91570,8 +92251,8 @@ _defineProperty(NkoService, "fileList", []);
|
|
|
91570
92251
|
|
|
91571
92252
|
var scanner_nko_component = normalizeComponent(
|
|
91572
92253
|
src_scanner_nkovue_type_script_lang_js_,
|
|
91573
|
-
|
|
91574
|
-
|
|
92254
|
+
scanner_nkovue_type_template_id_09b27ab8_render,
|
|
92255
|
+
scanner_nkovue_type_template_id_09b27ab8_staticRenderFns,
|
|
91575
92256
|
false,
|
|
91576
92257
|
null,
|
|
91577
92258
|
null,
|