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
@@ -84019,8 +84019,8 @@ var scanner_cameravue_type_template_id_00e9072f_scoped_true_render = function re
|
|
84019
84019
|
};
|
84020
84020
|
var scanner_cameravue_type_template_id_00e9072f_scoped_true_staticRenderFns = [];
|
84021
84021
|
|
84022
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=template&id=
|
84023
|
-
var
|
84022
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=template&id=39caf02b&scoped=true&
|
84023
|
+
var scanner_camera_componentvue_type_template_id_39caf02b_scoped_true_render = function render() {
|
84024
84024
|
var _vm = this,
|
84025
84025
|
_c = _vm._self._c;
|
84026
84026
|
return _c('div', {
|
@@ -84084,7 +84084,7 @@ var scanner_camera_componentvue_type_template_id_1d5c68b5_scoped_true_render = f
|
|
84084
84084
|
}, [_vm._v(_vm._s(item.label))]), _vm._t("action")];
|
84085
84085
|
})], 2)])]);
|
84086
84086
|
};
|
84087
|
-
var
|
84087
|
+
var scanner_camera_componentvue_type_template_id_39caf02b_scoped_true_staticRenderFns = [];
|
84088
84088
|
|
84089
84089
|
;// CONCATENATED MODULE: ./packages/utils/custom-axios.ts
|
84090
84090
|
/**
|
@@ -84178,24 +84178,28 @@ class eloam_plugin_service_ELoamPassService {
|
|
84178
84178
|
// rotate: 旋转角度;deskew:纠偏,主摄像头1,副摄像头0 camidx:主摄像头0,副摄像头1;ColorMode:quality
|
84179
84179
|
url = this.baseServiceUrl + '/video=grabimage';
|
84180
84180
|
param = {
|
84181
|
-
filepath: "
|
84181
|
+
filepath: "",
|
84182
84182
|
rotate: "0",
|
84183
|
-
deskew: "
|
84183
|
+
deskew: "0",
|
84184
|
+
deskewval: "0",
|
84184
84185
|
camidx: "0",
|
84185
84186
|
ColorMode: "0",
|
84186
|
-
quality: "0"
|
84187
|
+
quality: "0",
|
84188
|
+
bIsPrint1to1: "0"
|
84187
84189
|
};
|
84188
84190
|
break;
|
84189
84191
|
case eloam_plugin_service_ELoamMethodCode.ScannerSecondaryCamera_Base64:
|
84190
84192
|
// rotate: 旋转角度,;deskew:纠偏,主摄像头1,副摄像头0 camidx:主摄像头0,副摄像头1;ColorMode:quality
|
84191
84193
|
url = this.baseServiceUrl + '/video=grabimage';
|
84192
84194
|
param = {
|
84193
|
-
filepath: "
|
84195
|
+
filepath: "",
|
84194
84196
|
rotate: "0",
|
84195
84197
|
deskew: "0",
|
84198
|
+
deskewval: "0",
|
84196
84199
|
camidx: "1",
|
84197
84200
|
ColorMode: "0",
|
84198
|
-
quality: "0"
|
84201
|
+
quality: "0",
|
84202
|
+
bIsPrint1to1: "0"
|
84199
84203
|
};
|
84200
84204
|
break;
|
84201
84205
|
case eloam_plugin_service_ELoamMethodCode.ReadIDCard_Base64:
|
@@ -84223,6 +84227,7 @@ class eloam_plugin_service_ELoamPassService {
|
|
84223
84227
|
return this.scanBySecondaryCamera();
|
84224
84228
|
}
|
84225
84229
|
}
|
84230
|
+
static async turnOnTheCamera() {}
|
84226
84231
|
/** 读取身份证 */
|
84227
84232
|
static async idCardRead() {
|
84228
84233
|
const res = await eloam_plugin_service_ELoamPassService.read(eloam_plugin_service_ELoamMethodCode.ReadIDCard_Base64);
|
@@ -84274,12 +84279,12 @@ class ScannerCameraRefreshPhotoEvent extends Event {
|
|
84274
84279
|
;// CONCATENATED MODULE: ./packages/service/external-plugins/jie-yu-plugin.service.ts
|
84275
84280
|
|
84276
84281
|
|
84277
|
-
|
84278
84282
|
/**
|
84279
84283
|
* @author: lvcy
|
84280
84284
|
* @date: 2023-07-24
|
84281
84285
|
* @description:捷宇高拍仪
|
84282
84286
|
*/
|
84287
|
+
|
84283
84288
|
var JieYuMethodCode;
|
84284
84289
|
(function (JieYuMethodCode) {
|
84285
84290
|
/** 扫描-主摄像头 */
|
@@ -84389,16 +84394,154 @@ class JieYueService {
|
|
84389
84394
|
_defineProperty(JieYueService, "scannerCameraUrl", 'ws://127.0.0.1:1818');
|
84390
84395
|
_defineProperty(JieYueService, "ws", void 0);
|
84391
84396
|
_defineProperty(JieYueService, "requestStore", []);
|
84397
|
+
;// CONCATENATED MODULE: ./packages/service/external-plugins/founder-plugin-socket.service.ts
|
84398
|
+
|
84399
|
+
/**
|
84400
|
+
* @author: lvcy
|
84401
|
+
* @date: 2023-07-26
|
84402
|
+
* @description:方正高影仪器
|
84403
|
+
*/
|
84404
|
+
|
84405
|
+
class FounderPluginSocketService {
|
84406
|
+
static startConnect() {
|
84407
|
+
if (this.ws && this.ws.readyState === WebSocket.CONNECTING) {
|
84408
|
+
return this;
|
84409
|
+
}
|
84410
|
+
const ws = new WebSocket(this.scannerCameraUrl);
|
84411
|
+
let resolved;
|
84412
|
+
const onConnect = new Promise(resolve => {
|
84413
|
+
resolved = resolve;
|
84414
|
+
});
|
84415
|
+
ws.onopen = () => {
|
84416
|
+
resolved(true);
|
84417
|
+
};
|
84418
|
+
ws.onmessage = event => {
|
84419
|
+
this.handleMessage(event);
|
84420
|
+
};
|
84421
|
+
ws.onclose = () => this.handleClose();
|
84422
|
+
ws.onerror = () => this.handleError();
|
84423
|
+
this.ws = ws;
|
84424
|
+
return onConnect;
|
84425
|
+
}
|
84426
|
+
static handleError() {
|
84427
|
+
throw Error('方正高影仪设备功能加载失败');
|
84428
|
+
}
|
84429
|
+
static handleClose() {
|
84430
|
+
if (this.ws) this.ws.close();
|
84431
|
+
}
|
84432
|
+
static handleMessage(msg) {
|
84433
|
+
let data = msg.data ? JSON.parse(msg.data) : {};
|
84434
|
+
if (data.function === 'video_stream') {
|
84435
|
+
const event = new ScannerCameraRefreshPhotoEvent(data.image_base64);
|
84436
|
+
return window.dispatchEvent(event);
|
84437
|
+
}
|
84438
|
+
}
|
84439
|
+
/**
|
84440
|
+
* 发送请求
|
84441
|
+
*/
|
84442
|
+
static async read(method) {
|
84443
|
+
await this.startConnect();
|
84444
|
+
if (this.ws.readyState === 1) {
|
84445
|
+
this.ws.send(JSON.stringify({
|
84446
|
+
function: "open_camera",
|
84447
|
+
camidx: "0"
|
84448
|
+
}));
|
84449
|
+
this.ws.send(JSON.stringify(method));
|
84450
|
+
} else {
|
84451
|
+
throw Error('设备未准备完成');
|
84452
|
+
}
|
84453
|
+
}
|
84454
|
+
static async turnOnTheCamera() {
|
84455
|
+
let param = {
|
84456
|
+
function: "set_cutpage",
|
84457
|
+
params: {
|
84458
|
+
cutpage: "false"
|
84459
|
+
}
|
84460
|
+
};
|
84461
|
+
await FounderPluginSocketService.read(param);
|
84462
|
+
}
|
84463
|
+
}
|
84464
|
+
_defineProperty(FounderPluginSocketService, "scannerCameraUrl", 'ws://127.0.0.1:38088');
|
84465
|
+
_defineProperty(FounderPluginSocketService, "ws", void 0);
|
84466
|
+
;// CONCATENATED MODULE: ./packages/service/external-plugins/uds-plugin-socket.service.ts
|
84467
|
+
|
84468
|
+
/**
|
84469
|
+
* @author: lvcy
|
84470
|
+
* @date: 2023-07-26
|
84471
|
+
* @description:紫图速拍仪
|
84472
|
+
*/
|
84473
|
+
|
84474
|
+
class UdsPluginSocketService {
|
84475
|
+
static startConnect() {
|
84476
|
+
if (this.ws && this.ws.readyState === WebSocket.CONNECTING) {
|
84477
|
+
return this;
|
84478
|
+
}
|
84479
|
+
const ws = new WebSocket(this.scannerCameraUrl);
|
84480
|
+
let resolved;
|
84481
|
+
const onConnect = new Promise(resolve => {
|
84482
|
+
resolved = resolve;
|
84483
|
+
});
|
84484
|
+
ws.onopen = () => {
|
84485
|
+
resolved(true);
|
84486
|
+
};
|
84487
|
+
ws.onmessage = event => {
|
84488
|
+
this.handleMessage(event);
|
84489
|
+
};
|
84490
|
+
ws.onclose = () => this.handleClose();
|
84491
|
+
ws.onerror = () => this.handleError();
|
84492
|
+
this.ws = ws;
|
84493
|
+
return onConnect;
|
84494
|
+
}
|
84495
|
+
static handleError() {
|
84496
|
+
throw Error('紫图速拍仪设备功能加载失败');
|
84497
|
+
}
|
84498
|
+
static handleClose() {
|
84499
|
+
if (this.ws) this.ws.close();
|
84500
|
+
}
|
84501
|
+
static handleMessage(msg) {
|
84502
|
+
let data = msg.data ? JSON.parse(msg.data) : {};
|
84503
|
+
if (data.FuncName === 'ShowVideo') {
|
84504
|
+
const event = new ScannerCameraRefreshPhotoEvent(data.result);
|
84505
|
+
return window.dispatchEvent(event);
|
84506
|
+
}
|
84507
|
+
}
|
84508
|
+
/**
|
84509
|
+
* 发送请求
|
84510
|
+
*/
|
84511
|
+
static async read(method) {
|
84512
|
+
await this.startConnect();
|
84513
|
+
if (this.ws.readyState === 1) {
|
84514
|
+
this.ws.send(JSON.stringify({
|
84515
|
+
Func: "StartRunMain",
|
84516
|
+
arg: 0
|
84517
|
+
}));
|
84518
|
+
this.ws.send(JSON.stringify(method));
|
84519
|
+
} else {
|
84520
|
+
throw Error('设备未准备完成');
|
84521
|
+
}
|
84522
|
+
}
|
84523
|
+
static async turnOnTheCamera() {
|
84524
|
+
let param = {
|
84525
|
+
Func: "ChangeCutType",
|
84526
|
+
arg: 1
|
84527
|
+
};
|
84528
|
+
await UdsPluginSocketService.read(param);
|
84529
|
+
}
|
84530
|
+
}
|
84531
|
+
_defineProperty(UdsPluginSocketService, "scannerCameraUrl", 'ws://127.0.0.1:8341');
|
84532
|
+
_defineProperty(UdsPluginSocketService, "ws", void 0);
|
84392
84533
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=script&lang=js&
|
84393
84534
|
|
84394
84535
|
|
84395
84536
|
|
84537
|
+
|
84538
|
+
|
84396
84539
|
const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/jpg;base64,';
|
84397
84540
|
/* harmony default export */ var scanner_camera_componentvue_type_script_lang_js_ = ({
|
84398
84541
|
name: "scanner-camera-component",
|
84399
84542
|
props: {
|
84400
84543
|
/**
|
84401
|
-
* 0-捷宇;5-良田
|
84544
|
+
* 高拍仪型号 0-捷宇;3:方正高影仪;4:紫图速拍仪;5-良田
|
84402
84545
|
*/
|
84403
84546
|
machineType: {
|
84404
84547
|
//
|
@@ -84453,9 +84596,11 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
84453
84596
|
*/
|
84454
84597
|
async takePictures() {
|
84455
84598
|
switch (this.machineType) {
|
84456
|
-
case 0:
|
84599
|
+
case 0: // 捷宇
|
84600
|
+
case 3: // 方正
|
84601
|
+
case 4:
|
84457
84602
|
{
|
84458
|
-
//
|
84603
|
+
// 紫图
|
84459
84604
|
this.$emit('send-scanner-result', this.scannerVideoSrc);
|
84460
84605
|
}
|
84461
84606
|
break;
|
@@ -84473,10 +84618,19 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
84473
84618
|
async handleStartMain() {
|
84474
84619
|
switch (this.machineType) {
|
84475
84620
|
case 0:
|
84621
|
+
// 捷宇高拍仪
|
84476
84622
|
await JieYueService.turnOnTheCamera('main');
|
84477
84623
|
break;
|
84624
|
+
case 3:
|
84625
|
+
// 方正高影仪
|
84626
|
+
await FounderPluginSocketService.turnOnTheCamera();
|
84627
|
+
break;
|
84628
|
+
case 4:
|
84629
|
+
// 紫图速拍仪
|
84630
|
+
await UdsPluginSocketService.turnOnTheCamera();
|
84631
|
+
break;
|
84478
84632
|
case 5:
|
84479
|
-
//
|
84633
|
+
// 良田高拍仪
|
84480
84634
|
this.scannerVideoSrc = eloam_plugin_service_ELoamPassService.mainCameraUrl;
|
84481
84635
|
break;
|
84482
84636
|
}
|
@@ -84487,8 +84641,17 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
84487
84641
|
async handleStartVice() {
|
84488
84642
|
switch (this.machineType) {
|
84489
84643
|
case 0:
|
84644
|
+
// 捷宇高拍仪
|
84490
84645
|
await JieYueService.turnOnTheCamera('vice');
|
84491
84646
|
break;
|
84647
|
+
case 3:
|
84648
|
+
// 方正高影仪
|
84649
|
+
await FounderPluginSocketService.turnOnTheCamera();
|
84650
|
+
break;
|
84651
|
+
case 4:
|
84652
|
+
// 紫图速拍仪
|
84653
|
+
await UdsPluginSocketService.turnOnTheCamera();
|
84654
|
+
break;
|
84492
84655
|
case 5:
|
84493
84656
|
// 良田
|
84494
84657
|
this.scannerVideoSrc = eloam_plugin_service_ELoamPassService.secondaryCameraUrl;
|
@@ -84515,10 +84678,10 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
84515
84678
|
});
|
84516
84679
|
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=script&lang=js&
|
84517
84680
|
/* harmony default export */ var component_scanner_camera_componentvue_type_script_lang_js_ = (scanner_camera_componentvue_type_script_lang_js_);
|
84518
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=style&index=0&id=
|
84681
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=style&index=0&id=39caf02b&prod&scoped=true&lang=scss&
|
84519
84682
|
// extracted by mini-css-extract-plugin
|
84520
84683
|
|
84521
|
-
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=style&index=0&id=
|
84684
|
+
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=style&index=0&id=39caf02b&prod&scoped=true&lang=scss&
|
84522
84685
|
|
84523
84686
|
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue
|
84524
84687
|
|
@@ -84531,11 +84694,11 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
84531
84694
|
|
84532
84695
|
var scanner_camera_component_component = normalizeComponent(
|
84533
84696
|
component_scanner_camera_componentvue_type_script_lang_js_,
|
84534
|
-
|
84535
|
-
|
84697
|
+
scanner_camera_componentvue_type_template_id_39caf02b_scoped_true_render,
|
84698
|
+
scanner_camera_componentvue_type_template_id_39caf02b_scoped_true_staticRenderFns,
|
84536
84699
|
false,
|
84537
84700
|
null,
|
84538
|
-
"
|
84701
|
+
"39caf02b",
|
84539
84702
|
null
|
84540
84703
|
|
84541
84704
|
)
|