unify-external-plugin-platform 0.0.2-40 → 0.0.2-42
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/dist/external-plugin.common.js +181 -18
- package/dist/external-plugin.common.js.map +1 -1
- package/dist/external-plugin.css +1 -1
- package/dist/external-plugin.umd.js +181 -18
- package/dist/external-plugin.umd.js.map +1 -1
- package/dist/external-plugin.umd.min.js +3 -3
- package/dist/external-plugin.umd.min.js.map +1 -1
- package/package.json +1 -1
@@ -84029,8 +84029,8 @@ var scanner_cameravue_type_template_id_00e9072f_scoped_true_render = function re
|
|
84029
84029
|
};
|
84030
84030
|
var scanner_cameravue_type_template_id_00e9072f_scoped_true_staticRenderFns = [];
|
84031
84031
|
|
84032
|
-
;// 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=
|
84033
|
-
var
|
84032
|
+
;// 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=39caf02b&scoped=true&
|
84033
|
+
var scanner_camera_componentvue_type_template_id_39caf02b_scoped_true_render = function render() {
|
84034
84034
|
var _vm = this,
|
84035
84035
|
_c = _vm._self._c;
|
84036
84036
|
return _c('div', {
|
@@ -84094,7 +84094,7 @@ var scanner_camera_componentvue_type_template_id_1d5c68b5_scoped_true_render = f
|
|
84094
84094
|
}, [_vm._v(_vm._s(item.label))]), _vm._t("action")];
|
84095
84095
|
})], 2)])]);
|
84096
84096
|
};
|
84097
|
-
var
|
84097
|
+
var scanner_camera_componentvue_type_template_id_39caf02b_scoped_true_staticRenderFns = [];
|
84098
84098
|
|
84099
84099
|
;// CONCATENATED MODULE: ./packages/utils/custom-axios.ts
|
84100
84100
|
/**
|
@@ -84188,24 +84188,28 @@ class eloam_plugin_service_ELoamPassService {
|
|
84188
84188
|
// rotate: 旋转角度;deskew:纠偏,主摄像头1,副摄像头0 camidx:主摄像头0,副摄像头1;ColorMode:quality
|
84189
84189
|
url = this.baseServiceUrl + '/video=grabimage';
|
84190
84190
|
param = {
|
84191
|
-
filepath: "
|
84191
|
+
filepath: "",
|
84192
84192
|
rotate: "0",
|
84193
|
-
deskew: "
|
84193
|
+
deskew: "0",
|
84194
|
+
deskewval: "0",
|
84194
84195
|
camidx: "0",
|
84195
84196
|
ColorMode: "0",
|
84196
|
-
quality: "0"
|
84197
|
+
quality: "0",
|
84198
|
+
bIsPrint1to1: "0"
|
84197
84199
|
};
|
84198
84200
|
break;
|
84199
84201
|
case eloam_plugin_service_ELoamMethodCode.ScannerSecondaryCamera_Base64:
|
84200
84202
|
// rotate: 旋转角度,;deskew:纠偏,主摄像头1,副摄像头0 camidx:主摄像头0,副摄像头1;ColorMode:quality
|
84201
84203
|
url = this.baseServiceUrl + '/video=grabimage';
|
84202
84204
|
param = {
|
84203
|
-
filepath: "
|
84205
|
+
filepath: "",
|
84204
84206
|
rotate: "0",
|
84205
84207
|
deskew: "0",
|
84208
|
+
deskewval: "0",
|
84206
84209
|
camidx: "1",
|
84207
84210
|
ColorMode: "0",
|
84208
|
-
quality: "0"
|
84211
|
+
quality: "0",
|
84212
|
+
bIsPrint1to1: "0"
|
84209
84213
|
};
|
84210
84214
|
break;
|
84211
84215
|
case eloam_plugin_service_ELoamMethodCode.ReadIDCard_Base64:
|
@@ -84233,6 +84237,7 @@ class eloam_plugin_service_ELoamPassService {
|
|
84233
84237
|
return this.scanBySecondaryCamera();
|
84234
84238
|
}
|
84235
84239
|
}
|
84240
|
+
static async turnOnTheCamera() {}
|
84236
84241
|
/** 读取身份证 */
|
84237
84242
|
static async idCardRead() {
|
84238
84243
|
const res = await eloam_plugin_service_ELoamPassService.read(eloam_plugin_service_ELoamMethodCode.ReadIDCard_Base64);
|
@@ -84284,12 +84289,12 @@ class ScannerCameraRefreshPhotoEvent extends Event {
|
|
84284
84289
|
;// CONCATENATED MODULE: ./packages/service/external-plugins/jie-yu-plugin.service.ts
|
84285
84290
|
|
84286
84291
|
|
84287
|
-
|
84288
84292
|
/**
|
84289
84293
|
* @author: lvcy
|
84290
84294
|
* @date: 2023-07-24
|
84291
84295
|
* @description:捷宇高拍仪
|
84292
84296
|
*/
|
84297
|
+
|
84293
84298
|
var JieYuMethodCode;
|
84294
84299
|
(function (JieYuMethodCode) {
|
84295
84300
|
/** 扫描-主摄像头 */
|
@@ -84399,16 +84404,154 @@ class JieYueService {
|
|
84399
84404
|
_defineProperty(JieYueService, "scannerCameraUrl", 'ws://127.0.0.1:1818');
|
84400
84405
|
_defineProperty(JieYueService, "ws", void 0);
|
84401
84406
|
_defineProperty(JieYueService, "requestStore", []);
|
84407
|
+
;// CONCATENATED MODULE: ./packages/service/external-plugins/founder-plugin-socket.service.ts
|
84408
|
+
|
84409
|
+
/**
|
84410
|
+
* @author: lvcy
|
84411
|
+
* @date: 2023-07-26
|
84412
|
+
* @description:方正高影仪器
|
84413
|
+
*/
|
84414
|
+
|
84415
|
+
class FounderPluginSocketService {
|
84416
|
+
static startConnect() {
|
84417
|
+
if (this.ws && this.ws.readyState === WebSocket.CONNECTING) {
|
84418
|
+
return this;
|
84419
|
+
}
|
84420
|
+
const ws = new WebSocket(this.scannerCameraUrl);
|
84421
|
+
let resolved;
|
84422
|
+
const onConnect = new Promise(resolve => {
|
84423
|
+
resolved = resolve;
|
84424
|
+
});
|
84425
|
+
ws.onopen = () => {
|
84426
|
+
resolved(true);
|
84427
|
+
};
|
84428
|
+
ws.onmessage = event => {
|
84429
|
+
this.handleMessage(event);
|
84430
|
+
};
|
84431
|
+
ws.onclose = () => this.handleClose();
|
84432
|
+
ws.onerror = () => this.handleError();
|
84433
|
+
this.ws = ws;
|
84434
|
+
return onConnect;
|
84435
|
+
}
|
84436
|
+
static handleError() {
|
84437
|
+
throw Error('方正高影仪设备功能加载失败');
|
84438
|
+
}
|
84439
|
+
static handleClose() {
|
84440
|
+
if (this.ws) this.ws.close();
|
84441
|
+
}
|
84442
|
+
static handleMessage(msg) {
|
84443
|
+
let data = msg.data ? JSON.parse(msg.data) : {};
|
84444
|
+
if (data.function === 'video_stream') {
|
84445
|
+
const event = new ScannerCameraRefreshPhotoEvent(data.image_base64);
|
84446
|
+
return window.dispatchEvent(event);
|
84447
|
+
}
|
84448
|
+
}
|
84449
|
+
/**
|
84450
|
+
* 发送请求
|
84451
|
+
*/
|
84452
|
+
static async read(method) {
|
84453
|
+
await this.startConnect();
|
84454
|
+
if (this.ws.readyState === 1) {
|
84455
|
+
this.ws.send(JSON.stringify({
|
84456
|
+
function: "open_camera",
|
84457
|
+
camidx: "0"
|
84458
|
+
}));
|
84459
|
+
this.ws.send(JSON.stringify(method));
|
84460
|
+
} else {
|
84461
|
+
throw Error('设备未准备完成');
|
84462
|
+
}
|
84463
|
+
}
|
84464
|
+
static async turnOnTheCamera() {
|
84465
|
+
let param = {
|
84466
|
+
function: "set_cutpage",
|
84467
|
+
params: {
|
84468
|
+
cutpage: "false"
|
84469
|
+
}
|
84470
|
+
};
|
84471
|
+
await FounderPluginSocketService.read(param);
|
84472
|
+
}
|
84473
|
+
}
|
84474
|
+
_defineProperty(FounderPluginSocketService, "scannerCameraUrl", 'ws://127.0.0.1:38088');
|
84475
|
+
_defineProperty(FounderPluginSocketService, "ws", void 0);
|
84476
|
+
;// CONCATENATED MODULE: ./packages/service/external-plugins/uds-plugin-socket.service.ts
|
84477
|
+
|
84478
|
+
/**
|
84479
|
+
* @author: lvcy
|
84480
|
+
* @date: 2023-07-26
|
84481
|
+
* @description:紫图速拍仪
|
84482
|
+
*/
|
84483
|
+
|
84484
|
+
class UdsPluginSocketService {
|
84485
|
+
static startConnect() {
|
84486
|
+
if (this.ws && this.ws.readyState === WebSocket.CONNECTING) {
|
84487
|
+
return this;
|
84488
|
+
}
|
84489
|
+
const ws = new WebSocket(this.scannerCameraUrl);
|
84490
|
+
let resolved;
|
84491
|
+
const onConnect = new Promise(resolve => {
|
84492
|
+
resolved = resolve;
|
84493
|
+
});
|
84494
|
+
ws.onopen = () => {
|
84495
|
+
resolved(true);
|
84496
|
+
};
|
84497
|
+
ws.onmessage = event => {
|
84498
|
+
this.handleMessage(event);
|
84499
|
+
};
|
84500
|
+
ws.onclose = () => this.handleClose();
|
84501
|
+
ws.onerror = () => this.handleError();
|
84502
|
+
this.ws = ws;
|
84503
|
+
return onConnect;
|
84504
|
+
}
|
84505
|
+
static handleError() {
|
84506
|
+
throw Error('紫图速拍仪设备功能加载失败');
|
84507
|
+
}
|
84508
|
+
static handleClose() {
|
84509
|
+
if (this.ws) this.ws.close();
|
84510
|
+
}
|
84511
|
+
static handleMessage(msg) {
|
84512
|
+
let data = msg.data ? JSON.parse(msg.data) : {};
|
84513
|
+
if (data.FuncName === 'ShowVideo') {
|
84514
|
+
const event = new ScannerCameraRefreshPhotoEvent(data.result);
|
84515
|
+
return window.dispatchEvent(event);
|
84516
|
+
}
|
84517
|
+
}
|
84518
|
+
/**
|
84519
|
+
* 发送请求
|
84520
|
+
*/
|
84521
|
+
static async read(method) {
|
84522
|
+
await this.startConnect();
|
84523
|
+
if (this.ws.readyState === 1) {
|
84524
|
+
this.ws.send(JSON.stringify({
|
84525
|
+
Func: "StartRunMain",
|
84526
|
+
arg: 0
|
84527
|
+
}));
|
84528
|
+
this.ws.send(JSON.stringify(method));
|
84529
|
+
} else {
|
84530
|
+
throw Error('设备未准备完成');
|
84531
|
+
}
|
84532
|
+
}
|
84533
|
+
static async turnOnTheCamera() {
|
84534
|
+
let param = {
|
84535
|
+
Func: "ChangeCutType",
|
84536
|
+
arg: 1
|
84537
|
+
};
|
84538
|
+
await UdsPluginSocketService.read(param);
|
84539
|
+
}
|
84540
|
+
}
|
84541
|
+
_defineProperty(UdsPluginSocketService, "scannerCameraUrl", 'ws://127.0.0.1:8341');
|
84542
|
+
_defineProperty(UdsPluginSocketService, "ws", void 0);
|
84402
84543
|
;// 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&
|
84403
84544
|
|
84404
84545
|
|
84405
84546
|
|
84547
|
+
|
84548
|
+
|
84406
84549
|
const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/jpg;base64,';
|
84407
84550
|
/* harmony default export */ var scanner_camera_componentvue_type_script_lang_js_ = ({
|
84408
84551
|
name: "scanner-camera-component",
|
84409
84552
|
props: {
|
84410
84553
|
/**
|
84411
|
-
* 0-捷宇;5-良田
|
84554
|
+
* 高拍仪型号 0-捷宇;3:方正高影仪;4:紫图速拍仪;5-良田
|
84412
84555
|
*/
|
84413
84556
|
machineType: {
|
84414
84557
|
//
|
@@ -84463,9 +84606,11 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
84463
84606
|
*/
|
84464
84607
|
async takePictures() {
|
84465
84608
|
switch (this.machineType) {
|
84466
|
-
case 0:
|
84609
|
+
case 0: // 捷宇
|
84610
|
+
case 3: // 方正
|
84611
|
+
case 4:
|
84467
84612
|
{
|
84468
|
-
//
|
84613
|
+
// 紫图
|
84469
84614
|
this.$emit('send-scanner-result', this.scannerVideoSrc);
|
84470
84615
|
}
|
84471
84616
|
break;
|
@@ -84483,10 +84628,19 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
84483
84628
|
async handleStartMain() {
|
84484
84629
|
switch (this.machineType) {
|
84485
84630
|
case 0:
|
84631
|
+
// 捷宇高拍仪
|
84486
84632
|
await JieYueService.turnOnTheCamera('main');
|
84487
84633
|
break;
|
84634
|
+
case 3:
|
84635
|
+
// 方正高影仪
|
84636
|
+
await FounderPluginSocketService.turnOnTheCamera();
|
84637
|
+
break;
|
84638
|
+
case 4:
|
84639
|
+
// 紫图速拍仪
|
84640
|
+
await UdsPluginSocketService.turnOnTheCamera();
|
84641
|
+
break;
|
84488
84642
|
case 5:
|
84489
|
-
//
|
84643
|
+
// 良田高拍仪
|
84490
84644
|
this.scannerVideoSrc = eloam_plugin_service_ELoamPassService.mainCameraUrl;
|
84491
84645
|
break;
|
84492
84646
|
}
|
@@ -84497,8 +84651,17 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
84497
84651
|
async handleStartVice() {
|
84498
84652
|
switch (this.machineType) {
|
84499
84653
|
case 0:
|
84654
|
+
// 捷宇高拍仪
|
84500
84655
|
await JieYueService.turnOnTheCamera('vice');
|
84501
84656
|
break;
|
84657
|
+
case 3:
|
84658
|
+
// 方正高影仪
|
84659
|
+
await FounderPluginSocketService.turnOnTheCamera();
|
84660
|
+
break;
|
84661
|
+
case 4:
|
84662
|
+
// 紫图速拍仪
|
84663
|
+
await UdsPluginSocketService.turnOnTheCamera();
|
84664
|
+
break;
|
84502
84665
|
case 5:
|
84503
84666
|
// 良田
|
84504
84667
|
this.scannerVideoSrc = eloam_plugin_service_ELoamPassService.secondaryCameraUrl;
|
@@ -84525,10 +84688,10 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
84525
84688
|
});
|
84526
84689
|
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=script&lang=js&
|
84527
84690
|
/* harmony default export */ var component_scanner_camera_componentvue_type_script_lang_js_ = (scanner_camera_componentvue_type_script_lang_js_);
|
84528
|
-
;// 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=
|
84691
|
+
;// 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=39caf02b&prod&scoped=true&lang=scss&
|
84529
84692
|
// extracted by mini-css-extract-plugin
|
84530
84693
|
|
84531
|
-
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=style&index=0&id=
|
84694
|
+
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=style&index=0&id=39caf02b&prod&scoped=true&lang=scss&
|
84532
84695
|
|
84533
84696
|
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue
|
84534
84697
|
|
@@ -84541,11 +84704,11 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
84541
84704
|
|
84542
84705
|
var scanner_camera_component_component = normalizeComponent(
|
84543
84706
|
component_scanner_camera_componentvue_type_script_lang_js_,
|
84544
|
-
|
84545
|
-
|
84707
|
+
scanner_camera_componentvue_type_template_id_39caf02b_scoped_true_render,
|
84708
|
+
scanner_camera_componentvue_type_template_id_39caf02b_scoped_true_staticRenderFns,
|
84546
84709
|
false,
|
84547
84710
|
null,
|
84548
|
-
"
|
84711
|
+
"39caf02b",
|
84549
84712
|
null
|
84550
84713
|
|
84551
84714
|
)
|