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
|
@@ -83188,8 +83188,8 @@ var scanner_cameravue_type_template_id_00e9072f_scoped_true_render = function re
|
|
|
83188
83188
|
};
|
|
83189
83189
|
var scanner_cameravue_type_template_id_00e9072f_scoped_true_staticRenderFns = [];
|
|
83190
83190
|
|
|
83191
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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=
|
|
83192
|
-
var
|
|
83191
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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&
|
|
83192
|
+
var scanner_camera_componentvue_type_template_id_3fc2d979_render = function render() {
|
|
83193
83193
|
var _vm = this,
|
|
83194
83194
|
_c = _vm._self._c;
|
|
83195
83195
|
return _c('div', {
|
|
@@ -83323,7 +83323,7 @@ var scanner_camera_componentvue_type_template_id_1d5723dd_render = function rend
|
|
|
83323
83323
|
}
|
|
83324
83324
|
}, [_vm._v("旋转180°")])], 1)], 1) : _vm._e(), _vm._t("action")]], 2)])]);
|
|
83325
83325
|
};
|
|
83326
|
-
var
|
|
83326
|
+
var scanner_camera_componentvue_type_template_id_3fc2d979_staticRenderFns = [];
|
|
83327
83327
|
|
|
83328
83328
|
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
83329
83329
|
function _typeof(obj) {
|
|
@@ -86095,6 +86095,647 @@ _defineProperty(ViisanPluginService, "secondaryCameraDevNum", -1);
|
|
|
86095
86095
|
_defineProperty(ViisanPluginService, "cachedDevInfos", []);
|
|
86096
86096
|
_defineProperty(ViisanPluginService, "reqIdCounter", 0);
|
|
86097
86097
|
_defineProperty(ViisanPluginService, "previewFrameCallback", null);
|
|
86098
|
+
;// CONCATENATED MODULE: ./packages/service/external-plugins/ewp-plugin-socket.service.ts
|
|
86099
|
+
|
|
86100
|
+
|
|
86101
|
+
/**
|
|
86102
|
+
* 沃斯德人证交互终端
|
|
86103
|
+
* E窗通WEBSOCKET服务
|
|
86104
|
+
*
|
|
86105
|
+
* */
|
|
86106
|
+
|
|
86107
|
+
var EWindowPassMethodCode;
|
|
86108
|
+
(function (EWindowPassMethodCode) {
|
|
86109
|
+
/** 读取社保卡 */
|
|
86110
|
+
EWindowPassMethodCode["iReadCardBas"] = "iReadCardBas";
|
|
86111
|
+
/** 获取签名*/
|
|
86112
|
+
EWindowPassMethodCode["GetSignName_Base64"] = "GetSignName_Base64";
|
|
86113
|
+
/** 读取二代身份证 */
|
|
86114
|
+
EWindowPassMethodCode["ReadIDCard_Base64"] = "ReadIDCard_Base64";
|
|
86115
|
+
/** 人证比对 */
|
|
86116
|
+
EWindowPassMethodCode["FaceValidateWithIdCard_Base64"] = "FaceValidateWithIdCard_Base64";
|
|
86117
|
+
/** 获取指纹 */
|
|
86118
|
+
EWindowPassMethodCode["FingerPrint_Base64"] = "FingerPrint_Base64";
|
|
86119
|
+
/** 读取二代身份证(新版统一外接设备插件平台) */
|
|
86120
|
+
EWindowPassMethodCode["iReadIdentityCard"] = "iReadIdentityCard";
|
|
86121
|
+
/** 开启视频预览(新版统一外接设备插件平台) */
|
|
86122
|
+
EWindowPassMethodCode["VideoStart"] = "VideoStart";
|
|
86123
|
+
/** 关闭视频预览 */
|
|
86124
|
+
EWindowPassMethodCode["VideoStop"] = "VideoStop";
|
|
86125
|
+
/** 拍摄抓图 */
|
|
86126
|
+
EWindowPassMethodCode["VideoGetImage"] = "VideoGetImage";
|
|
86127
|
+
/** 旋转图像 */
|
|
86128
|
+
EWindowPassMethodCode["VideoRotate"] = "VideoRotate";
|
|
86129
|
+
/** 实时视频流(设备异步推送帧,非请求应答) */
|
|
86130
|
+
EWindowPassMethodCode["VideoStream"] = "VideoStream";
|
|
86131
|
+
})(EWindowPassMethodCode || (EWindowPassMethodCode = {}));
|
|
86132
|
+
const EWindowPassMethodDesc = {
|
|
86133
|
+
[EWindowPassMethodCode.iReadCardBas]: '读取社保卡',
|
|
86134
|
+
[EWindowPassMethodCode.GetSignName_Base64]: '获取签名',
|
|
86135
|
+
[EWindowPassMethodCode.ReadIDCard_Base64]: '读取二代身份证',
|
|
86136
|
+
[EWindowPassMethodCode.FaceValidateWithIdCard_Base64]: '人证比对',
|
|
86137
|
+
[EWindowPassMethodCode.FingerPrint_Base64]: '获取指纹',
|
|
86138
|
+
[EWindowPassMethodCode.iReadIdentityCard]: '读取二代身份证信息',
|
|
86139
|
+
[EWindowPassMethodCode.VideoStart]: '开启视频预览',
|
|
86140
|
+
[EWindowPassMethodCode.VideoStop]: '关闭视频预览',
|
|
86141
|
+
[EWindowPassMethodCode.VideoGetImage]: '拍摄抓图',
|
|
86142
|
+
[EWindowPassMethodCode.VideoRotate]: '旋转图像'
|
|
86143
|
+
};
|
|
86144
|
+
class EWindowPassService {
|
|
86145
|
+
/** 摄像头WebSocket连接(预览需长连接接收帧推送,与read()的短连接相互独立) */
|
|
86146
|
+
|
|
86147
|
+
/** 摄像头建连Promise(防止并发重复建连) */
|
|
86148
|
+
|
|
86149
|
+
/** 摄像头待响应的请求(同一时间仅一个) */
|
|
86150
|
+
|
|
86151
|
+
/** 预览帧回调(VideoStream帧数据) */
|
|
86152
|
+
|
|
86153
|
+
/** 是否处于预览中(单任务模式标记,预览期间禁止其他指令) */
|
|
86154
|
+
|
|
86155
|
+
static startConnect(method) {
|
|
86156
|
+
if (this.ws && this.ws.readyState === WebSocket.CONNECTING) {
|
|
86157
|
+
return this;
|
|
86158
|
+
}
|
|
86159
|
+
let webSocketUrl = '';
|
|
86160
|
+
switch (method) {
|
|
86161
|
+
case EWindowPassMethodCode.FingerPrint_Base64:
|
|
86162
|
+
webSocketUrl = this.fingerPrintBasWebSocketUrl;
|
|
86163
|
+
break;
|
|
86164
|
+
default:
|
|
86165
|
+
webSocketUrl = this.iReadCardBasWebSocketUrl;
|
|
86166
|
+
break;
|
|
86167
|
+
}
|
|
86168
|
+
const ws = new WebSocket(webSocketUrl);
|
|
86169
|
+
let resolved;
|
|
86170
|
+
const onConnect = new Promise(resolve => {
|
|
86171
|
+
resolved = resolve;
|
|
86172
|
+
});
|
|
86173
|
+
ws.onopen = () => {
|
|
86174
|
+
resolved(true);
|
|
86175
|
+
};
|
|
86176
|
+
ws.onmessage = event => {
|
|
86177
|
+
if (method === EWindowPassMethodCode.FingerPrint_Base64) {
|
|
86178
|
+
// 指纹后端返回的是string
|
|
86179
|
+
event = {
|
|
86180
|
+
...event,
|
|
86181
|
+
data: JSON.stringify({
|
|
86182
|
+
fingerPrintInfo: event.data
|
|
86183
|
+
})
|
|
86184
|
+
};
|
|
86185
|
+
}
|
|
86186
|
+
this.handleMessage(event);
|
|
86187
|
+
};
|
|
86188
|
+
ws.onclose = () => this.handleClose();
|
|
86189
|
+
ws.onerror = () => this.handleError();
|
|
86190
|
+
this.ws = ws;
|
|
86191
|
+
return onConnect;
|
|
86192
|
+
}
|
|
86193
|
+
static handleError() {
|
|
86194
|
+
for (const type in this.requestStore) {
|
|
86195
|
+
this.requestStore.forEach(({
|
|
86196
|
+
reject
|
|
86197
|
+
}) => {
|
|
86198
|
+
reject('handleError');
|
|
86199
|
+
});
|
|
86200
|
+
}
|
|
86201
|
+
throw Error('统一插件平台E窗通设备功能加载失败');
|
|
86202
|
+
}
|
|
86203
|
+
static handleClose() {
|
|
86204
|
+
for (const type in this.requestStore) {
|
|
86205
|
+
this.requestStore.forEach(({
|
|
86206
|
+
reject
|
|
86207
|
+
}) => {
|
|
86208
|
+
reject('close');
|
|
86209
|
+
});
|
|
86210
|
+
}
|
|
86211
|
+
}
|
|
86212
|
+
static handleMessage(msg) {
|
|
86213
|
+
let data = '';
|
|
86214
|
+
try {
|
|
86215
|
+
data = JSON.parse(msg.data);
|
|
86216
|
+
} catch (e) {
|
|
86217
|
+
data = '';
|
|
86218
|
+
}
|
|
86219
|
+
this.requestStore.forEach(({
|
|
86220
|
+
resolve
|
|
86221
|
+
}) => {
|
|
86222
|
+
resolve(data);
|
|
86223
|
+
});
|
|
86224
|
+
this.requestStore = [];
|
|
86225
|
+
this.ws.close();
|
|
86226
|
+
}
|
|
86227
|
+
static async read(method) {
|
|
86228
|
+
if (this.previewActive) {
|
|
86229
|
+
// 单任务模式:预览期间调用其他指令会导致设备驱动闪退,直接拦截
|
|
86230
|
+
throw Error('高拍仪预览进行中,请先关闭预览后再操作其他设备功能');
|
|
86231
|
+
}
|
|
86232
|
+
await this.startConnect(method);
|
|
86233
|
+
const methodDesc = EWindowPassMethodDesc[method];
|
|
86234
|
+
if (this.ws.readyState === 1) {
|
|
86235
|
+
if (method !== EWindowPassMethodCode.FingerPrint_Base64) console.log(methodDesc + '连接成功');
|
|
86236
|
+
let jsonString;
|
|
86237
|
+
// outTimes:超时时间(秒)
|
|
86238
|
+
switch (method) {
|
|
86239
|
+
case EWindowPassMethodCode.ReadIDCard_Base64:
|
|
86240
|
+
// cardReader:0 读卡器-USB;1 读卡器-COM
|
|
86241
|
+
jsonString = JSON.stringify({
|
|
86242
|
+
method,
|
|
86243
|
+
args: {
|
|
86244
|
+
outTimes: 30,
|
|
86245
|
+
cardReader: 1
|
|
86246
|
+
}
|
|
86247
|
+
});
|
|
86248
|
+
break;
|
|
86249
|
+
case EWindowPassMethodCode.FaceValidateWithIdCard_Base64:
|
|
86250
|
+
// cardReader:0 读卡器-USB;1 读卡器-COM
|
|
86251
|
+
jsonString = JSON.stringify({
|
|
86252
|
+
method,
|
|
86253
|
+
args: {
|
|
86254
|
+
outTimes: 30,
|
|
86255
|
+
cardReader: 1,
|
|
86256
|
+
cameraType: 0
|
|
86257
|
+
}
|
|
86258
|
+
});
|
|
86259
|
+
break;
|
|
86260
|
+
case EWindowPassMethodCode.iReadCardBas:
|
|
86261
|
+
// icType:1接触卡;2非接触卡;3自动(接触优先);4自动(非接优先)
|
|
86262
|
+
jsonString = JSON.stringify({
|
|
86263
|
+
method,
|
|
86264
|
+
args: {
|
|
86265
|
+
icType: '1'
|
|
86266
|
+
}
|
|
86267
|
+
});
|
|
86268
|
+
break;
|
|
86269
|
+
case EWindowPassMethodCode.iReadIdentityCard:
|
|
86270
|
+
// 新版统一外接设备插件平台接口,无参数
|
|
86271
|
+
jsonString = JSON.stringify({
|
|
86272
|
+
method,
|
|
86273
|
+
args: {}
|
|
86274
|
+
});
|
|
86275
|
+
break;
|
|
86276
|
+
case EWindowPassMethodCode.FingerPrint_Base64:
|
|
86277
|
+
// 获取指纹:getimgae,颜色(0黑色 1红色), 质量(默认0), 图像大小(288,360),类型(0民用,1公安)
|
|
86278
|
+
jsonString = 'getimgae,1,0,288,0';
|
|
86279
|
+
break;
|
|
86280
|
+
default:
|
|
86281
|
+
jsonString = JSON.stringify({
|
|
86282
|
+
method,
|
|
86283
|
+
args: {
|
|
86284
|
+
outTimes: 30
|
|
86285
|
+
}
|
|
86286
|
+
});
|
|
86287
|
+
break;
|
|
86288
|
+
}
|
|
86289
|
+
this.ws.send(jsonString);
|
|
86290
|
+
return new Promise((resolve, reject) => {
|
|
86291
|
+
if (!this.requestStore) {
|
|
86292
|
+
this.requestStore = [];
|
|
86293
|
+
}
|
|
86294
|
+
this.requestStore.push({
|
|
86295
|
+
resolve,
|
|
86296
|
+
reject
|
|
86297
|
+
});
|
|
86298
|
+
});
|
|
86299
|
+
} else {
|
|
86300
|
+
throw Error('统一插件平台' + methodDesc + '未准备完成');
|
|
86301
|
+
}
|
|
86302
|
+
}
|
|
86303
|
+
/**
|
|
86304
|
+
* 读取二代身份证(兼容新版统一外接设备插件平台iReadIdentityCard接口)
|
|
86305
|
+
* 优先使用新版iReadIdentityCard指令,失败时自动改用旧版ReadIDCard_Base64指令
|
|
86306
|
+
* */
|
|
86307
|
+
static async idCardRead(method = EWindowPassMethodCode.ReadIDCard_Base64) {
|
|
86308
|
+
try {
|
|
86309
|
+
return await EWindowPassService.newIdCardRead();
|
|
86310
|
+
} catch (e) {
|
|
86311
|
+
// 新版指令读取失败(设备服务为旧版或暂不可用),改用旧版ReadIDCard_Base64指令读取
|
|
86312
|
+
console.log('新版接口读取二代身份证失败,尝试旧版E窗通接口==>', e);
|
|
86313
|
+
return await EWindowPassService.oldIdCardRead();
|
|
86314
|
+
}
|
|
86315
|
+
}
|
|
86316
|
+
/**
|
|
86317
|
+
* 读取二代身份证-旧版E窗通指令(ReadIDCard_Base64)
|
|
86318
|
+
* */
|
|
86319
|
+
static async oldIdCardRead() {
|
|
86320
|
+
const readData = await EWindowPassService.read(EWindowPassMethodCode.ReadIDCard_Base64);
|
|
86321
|
+
console.log('读取二代身份证==>', readData);
|
|
86322
|
+
if (!readData) {
|
|
86323
|
+
throw Error('未匹配可用的E窗通读取设备');
|
|
86324
|
+
}
|
|
86325
|
+
if (readData.retVal !== 0) {
|
|
86326
|
+
throw Error("读取二代身份证失败,返回值:" + readData.retVal + ",错误信息:" + readData.errMsg);
|
|
86327
|
+
}
|
|
86328
|
+
const idInfo = readData.idInfo.data;
|
|
86329
|
+
const {
|
|
86330
|
+
name,
|
|
86331
|
+
sex,
|
|
86332
|
+
birthday,
|
|
86333
|
+
address,
|
|
86334
|
+
id_num,
|
|
86335
|
+
nations
|
|
86336
|
+
} = idInfo;
|
|
86337
|
+
const IDCardData = {
|
|
86338
|
+
info: {
|
|
86339
|
+
name,
|
|
86340
|
+
sex,
|
|
86341
|
+
birthday: birthday.replace('-', '').replace('-', ''),
|
|
86342
|
+
address,
|
|
86343
|
+
cardId: id_num,
|
|
86344
|
+
nation: nations
|
|
86345
|
+
},
|
|
86346
|
+
headImage: readData.idPhotoPicBase64
|
|
86347
|
+
};
|
|
86348
|
+
console.log('读取二代身份证结果==>', IDCardData);
|
|
86349
|
+
return IDCardData;
|
|
86350
|
+
}
|
|
86351
|
+
/**
|
|
86352
|
+
* 读取二代身份证-新版统一外接设备插件平台指令(iReadIdentityCard)
|
|
86353
|
+
* 返回:{method:'iReadIdentityCard',retVal:0,errMsg:'',idCardInfo:'二代证信息',photoBase64,photoFrontBase64,photoBackBase64}
|
|
86354
|
+
* */
|
|
86355
|
+
static async newIdCardRead() {
|
|
86356
|
+
const readData = await EWindowPassService.read(EWindowPassMethodCode.iReadIdentityCard);
|
|
86357
|
+
console.log('读取二代身份证(新版接口)==>', readData);
|
|
86358
|
+
if (!readData) {
|
|
86359
|
+
throw Error('未匹配可用的E窗通读取设备');
|
|
86360
|
+
}
|
|
86361
|
+
if (readData.retVal !== 0) {
|
|
86362
|
+
throw Error("读取二代身份证失败,返回值:" + readData.retVal + ",错误信息:" + readData.errMsg);
|
|
86363
|
+
}
|
|
86364
|
+
// 各字段:姓名|性别|民族|出生日期|住址|身份证号|签发机关|签发日期|有效期至
|
|
86365
|
+
const idInfoArray = (readData.idCardInfo || '').split('|');
|
|
86366
|
+
const birthday = (idInfoArray[3] || '').replace('-', '').replace('-', '');
|
|
86367
|
+
const IDCardData = {
|
|
86368
|
+
info: {
|
|
86369
|
+
name: idInfoArray[0],
|
|
86370
|
+
sex: idInfoArray[1],
|
|
86371
|
+
birthday,
|
|
86372
|
+
address: idInfoArray[4],
|
|
86373
|
+
cardId: idInfoArray[5],
|
|
86374
|
+
nation: idInfoArray[2],
|
|
86375
|
+
police: idInfoArray[6],
|
|
86376
|
+
validStart: idInfoArray[7],
|
|
86377
|
+
validEnd: idInfoArray[8]
|
|
86378
|
+
},
|
|
86379
|
+
headImage: readData.photoBase64
|
|
86380
|
+
};
|
|
86381
|
+
console.log('读取二代身份证结果==>', IDCardData);
|
|
86382
|
+
return IDCardData;
|
|
86383
|
+
}
|
|
86384
|
+
/**
|
|
86385
|
+
* 人证比对
|
|
86386
|
+
*/
|
|
86387
|
+
static async faceValidateWithIdCardRead() {
|
|
86388
|
+
const readData = await EWindowPassService.read(EWindowPassMethodCode.FaceValidateWithIdCard_Base64);
|
|
86389
|
+
console.log('人证比对==>', readData);
|
|
86390
|
+
if (!readData) {
|
|
86391
|
+
throw Error('未匹配可用的E窗通读取设备');
|
|
86392
|
+
}
|
|
86393
|
+
if (readData.retVal !== 0) {
|
|
86394
|
+
throw Error("人证比对失败,返回值:" + readData.retVal + ",错误信息:" + readData.errMsg);
|
|
86395
|
+
}
|
|
86396
|
+
const idInfo = readData.idInfo.data;
|
|
86397
|
+
const {
|
|
86398
|
+
name,
|
|
86399
|
+
sex,
|
|
86400
|
+
birth,
|
|
86401
|
+
address,
|
|
86402
|
+
idNo,
|
|
86403
|
+
nation
|
|
86404
|
+
} = idInfo;
|
|
86405
|
+
const IDCardData = {
|
|
86406
|
+
idCard: {
|
|
86407
|
+
info: {
|
|
86408
|
+
name,
|
|
86409
|
+
sex,
|
|
86410
|
+
birthday: birth.replace('-', '').replace('-', ''),
|
|
86411
|
+
address,
|
|
86412
|
+
cardId: idNo,
|
|
86413
|
+
nation
|
|
86414
|
+
},
|
|
86415
|
+
headImage: readData.idPhotoBase64
|
|
86416
|
+
},
|
|
86417
|
+
faceimg: readData.scenceBase64
|
|
86418
|
+
};
|
|
86419
|
+
console.log('人证比对结果==>', IDCardData);
|
|
86420
|
+
return IDCardData;
|
|
86421
|
+
}
|
|
86422
|
+
/** 读取社保卡 */
|
|
86423
|
+
static async socialSecurityCardRead() {
|
|
86424
|
+
const readData = await EWindowPassService.read(EWindowPassMethodCode.iReadCardBas);
|
|
86425
|
+
if (!readData) {
|
|
86426
|
+
throw Error('未匹配可用的E窗通读取设备');
|
|
86427
|
+
}
|
|
86428
|
+
if (readData.retVal !== 0) {
|
|
86429
|
+
throw Error("读取社保卡基本信息失败,返回值:" + readData.retVal + ",错误信息:" + readData.outInfo);
|
|
86430
|
+
}
|
|
86431
|
+
// 返回数据:330100|350781196403072943|W57681892|331100D10600000300657BCF88899F8E|张三|3B6D000000815444368660330100286BCF|1.00|2020-08-12|2030-08-12|1|SN00000000|(邮编|身份证号|卡号|社会保障号码|姓名|...不知道是什么信息了)
|
|
86432
|
+
const outInfo = readData.outInfo;
|
|
86433
|
+
const outInfoArray = outInfo.split('|');
|
|
86434
|
+
const cardId = outInfoArray[1];
|
|
86435
|
+
const birthday = IdCardCommonUtils.getBirthdayByIdNumber(cardId).replace('-', '').replace('-', '');
|
|
86436
|
+
const sex = IdCardCommonUtils.getGenderByIdNumber(cardId);
|
|
86437
|
+
const IDCardData = {
|
|
86438
|
+
info: {
|
|
86439
|
+
name: outInfoArray[4],
|
|
86440
|
+
sex,
|
|
86441
|
+
birthday,
|
|
86442
|
+
address: '',
|
|
86443
|
+
cardId
|
|
86444
|
+
},
|
|
86445
|
+
headImage: ''
|
|
86446
|
+
};
|
|
86447
|
+
console.log('读取社保卡==>', readData);
|
|
86448
|
+
return IDCardData;
|
|
86449
|
+
}
|
|
86450
|
+
/** 获取签名-base64 */
|
|
86451
|
+
static async signNameRead() {
|
|
86452
|
+
const readData = await EWindowPassService.read(EWindowPassMethodCode.GetSignName_Base64);
|
|
86453
|
+
if (!readData) {
|
|
86454
|
+
throw Error('未匹配可用的E窗通读取设备');
|
|
86455
|
+
}
|
|
86456
|
+
if (readData.retVal !== 0) {
|
|
86457
|
+
throw Error("读取签名失败,返回值:" + readData.retVal + ",错误信息:" + readData.errMsg);
|
|
86458
|
+
}
|
|
86459
|
+
console.log('获取签名==>', readData);
|
|
86460
|
+
return readData.signPicBase64;
|
|
86461
|
+
}
|
|
86462
|
+
/** 获取指纹*/
|
|
86463
|
+
static async fingerPrintRead() {
|
|
86464
|
+
let timeOver = 30;
|
|
86465
|
+
async function readFingerPrint() {
|
|
86466
|
+
const readData = await EWindowPassService.read(EWindowPassMethodCode.FingerPrint_Base64);
|
|
86467
|
+
if (!readData) {
|
|
86468
|
+
throw Error('未匹配可用的E窗通读取设备');
|
|
86469
|
+
}
|
|
86470
|
+
let list = readData.fingerPrintInfo.split("|");
|
|
86471
|
+
console.log(list);
|
|
86472
|
+
let ret = Number(list[1]);
|
|
86473
|
+
if (ret > 1) {
|
|
86474
|
+
if (timeOver > 0) {
|
|
86475
|
+
timeOver--;
|
|
86476
|
+
return await readFingerPrint();
|
|
86477
|
+
} else {
|
|
86478
|
+
return {
|
|
86479
|
+
status: 'error',
|
|
86480
|
+
data: '已超时,请重新操作,按压指纹'
|
|
86481
|
+
};
|
|
86482
|
+
}
|
|
86483
|
+
} else {
|
|
86484
|
+
return {
|
|
86485
|
+
status: 'success',
|
|
86486
|
+
data: readData.fingerPrintInfo
|
|
86487
|
+
};
|
|
86488
|
+
}
|
|
86489
|
+
}
|
|
86490
|
+
let {
|
|
86491
|
+
status,
|
|
86492
|
+
data
|
|
86493
|
+
} = await readFingerPrint();
|
|
86494
|
+
if (status === 'error') {
|
|
86495
|
+
throw Error(data);
|
|
86496
|
+
} else {
|
|
86497
|
+
let [method, result, quality, image, featureCode] = data.split('|');
|
|
86498
|
+
// getimgae|1|68|......|......
|
|
86499
|
+
// method:方法,result:返回的状态,quality:指纹图片质量,image:图片base64,featureCode:指纹特征码
|
|
86500
|
+
return {
|
|
86501
|
+
method,
|
|
86502
|
+
result,
|
|
86503
|
+
quality,
|
|
86504
|
+
image,
|
|
86505
|
+
featureCode
|
|
86506
|
+
};
|
|
86507
|
+
}
|
|
86508
|
+
}
|
|
86509
|
+
// ==================== 高拍仪(图像设备简洁版) ====================
|
|
86510
|
+
// 协议说明(对照E窗通测试专用.html摄像简洁版章节):
|
|
86511
|
+
// VideoStart:开启预览(cameraNo:1-文档摄像头/主头,2-人像摄像头/副头;isEdgeDetection:0-不裁切,1-自动裁切),
|
|
86512
|
+
// 成功后设备在同一条连接上持续推送VideoStream帧,连接必须保持;
|
|
86513
|
+
// VideoGetImage:拍摄抓图(预览开启后调用,返回imgBase64,预览保持可连续拍摄);
|
|
86514
|
+
// VideoStop:关闭预览(离开页面、切换摄像头/裁剪方式时调用);
|
|
86515
|
+
// 设备为单任务模式:预览期间禁止调用读卡/签名等其他指令,否则驱动会闪退,read()中已做拦截。
|
|
86516
|
+
/**
|
|
86517
|
+
* 建立(或复用)摄像头WebSocket长连接
|
|
86518
|
+
*/
|
|
86519
|
+
static connectCamera() {
|
|
86520
|
+
if (!this.cameraConnectPromise) {
|
|
86521
|
+
this.cameraConnectPromise = new Promise((resolve, reject) => {
|
|
86522
|
+
const ws = new WebSocket(this.iReadCardBasWebSocketUrl);
|
|
86523
|
+
this.cameraWs = ws;
|
|
86524
|
+
ws.onopen = () => resolve(ws);
|
|
86525
|
+
ws.onmessage = event => this.handleCameraMessage(event);
|
|
86526
|
+
ws.onclose = () => {
|
|
86527
|
+
this.cameraWs = null;
|
|
86528
|
+
this.cameraConnectPromise = null;
|
|
86529
|
+
this.previewActive = false;
|
|
86530
|
+
this.failCameraPending(new Error('摄像头连接已关闭'));
|
|
86531
|
+
};
|
|
86532
|
+
ws.onerror = () => {
|
|
86533
|
+
this.cameraWs = null;
|
|
86534
|
+
this.cameraConnectPromise = null;
|
|
86535
|
+
this.previewActive = false;
|
|
86536
|
+
this.failCameraPending(new Error('摄像头连接异常'));
|
|
86537
|
+
reject(new Error('统一插件平台E窗通摄像头功能加载失败'));
|
|
86538
|
+
};
|
|
86539
|
+
});
|
|
86540
|
+
}
|
|
86541
|
+
return this.cameraConnectPromise;
|
|
86542
|
+
}
|
|
86543
|
+
/**
|
|
86544
|
+
* 处理摄像头连接返回消息
|
|
86545
|
+
* VideoStream(预览帧)为设备异步推送,直接交给预览回调,不占用请求应答通道;
|
|
86546
|
+
* 其余消息视为上一次请求的应答(拍摄/旋转的应答会插在帧流中间到达,按method分流)。
|
|
86547
|
+
*/
|
|
86548
|
+
static handleCameraMessage(event) {
|
|
86549
|
+
let data;
|
|
86550
|
+
try {
|
|
86551
|
+
data = JSON.parse(event.data);
|
|
86552
|
+
} catch (e) {
|
|
86553
|
+
console.warn('收到无法解析的摄像头消息:', event.data);
|
|
86554
|
+
return;
|
|
86555
|
+
}
|
|
86556
|
+
if (data.method === EWindowPassMethodCode.VideoStream) {
|
|
86557
|
+
if (this.streamHandler && data.imgBase64) {
|
|
86558
|
+
this.streamHandler(data.imgBase64);
|
|
86559
|
+
}
|
|
86560
|
+
return;
|
|
86561
|
+
}
|
|
86562
|
+
if (this.cameraPending) {
|
|
86563
|
+
const pending = this.cameraPending;
|
|
86564
|
+
this.cameraPending = null;
|
|
86565
|
+
clearTimeout(pending.timer);
|
|
86566
|
+
pending.resolve(data);
|
|
86567
|
+
} else {
|
|
86568
|
+
console.warn('收到未预期的摄像头返回:', data);
|
|
86569
|
+
}
|
|
86570
|
+
}
|
|
86571
|
+
/** 使当前摄像头待响应的请求失败(连接断开/异常时兜底) */
|
|
86572
|
+
static failCameraPending(err) {
|
|
86573
|
+
if (this.cameraPending) {
|
|
86574
|
+
const pending = this.cameraPending;
|
|
86575
|
+
this.cameraPending = null;
|
|
86576
|
+
clearTimeout(pending.timer);
|
|
86577
|
+
pending.reject(err);
|
|
86578
|
+
}
|
|
86579
|
+
}
|
|
86580
|
+
/**
|
|
86581
|
+
* 摄像头核心请求方法:建立连接 -> 发送JSON指令 -> 等待返回(预览期间连接保持不断开)
|
|
86582
|
+
*/
|
|
86583
|
+
static cameraRequest(method, args = {}, timeout = 30 * 1000) {
|
|
86584
|
+
if (this.cameraPending) {
|
|
86585
|
+
return Promise.reject(new Error('上一次摄像头请求尚未返回,请勿并发调用'));
|
|
86586
|
+
}
|
|
86587
|
+
return this.connectCamera().then(ws => {
|
|
86588
|
+
return new Promise((resolve, reject) => {
|
|
86589
|
+
const timer = setTimeout(() => {
|
|
86590
|
+
this.cameraPending = null;
|
|
86591
|
+
reject(new Error('调用' + (EWindowPassMethodDesc[method] || method) + '超时(' + timeout / 1000 + '秒)'));
|
|
86592
|
+
}, timeout);
|
|
86593
|
+
this.cameraPending = {
|
|
86594
|
+
resolve,
|
|
86595
|
+
reject,
|
|
86596
|
+
timer
|
|
86597
|
+
};
|
|
86598
|
+
const jsonString = JSON.stringify({
|
|
86599
|
+
method,
|
|
86600
|
+
args
|
|
86601
|
+
});
|
|
86602
|
+
console.log((EWindowPassMethodDesc[method] || method) + '请求:', jsonString);
|
|
86603
|
+
ws.send(jsonString);
|
|
86604
|
+
});
|
|
86605
|
+
});
|
|
86606
|
+
}
|
|
86607
|
+
/**
|
|
86608
|
+
* 开启摄像头预览(主头/副头)
|
|
86609
|
+
* @param type 'main'-文档摄像头(主头);'vice'-人像摄像头(副头)
|
|
86610
|
+
* @param isEdgeDetection 裁剪方式:0-不裁切;1-自动裁切(开启预览时设定,切换裁剪方式需重新开启预览)
|
|
86611
|
+
*/
|
|
86612
|
+
static async turnOnTheCamera(type = 'main', isEdgeDetection = 0) {
|
|
86613
|
+
// 切换摄像头/裁剪方式:先无条件发送VideoStop关闭当前预览(避免设备端残留预览导致切换失败),失败时忽略继续
|
|
86614
|
+
try {
|
|
86615
|
+
await this.videoStop();
|
|
86616
|
+
} catch (e) {
|
|
86617
|
+
// 未在预览中或关闭失败时忽略,继续重新开启
|
|
86618
|
+
}
|
|
86619
|
+
const cameraNo = type === 'vice' ? 2 : 1;
|
|
86620
|
+
await this.videoStart(cameraNo, isEdgeDetection);
|
|
86621
|
+
}
|
|
86622
|
+
/**
|
|
86623
|
+
* 开启视频预览(成功后设备在同一条连接上持续推送VideoStream帧,需先订阅onVideoStream)
|
|
86624
|
+
* @param cameraNo 摄像头编号:1-文档摄像头;2-人像摄像头
|
|
86625
|
+
* @param isEdgeDetection 裁剪方式:0-不裁切;1-自动裁切
|
|
86626
|
+
*/
|
|
86627
|
+
static async videoStart(cameraNo = 1, isEdgeDetection = 0) {
|
|
86628
|
+
const readData = await EWindowPassService.cameraRequest(EWindowPassMethodCode.VideoStart, {
|
|
86629
|
+
cameraNo,
|
|
86630
|
+
isEdgeDetection
|
|
86631
|
+
});
|
|
86632
|
+
console.log('开启视频预览==>', readData);
|
|
86633
|
+
if (!readData) {
|
|
86634
|
+
throw Error('未匹配可用的E窗通读取设备');
|
|
86635
|
+
}
|
|
86636
|
+
if (readData.retVal !== 0) {
|
|
86637
|
+
throw Error("开启视频预览失败,返回值:" + readData.retVal + ",错误信息:" + readData.errMsg);
|
|
86638
|
+
}
|
|
86639
|
+
this.previewActive = true;
|
|
86640
|
+
}
|
|
86641
|
+
/**
|
|
86642
|
+
* 订阅实时视频流(开启预览后设备持续推送帧数据)
|
|
86643
|
+
* @param handler 回调,参数为每帧图片Base64数据(渲染时拼接 data:image/jpeg;base64,)
|
|
86644
|
+
*/
|
|
86645
|
+
static onVideoStream(handler) {
|
|
86646
|
+
this.streamHandler = handler;
|
|
86647
|
+
}
|
|
86648
|
+
/** 取消订阅实时视频流 */
|
|
86649
|
+
static offVideoStream() {
|
|
86650
|
+
this.streamHandler = null;
|
|
86651
|
+
}
|
|
86652
|
+
/**
|
|
86653
|
+
* 拍照(预览中抓取当前画面,返回图片Base64数据;预览保持不断开,可连续拍摄)
|
|
86654
|
+
* @param type 'main'-文档摄像头;'vice'-人像摄像头(拍照作用于当前预览画面,仅保持与组件调用习惯一致)
|
|
86655
|
+
*/
|
|
86656
|
+
static async scanByCamera(type = 'main') {
|
|
86657
|
+
return await this.videoGetImage();
|
|
86658
|
+
}
|
|
86659
|
+
/**
|
|
86660
|
+
* 拍摄抓图(须在预览开启后调用)
|
|
86661
|
+
* @param imagePath 设备端保存路径(如 D:\test.png)
|
|
86662
|
+
* @returns 图片Base64数据
|
|
86663
|
+
*/
|
|
86664
|
+
static async videoGetImage(imagePath = 'D:\\test.png') {
|
|
86665
|
+
if (!this.previewActive) {
|
|
86666
|
+
throw Error('请先开启摄像头预览');
|
|
86667
|
+
}
|
|
86668
|
+
const readData = await EWindowPassService.cameraRequest(EWindowPassMethodCode.VideoGetImage, {
|
|
86669
|
+
imagePath
|
|
86670
|
+
});
|
|
86671
|
+
console.log('拍摄抓图==>', readData);
|
|
86672
|
+
if (!readData) {
|
|
86673
|
+
throw Error('未匹配可用的E窗通读取设备');
|
|
86674
|
+
}
|
|
86675
|
+
if (readData.retVal !== 0) {
|
|
86676
|
+
throw Error("拍摄抓图失败,返回值:" + readData.retVal + ",错误信息:" + readData.errMsg);
|
|
86677
|
+
}
|
|
86678
|
+
return readData.imgBase64;
|
|
86679
|
+
}
|
|
86680
|
+
/**
|
|
86681
|
+
* 关闭视频预览(停止帧推送;切换摄像头/裁剪方式时由turnOnTheCamera先行调用)
|
|
86682
|
+
* 无论当前是否处于预览状态都会发送指令,设备未在预览时会返回失败(retVal!==0)
|
|
86683
|
+
*/
|
|
86684
|
+
static async videoStop() {
|
|
86685
|
+
const readData = await EWindowPassService.cameraRequest(EWindowPassMethodCode.VideoStop);
|
|
86686
|
+
console.log('关闭视频预览==>', readData);
|
|
86687
|
+
if (!readData) {
|
|
86688
|
+
throw Error('未匹配可用的E窗通读取设备');
|
|
86689
|
+
}
|
|
86690
|
+
if (readData.retVal !== 0) {
|
|
86691
|
+
throw Error("关闭视频预览失败,返回值:" + readData.retVal + ",错误信息:" + readData.errMsg);
|
|
86692
|
+
}
|
|
86693
|
+
this.previewActive = false;
|
|
86694
|
+
}
|
|
86695
|
+
/**
|
|
86696
|
+
* 关闭摄像头(离开页面/点关闭按钮时调用:关闭预览、取消帧订阅并断开摄像头连接)
|
|
86697
|
+
*/
|
|
86698
|
+
static async stopCamera() {
|
|
86699
|
+
if (this.cameraWs && this.previewActive) {
|
|
86700
|
+
try {
|
|
86701
|
+
await this.videoStop();
|
|
86702
|
+
} catch (e) {
|
|
86703
|
+
// 忽略关闭预览异常,继续清理连接
|
|
86704
|
+
}
|
|
86705
|
+
}
|
|
86706
|
+
this.offVideoStream();
|
|
86707
|
+
if (this.cameraWs) {
|
|
86708
|
+
try {
|
|
86709
|
+
this.cameraWs.close();
|
|
86710
|
+
} catch (e) {
|
|
86711
|
+
// 忽略关闭异常
|
|
86712
|
+
}
|
|
86713
|
+
this.cameraWs = null;
|
|
86714
|
+
}
|
|
86715
|
+
this.cameraConnectPromise = null;
|
|
86716
|
+
this.previewActive = false;
|
|
86717
|
+
}
|
|
86718
|
+
/** 旋转图像(旋转当前预览画面) */
|
|
86719
|
+
static async videoRotate() {
|
|
86720
|
+
const readData = await EWindowPassService.cameraRequest(EWindowPassMethodCode.VideoRotate);
|
|
86721
|
+
console.log('旋转图像==>', readData);
|
|
86722
|
+
if (!readData) {
|
|
86723
|
+
throw Error('未匹配可用的E窗通读取设备');
|
|
86724
|
+
}
|
|
86725
|
+
if (readData.retVal !== 0) {
|
|
86726
|
+
throw Error("旋转图像失败,返回值:" + readData.retVal + ",错误信息:" + readData.errMsg);
|
|
86727
|
+
}
|
|
86728
|
+
}
|
|
86729
|
+
}
|
|
86730
|
+
_defineProperty(EWindowPassService, "iReadCardBasWebSocketUrl", 'ws://127.0.0.1:5847');
|
|
86731
|
+
_defineProperty(EWindowPassService, "fingerPrintBasWebSocketUrl", 'ws://127.0.0.1:9000');
|
|
86732
|
+
_defineProperty(EWindowPassService, "ws", void 0);
|
|
86733
|
+
_defineProperty(EWindowPassService, "requestStore", []);
|
|
86734
|
+
_defineProperty(EWindowPassService, "cameraWs", null);
|
|
86735
|
+
_defineProperty(EWindowPassService, "cameraConnectPromise", null);
|
|
86736
|
+
_defineProperty(EWindowPassService, "cameraPending", null);
|
|
86737
|
+
_defineProperty(EWindowPassService, "streamHandler", null);
|
|
86738
|
+
_defineProperty(EWindowPassService, "previewActive", false);
|
|
86098
86739
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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&
|
|
86099
86740
|
|
|
86100
86741
|
|
|
@@ -86106,12 +86747,13 @@ _defineProperty(ViisanPluginService, "previewFrameCallback", null);
|
|
|
86106
86747
|
|
|
86107
86748
|
|
|
86108
86749
|
|
|
86750
|
+
|
|
86109
86751
|
const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
86110
86752
|
/* harmony default export */ var scanner_camera_componentvue_type_script_lang_js_ = ({
|
|
86111
86753
|
name: "scanner-camera-component",
|
|
86112
86754
|
props: {
|
|
86113
86755
|
/**
|
|
86114
|
-
* 高拍仪型号 0-捷宇;3:方正高影仪;4:紫图速拍仪;5-良田;6-国产一体机;7-赞采;8-汉王高拍仪;9-本机摄像头拍照;10
|
|
86756
|
+
* 高拍仪型号 0-捷宇;3:方正高影仪;4:紫图速拍仪;5-良田;6-国产一体机;7-赞采;8-汉王高拍仪;9-本机摄像头拍照;10-维山高拍仪;11-沃斯德人证交互终端
|
|
86115
86757
|
*/
|
|
86116
86758
|
machineType: {
|
|
86117
86759
|
//
|
|
@@ -86223,6 +86865,8 @@ const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
|
86223
86865
|
}
|
|
86224
86866
|
// 清理维山高拍仪预览轮询
|
|
86225
86867
|
this.stopViisanPreview();
|
|
86868
|
+
// 清理沃斯德人证交互终端预览
|
|
86869
|
+
this.stopEwpPreview();
|
|
86226
86870
|
},
|
|
86227
86871
|
methods: {
|
|
86228
86872
|
// 浏览器标签页关闭
|
|
@@ -86252,6 +86896,10 @@ const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
|
86252
86896
|
this.stopViisanPreview();
|
|
86253
86897
|
await ViisanPluginService.stopCamera(this.camera === 0);
|
|
86254
86898
|
break;
|
|
86899
|
+
case 11:
|
|
86900
|
+
// 沃斯德人证交互终端
|
|
86901
|
+
await this.stopEwpPreview();
|
|
86902
|
+
break;
|
|
86255
86903
|
}
|
|
86256
86904
|
},
|
|
86257
86905
|
/**
|
|
@@ -86333,6 +86981,18 @@ const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
|
86333
86981
|
}
|
|
86334
86982
|
break;
|
|
86335
86983
|
}
|
|
86984
|
+
case 11:
|
|
86985
|
+
{
|
|
86986
|
+
// 沃斯德人证交互终端(拍照作用于当前预览画面,预览保持可连续拍)
|
|
86987
|
+
let type = this.camera === 0 ? 'main' : 'vice';
|
|
86988
|
+
let res = await EWindowPassService.scanByCamera(type);
|
|
86989
|
+
if (res) {
|
|
86990
|
+
this.$emit('send-scanner-result', `${BEGIN_DATA}${res}`);
|
|
86991
|
+
} else {
|
|
86992
|
+
this.$message.error('拍照出错,请检查设备是否连接成功');
|
|
86993
|
+
}
|
|
86994
|
+
break;
|
|
86995
|
+
}
|
|
86336
86996
|
}
|
|
86337
86997
|
},
|
|
86338
86998
|
/**
|
|
@@ -86386,6 +87046,10 @@ const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
|
86386
87046
|
// 开启视频预览帧轮询(每 300ms 获取一帧)
|
|
86387
87047
|
this.startViisanPreview();
|
|
86388
87048
|
break;
|
|
87049
|
+
case 11:
|
|
87050
|
+
// 沃斯德人证交互终端(主头-文档摄像头)
|
|
87051
|
+
await this.startEwpPreview('main');
|
|
87052
|
+
break;
|
|
86389
87053
|
}
|
|
86390
87054
|
},
|
|
86391
87055
|
async getEloamFrame() {
|
|
@@ -86416,6 +87080,23 @@ const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
|
86416
87080
|
ViisanPluginService.setPreviewFrameCallback(null);
|
|
86417
87081
|
ViisanPluginService.stopVideoPreview();
|
|
86418
87082
|
},
|
|
87083
|
+
/**
|
|
87084
|
+
* 沃斯德人证交互终端 - 开启视频预览
|
|
87085
|
+
* 先设置预览帧回调再开启预览(已在预览中服务内部会自动先关闭再开启,支持切换主/副头)
|
|
87086
|
+
*/
|
|
87087
|
+
startEwpPreview(type) {
|
|
87088
|
+
EWindowPassService.onVideoStream(imgBase64 => {
|
|
87089
|
+
this.scannerVideoSrc = `${BEGIN_DATA}${imgBase64}`;
|
|
87090
|
+
});
|
|
87091
|
+
return EWindowPassService.turnOnTheCamera(type);
|
|
87092
|
+
},
|
|
87093
|
+
/**
|
|
87094
|
+
* 沃斯德人证交互终端 - 关闭视频预览并断开连接
|
|
87095
|
+
*/
|
|
87096
|
+
stopEwpPreview() {
|
|
87097
|
+
EWindowPassService.offVideoStream();
|
|
87098
|
+
return EWindowPassService.stopCamera();
|
|
87099
|
+
},
|
|
86419
87100
|
/**
|
|
86420
87101
|
* 启动电脑默认摄像头
|
|
86421
87102
|
* @param type 'main' 主摄像头, 'vice' 副摄像头
|
|
@@ -86520,6 +87201,10 @@ const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
|
86520
87201
|
await ViisanPluginService.turnOnTheCamera('vice');
|
|
86521
87202
|
this.startViisanPreview();
|
|
86522
87203
|
break;
|
|
87204
|
+
case 11:
|
|
87205
|
+
// 沃斯德人证交互终端(副头-人像摄像头,切换前先VideoStop关闭当前预览再开启)
|
|
87206
|
+
await this.startEwpPreview('vice');
|
|
87207
|
+
break;
|
|
86523
87208
|
}
|
|
86524
87209
|
},
|
|
86525
87210
|
async takePictureMerge(type) {
|
|
@@ -86836,10 +87521,10 @@ const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
|
86836
87521
|
});
|
|
86837
87522
|
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=script&lang=js&
|
|
86838
87523
|
/* harmony default export */ var component_scanner_camera_componentvue_type_script_lang_js_ = (scanner_camera_componentvue_type_script_lang_js_);
|
|
86839
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.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-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.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=
|
|
87524
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.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-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.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&
|
|
86840
87525
|
// extracted by mini-css-extract-plugin
|
|
86841
87526
|
|
|
86842
|
-
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=style&index=0&id=
|
|
87527
|
+
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=style&index=0&id=3fc2d979&prod&lang=scss&
|
|
86843
87528
|
|
|
86844
87529
|
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue
|
|
86845
87530
|
|
|
@@ -86852,8 +87537,8 @@ const BEGIN_DATA = 'data:image/jpg;base64,';
|
|
|
86852
87537
|
|
|
86853
87538
|
var scanner_camera_component_component = normalizeComponent(
|
|
86854
87539
|
component_scanner_camera_componentvue_type_script_lang_js_,
|
|
86855
|
-
|
|
86856
|
-
|
|
87540
|
+
scanner_camera_componentvue_type_template_id_3fc2d979_render,
|
|
87541
|
+
scanner_camera_componentvue_type_template_id_3fc2d979_staticRenderFns,
|
|
86857
87542
|
false,
|
|
86858
87543
|
null,
|
|
86859
87544
|
null,
|
|
@@ -87102,186 +87787,19 @@ var PluginApiType;
|
|
|
87102
87787
|
})(PluginApiType || (PluginApiType = {}));
|
|
87103
87788
|
class IdCardReadService {
|
|
87104
87789
|
// 精伦身份证 JLSFZManage
|
|
87105
|
-
// 之前 SFZManage
|
|
87106
|
-
|
|
87107
|
-
static startConnect(type = PluginApiType.idcard) {
|
|
87108
|
-
if (this.ws && this.ws.readyState === WebSocket.CONNECTING) {
|
|
87109
|
-
return this;
|
|
87110
|
-
}
|
|
87111
|
-
let webSocketUrl = this.idcardWebSocketUrl;
|
|
87112
|
-
switch (type) {
|
|
87113
|
-
case PluginApiType.idcard:
|
|
87114
|
-
webSocketUrl = this.idcardWebSocketUrl;
|
|
87115
|
-
break;
|
|
87116
|
-
case PluginApiType.jlsfz:
|
|
87117
|
-
webSocketUrl = this.jlsfzWebSocketUrl;
|
|
87118
|
-
}
|
|
87119
|
-
const ws = new WebSocket(webSocketUrl);
|
|
87120
|
-
let resolved;
|
|
87121
|
-
const onConnect = new Promise(resolve => {
|
|
87122
|
-
resolved = resolve;
|
|
87123
|
-
});
|
|
87124
|
-
ws.onopen = () => {
|
|
87125
|
-
resolved(true);
|
|
87126
|
-
};
|
|
87127
|
-
ws.onmessage = event => this.handleMessage(event);
|
|
87128
|
-
ws.onclose = () => this.handleClose();
|
|
87129
|
-
ws.onerror = () => this.handleError();
|
|
87130
|
-
this.ws = ws;
|
|
87131
|
-
return onConnect;
|
|
87132
|
-
}
|
|
87133
|
-
static handleError() {
|
|
87134
|
-
for (const type in this.requestStore) {
|
|
87135
|
-
this.requestStore.forEach(({
|
|
87136
|
-
reject
|
|
87137
|
-
}) => {
|
|
87138
|
-
reject('handleError');
|
|
87139
|
-
});
|
|
87140
|
-
}
|
|
87141
|
-
throw Error('统一插件平台读取身份证功能加载失败');
|
|
87142
|
-
}
|
|
87143
|
-
static handleClose() {
|
|
87144
|
-
for (const type in this.requestStore) {
|
|
87145
|
-
this.requestStore.forEach(({
|
|
87146
|
-
reject
|
|
87147
|
-
}) => {
|
|
87148
|
-
reject('close');
|
|
87149
|
-
});
|
|
87150
|
-
}
|
|
87151
|
-
}
|
|
87152
|
-
static handleMessage(msg) {
|
|
87153
|
-
let data = '';
|
|
87154
|
-
try {
|
|
87155
|
-
data = JSON.parse(msg.data);
|
|
87156
|
-
} catch (e) {
|
|
87157
|
-
data = '';
|
|
87158
|
-
}
|
|
87159
|
-
this.requestStore.forEach(({
|
|
87160
|
-
resolve
|
|
87161
|
-
}) => {
|
|
87162
|
-
resolve(data);
|
|
87163
|
-
});
|
|
87164
|
-
this.requestStore = [];
|
|
87165
|
-
this.ws.close();
|
|
87166
|
-
}
|
|
87167
|
-
static async read(type = PluginApiType.idcard) {
|
|
87168
|
-
await this.startConnect(type);
|
|
87169
|
-
if (this.ws.readyState === 1) {
|
|
87170
|
-
this.ws.send(type);
|
|
87171
|
-
return new Promise((resolve, reject) => {
|
|
87172
|
-
if (!this.requestStore) {
|
|
87173
|
-
this.requestStore = [];
|
|
87174
|
-
}
|
|
87175
|
-
this.requestStore.push({
|
|
87176
|
-
resolve,
|
|
87177
|
-
reject
|
|
87178
|
-
});
|
|
87179
|
-
});
|
|
87180
|
-
} else {
|
|
87181
|
-
throw Error('统一插件平台读取身份证未准备完成');
|
|
87182
|
-
}
|
|
87183
|
-
}
|
|
87184
|
-
static async idCardCommonRead() {
|
|
87185
|
-
let idcardInfo;
|
|
87186
|
-
// 顺序不要调整,先连接精伦读卡器,最后连接普通读卡器(也就是PluginApiType.idcard,因为该项读卡失败不会返回消息)
|
|
87187
|
-
for (const t of [PluginApiType.jlsfz, PluginApiType.idcard]) {
|
|
87188
|
-
const readData = await IdCardReadService.read(t);
|
|
87189
|
-
if (readData && readData.hasOwnProperty('info')) {
|
|
87190
|
-
idcardInfo = readData;
|
|
87191
|
-
break;
|
|
87192
|
-
}
|
|
87193
|
-
}
|
|
87194
|
-
if (idcardInfo) {
|
|
87195
|
-
return idcardInfo;
|
|
87196
|
-
} else {
|
|
87197
|
-
throw Error('统一插件平台未匹配可用的读卡器');
|
|
87198
|
-
}
|
|
87199
|
-
}
|
|
87200
|
-
}
|
|
87201
|
-
_defineProperty(IdCardReadService, "idcardWebSocketUrl", 'ws://127.0.0.1:8152/SFZManage');
|
|
87202
|
-
_defineProperty(IdCardReadService, "jlsfzWebSocketUrl", 'ws://127.0.0.1:8152/JLSFZManage');
|
|
87203
|
-
_defineProperty(IdCardReadService, "ws", void 0);
|
|
87204
|
-
_defineProperty(IdCardReadService, "requestStore", []);
|
|
87205
|
-
class CameraReadService {
|
|
87206
|
-
static startConnect() {
|
|
87207
|
-
if (this.ws && this.ws.readyState === WebSocket.CONNECTING) {
|
|
87208
|
-
return this;
|
|
87209
|
-
}
|
|
87210
|
-
let webSocketUrl = this.cameraWebSocketUrl;
|
|
87211
|
-
const ws = new WebSocket(webSocketUrl);
|
|
87212
|
-
let resolved;
|
|
87213
|
-
const onConnect = new Promise(resolve => {
|
|
87214
|
-
resolved = resolve;
|
|
87215
|
-
});
|
|
87216
|
-
ws.onopen = () => {
|
|
87217
|
-
resolved(true);
|
|
87218
|
-
};
|
|
87219
|
-
ws.onmessage = event => this.handleMessage(event);
|
|
87220
|
-
ws.onclose = () => this.handleClose();
|
|
87221
|
-
ws.onerror = () => this.handleError();
|
|
87222
|
-
this.ws = ws;
|
|
87223
|
-
return onConnect;
|
|
87224
|
-
}
|
|
87225
|
-
static handleError() {
|
|
87226
|
-
for (const type in this.requestStore) {
|
|
87227
|
-
this.requestStore.forEach(({
|
|
87228
|
-
reject
|
|
87229
|
-
}) => {
|
|
87230
|
-
reject('handleError');
|
|
87231
|
-
});
|
|
87232
|
-
}
|
|
87233
|
-
throw Error('统一插件平台读取拍照功能加载失败');
|
|
87234
|
-
}
|
|
87235
|
-
static handleClose() {
|
|
87236
|
-
for (const type in this.requestStore) {
|
|
87237
|
-
this.requestStore.forEach(({
|
|
87238
|
-
reject
|
|
87239
|
-
}) => {
|
|
87240
|
-
reject('close');
|
|
87241
|
-
});
|
|
87242
|
-
}
|
|
87243
|
-
}
|
|
87244
|
-
static handleMessage(msg) {
|
|
87245
|
-
let data = msg.data;
|
|
87246
|
-
this.requestStore.forEach(({
|
|
87247
|
-
resolve
|
|
87248
|
-
}) => {
|
|
87249
|
-
resolve(data);
|
|
87250
|
-
});
|
|
87251
|
-
this.requestStore = [];
|
|
87252
|
-
this.ws.close();
|
|
87253
|
-
// this.ws = null;
|
|
87254
|
-
}
|
|
87255
|
-
|
|
87256
|
-
static async read() {
|
|
87257
|
-
await this.startConnect();
|
|
87258
|
-
if (this.ws.readyState === 1) {
|
|
87259
|
-
this.ws.send(PluginApiType.camera);
|
|
87260
|
-
return new Promise((resolve, reject) => {
|
|
87261
|
-
if (!this.requestStore) {
|
|
87262
|
-
this.requestStore = [];
|
|
87263
|
-
}
|
|
87264
|
-
this.requestStore.push({
|
|
87265
|
-
resolve,
|
|
87266
|
-
reject
|
|
87267
|
-
});
|
|
87268
|
-
});
|
|
87269
|
-
} else {
|
|
87270
|
-
throw Error('统一插件平台读取拍照未准备完成');
|
|
87271
|
-
}
|
|
87272
|
-
}
|
|
87273
|
-
}
|
|
87274
|
-
_defineProperty(CameraReadService, "cameraWebSocketUrl", 'ws://127.0.0.1:8152/SXTManage');
|
|
87275
|
-
_defineProperty(CameraReadService, "ws", void 0);
|
|
87276
|
-
_defineProperty(CameraReadService, "requestStore", []);
|
|
87277
|
-
class SignReadService {
|
|
87278
|
-
static startConnect(signMode) {
|
|
87790
|
+
// 之前 SFZManage
|
|
87791
|
+
|
|
87792
|
+
static startConnect(type = PluginApiType.idcard) {
|
|
87279
87793
|
if (this.ws && this.ws.readyState === WebSocket.CONNECTING) {
|
|
87280
87794
|
return this;
|
|
87281
87795
|
}
|
|
87282
|
-
let webSocketUrl = this.
|
|
87283
|
-
|
|
87284
|
-
|
|
87796
|
+
let webSocketUrl = this.idcardWebSocketUrl;
|
|
87797
|
+
switch (type) {
|
|
87798
|
+
case PluginApiType.idcard:
|
|
87799
|
+
webSocketUrl = this.idcardWebSocketUrl;
|
|
87800
|
+
break;
|
|
87801
|
+
case PluginApiType.jlsfz:
|
|
87802
|
+
webSocketUrl = this.jlsfzWebSocketUrl;
|
|
87285
87803
|
}
|
|
87286
87804
|
const ws = new WebSocket(webSocketUrl);
|
|
87287
87805
|
let resolved;
|
|
@@ -87305,7 +87823,7 @@ class SignReadService {
|
|
|
87305
87823
|
reject('handleError');
|
|
87306
87824
|
});
|
|
87307
87825
|
}
|
|
87308
|
-
throw Error('
|
|
87826
|
+
throw Error('统一插件平台读取身份证功能加载失败');
|
|
87309
87827
|
}
|
|
87310
87828
|
static handleClose() {
|
|
87311
87829
|
for (const type in this.requestStore) {
|
|
@@ -87317,7 +87835,12 @@ class SignReadService {
|
|
|
87317
87835
|
}
|
|
87318
87836
|
}
|
|
87319
87837
|
static handleMessage(msg) {
|
|
87320
|
-
let data =
|
|
87838
|
+
let data = '';
|
|
87839
|
+
try {
|
|
87840
|
+
data = JSON.parse(msg.data);
|
|
87841
|
+
} catch (e) {
|
|
87842
|
+
data = '';
|
|
87843
|
+
}
|
|
87321
87844
|
this.requestStore.forEach(({
|
|
87322
87845
|
resolve
|
|
87323
87846
|
}) => {
|
|
@@ -87326,11 +87849,10 @@ class SignReadService {
|
|
|
87326
87849
|
this.requestStore = [];
|
|
87327
87850
|
this.ws.close();
|
|
87328
87851
|
}
|
|
87329
|
-
static async read(
|
|
87330
|
-
await this.startConnect(
|
|
87852
|
+
static async read(type = PluginApiType.idcard) {
|
|
87853
|
+
await this.startConnect(type);
|
|
87331
87854
|
if (this.ws.readyState === 1) {
|
|
87332
|
-
|
|
87333
|
-
this.ws.send(signMode);
|
|
87855
|
+
this.ws.send(type);
|
|
87334
87856
|
return new Promise((resolve, reject) => {
|
|
87335
87857
|
if (!this.requestStore) {
|
|
87336
87858
|
this.requestStore = [];
|
|
@@ -87341,57 +87863,36 @@ class SignReadService {
|
|
|
87341
87863
|
});
|
|
87342
87864
|
});
|
|
87343
87865
|
} else {
|
|
87344
|
-
throw Error('
|
|
87866
|
+
throw Error('统一插件平台读取身份证未准备完成');
|
|
87867
|
+
}
|
|
87868
|
+
}
|
|
87869
|
+
static async idCardCommonRead() {
|
|
87870
|
+
let idcardInfo;
|
|
87871
|
+
// 顺序不要调整,先连接精伦读卡器,最后连接普通读卡器(也就是PluginApiType.idcard,因为该项读卡失败不会返回消息)
|
|
87872
|
+
for (const t of [PluginApiType.jlsfz, PluginApiType.idcard]) {
|
|
87873
|
+
const readData = await IdCardReadService.read(t);
|
|
87874
|
+
if (readData && readData.hasOwnProperty('info')) {
|
|
87875
|
+
idcardInfo = readData;
|
|
87876
|
+
break;
|
|
87877
|
+
}
|
|
87878
|
+
}
|
|
87879
|
+
if (idcardInfo) {
|
|
87880
|
+
return idcardInfo;
|
|
87881
|
+
} else {
|
|
87882
|
+
throw Error('统一插件平台未匹配可用的读卡器');
|
|
87345
87883
|
}
|
|
87346
87884
|
}
|
|
87347
87885
|
}
|
|
87348
|
-
_defineProperty(
|
|
87349
|
-
_defineProperty(
|
|
87350
|
-
_defineProperty(
|
|
87351
|
-
_defineProperty(
|
|
87352
|
-
|
|
87353
|
-
|
|
87354
|
-
|
|
87355
|
-
/**
|
|
87356
|
-
* 沃斯德人证交互终端
|
|
87357
|
-
* E窗通WEBSOCKET服务
|
|
87358
|
-
*
|
|
87359
|
-
* */
|
|
87360
|
-
|
|
87361
|
-
var EWindowPassMethodCode;
|
|
87362
|
-
(function (EWindowPassMethodCode) {
|
|
87363
|
-
/** 读取社保卡 */
|
|
87364
|
-
EWindowPassMethodCode["iReadCardBas"] = "iReadCardBas";
|
|
87365
|
-
/** 获取签名*/
|
|
87366
|
-
EWindowPassMethodCode["GetSignName_Base64"] = "GetSignName_Base64";
|
|
87367
|
-
/** 读取二代身份证 */
|
|
87368
|
-
EWindowPassMethodCode["ReadIDCard_Base64"] = "ReadIDCard_Base64";
|
|
87369
|
-
/** 人证比对 */
|
|
87370
|
-
EWindowPassMethodCode["FaceValidateWithIdCard_Base64"] = "FaceValidateWithIdCard_Base64";
|
|
87371
|
-
/** 获取指纹 */
|
|
87372
|
-
EWindowPassMethodCode["FingerPrint_Base64"] = "FingerPrint_Base64";
|
|
87373
|
-
})(EWindowPassMethodCode || (EWindowPassMethodCode = {}));
|
|
87374
|
-
const EWindowPassMethodDesc = {
|
|
87375
|
-
[EWindowPassMethodCode.iReadCardBas]: '读取社保卡',
|
|
87376
|
-
[EWindowPassMethodCode.GetSignName_Base64]: '获取签名',
|
|
87377
|
-
[EWindowPassMethodCode.ReadIDCard_Base64]: '读取二代身份证',
|
|
87378
|
-
[EWindowPassMethodCode.FaceValidateWithIdCard_Base64]: '人证比对',
|
|
87379
|
-
[EWindowPassMethodCode.FingerPrint_Base64]: '获取指纹'
|
|
87380
|
-
};
|
|
87381
|
-
class EWindowPassService {
|
|
87382
|
-
static startConnect(method) {
|
|
87886
|
+
_defineProperty(IdCardReadService, "idcardWebSocketUrl", 'ws://127.0.0.1:8152/SFZManage');
|
|
87887
|
+
_defineProperty(IdCardReadService, "jlsfzWebSocketUrl", 'ws://127.0.0.1:8152/JLSFZManage');
|
|
87888
|
+
_defineProperty(IdCardReadService, "ws", void 0);
|
|
87889
|
+
_defineProperty(IdCardReadService, "requestStore", []);
|
|
87890
|
+
class CameraReadService {
|
|
87891
|
+
static startConnect() {
|
|
87383
87892
|
if (this.ws && this.ws.readyState === WebSocket.CONNECTING) {
|
|
87384
87893
|
return this;
|
|
87385
87894
|
}
|
|
87386
|
-
let webSocketUrl =
|
|
87387
|
-
switch (method) {
|
|
87388
|
-
case EWindowPassMethodCode.FingerPrint_Base64:
|
|
87389
|
-
webSocketUrl = this.fingerPrintBasWebSocketUrl;
|
|
87390
|
-
break;
|
|
87391
|
-
default:
|
|
87392
|
-
webSocketUrl = this.iReadCardBasWebSocketUrl;
|
|
87393
|
-
break;
|
|
87394
|
-
}
|
|
87895
|
+
let webSocketUrl = this.cameraWebSocketUrl;
|
|
87395
87896
|
const ws = new WebSocket(webSocketUrl);
|
|
87396
87897
|
let resolved;
|
|
87397
87898
|
const onConnect = new Promise(resolve => {
|
|
@@ -87400,18 +87901,7 @@ class EWindowPassService {
|
|
|
87400
87901
|
ws.onopen = () => {
|
|
87401
87902
|
resolved(true);
|
|
87402
87903
|
};
|
|
87403
|
-
ws.onmessage = event =>
|
|
87404
|
-
if (method === EWindowPassMethodCode.FingerPrint_Base64) {
|
|
87405
|
-
// 指纹后端返回的是string
|
|
87406
|
-
event = {
|
|
87407
|
-
...event,
|
|
87408
|
-
data: JSON.stringify({
|
|
87409
|
-
fingerPrintInfo: event.data
|
|
87410
|
-
})
|
|
87411
|
-
};
|
|
87412
|
-
}
|
|
87413
|
-
this.handleMessage(event);
|
|
87414
|
-
};
|
|
87904
|
+
ws.onmessage = event => this.handleMessage(event);
|
|
87415
87905
|
ws.onclose = () => this.handleClose();
|
|
87416
87906
|
ws.onerror = () => this.handleError();
|
|
87417
87907
|
this.ws = ws;
|
|
@@ -87425,7 +87915,7 @@ class EWindowPassService {
|
|
|
87425
87915
|
reject('handleError');
|
|
87426
87916
|
});
|
|
87427
87917
|
}
|
|
87428
|
-
throw Error('
|
|
87918
|
+
throw Error('统一插件平台读取拍照功能加载失败');
|
|
87429
87919
|
}
|
|
87430
87920
|
static handleClose() {
|
|
87431
87921
|
for (const type in this.requestStore) {
|
|
@@ -87437,12 +87927,7 @@ class EWindowPassService {
|
|
|
87437
87927
|
}
|
|
87438
87928
|
}
|
|
87439
87929
|
static handleMessage(msg) {
|
|
87440
|
-
let data =
|
|
87441
|
-
try {
|
|
87442
|
-
data = JSON.parse(msg.data);
|
|
87443
|
-
} catch (e) {
|
|
87444
|
-
data = '';
|
|
87445
|
-
}
|
|
87930
|
+
let data = msg.data;
|
|
87446
87931
|
this.requestStore.forEach(({
|
|
87447
87932
|
resolve
|
|
87448
87933
|
}) => {
|
|
@@ -87450,237 +87935,105 @@ class EWindowPassService {
|
|
|
87450
87935
|
});
|
|
87451
87936
|
this.requestStore = [];
|
|
87452
87937
|
this.ws.close();
|
|
87938
|
+
// this.ws = null;
|
|
87453
87939
|
}
|
|
87454
|
-
|
|
87455
|
-
|
|
87456
|
-
|
|
87940
|
+
|
|
87941
|
+
static async read() {
|
|
87942
|
+
await this.startConnect();
|
|
87457
87943
|
if (this.ws.readyState === 1) {
|
|
87458
|
-
|
|
87459
|
-
let jsonString;
|
|
87460
|
-
// outTimes:超时时间(秒)
|
|
87461
|
-
switch (method) {
|
|
87462
|
-
case EWindowPassMethodCode.ReadIDCard_Base64:
|
|
87463
|
-
// cardReader:0 读卡器-USB;1 读卡器-COM
|
|
87464
|
-
jsonString = JSON.stringify({
|
|
87465
|
-
method,
|
|
87466
|
-
args: {
|
|
87467
|
-
outTimes: 30,
|
|
87468
|
-
cardReader: 1
|
|
87469
|
-
}
|
|
87470
|
-
});
|
|
87471
|
-
break;
|
|
87472
|
-
case EWindowPassMethodCode.FaceValidateWithIdCard_Base64:
|
|
87473
|
-
// cardReader:0 读卡器-USB;1 读卡器-COM
|
|
87474
|
-
jsonString = JSON.stringify({
|
|
87475
|
-
method,
|
|
87476
|
-
args: {
|
|
87477
|
-
outTimes: 30,
|
|
87478
|
-
cardReader: 1,
|
|
87479
|
-
cameraType: 0
|
|
87480
|
-
}
|
|
87481
|
-
});
|
|
87482
|
-
break;
|
|
87483
|
-
case EWindowPassMethodCode.iReadCardBas:
|
|
87484
|
-
// icType:1接触卡;2非接触卡;3自动(接触优先);4自动(非接优先)
|
|
87485
|
-
jsonString = JSON.stringify({
|
|
87486
|
-
method,
|
|
87487
|
-
args: {
|
|
87488
|
-
icType: '1'
|
|
87489
|
-
}
|
|
87490
|
-
});
|
|
87491
|
-
break;
|
|
87492
|
-
case EWindowPassMethodCode.FingerPrint_Base64:
|
|
87493
|
-
// 获取指纹:getimgae,颜色(0黑色 1红色), 质量(默认0), 图像大小(288,360),类型(0民用,1公安)
|
|
87494
|
-
jsonString = 'getimgae,1,0,288,0';
|
|
87495
|
-
break;
|
|
87496
|
-
default:
|
|
87497
|
-
jsonString = JSON.stringify({
|
|
87498
|
-
method,
|
|
87499
|
-
args: {
|
|
87500
|
-
outTimes: 30
|
|
87501
|
-
}
|
|
87502
|
-
});
|
|
87503
|
-
break;
|
|
87504
|
-
}
|
|
87505
|
-
this.ws.send(jsonString);
|
|
87944
|
+
this.ws.send(PluginApiType.camera);
|
|
87506
87945
|
return new Promise((resolve, reject) => {
|
|
87507
87946
|
if (!this.requestStore) {
|
|
87508
87947
|
this.requestStore = [];
|
|
87509
87948
|
}
|
|
87510
|
-
this.requestStore.push({
|
|
87511
|
-
resolve,
|
|
87512
|
-
reject
|
|
87513
|
-
});
|
|
87514
|
-
});
|
|
87515
|
-
} else {
|
|
87516
|
-
throw Error('
|
|
87517
|
-
}
|
|
87518
|
-
}
|
|
87519
|
-
/**
|
|
87520
|
-
* 读取二代身份证
|
|
87521
|
-
* */
|
|
87522
|
-
static async idCardRead(method = EWindowPassMethodCode.ReadIDCard_Base64) {
|
|
87523
|
-
const readData = await EWindowPassService.read(EWindowPassMethodCode.ReadIDCard_Base64);
|
|
87524
|
-
console.log('读取二代身份证==>', readData);
|
|
87525
|
-
if (!readData) {
|
|
87526
|
-
throw Error('未匹配可用的E窗通读取设备');
|
|
87527
|
-
}
|
|
87528
|
-
if (readData.retVal !== 0) {
|
|
87529
|
-
throw Error("读取二代身份证失败,返回值:" + readData.retVal + ",错误信息:" + readData.errMsg);
|
|
87530
|
-
}
|
|
87531
|
-
const idInfo = readData.idInfo.data;
|
|
87532
|
-
const {
|
|
87533
|
-
name,
|
|
87534
|
-
sex,
|
|
87535
|
-
birthday,
|
|
87536
|
-
address,
|
|
87537
|
-
id_num,
|
|
87538
|
-
nations
|
|
87539
|
-
} = idInfo;
|
|
87540
|
-
const IDCardData = {
|
|
87541
|
-
info: {
|
|
87542
|
-
name,
|
|
87543
|
-
sex,
|
|
87544
|
-
birthday: birthday.replace('-', '').replace('-', ''),
|
|
87545
|
-
address,
|
|
87546
|
-
cardId: id_num,
|
|
87547
|
-
nation: nations
|
|
87548
|
-
},
|
|
87549
|
-
headImage: readData.idPhotoPicBase64
|
|
87550
|
-
};
|
|
87551
|
-
console.log('读取二代身份证结果==>', IDCardData);
|
|
87552
|
-
return IDCardData;
|
|
87553
|
-
}
|
|
87554
|
-
/**
|
|
87555
|
-
* 人证比对
|
|
87556
|
-
*/
|
|
87557
|
-
static async faceValidateWithIdCardRead() {
|
|
87558
|
-
const readData = await EWindowPassService.read(EWindowPassMethodCode.FaceValidateWithIdCard_Base64);
|
|
87559
|
-
console.log('人证比对==>', readData);
|
|
87560
|
-
if (!readData) {
|
|
87561
|
-
throw Error('未匹配可用的E窗通读取设备');
|
|
87562
|
-
}
|
|
87563
|
-
if (readData.retVal !== 0) {
|
|
87564
|
-
throw Error("人证比对失败,返回值:" + readData.retVal + ",错误信息:" + readData.errMsg);
|
|
87565
|
-
}
|
|
87566
|
-
const idInfo = readData.idInfo.data;
|
|
87567
|
-
const {
|
|
87568
|
-
name,
|
|
87569
|
-
sex,
|
|
87570
|
-
birth,
|
|
87571
|
-
address,
|
|
87572
|
-
idNo,
|
|
87573
|
-
nation
|
|
87574
|
-
} = idInfo;
|
|
87575
|
-
const IDCardData = {
|
|
87576
|
-
idCard: {
|
|
87577
|
-
info: {
|
|
87578
|
-
name,
|
|
87579
|
-
sex,
|
|
87580
|
-
birthday: birth.replace('-', '').replace('-', ''),
|
|
87581
|
-
address,
|
|
87582
|
-
cardId: idNo,
|
|
87583
|
-
nation
|
|
87584
|
-
},
|
|
87585
|
-
headImage: readData.idPhotoBase64
|
|
87586
|
-
},
|
|
87587
|
-
faceimg: readData.scenceBase64
|
|
87588
|
-
};
|
|
87589
|
-
console.log('人证比对结果==>', IDCardData);
|
|
87590
|
-
return IDCardData;
|
|
87949
|
+
this.requestStore.push({
|
|
87950
|
+
resolve,
|
|
87951
|
+
reject
|
|
87952
|
+
});
|
|
87953
|
+
});
|
|
87954
|
+
} else {
|
|
87955
|
+
throw Error('统一插件平台读取拍照未准备完成');
|
|
87956
|
+
}
|
|
87591
87957
|
}
|
|
87592
|
-
|
|
87593
|
-
|
|
87594
|
-
|
|
87595
|
-
|
|
87596
|
-
|
|
87958
|
+
}
|
|
87959
|
+
_defineProperty(CameraReadService, "cameraWebSocketUrl", 'ws://127.0.0.1:8152/SXTManage');
|
|
87960
|
+
_defineProperty(CameraReadService, "ws", void 0);
|
|
87961
|
+
_defineProperty(CameraReadService, "requestStore", []);
|
|
87962
|
+
class SignReadService {
|
|
87963
|
+
static startConnect(signMode) {
|
|
87964
|
+
if (this.ws && this.ws.readyState === WebSocket.CONNECTING) {
|
|
87965
|
+
return this;
|
|
87597
87966
|
}
|
|
87598
|
-
|
|
87599
|
-
|
|
87967
|
+
let webSocketUrl = this.signWebSocketUrl;
|
|
87968
|
+
if (signMode === PluginApiType.hwSign) {
|
|
87969
|
+
webSocketUrl = this.hwSignWebSocketUrl;
|
|
87600
87970
|
}
|
|
87601
|
-
|
|
87602
|
-
|
|
87603
|
-
const
|
|
87604
|
-
|
|
87605
|
-
|
|
87606
|
-
|
|
87607
|
-
|
|
87608
|
-
info: {
|
|
87609
|
-
name: outInfoArray[4],
|
|
87610
|
-
sex,
|
|
87611
|
-
birthday,
|
|
87612
|
-
address: '',
|
|
87613
|
-
cardId
|
|
87614
|
-
},
|
|
87615
|
-
headImage: ''
|
|
87971
|
+
const ws = new WebSocket(webSocketUrl);
|
|
87972
|
+
let resolved;
|
|
87973
|
+
const onConnect = new Promise(resolve => {
|
|
87974
|
+
resolved = resolve;
|
|
87975
|
+
});
|
|
87976
|
+
ws.onopen = () => {
|
|
87977
|
+
resolved(true);
|
|
87616
87978
|
};
|
|
87617
|
-
|
|
87618
|
-
|
|
87979
|
+
ws.onmessage = event => this.handleMessage(event);
|
|
87980
|
+
ws.onclose = () => this.handleClose();
|
|
87981
|
+
ws.onerror = () => this.handleError();
|
|
87982
|
+
this.ws = ws;
|
|
87983
|
+
return onConnect;
|
|
87619
87984
|
}
|
|
87620
|
-
|
|
87621
|
-
|
|
87622
|
-
|
|
87623
|
-
|
|
87624
|
-
|
|
87985
|
+
static handleError() {
|
|
87986
|
+
for (const type in this.requestStore) {
|
|
87987
|
+
this.requestStore.forEach(({
|
|
87988
|
+
reject
|
|
87989
|
+
}) => {
|
|
87990
|
+
reject('handleError');
|
|
87991
|
+
});
|
|
87625
87992
|
}
|
|
87626
|
-
|
|
87627
|
-
|
|
87993
|
+
throw Error('统一插件平台签字板加载失败');
|
|
87994
|
+
}
|
|
87995
|
+
static handleClose() {
|
|
87996
|
+
for (const type in this.requestStore) {
|
|
87997
|
+
this.requestStore.forEach(({
|
|
87998
|
+
reject
|
|
87999
|
+
}) => {
|
|
88000
|
+
reject('close');
|
|
88001
|
+
});
|
|
87628
88002
|
}
|
|
87629
|
-
console.log('获取签名==>', readData);
|
|
87630
|
-
return readData.signPicBase64;
|
|
87631
88003
|
}
|
|
87632
|
-
|
|
87633
|
-
|
|
87634
|
-
|
|
87635
|
-
|
|
87636
|
-
|
|
87637
|
-
|
|
87638
|
-
|
|
87639
|
-
|
|
87640
|
-
|
|
87641
|
-
|
|
87642
|
-
|
|
87643
|
-
|
|
87644
|
-
|
|
87645
|
-
|
|
87646
|
-
|
|
87647
|
-
|
|
87648
|
-
|
|
87649
|
-
|
|
87650
|
-
data: '已超时,请重新操作,按压指纹'
|
|
87651
|
-
};
|
|
88004
|
+
static handleMessage(msg) {
|
|
88005
|
+
let data = msg.data;
|
|
88006
|
+
this.requestStore.forEach(({
|
|
88007
|
+
resolve
|
|
88008
|
+
}) => {
|
|
88009
|
+
resolve(data);
|
|
88010
|
+
});
|
|
88011
|
+
this.requestStore = [];
|
|
88012
|
+
this.ws.close();
|
|
88013
|
+
}
|
|
88014
|
+
static async read(signMode = PluginApiType.ywSign) {
|
|
88015
|
+
await this.startConnect(signMode);
|
|
88016
|
+
if (this.ws.readyState === 1) {
|
|
88017
|
+
console.log('签字板连接成功');
|
|
88018
|
+
this.ws.send(signMode);
|
|
88019
|
+
return new Promise((resolve, reject) => {
|
|
88020
|
+
if (!this.requestStore) {
|
|
88021
|
+
this.requestStore = [];
|
|
87652
88022
|
}
|
|
87653
|
-
|
|
87654
|
-
|
|
87655
|
-
|
|
87656
|
-
|
|
87657
|
-
|
|
87658
|
-
}
|
|
87659
|
-
}
|
|
87660
|
-
let {
|
|
87661
|
-
status,
|
|
87662
|
-
data
|
|
87663
|
-
} = await readFingerPrint();
|
|
87664
|
-
if (status === 'error') {
|
|
87665
|
-
throw Error(data);
|
|
88023
|
+
this.requestStore.push({
|
|
88024
|
+
resolve,
|
|
88025
|
+
reject
|
|
88026
|
+
});
|
|
88027
|
+
});
|
|
87666
88028
|
} else {
|
|
87667
|
-
|
|
87668
|
-
// getimgae|1|68|......|......
|
|
87669
|
-
// method:方法,result:返回的状态,quality:指纹图片质量,image:图片base64,featureCode:指纹特征码
|
|
87670
|
-
return {
|
|
87671
|
-
method,
|
|
87672
|
-
result,
|
|
87673
|
-
quality,
|
|
87674
|
-
image,
|
|
87675
|
-
featureCode
|
|
87676
|
-
};
|
|
88029
|
+
throw Error('统一插件平台签字板未准备完成');
|
|
87677
88030
|
}
|
|
87678
88031
|
}
|
|
87679
88032
|
}
|
|
87680
|
-
_defineProperty(
|
|
87681
|
-
_defineProperty(
|
|
87682
|
-
_defineProperty(
|
|
87683
|
-
_defineProperty(
|
|
88033
|
+
_defineProperty(SignReadService, "signWebSocketUrl", 'ws://127.0.0.1:8152/chromeManage');
|
|
88034
|
+
_defineProperty(SignReadService, "hwSignWebSocketUrl", 'ws://127.0.0.1:8152/HWSIGNManage');
|
|
88035
|
+
_defineProperty(SignReadService, "ws", void 0);
|
|
88036
|
+
_defineProperty(SignReadService, "requestStore", []);
|
|
87684
88037
|
;// CONCATENATED MODULE: ./packages/service/external-plugins/huada-plugin-socket.service.ts
|
|
87685
88038
|
|
|
87686
88039
|
|
|
@@ -90660,8 +91013,8 @@ id_card_reader_button.install = Vue => {
|
|
|
90660
91013
|
Vue.component(id_card_reader_button.name, id_card_reader_button);
|
|
90661
91014
|
};
|
|
90662
91015
|
/* harmony default export */ var id_card_reader_id_card_reader_button = (id_card_reader_button);
|
|
90663
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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=
|
|
90664
|
-
var
|
|
91016
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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&
|
|
91017
|
+
var scanner_nkovue_type_template_id_09b27ab8_render = function render() {
|
|
90665
91018
|
var _vm = this,
|
|
90666
91019
|
_c = _vm._self._c;
|
|
90667
91020
|
return _c('el-container', {
|
|
@@ -90837,7 +91190,7 @@ var scanner_nkovue_type_template_id_2b36bc1b_render = function render() {
|
|
|
90837
91190
|
"value": item
|
|
90838
91191
|
}
|
|
90839
91192
|
});
|
|
90840
|
-
}), 1)], 1)], 1), _c('el-form', {
|
|
91193
|
+
}), 1)], 1)], 1), _vm.brand === 'nko' ? _c('el-form', {
|
|
90841
91194
|
attrs: {
|
|
90842
91195
|
"model": _vm.scanConfig,
|
|
90843
91196
|
"label-position": "right",
|
|
@@ -90866,7 +91219,7 @@ var scanner_nkovue_type_template_id_2b36bc1b_render = function render() {
|
|
|
90866
91219
|
"value": item
|
|
90867
91220
|
}
|
|
90868
91221
|
});
|
|
90869
|
-
}), 1)], 1)], 1), _c('div', {
|
|
91222
|
+
}), 1)], 1)], 1) : _vm._e(), _c('div', {
|
|
90870
91223
|
staticClass: "text-right"
|
|
90871
91224
|
}, [_c('el-button', {
|
|
90872
91225
|
attrs: {
|
|
@@ -90991,7 +91344,7 @@ var scanner_nkovue_type_template_id_2b36bc1b_render = function render() {
|
|
|
90991
91344
|
}
|
|
90992
91345
|
}, [_vm._v("上传")])], 1)])], 1)], 1);
|
|
90993
91346
|
};
|
|
90994
|
-
var
|
|
91347
|
+
var scanner_nkovue_type_template_id_09b27ab8_staticRenderFns = [];
|
|
90995
91348
|
|
|
90996
91349
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-exception.stack.js
|
|
90997
91350
|
var web_dom_exception_stack = __webpack_require__(2801);
|
|
@@ -91288,9 +91641,304 @@ _defineProperty(NkoService, "scanWebSocketUrl", 'ws://127.0.0.1:51818');
|
|
|
91288
91641
|
_defineProperty(NkoService, "ws", void 0);
|
|
91289
91642
|
_defineProperty(NkoService, "requestStore", []);
|
|
91290
91643
|
_defineProperty(NkoService, "fileList", []);
|
|
91644
|
+
;// CONCATENATED MODULE: ./packages/service/external-plugins/pantum-plugin-http.service.ts
|
|
91645
|
+
|
|
91646
|
+
|
|
91647
|
+
/**
|
|
91648
|
+
* 奔图扫描仪(Pantum Scan SDK)
|
|
91649
|
+
*
|
|
91650
|
+
* 奔图 SDK 提供本地 HTTP 服务(dss)完成扫描:
|
|
91651
|
+
* - http :http://127.0.0.1:3883
|
|
91652
|
+
* - https :https://127.0.0.1:3884(证书为服务目录下 cert/cert.crt,需重启服务生效)
|
|
91653
|
+
*
|
|
91654
|
+
* 生产环境存在 http / https 两种部署,页面为 https 时请求 http 接口会被浏览器
|
|
91655
|
+
* 当作混合内容拦截,故这里依据当前页面协议自动选择对应端口。
|
|
91656
|
+
*
|
|
91657
|
+
* 对外接口形态与 NkoService 保持一致(供 scanner-nko 组件通过 brand 切换复用):
|
|
91658
|
+
* 奔图特有的差异点(两段式取图、参数枚举映射、错误码翻译)全部封装在本服务内部。
|
|
91659
|
+
*/
|
|
91660
|
+
|
|
91661
|
+
/**
|
|
91662
|
+
* 错误码 -> 中文描述(摘自《奔图扫描SDK-HTTP接口说明文档》)
|
|
91663
|
+
*/
|
|
91664
|
+
const PANTUM_ERROR_MESSAGES = {
|
|
91665
|
+
1: '扫描仪未连接',
|
|
91666
|
+
2: '扫描仪连接中断',
|
|
91667
|
+
3: '与扫描仪通信发生错误',
|
|
91668
|
+
4: '参数设置错误',
|
|
91669
|
+
5: '当前的扫描设备不支持',
|
|
91670
|
+
6: '当前的文档来源不支持',
|
|
91671
|
+
7: '当前的色彩模式不支持',
|
|
91672
|
+
8: '当前的分辨率不支持',
|
|
91673
|
+
9: '当前的纸张类型不支持',
|
|
91674
|
+
10: '当前的图片保存格式不支持',
|
|
91675
|
+
11: '扫描仪忙',
|
|
91676
|
+
12: '文档进纸器无文档',
|
|
91677
|
+
13: '文档进纸器堵塞',
|
|
91678
|
+
14: '文档进纸器上盖打开',
|
|
91679
|
+
15: '未检测到原件尺寸,请开合平板盖',
|
|
91680
|
+
16: '重张进纸,请分离纸张并重新扫描',
|
|
91681
|
+
17: '扫描仪内部故障,请尝试重启设备或联系客服',
|
|
91682
|
+
18: '创建文件失败,请检查是否权限不足',
|
|
91683
|
+
19: '磁盘空间不足',
|
|
91684
|
+
20: '内存不足',
|
|
91685
|
+
21: '扫描仪中止扫描',
|
|
91686
|
+
22: '双向认证失败',
|
|
91687
|
+
23: '安全认证没有通过',
|
|
91688
|
+
24: '隔离设备接入,扫描禁用',
|
|
91689
|
+
25: '无效的路径',
|
|
91690
|
+
26: '文档进纸器取纸失败',
|
|
91691
|
+
27: '奇数页扫描完成,请把纸张放回自动进纸器,并在面板上按【开始】键继续扫描偶数页',
|
|
91692
|
+
28: '不支持该操作',
|
|
91693
|
+
29: '未检测到扫描仪',
|
|
91694
|
+
30: '保存失败',
|
|
91695
|
+
31: '加载动态库失败',
|
|
91696
|
+
32: '扫描 SDK 正在扫描,请稍后再试',
|
|
91697
|
+
33: 'ADF 混合扫描(自动尺寸)不支持的纸张类型,或进纸器规制未在对应纸张刻度处',
|
|
91698
|
+
34: '稿台上的 ADF 装置被抬起,稿台未被盖住',
|
|
91699
|
+
35: '不支持扫描来源为 ADF',
|
|
91700
|
+
36: '图像文件损坏',
|
|
91701
|
+
37: '打印机的扫描功能被禁用,请在打印机面板设置开启扫描功能',
|
|
91702
|
+
38: '未检测到稿台,请检查是否连接稿台配件,或选择文档进纸器',
|
|
91703
|
+
39: '当前连接的是 A4 稿台配件,无法扫描 A3 尺寸',
|
|
91704
|
+
40: '目标文件已存在',
|
|
91705
|
+
41: '源文件打开失败',
|
|
91706
|
+
42: '目标文件打开失败',
|
|
91707
|
+
43: '读取 BMP 文件失败',
|
|
91708
|
+
44: '读取 JPEG 文件失败',
|
|
91709
|
+
45: '操作已取消',
|
|
91710
|
+
46: '处理结果全为空白页',
|
|
91711
|
+
47: '当前的扫描页数设置不支持',
|
|
91712
|
+
48: '使用平板扫描时,文档进纸器不能放置纸张',
|
|
91713
|
+
49: '操作文件失败',
|
|
91714
|
+
50: '图像列表为空',
|
|
91715
|
+
51: '鉴别用户未登录',
|
|
91716
|
+
52: '鉴别用户不存在',
|
|
91717
|
+
53: '鉴别用户被冻结',
|
|
91718
|
+
54: '鉴别用户无权限',
|
|
91719
|
+
1001: '待获取的文件不存在',
|
|
91720
|
+
1002: '打开文件失败',
|
|
91721
|
+
1003: '文件删除失败',
|
|
91722
|
+
1004: '输入的 ID 不存在',
|
|
91723
|
+
1013: '无扫描作业',
|
|
91724
|
+
1014: '扫描作业不存在'
|
|
91725
|
+
};
|
|
91726
|
+
/**
|
|
91727
|
+
* 进纸模式:赞彩词汇 -> 奔图 src
|
|
91728
|
+
* 1:稿台;2:文档进纸器;3:文档进纸器双面
|
|
91729
|
+
*/
|
|
91730
|
+
const PANTUM_SOURCE_MAP = {
|
|
91731
|
+
'Flatbed': 1,
|
|
91732
|
+
'Adf-front': 2,
|
|
91733
|
+
'Adf-duplex': 3
|
|
91734
|
+
};
|
|
91735
|
+
/**
|
|
91736
|
+
* 扫描颜色:赞彩词汇 -> 奔图 colorType
|
|
91737
|
+
* 1:真彩色;2:灰度;3:黑白
|
|
91738
|
+
*/
|
|
91739
|
+
const PANTUM_MODE_MAP = {
|
|
91740
|
+
'Color': 1,
|
|
91741
|
+
'Gray': 2,
|
|
91742
|
+
'Lineart': 3
|
|
91743
|
+
};
|
|
91744
|
+
/**
|
|
91745
|
+
* 纸张类型:赞彩词汇 -> 奔图 geometry
|
|
91746
|
+
*/
|
|
91747
|
+
const PANTUM_PAPER_SIZE_MAP = {
|
|
91748
|
+
'MaxSize': '自动检测',
|
|
91749
|
+
'A3': 'A3',
|
|
91750
|
+
'A4': 'A4',
|
|
91751
|
+
'A5': 'A5',
|
|
91752
|
+
'JisB5': 'JIS_B5',
|
|
91753
|
+
'IsoB6': 'B6',
|
|
91754
|
+
'USExecutive': 'Executive'
|
|
91755
|
+
};
|
|
91756
|
+
/**
|
|
91757
|
+
* 文件格式:赞彩词汇 -> 奔图 saveFmt
|
|
91758
|
+
* 1:BMP;3:JPEG;4:PNG;5:单页压缩 TIFF
|
|
91759
|
+
* 暂不提供 Pdf(13)/Ofd(16):base64 结果无法在扫描结果列表直接预览
|
|
91760
|
+
*/
|
|
91761
|
+
const PANTUM_FILE_FORMAT_MAP = {
|
|
91762
|
+
'Bmp': 1,
|
|
91763
|
+
'Jpeg': 3,
|
|
91764
|
+
'Png': 4,
|
|
91765
|
+
'Tiff': 5
|
|
91766
|
+
};
|
|
91767
|
+
class PantumService {
|
|
91768
|
+
/**
|
|
91769
|
+
* 服务地址:依据当前页面协议自动选择端口
|
|
91770
|
+
* https 页面 -> https://127.0.0.1:3884(要求 dss 服务已配置证书并重启生效)
|
|
91771
|
+
* http 页面 -> http://127.0.0.1:3883
|
|
91772
|
+
*/
|
|
91773
|
+
static get baseUrl() {
|
|
91774
|
+
const isHttps = typeof window !== 'undefined' && window.location.protocol === 'https:';
|
|
91775
|
+
return isHttps ? 'https://127.0.0.1:3884' : 'http://127.0.0.1:3883';
|
|
91776
|
+
}
|
|
91777
|
+
/** 当前选中的设备(deviceId 形如 "devName|devAddr",无地址时为 devName) */
|
|
91778
|
+
|
|
91779
|
+
/**
|
|
91780
|
+
* GET 请求并返回 JSON(CustomAxios)
|
|
91781
|
+
* 网络异常时给出服务未启动 / 证书未配置的提示
|
|
91782
|
+
*/
|
|
91783
|
+
static async request(path, params = {}) {
|
|
91784
|
+
// CustomAxios 的 GET 查询串不做 URL 编码,含空格/中文的参数值(如 devName、geometry)在此预编码
|
|
91785
|
+
const encodedParams = {};
|
|
91786
|
+
Object.keys(params).filter(key => params[key] !== undefined && params[key] !== null && params[key] !== '').forEach(key => {
|
|
91787
|
+
encodedParams[key] = encodeURIComponent(String(params[key]));
|
|
91788
|
+
});
|
|
91789
|
+
try {
|
|
91790
|
+
return await CustomAxios.get(`${PantumService.baseUrl}${path}`, encodedParams);
|
|
91791
|
+
} catch (e) {
|
|
91792
|
+
// CustomAxios 失败时 reject 的是 xhr 对象:status 有值即 HTTP 错误,否则为网络不通
|
|
91793
|
+
const xhr = e;
|
|
91794
|
+
if (xhr && typeof xhr === 'object' && xhr.status) {
|
|
91795
|
+
throw Error(`奔图扫描服务请求失败,HTTP 状态码:${xhr.status}`);
|
|
91796
|
+
}
|
|
91797
|
+
const httpsTip = PantumService.baseUrl.indexOf('https://') === 0 ? ',且 https 证书(cert/cert.crt)已配置' : '';
|
|
91798
|
+
throw Error(`无法连接奔图扫描服务(${PantumService.baseUrl}),请确认扫描服务已启动${httpsTip}`);
|
|
91799
|
+
}
|
|
91800
|
+
}
|
|
91801
|
+
/**
|
|
91802
|
+
* 校验奔图接口返回码,resultCode 不为 0 时抛出中文错误
|
|
91803
|
+
*/
|
|
91804
|
+
static checkResult(response, action) {
|
|
91805
|
+
if (!response || response.resultCode === undefined || isNaN(Number(response.resultCode))) {
|
|
91806
|
+
throw Error(`${action}失败:奔图扫描服务返回数据异常`);
|
|
91807
|
+
}
|
|
91808
|
+
const code = Number(response.resultCode);
|
|
91809
|
+
if (code !== 0) {
|
|
91810
|
+
throw Error(`${action}失败,返回码:${code},错误信息:${PANTUM_ERROR_MESSAGES[code] || response.msg || '未知错误'}`);
|
|
91811
|
+
}
|
|
91812
|
+
}
|
|
91813
|
+
/**
|
|
91814
|
+
* 获取扫描仪设备列表(getAllDevList:含 USB 与网络设备)
|
|
91815
|
+
* 注:接口返回 data 的字段名以实际设备为准,此处做多字段兼容
|
|
91816
|
+
* @returns deviceId:设备标识,形如 "devName|devAddr"(无地址时为 devName)
|
|
91817
|
+
*/
|
|
91818
|
+
static async getDeivceList() {
|
|
91819
|
+
const response = await PantumService.request('/getAllDevList');
|
|
91820
|
+
this.checkResult(response, '获取奔图扫描仪设备列表');
|
|
91821
|
+
console.log('获取奔图扫描仪设备列表==>', response);
|
|
91822
|
+
const list = Array.isArray(response.data) ? response.data : [];
|
|
91823
|
+
const devices = list.map(item => {
|
|
91824
|
+
if (typeof item === 'string') {
|
|
91825
|
+
return {
|
|
91826
|
+
deviceId: item
|
|
91827
|
+
};
|
|
91828
|
+
}
|
|
91829
|
+
const devName = item.devName || item.dev_name || item.name || item.devNameInSetting || '';
|
|
91830
|
+
const devAddr = item.devAddr || item.dev_addr || item.address || '';
|
|
91831
|
+
const deviceId = devAddr ? `${devName}|${devAddr}` : devName || item.devId || item.id || '';
|
|
91832
|
+
return {
|
|
91833
|
+
deviceId
|
|
91834
|
+
};
|
|
91835
|
+
}).filter(item => item.deviceId);
|
|
91836
|
+
if (devices.length === 0) {
|
|
91837
|
+
throw Error('未检测到奔图扫描仪,请确认设备已连接且奔图扫描服务(dss)已启动');
|
|
91838
|
+
}
|
|
91839
|
+
return devices;
|
|
91840
|
+
}
|
|
91841
|
+
/**
|
|
91842
|
+
* 选中指定扫描仪(奔图无独立"打开设备"接口,仅记录待扫描设备)
|
|
91843
|
+
* @param scannerId 选中的扫描仪 ID(getDeivceList 返回的 deviceId)
|
|
91844
|
+
*/
|
|
91845
|
+
static async openScanDeivce(scannerId) {
|
|
91846
|
+
this.selectedDeviceId = scannerId || '';
|
|
91847
|
+
return {
|
|
91848
|
+
code: 0,
|
|
91849
|
+
msg: 'ok',
|
|
91850
|
+
data: null
|
|
91851
|
+
};
|
|
91852
|
+
}
|
|
91853
|
+
/**
|
|
91854
|
+
* 获取选中扫描仪可配置项
|
|
91855
|
+
* 奔图无能力查询接口,返回静态能力表(见 scanOptions)
|
|
91856
|
+
*/
|
|
91857
|
+
static async getScanOptions() {
|
|
91858
|
+
return PantumService.scanOptions;
|
|
91859
|
+
}
|
|
91860
|
+
/**
|
|
91861
|
+
* 常用参数的便捷配置能力(进纸模式、色彩、尺寸、DPI)
|
|
91862
|
+
* 奔图 scan 接口一次性携带全部参数,这里仅暂存,待 scan 时统一映射
|
|
91863
|
+
*/
|
|
91864
|
+
static async setScanBasicOptions(config) {
|
|
91865
|
+
this.pendingBasicOptions = config || {};
|
|
91866
|
+
return {
|
|
91867
|
+
code: 0,
|
|
91868
|
+
msg: 'ok',
|
|
91869
|
+
data: null
|
|
91870
|
+
};
|
|
91871
|
+
}
|
|
91872
|
+
/**
|
|
91873
|
+
* 扫描:调 /scan 后逐个 docid 调 /getImg64 取 base64 图片
|
|
91874
|
+
* @param fileFormat 文件保存格式(image-format 选项,如 Jpeg)
|
|
91875
|
+
* @param fileSavePath 保存路径(目录,为空时保存到服务临时路径)
|
|
91876
|
+
* @param fileNamePrefix 未使用(奔图由服务端自行命名)
|
|
91877
|
+
* @param fileNameFormat 未使用(同上)
|
|
91878
|
+
* @param fileTransferMode 未使用(奔图无传输模式概念)
|
|
91879
|
+
* @returns [{name, url}] name:文件名;url:可直接预览的 dataUrl
|
|
91880
|
+
*/
|
|
91881
|
+
static async scan(fileFormat, fileSavePath = '', fileNamePrefix = '', fileNameFormat = '', fileTransferMode = '') {
|
|
91882
|
+
const basic = this.pendingBasicOptions || {};
|
|
91883
|
+
const parts = (this.selectedDeviceId || '').split('|');
|
|
91884
|
+
const response = await PantumService.request('/scan', {
|
|
91885
|
+
devName: parts[0] || '',
|
|
91886
|
+
devAddr: parts[1] || '',
|
|
91887
|
+
saveFmt: PANTUM_FILE_FORMAT_MAP[fileFormat] || 3,
|
|
91888
|
+
src: PANTUM_SOURCE_MAP[basic.source] || 1,
|
|
91889
|
+
colorType: PANTUM_MODE_MAP[basic.mode] || 1,
|
|
91890
|
+
dpi: Number(basic.resolution) || 300,
|
|
91891
|
+
geometry: PANTUM_PAPER_SIZE_MAP[basic['paper-size']] || 'A4',
|
|
91892
|
+
// 旋转角度:0 不旋转;页数:0 全部;可选参数 / 条码识别:暂不开启
|
|
91893
|
+
rotate: 0,
|
|
91894
|
+
pages: 0,
|
|
91895
|
+
opt: 0,
|
|
91896
|
+
barcodeTag: 0,
|
|
91897
|
+
savePath: fileSavePath || ''
|
|
91898
|
+
});
|
|
91899
|
+
this.checkResult(response, '扫描');
|
|
91900
|
+
console.log('奔图扫描==>', response);
|
|
91901
|
+
// docs 元素形如 {docid},做裸 id 兼容
|
|
91902
|
+
const docids = (response.docs || []).map(doc => doc && doc.docid !== undefined ? doc.docid : doc);
|
|
91903
|
+
const fileList = [];
|
|
91904
|
+
for (const docid of docids) {
|
|
91905
|
+
const img = await PantumService.request('/getImg64', {
|
|
91906
|
+
docid
|
|
91907
|
+
});
|
|
91908
|
+
this.checkResult(img, '获取扫描图片');
|
|
91909
|
+
// getImg64 取后服务端即清除记录,dataUrl 需由前端持有
|
|
91910
|
+
fileList.push({
|
|
91911
|
+
name: img.filename || `${docid}`,
|
|
91912
|
+
url: `data:${img.mimetype};base64,${img.base64}`
|
|
91913
|
+
});
|
|
91914
|
+
}
|
|
91915
|
+
return fileList;
|
|
91916
|
+
}
|
|
91917
|
+
}
|
|
91918
|
+
_defineProperty(PantumService, "selectedDeviceId", '');
|
|
91919
|
+
_defineProperty(PantumService, "pendingBasicOptions", {});
|
|
91920
|
+
_defineProperty(PantumService, "scanOptions", {
|
|
91921
|
+
// 进纸模式:平板 / 进纸器正面 / 进纸器双面
|
|
91922
|
+
source: ['Flatbed', 'Adf-front', 'Adf-duplex'],
|
|
91923
|
+
// 扫描颜色:彩色 / 灰度 / 黑白
|
|
91924
|
+
mode: ['Color', 'Gray', 'Lineart'],
|
|
91925
|
+
// 分辨率
|
|
91926
|
+
resolution: ['75', '150', '300', '600', '1200'],
|
|
91927
|
+
// 纸张类型
|
|
91928
|
+
'paper-size': ['MaxSize', 'A3', 'A4', 'A5', 'JisB5', 'IsoB6', 'USExecutive'],
|
|
91929
|
+
// 文件格式
|
|
91930
|
+
'image-format': ['Bmp', 'Jpeg', 'Png', 'Tiff']
|
|
91931
|
+
});
|
|
91291
91932
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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&
|
|
91292
91933
|
|
|
91293
91934
|
|
|
91935
|
+
|
|
91936
|
+
|
|
91937
|
+
//品牌 → 扫描服务映射(两者接口形态一致,可互换),新增品牌在此加一行
|
|
91938
|
+
const BRAND_SERVICE_MAP = {
|
|
91939
|
+
nko: NkoService,
|
|
91940
|
+
pantum: PantumService
|
|
91941
|
+
};
|
|
91294
91942
|
/* harmony default export */ var scanner_nkovue_type_script_lang_js_ = ({
|
|
91295
91943
|
name: 'scanner-nko',
|
|
91296
91944
|
components: {},
|
|
@@ -91333,6 +91981,15 @@ _defineProperty(NkoService, "fileList", []);
|
|
|
91333
91981
|
fileTransferMode: {
|
|
91334
91982
|
default: '',
|
|
91335
91983
|
type: String
|
|
91984
|
+
},
|
|
91985
|
+
/**
|
|
91986
|
+
* 设备品牌,决定使用哪个扫描服务(两者接口形态一致)
|
|
91987
|
+
* nko - 赞彩五合一设备(默认)
|
|
91988
|
+
* pantum - 奔图扫描仪(本地 HTTP 服务)
|
|
91989
|
+
*/
|
|
91990
|
+
brand: {
|
|
91991
|
+
default: 'nko',
|
|
91992
|
+
type: String
|
|
91336
91993
|
}
|
|
91337
91994
|
},
|
|
91338
91995
|
data: () => {
|
|
@@ -91381,6 +92038,15 @@ _defineProperty(NkoService, "fileList", []);
|
|
|
91381
92038
|
isDeviceReady() {
|
|
91382
92039
|
return this.scanConfig.deviceId && this.deviceOpend;
|
|
91383
92040
|
},
|
|
92041
|
+
//当前品牌对应的扫描服务(未知品牌回退 NkoService)
|
|
92042
|
+
scanService() {
|
|
92043
|
+
const service = BRAND_SERVICE_MAP[this.brand];
|
|
92044
|
+
if (!service) {
|
|
92045
|
+
console.warn(`[scanner-nko] 未知的设备品牌:${this.brand},已回退为 NkoService`);
|
|
92046
|
+
return NkoService;
|
|
92047
|
+
}
|
|
92048
|
+
return service;
|
|
92049
|
+
},
|
|
91384
92050
|
imgUrls() {
|
|
91385
92051
|
return this.scanFileList.map(item => item.url);
|
|
91386
92052
|
}
|
|
@@ -91395,9 +92061,9 @@ _defineProperty(NkoService, "fileList", []);
|
|
|
91395
92061
|
}
|
|
91396
92062
|
},
|
|
91397
92063
|
methods: {
|
|
91398
|
-
/** localStorage 缓存 key */
|
|
92064
|
+
/** localStorage 缓存 key(按品牌隔离,避免不同设备记忆配置互相污染) */
|
|
91399
92065
|
_cacheKey() {
|
|
91400
|
-
return
|
|
92066
|
+
return `scanner-${this.brand}-config`;
|
|
91401
92067
|
},
|
|
91402
92068
|
/** 读取缓存的扫描配置 */
|
|
91403
92069
|
getCachedConfig() {
|
|
@@ -91433,10 +92099,15 @@ _defineProperty(NkoService, "fileList", []);
|
|
|
91433
92099
|
async initScanServiceAPI() {
|
|
91434
92100
|
this.pageLoadingText = '正在连接扫描服务,请稍候...';
|
|
91435
92101
|
this.pageLoading = true;
|
|
91436
|
-
|
|
91437
|
-
|
|
91438
|
-
|
|
91439
|
-
|
|
92102
|
+
try {
|
|
92103
|
+
// 获取设备列表
|
|
92104
|
+
this.deviceList = await this.scanService.getDeivceList();
|
|
92105
|
+
this.deviceOpend = true;
|
|
92106
|
+
} catch (e) {
|
|
92107
|
+
this.$message.error(e && e.message || '连接扫描服务失败');
|
|
92108
|
+
} finally {
|
|
92109
|
+
this.pageLoading = false;
|
|
92110
|
+
}
|
|
91440
92111
|
|
|
91441
92112
|
// 连接成功后,恢复缓存的扫描源(deviceId)
|
|
91442
92113
|
const cached = this.getCachedConfig();
|
|
@@ -91463,7 +92134,7 @@ _defineProperty(NkoService, "fileList", []);
|
|
|
91463
92134
|
this.scanConfig.source = null;
|
|
91464
92135
|
this.scanConfig.resolution = null;
|
|
91465
92136
|
this.scanConfig.mode = null;
|
|
91466
|
-
this.scanConfig.
|
|
92137
|
+
this.scanConfig.paperSize = null;
|
|
91467
92138
|
this.scanConfig.fileFormat = null;
|
|
91468
92139
|
this.sourceOptions = [];
|
|
91469
92140
|
this.modeOptions = [];
|
|
@@ -91491,28 +92162,33 @@ _defineProperty(NkoService, "fileList", []);
|
|
|
91491
92162
|
async getScanOptions() {
|
|
91492
92163
|
this.pageLoadingText = '正在获取扫描仪能力,请稍后...';
|
|
91493
92164
|
this.pageLoading = true;
|
|
91494
|
-
|
|
91495
|
-
|
|
91496
|
-
|
|
91497
|
-
|
|
91498
|
-
|
|
91499
|
-
|
|
91500
|
-
|
|
91501
|
-
|
|
91502
|
-
|
|
91503
|
-
|
|
91504
|
-
|
|
91505
|
-
|
|
91506
|
-
|
|
91507
|
-
|
|
91508
|
-
|
|
91509
|
-
|
|
91510
|
-
|
|
91511
|
-
|
|
91512
|
-
|
|
91513
|
-
|
|
91514
|
-
|
|
91515
|
-
|
|
92165
|
+
try {
|
|
92166
|
+
await this.scanService.openScanDeivce(this.scanConfig.deviceId);
|
|
92167
|
+
var options = await this.scanService.getScanOptions();
|
|
92168
|
+
this.sourceOptions = options.source;
|
|
92169
|
+
this.modeOptions = options.mode;
|
|
92170
|
+
this.resolutionOptions = options.resolution;
|
|
92171
|
+
this.paperSizeOptions = options['paper-size'];
|
|
92172
|
+
this.fileFormatOptions = options['image-format'];
|
|
92173
|
+
|
|
92174
|
+
// 恢复缓存配置:若缓存值在当前设备能力列表中则使用缓存值,否则取第一项
|
|
92175
|
+
const cached = this.getCachedConfig() || {};
|
|
92176
|
+
const isValid = (list, val) => val && list.includes(val);
|
|
92177
|
+
this.scanConfig.source = isValid(this.sourceOptions, cached.source) ? cached.source : this.sourceOptions[0] || null;
|
|
92178
|
+
this.scanConfig.mode = isValid(this.modeOptions, cached.mode) ? cached.mode : this.modeOptions[0] || null;
|
|
92179
|
+
this.scanConfig.resolution = isValid(this.resolutionOptions, cached.resolution) ? cached.resolution : this.resolutionOptions[0] || null;
|
|
92180
|
+
this.scanConfig.paperSize = isValid(this.paperSizeOptions, cached.paperSize) ? cached.paperSize : this.paperSizeOptions[0] || null;
|
|
92181
|
+
this.scanConfig.fileFormat = isValid(this.fileFormatOptions, cached.fileFormat) ? cached.fileFormat : this.fileFormatOptions[0] || null;
|
|
92182
|
+
// fileTransferMode 不依赖设备,直接恢复
|
|
92183
|
+
if (cached.fileTransferMode) {
|
|
92184
|
+
this.scanConfig.fileTransferMode = cached.fileTransferMode;
|
|
92185
|
+
}
|
|
92186
|
+
this.deviceOpend = true;
|
|
92187
|
+
} catch (e) {
|
|
92188
|
+
this.$message.error(e && e.message || '获取扫描仪能力失败');
|
|
92189
|
+
} finally {
|
|
92190
|
+
this.pageLoading = false;
|
|
92191
|
+
}
|
|
91516
92192
|
},
|
|
91517
92193
|
/**
|
|
91518
92194
|
* 点击扫描
|
|
@@ -91523,17 +92199,22 @@ _defineProperty(NkoService, "fileList", []);
|
|
|
91523
92199
|
}
|
|
91524
92200
|
this.pageLoadingText = '正在提交扫描请求,请稍后...';
|
|
91525
92201
|
this.pageLoading = true;
|
|
91526
|
-
|
|
91527
|
-
|
|
91528
|
-
|
|
91529
|
-
|
|
91530
|
-
|
|
91531
|
-
|
|
91532
|
-
|
|
91533
|
-
|
|
91534
|
-
|
|
91535
|
-
|
|
91536
|
-
|
|
92202
|
+
try {
|
|
92203
|
+
await this.scanService.setScanBasicOptions({
|
|
92204
|
+
source: this.scanConfig.source,
|
|
92205
|
+
mode: this.scanConfig.mode,
|
|
92206
|
+
'paper-size': this.scanConfig.paperSize,
|
|
92207
|
+
resolution: this.scanConfig.resolution
|
|
92208
|
+
});
|
|
92209
|
+
const data = await this.scanService.scan(this.scanConfig.fileFormat, this.fileSavePath, this.fileNamePrefix, this.fileNameFormat, this.scanConfig.fileTransferMode);
|
|
92210
|
+
this.scanFileList = [...this.scanFileList, ...data];
|
|
92211
|
+
// 扫描成功后缓存当前配置,下次使用时直接恢复
|
|
92212
|
+
this.saveConfigToCache();
|
|
92213
|
+
} catch (e) {
|
|
92214
|
+
this.$message.error(e && e.message || '扫描失败');
|
|
92215
|
+
} finally {
|
|
92216
|
+
this.pageLoading = false;
|
|
92217
|
+
}
|
|
91537
92218
|
},
|
|
91538
92219
|
//预览
|
|
91539
92220
|
previewImg(index) {
|
|
@@ -91564,10 +92245,10 @@ _defineProperty(NkoService, "fileList", []);
|
|
|
91564
92245
|
});
|
|
91565
92246
|
;// CONCATENATED MODULE: ./packages/scanner/scanner-nko/src/scanner-nko.vue?vue&type=script&lang=js&
|
|
91566
92247
|
/* harmony default export */ var src_scanner_nkovue_type_script_lang_js_ = (scanner_nkovue_type_script_lang_js_);
|
|
91567
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.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-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.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=
|
|
92248
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.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-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.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&
|
|
91568
92249
|
// extracted by mini-css-extract-plugin
|
|
91569
92250
|
|
|
91570
|
-
;// CONCATENATED MODULE: ./packages/scanner/scanner-nko/src/scanner-nko.vue?vue&type=style&index=0&id=
|
|
92251
|
+
;// CONCATENATED MODULE: ./packages/scanner/scanner-nko/src/scanner-nko.vue?vue&type=style&index=0&id=09b27ab8&prod&lang=scss&
|
|
91571
92252
|
|
|
91572
92253
|
;// CONCATENATED MODULE: ./packages/scanner/scanner-nko/src/scanner-nko.vue
|
|
91573
92254
|
|
|
@@ -91580,8 +92261,8 @@ _defineProperty(NkoService, "fileList", []);
|
|
|
91580
92261
|
|
|
91581
92262
|
var scanner_nko_component = normalizeComponent(
|
|
91582
92263
|
src_scanner_nkovue_type_script_lang_js_,
|
|
91583
|
-
|
|
91584
|
-
|
|
92264
|
+
scanner_nkovue_type_template_id_09b27ab8_render,
|
|
92265
|
+
scanner_nkovue_type_template_id_09b27ab8_staticRenderFns,
|
|
91585
92266
|
false,
|
|
91586
92267
|
null,
|
|
91587
92268
|
null,
|