hoeditor-web 3.0.69 → 3.0.70
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/lib/hoeditor.umd.js +172 -43
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -8964,7 +8964,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
8964
8964
|
|
|
8965
8965
|
/***/ }),
|
|
8966
8966
|
|
|
8967
|
-
/***/
|
|
8967
|
+
/***/ 59046:
|
|
8968
8968
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8969
8969
|
|
|
8970
8970
|
"use strict";
|
|
@@ -8984,7 +8984,7 @@ var es_string_includes = __webpack_require__(32023);
|
|
|
8984
8984
|
var es_regexp_exec = __webpack_require__(74916);
|
|
8985
8985
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
8986
8986
|
var es_string_replace = __webpack_require__(15306);
|
|
8987
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
8987
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=7d01edb7&
|
|
8988
8988
|
|
|
8989
8989
|
|
|
8990
8990
|
|
|
@@ -9372,7 +9372,7 @@ var render = function render() {
|
|
|
9372
9372
|
};
|
|
9373
9373
|
var staticRenderFns = [];
|
|
9374
9374
|
|
|
9375
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
9375
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=7d01edb7&
|
|
9376
9376
|
|
|
9377
9377
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
9378
9378
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -11533,8 +11533,7 @@ var type = __webpack_require__(41542);
|
|
|
11533
11533
|
v.showText = v.text.split("<元素>")[0];
|
|
11534
11534
|
} else if (v.text.includes("<\u641C\u7D22>")) {
|
|
11535
11535
|
v.showText = v.text.split("<搜索>")[0];
|
|
11536
|
-
}
|
|
11537
|
-
if (v.text.includes("__")) {
|
|
11536
|
+
} else if (v.text.includes("__")) {
|
|
11538
11537
|
v.showText = v.text.split("__")[0];
|
|
11539
11538
|
} else {
|
|
11540
11539
|
v.showText = v.text;
|
|
@@ -12137,10 +12136,10 @@ var type = __webpack_require__(41542);
|
|
|
12137
12136
|
});
|
|
12138
12137
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
|
|
12139
12138
|
/* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
|
|
12140
|
-
;// 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/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/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
12139
|
+
;// 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/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/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=7d01edb7&prod&lang=scss&
|
|
12141
12140
|
// extracted by mini-css-extract-plugin
|
|
12142
12141
|
|
|
12143
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
12142
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=7d01edb7&prod&lang=scss&
|
|
12144
12143
|
|
|
12145
12144
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
12146
12145
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -14939,7 +14938,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
14939
14938
|
|
|
14940
14939
|
/***/ }),
|
|
14941
14940
|
|
|
14942
|
-
/***/
|
|
14941
|
+
/***/ 84240:
|
|
14943
14942
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
14944
14943
|
|
|
14945
14944
|
"use strict";
|
|
@@ -14953,7 +14952,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
14953
14952
|
|
|
14954
14953
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
14955
14954
|
var es_function_name = __webpack_require__(68309);
|
|
14956
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=template&id=
|
|
14955
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=template&id=5cef9662&
|
|
14957
14956
|
|
|
14958
14957
|
var render = function render() {
|
|
14959
14958
|
var _vm = this,
|
|
@@ -15032,7 +15031,11 @@ var render = function render() {
|
|
|
15032
15031
|
attrs: {
|
|
15033
15032
|
"value": 3
|
|
15034
15033
|
}
|
|
15035
|
-
}, [_vm._v("自定义CA签名(默认带出职称和日期)")])
|
|
15034
|
+
}, [_vm._v("自定义CA签名(默认带出职称和日期)")]), _c('a-radio', {
|
|
15035
|
+
attrs: {
|
|
15036
|
+
"value": 4
|
|
15037
|
+
}
|
|
15038
|
+
}, [_vm._v("自定义CA签名(职称,连接符可选)")])], 1)], 1)]), _vm.signType == 2 ? _c('li', {
|
|
15036
15039
|
staticClass: "control-item"
|
|
15037
15040
|
}, [_c('span', {
|
|
15038
15041
|
staticClass: "label"
|
|
@@ -15048,11 +15051,11 @@ var render = function render() {
|
|
|
15048
15051
|
},
|
|
15049
15052
|
expression: "connectChar"
|
|
15050
15053
|
}
|
|
15051
|
-
})], 1) : _vm._e(), _vm.signType
|
|
15054
|
+
})], 1) : _vm._e(), _vm.signType == 4 ? _c('li', {
|
|
15052
15055
|
staticClass: "control-item"
|
|
15053
15056
|
}, [_c('span', {
|
|
15054
15057
|
staticClass: "label"
|
|
15055
|
-
}, [_vm._v("
|
|
15058
|
+
}, [_vm._v("连接符")]), _c('a-select', {
|
|
15056
15059
|
attrs: {
|
|
15057
15060
|
"getPopupContainer": function getPopupContainer(triggerNode) {
|
|
15058
15061
|
return triggerNode.parentNode;
|
|
@@ -15060,29 +15063,66 @@ var render = function render() {
|
|
|
15060
15063
|
"placeholder": "请选择"
|
|
15061
15064
|
},
|
|
15062
15065
|
model: {
|
|
15063
|
-
value: _vm.
|
|
15066
|
+
value: _vm.connectMode,
|
|
15064
15067
|
callback: function callback($$v) {
|
|
15065
|
-
_vm.
|
|
15068
|
+
_vm.connectMode = $$v;
|
|
15066
15069
|
},
|
|
15067
|
-
expression: "
|
|
15070
|
+
expression: "connectMode"
|
|
15068
15071
|
}
|
|
15069
15072
|
}, [_c('a-select-option', {
|
|
15070
15073
|
attrs: {
|
|
15071
|
-
"value": "
|
|
15074
|
+
"value": "/"
|
|
15072
15075
|
}
|
|
15073
|
-
}, [_vm._v("
|
|
15076
|
+
}, [_vm._v("/")]), _c('a-select-option', {
|
|
15074
15077
|
attrs: {
|
|
15075
|
-
"value": "
|
|
15078
|
+
"value": "换行"
|
|
15076
15079
|
}
|
|
15077
|
-
}, [_vm._v("
|
|
15080
|
+
}, [_vm._v("换行")]), _c('a-select-option', {
|
|
15078
15081
|
attrs: {
|
|
15079
|
-
"value": ""
|
|
15082
|
+
"value": "、"
|
|
15080
15083
|
}
|
|
15081
|
-
}, [_vm._v("
|
|
15084
|
+
}, [_vm._v("、")]), _c('a-select-option', {
|
|
15082
15085
|
attrs: {
|
|
15083
|
-
"value": "
|
|
15086
|
+
"value": ","
|
|
15087
|
+
}
|
|
15088
|
+
}, [_vm._v(",")])], 1)], 1) : _vm._e(), _vm.signType == 4 ? _c('li', {
|
|
15089
|
+
staticClass: "control-item"
|
|
15090
|
+
}, [_c('span', {
|
|
15091
|
+
staticClass: "label"
|
|
15092
|
+
}, [_vm._v("职称")]), _c('a-checkbox', {
|
|
15093
|
+
model: {
|
|
15094
|
+
value: _vm.isDisplayTitle,
|
|
15095
|
+
callback: function callback($$v) {
|
|
15096
|
+
_vm.isDisplayTitle = $$v;
|
|
15097
|
+
},
|
|
15098
|
+
expression: "isDisplayTitle"
|
|
15084
15099
|
}
|
|
15085
|
-
},
|
|
15100
|
+
})], 1) : _vm._e(), _vm.signType >= 9 ? [_c('li', {
|
|
15101
|
+
staticClass: "control-item"
|
|
15102
|
+
}, [_c('span', {
|
|
15103
|
+
staticClass: "label"
|
|
15104
|
+
}, [_vm._v("签名格式")]), _c('a-select', {
|
|
15105
|
+
attrs: {
|
|
15106
|
+
"getPopupContainer": function getPopupContainer(triggerNode) {
|
|
15107
|
+
return triggerNode.parentNode;
|
|
15108
|
+
},
|
|
15109
|
+
"placeholder": "请选择"
|
|
15110
|
+
},
|
|
15111
|
+
model: {
|
|
15112
|
+
value: _vm.signFormat,
|
|
15113
|
+
callback: function callback($$v) {
|
|
15114
|
+
_vm.signFormat = $$v;
|
|
15115
|
+
},
|
|
15116
|
+
expression: "signFormat"
|
|
15117
|
+
}
|
|
15118
|
+
}, [_vm._l(_vm.defaultFormatList, function (format) {
|
|
15119
|
+
return _c('a-select-option', {
|
|
15120
|
+
key: format,
|
|
15121
|
+
attrs: {
|
|
15122
|
+
"value": format
|
|
15123
|
+
}
|
|
15124
|
+
}, [_vm._v(_vm._s(format))]);
|
|
15125
|
+
}), _vm._l(_vm.customSignFormatList, function (format) {
|
|
15086
15126
|
return _c('a-select-option', {
|
|
15087
15127
|
key: format.label,
|
|
15088
15128
|
attrs: {
|
|
@@ -15311,8 +15351,10 @@ var render = function render() {
|
|
|
15311
15351
|
};
|
|
15312
15352
|
var staticRenderFns = [];
|
|
15313
15353
|
|
|
15314
|
-
;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=template&id=
|
|
15354
|
+
;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=template&id=5cef9662&
|
|
15315
15355
|
|
|
15356
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
15357
|
+
var objectSpread2 = __webpack_require__(63442);
|
|
15316
15358
|
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/message/style/index.js + 1 modules
|
|
15317
15359
|
var style = __webpack_require__(94310);
|
|
15318
15360
|
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/message/index.js + 3 modules
|
|
@@ -15360,6 +15402,7 @@ var SignNode = __webpack_require__(24701);
|
|
|
15360
15402
|
|
|
15361
15403
|
|
|
15362
15404
|
|
|
15405
|
+
|
|
15363
15406
|
/* harmony default export */ var Signvue_type_script_lang_js_ = ({
|
|
15364
15407
|
name: 'Sign',
|
|
15365
15408
|
props: {
|
|
@@ -15387,18 +15430,23 @@ var SignNode = __webpack_require__(24701);
|
|
|
15387
15430
|
signTimeFormat: 'yyyy-MM-DD HH:mm',
|
|
15388
15431
|
customFormatContent: '',
|
|
15389
15432
|
customSignFormatList: [],
|
|
15390
|
-
|
|
15433
|
+
defaultFormatList: ['<医师姓名>', '<医师姓名>(<医师职称>)', '<医师姓名>:<医师职称>', '<医师姓名>:<医师职称>\n<签名时间>'],
|
|
15434
|
+
animationClassNames: 'control-modal-contents sign-modal animation-in',
|
|
15435
|
+
isDisplayTitle: false
|
|
15391
15436
|
};
|
|
15392
15437
|
},
|
|
15393
15438
|
mounted: function mounted() {
|
|
15394
15439
|
if (this.controlStatus === 'update') {
|
|
15395
15440
|
var node = this.getCurrentSelectNode();
|
|
15396
15441
|
if (node) {
|
|
15442
|
+
var _node$otherProperties;
|
|
15397
15443
|
this.name = node.name;
|
|
15398
15444
|
if (node.attribute == 2) {
|
|
15399
15445
|
this.signType = 2; // 自定义ca签名(带职称)
|
|
15400
15446
|
} else if (node.attribute == 3) {
|
|
15401
|
-
this.signType = 3; // 自定义
|
|
15447
|
+
this.signType = 3; // 自定义CA签名(默认带出职称和日期)
|
|
15448
|
+
} else if (node.attribute == 4) {
|
|
15449
|
+
this.signType = 4; // 自定义CA签名(职称,连接符可选)
|
|
15402
15450
|
} else if (node.attribute == 1) {
|
|
15403
15451
|
this.signType = 1; // 患者签名
|
|
15404
15452
|
} else {
|
|
@@ -15416,6 +15464,7 @@ var SignNode = __webpack_require__(24701);
|
|
|
15416
15464
|
this.signTimeFormat = node.signTimeFormat;
|
|
15417
15465
|
this.customFormatContent = node.customFormatContent ? node.customFormatContent : '';
|
|
15418
15466
|
this.customSignFormatList = node.customSignFormatList ? node.customSignFormatList : [];
|
|
15467
|
+
this.isDisplayTitle = (_node$otherProperties = node.otherProperties) !== null && _node$otherProperties !== void 0 && _node$otherProperties.isDisplayTitle ? true : false;
|
|
15419
15468
|
}
|
|
15420
15469
|
}
|
|
15421
15470
|
},
|
|
@@ -15488,6 +15537,12 @@ var SignNode = __webpack_require__(24701);
|
|
|
15488
15537
|
} else if (this.signType === 3) {
|
|
15489
15538
|
// 自定义多人签名
|
|
15490
15539
|
this.vueController.insertEmptySignNode(this.name ? this.name : '自定义CA签名(默认带出职称和日期)', 0, '', '', customProperty, '', undefined, undefined, this.signType, this.connectChar);
|
|
15540
|
+
} else if (this.signType === 4) {
|
|
15541
|
+
// 自定义多人签名
|
|
15542
|
+
|
|
15543
|
+
this.vueController.insertEmptySignNode(this.name ? this.name : '自定义CA签名(职称,连接符可选)', 0, '', '', customProperty, this.connectMode, undefined, undefined, this.signType, this.connectChar, {
|
|
15544
|
+
isDisplayTitle: this.isDisplayTitle
|
|
15545
|
+
});
|
|
15491
15546
|
} else {
|
|
15492
15547
|
var name = this.name ? this.name : this.signType == 1 ? '患者签名' : '医生签名';
|
|
15493
15548
|
this.vueController.insertEmptySignNode(name, 0, '', '', customProperty, '', undefined, undefined, this.signType);
|
|
@@ -15497,7 +15552,10 @@ var SignNode = __webpack_require__(24701);
|
|
|
15497
15552
|
var _name = this.name ? this.name : node.name;
|
|
15498
15553
|
var attribute = this.signType === 9 ? 0 : this.signType;
|
|
15499
15554
|
var signType = this.signType == 9 ? 1 : 0; // 自定义签名的signType=1 其他签名 signType=0
|
|
15500
|
-
|
|
15555
|
+
var otherProperties = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, node.otherProperties), {}, {
|
|
15556
|
+
isDisplayTitle: this.isDisplayTitle
|
|
15557
|
+
});
|
|
15558
|
+
this.vueController.updateEmptySignNode(node, _name, attribute, this.connectChar, signType, this.signFormat, this.signor, '', this.signTimeFormat, this.connectMode, otherProperties);
|
|
15501
15559
|
}
|
|
15502
15560
|
this.handleClose();
|
|
15503
15561
|
},
|
|
@@ -15509,10 +15567,10 @@ var SignNode = __webpack_require__(24701);
|
|
|
15509
15567
|
});
|
|
15510
15568
|
;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=script&lang=js&
|
|
15511
15569
|
/* harmony default export */ var sign_Signvue_type_script_lang_js_ = (Signvue_type_script_lang_js_);
|
|
15512
|
-
;// 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/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/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=
|
|
15570
|
+
;// 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/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/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=5cef9662&prod&lang=scss&
|
|
15513
15571
|
// extracted by mini-css-extract-plugin
|
|
15514
15572
|
|
|
15515
|
-
;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=
|
|
15573
|
+
;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=5cef9662&prod&lang=scss&
|
|
15516
15574
|
|
|
15517
15575
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
15518
15576
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -41456,7 +41514,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41456
41514
|
sPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
41457
41515
|
}
|
|
41458
41516
|
}
|
|
41459
|
-
var newSignNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_23__/* .NodeType.ntSign */ .Jq.ntSign, 2, type, name, node.signType, node.signFormat, signor, signTime, node.signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, node.styleIndex, node.connectMode, type == 1 && node.signType == 1 ? true : node.isFront, node.allowEditSignTime, fingerPrintSrc, fingerPosition,
|
|
41517
|
+
var newSignNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_23__/* .NodeType.ntSign */ .Jq.ntSign, 2, type, name, node.signType, node.signFormat, signor, signTime, node.signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, node.styleIndex, node.connectMode, type == 1 && node.signType == 1 ? true : node.isFront, node.allowEditSignTime, fingerPrintSrc, fingerPosition, node.attribute, node.connectChar, otherProperties);
|
|
41460
41518
|
//插入该表达式节点
|
|
41461
41519
|
hoEditorFactory.undoService.begin();
|
|
41462
41520
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_24__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, sPath, newSignNode));
|
|
@@ -41476,7 +41534,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41476
41534
|
*/
|
|
41477
41535
|
}, {
|
|
41478
41536
|
key: "updateEmptySignNode",
|
|
41479
|
-
value: function updateEmptySignNode(node, name, attribute, connectChar, signType, signFormat, signor, signTime, signTimeFormat) {
|
|
41537
|
+
value: function updateEmptySignNode(node, name, attribute, connectChar, signType, signFormat, signor, signTime, signTimeFormat, connectMode, otherProperties) {
|
|
41480
41538
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_76__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41481
41539
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
41482
41540
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
@@ -41492,6 +41550,8 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41492
41550
|
node.signTime = signTime;
|
|
41493
41551
|
node.signTimeFormat = signTimeFormat;
|
|
41494
41552
|
node.attribute = attribute;
|
|
41553
|
+
node.connectMode = connectMode;
|
|
41554
|
+
node.otherProperties = otherProperties;
|
|
41495
41555
|
hoEditorFactory.docTree.change(changeEvent);
|
|
41496
41556
|
}
|
|
41497
41557
|
/**
|
|
@@ -58883,9 +58943,9 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58883
58943
|
//指纹
|
|
58884
58944
|
//样式
|
|
58885
58945
|
// 当前签名图片是否已转成jpg 0代表未转换 1代表已转换
|
|
58886
|
-
//签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片) 3:ca签名(职称+签名+日期)
|
|
58946
|
+
//签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片) 3:ca签名(职称+签名+日期)4.ca签名(职称、连接符可选)
|
|
58887
58947
|
//自定义CA签名连接符
|
|
58888
|
-
//其它属性{"title":"职称","time":"签名日期"}
|
|
58948
|
+
//其它属性{"isDisplayTitle":true,"title":"职称","time":"签名日期"}
|
|
58889
58949
|
function SignNode(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute, connectChar, otherProperties) {
|
|
58890
58950
|
var _this;
|
|
58891
58951
|
(0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, SignNode);
|
|
@@ -58945,8 +59005,8 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58945
59005
|
} else {
|
|
58946
59006
|
_this._styleIndex = hoEditorFactory.docTree.curStyleIndex;
|
|
58947
59007
|
}
|
|
59008
|
+
_this._connectMode = connectMode;
|
|
58948
59009
|
if (signType === 1 && type !== 1) {
|
|
58949
|
-
_this._connectMode = connectMode;
|
|
58950
59010
|
_this._isFront = isFront;
|
|
58951
59011
|
_this._allowEditSignTime = allowEditSignTime;
|
|
58952
59012
|
}
|
|
@@ -76087,7 +76147,7 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
|
|
|
76087
76147
|
/*
|
|
76088
76148
|
* @Author: your name
|
|
76089
76149
|
* @Date: 2021-09-01 16:51:49
|
|
76090
|
-
* @LastEditTime: 2023-
|
|
76150
|
+
* @LastEditTime: 2023-06-15 16:59:56
|
|
76091
76151
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
76092
76152
|
* @Description: In User Settings Edit
|
|
76093
76153
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawSignNode.ts
|
|
@@ -76133,6 +76193,9 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
76133
76193
|
_this._textStyle = cbStyle.getStyleKey();
|
|
76134
76194
|
_this._abi02 = customProperty && customProperty.abi02 ? customProperty.abi02 : "";
|
|
76135
76195
|
_this._title = otherProperties && otherProperties.title ? otherProperties.title : "";
|
|
76196
|
+
if (_this.attribute === 4 && _this._title == "") {
|
|
76197
|
+
_this._title = _this._abi02;
|
|
76198
|
+
}
|
|
76136
76199
|
_this._signTime = otherProperties && otherProperties.time ? otherProperties.time : "";
|
|
76137
76200
|
if (_this._title != "") {
|
|
76138
76201
|
_this._drawTitle = new createjs.Text(_this.title + _this._connectChar, _this._textStyle, '#000000');
|
|
@@ -76174,7 +76237,9 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
76174
76237
|
}
|
|
76175
76238
|
}
|
|
76176
76239
|
//this._drawText = new DrawSimpleText('/', cbStyle.getStyleKey(), "#000000");
|
|
76177
|
-
|
|
76240
|
+
if (node.connectMode != "换行" && node.connectMode != "无") {
|
|
76241
|
+
_this._drawText = new createjs.Text(node.connectMode, _this._textStyle, '#000000');
|
|
76242
|
+
}
|
|
76178
76243
|
if (_this.number === 0) {
|
|
76179
76244
|
var dText = new createjs.Text(_this.signName, _this._textStyle, '#000000');
|
|
76180
76245
|
_this.dWidth = dText.getMeasuredWidth();
|
|
@@ -76185,7 +76250,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
76185
76250
|
if (number === 1) {
|
|
76186
76251
|
_this.dWidth = imgWidth * scale;
|
|
76187
76252
|
} else {
|
|
76188
|
-
_this.dWidth = imgWidth * scale + _this._drawText.getMeasuredWidth();
|
|
76253
|
+
_this.dWidth = imgWidth * scale + (_this._drawText ? _this._drawText.getMeasuredWidth() : 0);
|
|
76189
76254
|
}
|
|
76190
76255
|
if (_this.attribute === 2 && _this._abi02 !== "") {
|
|
76191
76256
|
_this._drawAbi02 = new createjs.Text(_this._abi02 + _this._connectChar, _this._textStyle, '#000000');
|
|
@@ -76202,6 +76267,11 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
76202
76267
|
_this.dHeight = _this.dHeight + _this._drawDate.getMeasuredHeight() + 2;
|
|
76203
76268
|
}
|
|
76204
76269
|
}
|
|
76270
|
+
if (_this.attribute === 4) {
|
|
76271
|
+
if (_this.title != "") {
|
|
76272
|
+
_this.dWidth += _this._drawTitle.getMeasuredWidth();
|
|
76273
|
+
}
|
|
76274
|
+
}
|
|
76205
76275
|
}
|
|
76206
76276
|
if (_this.type === 2) {
|
|
76207
76277
|
//文字
|
|
@@ -76579,6 +76649,17 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
76579
76649
|
bitmap.x = _this3._drawTitle.getMeasuredWidth();
|
|
76580
76650
|
_this3.addChild(bitmap);
|
|
76581
76651
|
}
|
|
76652
|
+
} else if (_this3.attribute === 4) {
|
|
76653
|
+
if (_this3.title !== "") {
|
|
76654
|
+
_this3._drawTitle.textBaseline = 'alphabetic';
|
|
76655
|
+
_this3._drawTitle.textAlign = 'left';
|
|
76656
|
+
_this3.addChildAt(_this3._drawTitle, 0);
|
|
76657
|
+
bitmap.x = _this3._drawTitle.getMeasuredWidth();
|
|
76658
|
+
_this3.addChild(bitmap);
|
|
76659
|
+
} else {
|
|
76660
|
+
bitmap.x = 0;
|
|
76661
|
+
_this3.addChild(bitmap);
|
|
76662
|
+
}
|
|
76582
76663
|
} else {
|
|
76583
76664
|
_this3.addChildAt(bitmap, 0);
|
|
76584
76665
|
}
|
|
@@ -76614,6 +76695,9 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
76614
76695
|
drawNode.dWidth = _this3._drawDate.getMeasuredWidth();
|
|
76615
76696
|
}
|
|
76616
76697
|
}
|
|
76698
|
+
if (drawNode.attribute == 4 && drawNode.title != "") {
|
|
76699
|
+
drawNode.dWidth += drawNode._drawTitle.getMeasuredWidth();
|
|
76700
|
+
}
|
|
76617
76701
|
if (_this3.number === 2) {
|
|
76618
76702
|
drawNode.dWidth += _this3._drawText.getMeasuredWidth();
|
|
76619
76703
|
}
|
|
@@ -76621,6 +76705,8 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
76621
76705
|
bitmap.setTransform(drawNode._drawAbi02.getMeasuredWidth(), -drawNode.dHeight + 2, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
76622
76706
|
} else if (drawNode.attribute === 3 && drawNode.title !== "") {
|
|
76623
76707
|
bitmap.setTransform(drawNode._drawTitle.getMeasuredWidth(), -drawNode.dHeight - 4, width / hitWidth, (drawNode.dHeight - drawNode._drawDate.getMeasuredHeight() - 2) / hitHeight);
|
|
76708
|
+
} else if (drawNode.attribute === 4 && drawNode.title !== "") {
|
|
76709
|
+
bitmap.setTransform(drawNode._drawTitle.getMeasuredWidth(), -drawNode.dHeight - 4, width / hitWidth, (drawNode.dHeight - drawNode._drawDate.getMeasuredHeight() - 2) / hitHeight);
|
|
76624
76710
|
} else {
|
|
76625
76711
|
bitmap.setTransform(0, -drawNode.dHeight, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
76626
76712
|
}
|
|
@@ -196618,7 +196704,7 @@ var map = {
|
|
|
196618
196704
|
"./pageInfoes/PageInfoes.vue": 17481,
|
|
196619
196705
|
"./paragraph/ParagraphDialog.vue": 54949,
|
|
196620
196706
|
"./poperSelect/PoperMark.vue": 71472,
|
|
196621
|
-
"./poperSelect/PoperSelect.vue":
|
|
196707
|
+
"./poperSelect/PoperSelect.vue": 59046,
|
|
196622
196708
|
"./poperTipText/PoperTipText.vue": 36081,
|
|
196623
196709
|
"./popers/Poper.vue": 57937,
|
|
196624
196710
|
"./popers/Title.vue": 89987,
|
|
@@ -196626,7 +196712,7 @@ var map = {
|
|
|
196626
196712
|
"./qrCode/QrCode.vue": 86349,
|
|
196627
196713
|
"./radioCheckBox/RadioCheckbox.vue": 93638,
|
|
196628
196714
|
"./selectDialog/SelectDialog.vue": 59075,
|
|
196629
|
-
"./sign/Sign.vue":
|
|
196715
|
+
"./sign/Sign.vue": 84240,
|
|
196630
196716
|
"./table/TableCellPoper.vue": 61917,
|
|
196631
196717
|
"./table/TableCellProperty.vue": 74601,
|
|
196632
196718
|
"./table/TableColProperty.vue": 2116,
|
|
@@ -234740,7 +234826,7 @@ var HoToPage_component = (0,componentNormalizer/* default */.Z)(
|
|
|
234740
234826
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
234741
234827
|
var plugins_util = __webpack_require__(62783);
|
|
234742
234828
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 9 modules
|
|
234743
|
-
var PoperSelect = __webpack_require__(
|
|
234829
|
+
var PoperSelect = __webpack_require__(59046);
|
|
234744
234830
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
|
|
234745
234831
|
var PoperMark = __webpack_require__(71472);
|
|
234746
234832
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
|
|
@@ -236147,7 +236233,7 @@ var ParagraphNode = __webpack_require__(67945);
|
|
|
236147
236233
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
|
|
236148
236234
|
var MarkNode = __webpack_require__(57727);
|
|
236149
236235
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
236150
|
-
/* harmony default export */ var version = ('3.0.
|
|
236236
|
+
/* harmony default export */ var version = ('3.0.70');
|
|
236151
236237
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
236152
236238
|
var PoperTipText = __webpack_require__(36081);
|
|
236153
236239
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -247917,12 +248003,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
247917
248003
|
*/
|
|
247918
248004
|
}, {
|
|
247919
248005
|
key: "updateEmptySignNode",
|
|
247920
|
-
value: function updateEmptySignNode(node, name, attribute, connectChar, signType, signFormat, signor, signTime, signTimeFormat) {
|
|
248006
|
+
value: function updateEmptySignNode(node, name, attribute, connectChar, signType, signFormat, signor, signTime, signTimeFormat, connectMode, otherProperties) {
|
|
247921
248007
|
if (node.type !== 0) {
|
|
247922
248008
|
return;
|
|
247923
248009
|
}
|
|
247924
248010
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
247925
|
-
hoEditorFactory.docController.updateEmptySignNode(node, name, attribute, connectChar, signType, signFormat, signor, signTime, signTimeFormat);
|
|
248011
|
+
hoEditorFactory.docController.updateEmptySignNode(node, name, attribute, connectChar, signType, signFormat, signor, signTime, signTimeFormat, connectMode, otherProperties);
|
|
247926
248012
|
}
|
|
247927
248013
|
/**
|
|
247928
248014
|
* 更新签名时间
|
|
@@ -248616,6 +248702,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
248616
248702
|
var y = (hoEditorFactory.pageProperty.heightPixes - caret.stageY) * 0.75;
|
|
248617
248703
|
return [caret.pageIndex + 1, caret.stageX * 0.75, y];
|
|
248618
248704
|
}
|
|
248705
|
+
}, {
|
|
248706
|
+
key: "getPosition2",
|
|
248707
|
+
value: function getPosition2() {
|
|
248708
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
248709
|
+
var caret = hoEditorFactory.drawTree.caret;
|
|
248710
|
+
return [caret.pageIndex + 1, caret.stageX * 0.75, caret.stageY * 0.75 + 40];
|
|
248711
|
+
}
|
|
248619
248712
|
/**
|
|
248620
248713
|
* 获取光标位置
|
|
248621
248714
|
* returns [pageIndex, x, y]
|
|
@@ -250749,6 +250842,42 @@ var VueController = /*#__PURE__*/function () {
|
|
|
250749
250842
|
}
|
|
250750
250843
|
}
|
|
250751
250844
|
}
|
|
250845
|
+
/**
|
|
250846
|
+
* 根据节点名称找符合条件的文本域元素
|
|
250847
|
+
* @param name 节点名称
|
|
250848
|
+
*/
|
|
250849
|
+
}, {
|
|
250850
|
+
key: "getTextInputFieldsByName",
|
|
250851
|
+
value: function getTextInputFieldsByName(name) {
|
|
250852
|
+
var nodes = [];
|
|
250853
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
250854
|
+
var iteratesNodes = function iteratesNodes(pnodes) {
|
|
250855
|
+
for (var i = 0; i < pnodes.length; i++) {
|
|
250856
|
+
var anode = pnodes[i];
|
|
250857
|
+
if (anode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
250858
|
+
if (anode.name === name) {
|
|
250859
|
+
nodes.push(anode);
|
|
250860
|
+
}
|
|
250861
|
+
}
|
|
250862
|
+
if (anode instanceof BaseCombineNode/* BaseCombineNode */.V) {
|
|
250863
|
+
iteratesNodes(anode.childNodes);
|
|
250864
|
+
}
|
|
250865
|
+
}
|
|
250866
|
+
};
|
|
250867
|
+
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
250868
|
+
iteratesNodes(mainNodes);
|
|
250869
|
+
return nodes;
|
|
250870
|
+
}
|
|
250871
|
+
}, {
|
|
250872
|
+
key: "moveCaretToTextInputField",
|
|
250873
|
+
value: function moveCaretToTextInputField(node) {
|
|
250874
|
+
var endNode = node.EndMarkNode.previousLeaf();
|
|
250875
|
+
if (endNode) {
|
|
250876
|
+
var _hoEditorFactory2 = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
250877
|
+
var toPath = _hoEditorFactory2.docTree.getNodeLastPath(endNode);
|
|
250878
|
+
_hoEditorFactory2.drawTree.moveCaretToPath(toPath);
|
|
250879
|
+
}
|
|
250880
|
+
}
|
|
250752
250881
|
}]);
|
|
250753
250882
|
return VueController;
|
|
250754
250883
|
}();
|