hoeditor-web 3.1.2 → 3.1.3
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 +379 -193
- package/lib/hoeditor.umd.min.js +14 -14
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -5149,7 +5149,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
5149
5149
|
|
|
5150
5150
|
/***/ }),
|
|
5151
5151
|
|
|
5152
|
-
/***/
|
|
5152
|
+
/***/ 29582:
|
|
5153
5153
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5154
5154
|
|
|
5155
5155
|
"use strict";
|
|
@@ -5171,7 +5171,7 @@ var es_string_includes = __webpack_require__(32023);
|
|
|
5171
5171
|
var es_regexp_exec = __webpack_require__(74916);
|
|
5172
5172
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
5173
5173
|
var es_string_replace = __webpack_require__(15306);
|
|
5174
|
-
;// 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/dateDialog/DateDialog.vue?vue&type=template&id=
|
|
5174
|
+
;// 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/dateDialog/DateDialog.vue?vue&type=template&id=0e5e15a9&
|
|
5175
5175
|
|
|
5176
5176
|
|
|
5177
5177
|
|
|
@@ -5420,7 +5420,18 @@ var render = function render() {
|
|
|
5420
5420
|
},
|
|
5421
5421
|
expression: "notReplaceElement"
|
|
5422
5422
|
}
|
|
5423
|
-
}, [_vm._v("不启用元素引用")])
|
|
5423
|
+
}, [_vm._v("不启用元素引用")]), _c('a-checkbox', {
|
|
5424
|
+
attrs: {
|
|
5425
|
+
"size": "small"
|
|
5426
|
+
},
|
|
5427
|
+
model: {
|
|
5428
|
+
value: _vm.notSelectTime,
|
|
5429
|
+
callback: function callback($$v) {
|
|
5430
|
+
_vm.notSelectTime = $$v;
|
|
5431
|
+
},
|
|
5432
|
+
expression: "notSelectTime"
|
|
5433
|
+
}
|
|
5434
|
+
}, [_vm._v("不允许往后选择日期")])], 1)])])]), _vm._t("hoTextFieldModal")], 2)], 1), _c('footer', {
|
|
5424
5435
|
staticClass: "ho-modal-footer"
|
|
5425
5436
|
}, [_c('a-button', {
|
|
5426
5437
|
attrs: {
|
|
@@ -5440,7 +5451,7 @@ var render = function render() {
|
|
|
5440
5451
|
};
|
|
5441
5452
|
var staticRenderFns = [];
|
|
5442
5453
|
|
|
5443
|
-
;// CONCATENATED MODULE: ./src/components/controls/dateDialog/DateDialog.vue?vue&type=template&id=
|
|
5454
|
+
;// CONCATENATED MODULE: ./src/components/controls/dateDialog/DateDialog.vue?vue&type=template&id=0e5e15a9&
|
|
5444
5455
|
|
|
5445
5456
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
5446
5457
|
var objectSpread2 = __webpack_require__(63442);
|
|
@@ -5504,6 +5515,7 @@ var zh_cn = __webpack_require__(83839);
|
|
|
5504
5515
|
tipText: '',
|
|
5505
5516
|
isAllowDelete: false,
|
|
5506
5517
|
notReplaceElement: false,
|
|
5518
|
+
notSelectTime: false,
|
|
5507
5519
|
isReadOnly: false,
|
|
5508
5520
|
controlStyle: 'yyyy/MM/dd',
|
|
5509
5521
|
innerIdentifier: '',
|
|
@@ -5539,6 +5551,7 @@ var zh_cn = __webpack_require__(83839);
|
|
|
5539
5551
|
this.tipText = updateNode.tipText;
|
|
5540
5552
|
this.isAllowDelete = updateNode.isAllowDelete;
|
|
5541
5553
|
this.notReplaceElement = updateNode.notReplaceElement == 'undefined' || updateNode.notReplaceElement == undefined ? false : updateNode.notReplaceElement;
|
|
5554
|
+
this.notSelectTime = updateNode.notSelectTime == 'undefined' || updateNode.notSelectTime == undefined ? false : updateNode.notSelectTime;
|
|
5542
5555
|
this.isReadOnly = updateNode.isReadOnly;
|
|
5543
5556
|
this.controlStyle = updateNode.controlStyle;
|
|
5544
5557
|
this.innerIdentifier = updateNode.innerIdentifier;
|
|
@@ -5622,6 +5635,7 @@ var zh_cn = __webpack_require__(83839);
|
|
|
5622
5635
|
readType: this.readType,
|
|
5623
5636
|
labelText: this.name,
|
|
5624
5637
|
notReplaceElement: this.notReplaceElement,
|
|
5638
|
+
notSelectTime: this.notSelectTime,
|
|
5625
5639
|
customProperty: (0,objectSpread2/* default */.Z)({}, customProperty)
|
|
5626
5640
|
};
|
|
5627
5641
|
params.readType ? params.readType = 1 : params.readType = 0;
|
|
@@ -5642,10 +5656,10 @@ var zh_cn = __webpack_require__(83839);
|
|
|
5642
5656
|
});
|
|
5643
5657
|
;// CONCATENATED MODULE: ./src/components/controls/dateDialog/DateDialog.vue?vue&type=script&lang=js&
|
|
5644
5658
|
/* harmony default export */ var dateDialog_DateDialogvue_type_script_lang_js_ = (DateDialogvue_type_script_lang_js_);
|
|
5645
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/dateDialog/DateDialog.vue?vue&type=style&index=0&id=
|
|
5659
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/dateDialog/DateDialog.vue?vue&type=style&index=0&id=0e5e15a9&prod&lang=less&
|
|
5646
5660
|
// extracted by mini-css-extract-plugin
|
|
5647
5661
|
|
|
5648
|
-
;// CONCATENATED MODULE: ./src/components/controls/dateDialog/DateDialog.vue?vue&type=style&index=0&id=
|
|
5662
|
+
;// CONCATENATED MODULE: ./src/components/controls/dateDialog/DateDialog.vue?vue&type=style&index=0&id=0e5e15a9&prod&lang=less&
|
|
5649
5663
|
|
|
5650
5664
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
5651
5665
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -9348,7 +9362,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
9348
9362
|
|
|
9349
9363
|
/***/ }),
|
|
9350
9364
|
|
|
9351
|
-
/***/
|
|
9365
|
+
/***/ 6459:
|
|
9352
9366
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
9353
9367
|
|
|
9354
9368
|
"use strict";
|
|
@@ -9368,7 +9382,7 @@ var es_string_includes = __webpack_require__(32023);
|
|
|
9368
9382
|
var es_regexp_exec = __webpack_require__(74916);
|
|
9369
9383
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
9370
9384
|
var es_string_replace = __webpack_require__(15306);
|
|
9371
|
-
;// 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=
|
|
9385
|
+
;// 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=07f366ec&
|
|
9372
9386
|
|
|
9373
9387
|
|
|
9374
9388
|
|
|
@@ -9623,6 +9637,7 @@ var render = function render() {
|
|
|
9623
9637
|
"open": true,
|
|
9624
9638
|
"locale": _vm.locale,
|
|
9625
9639
|
"showToday": false,
|
|
9640
|
+
"disabled-date": _vm.disabledEndDate,
|
|
9626
9641
|
"format": _vm.dateTimeStyle.replace(/dd/g, 'DD').split(' ')[0],
|
|
9627
9642
|
"valueFormat": _vm.dateTimeStyle.replace(/dd/g, 'DD').split(' ')[0]
|
|
9628
9643
|
},
|
|
@@ -9756,7 +9771,7 @@ var render = function render() {
|
|
|
9756
9771
|
};
|
|
9757
9772
|
var staticRenderFns = [];
|
|
9758
9773
|
|
|
9759
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
9774
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=07f366ec&
|
|
9760
9775
|
|
|
9761
9776
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
9762
9777
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -11834,6 +11849,7 @@ var type = __webpack_require__(41542);
|
|
|
11834
11849
|
endPath: '',
|
|
11835
11850
|
calendarInstance: null,
|
|
11836
11851
|
calendarTimeInstance: null,
|
|
11852
|
+
notSelectTime: false,
|
|
11837
11853
|
isSelected: false
|
|
11838
11854
|
};
|
|
11839
11855
|
},
|
|
@@ -11882,6 +11898,7 @@ var type = __webpack_require__(41542);
|
|
|
11882
11898
|
var currentPoperNode = this.getCurrentPoperNode();
|
|
11883
11899
|
if (this.poperType === 'datePoper') {
|
|
11884
11900
|
if (currentPoperNode instanceof DateTimeNode/* DateTimeNode */.Z) {
|
|
11901
|
+
this.notSelectTime = currentPoperNode.notSelectTime ? currentPoperNode.notSelectTime : false;
|
|
11885
11902
|
this.dateTimeStyle = currentPoperNode.controlStyle;
|
|
11886
11903
|
var text = currentPoperNode.text;
|
|
11887
11904
|
if (!text || text === currentPoperNode.name) {
|
|
@@ -12012,6 +12029,12 @@ var type = __webpack_require__(41542);
|
|
|
12012
12029
|
});
|
|
12013
12030
|
}
|
|
12014
12031
|
},
|
|
12032
|
+
disabledEndDate: function disabledEndDate(current) {
|
|
12033
|
+
if (this.notSelectTime) {
|
|
12034
|
+
return current && current > moment_default()().endOf('day');
|
|
12035
|
+
}
|
|
12036
|
+
return false;
|
|
12037
|
+
},
|
|
12015
12038
|
calendarTimeInstanceChange: function calendarTimeInstanceChange(event) {
|
|
12016
12039
|
var style = this.dateTimeStyle.replace(/dd/g, 'DD').replace(/yyyy/g, 'YYYY');
|
|
12017
12040
|
var timeFormat = this.dateTimeStyle.includes(' ') ? this.dateTimeStyle.split(' ')[1] : this.dateTimeStyle;
|
|
@@ -12172,6 +12195,8 @@ var type = __webpack_require__(41542);
|
|
|
12172
12195
|
innerIdentifier: node.innerIdentifier,
|
|
12173
12196
|
dataMetaIdentifier: node.dataMetaIdentifier,
|
|
12174
12197
|
identifierFormat: node.identifierFormat,
|
|
12198
|
+
notSelectTime: node.notSelectTime,
|
|
12199
|
+
notReplaceElement: node.notReplaceElement,
|
|
12175
12200
|
readType: node.readType,
|
|
12176
12201
|
labelText: node.labelText,
|
|
12177
12202
|
customProperty: node.customProperty
|
|
@@ -12208,6 +12233,8 @@ var type = __webpack_require__(41542);
|
|
|
12208
12233
|
innerIdentifier: node.innerIdentifier,
|
|
12209
12234
|
dataMetaIdentifier: node.dataMetaIdentifier,
|
|
12210
12235
|
identifierFormat: node.identifierFormat,
|
|
12236
|
+
notSelectTime: node.notSelectTime,
|
|
12237
|
+
notReplaceElement: node.notReplaceElement,
|
|
12211
12238
|
readType: node.readType,
|
|
12212
12239
|
labelText: node.labelText,
|
|
12213
12240
|
customProperty: node.customProperty
|
|
@@ -12523,10 +12550,10 @@ var type = __webpack_require__(41542);
|
|
|
12523
12550
|
});
|
|
12524
12551
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
|
|
12525
12552
|
/* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
|
|
12526
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.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=
|
|
12553
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.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=07f366ec&prod&lang=less&
|
|
12527
12554
|
// extracted by mini-css-extract-plugin
|
|
12528
12555
|
|
|
12529
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
12556
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=07f366ec&prod&lang=less&
|
|
12530
12557
|
|
|
12531
12558
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
12532
12559
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -17970,7 +17997,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
17970
17997
|
|
|
17971
17998
|
/***/ }),
|
|
17972
17999
|
|
|
17973
|
-
/***/
|
|
18000
|
+
/***/ 46226:
|
|
17974
18001
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17975
18002
|
|
|
17976
18003
|
"use strict";
|
|
@@ -17990,7 +18017,7 @@ var es_array_includes = __webpack_require__(26699);
|
|
|
17990
18017
|
var es_string_includes = __webpack_require__(32023);
|
|
17991
18018
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
17992
18019
|
var es_number_constructor = __webpack_require__(9653);
|
|
17993
|
-
;// 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/table/TableColProperty.vue?vue&type=template&id=
|
|
18020
|
+
;// 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/table/TableColProperty.vue?vue&type=template&id=9ef504d2&
|
|
17994
18021
|
|
|
17995
18022
|
|
|
17996
18023
|
|
|
@@ -18143,6 +18170,20 @@ var render = function render() {
|
|
|
18143
18170
|
"value": 5
|
|
18144
18171
|
}
|
|
18145
18172
|
}, [_vm._v("输入域")])], 1)], 1), _c('li', {
|
|
18173
|
+
staticClass: "control-item"
|
|
18174
|
+
}, [_c('div', {
|
|
18175
|
+
staticStyle: {
|
|
18176
|
+
"padding-right": "20px"
|
|
18177
|
+
}
|
|
18178
|
+
}, [_c('a-checkbox', {
|
|
18179
|
+
model: {
|
|
18180
|
+
value: _vm.isSignLock,
|
|
18181
|
+
callback: function callback($$v) {
|
|
18182
|
+
_vm.isSignLock = $$v;
|
|
18183
|
+
},
|
|
18184
|
+
expression: "isSignLock"
|
|
18185
|
+
}
|
|
18186
|
+
}, [_vm._v("签名完成后锁定列")])], 1)]), _c('li', {
|
|
18146
18187
|
directives: [{
|
|
18147
18188
|
name: "show",
|
|
18148
18189
|
rawName: "v-show",
|
|
@@ -18468,7 +18509,7 @@ var render = function render() {
|
|
|
18468
18509
|
};
|
|
18469
18510
|
var staticRenderFns = [];
|
|
18470
18511
|
|
|
18471
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=template&id=
|
|
18512
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=template&id=9ef504d2&
|
|
18472
18513
|
|
|
18473
18514
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
18474
18515
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -18567,7 +18608,8 @@ var getCellNode = __webpack_require__(5986);
|
|
|
18567
18608
|
numberProperty: undefined
|
|
18568
18609
|
},
|
|
18569
18610
|
colInfoes: null,
|
|
18570
|
-
tableInfo: null
|
|
18611
|
+
tableInfo: null,
|
|
18612
|
+
isSignLock: false
|
|
18571
18613
|
};
|
|
18572
18614
|
},
|
|
18573
18615
|
inject: ['hoEditorProvider'],
|
|
@@ -18625,6 +18667,7 @@ var getCellNode = __webpack_require__(5986);
|
|
|
18625
18667
|
this.width = colProperty.width ? colProperty.width : 0;
|
|
18626
18668
|
this.colWidth = (hoEditorFactory.unitConvert.pxConversionMm(colInfoes.colWidth, false) / 10).toFixed(2);
|
|
18627
18669
|
this.isSpecifyWidth = colProperty.isSpecifyWidth ? true : false;
|
|
18670
|
+
this.isSignLock = colProperty.isSignLock ? true : false;
|
|
18628
18671
|
}
|
|
18629
18672
|
},
|
|
18630
18673
|
methods: {
|
|
@@ -18749,7 +18792,8 @@ var getCellNode = __webpack_require__(5986);
|
|
|
18749
18792
|
align: this.align,
|
|
18750
18793
|
width: this.width,
|
|
18751
18794
|
isSpecifyWidth: this.isSpecifyWidth,
|
|
18752
|
-
customProperties: this.customProperties
|
|
18795
|
+
customProperties: this.customProperties,
|
|
18796
|
+
isSignLock: this.isSignLock
|
|
18753
18797
|
};
|
|
18754
18798
|
Object.keys(params).forEach(function (key) {
|
|
18755
18799
|
if (JSON.stringify(_this2[key]) !== JSON.stringify(_this2.defaultColProperty[key])) {
|
|
@@ -18771,10 +18815,10 @@ var getCellNode = __webpack_require__(5986);
|
|
|
18771
18815
|
});
|
|
18772
18816
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=script&lang=js&
|
|
18773
18817
|
/* harmony default export */ var table_TableColPropertyvue_type_script_lang_js_ = (TableColPropertyvue_type_script_lang_js_);
|
|
18774
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableColProperty.vue?vue&type=style&index=0&id=
|
|
18818
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableColProperty.vue?vue&type=style&index=0&id=9ef504d2&prod&lang=less&
|
|
18775
18819
|
// extracted by mini-css-extract-plugin
|
|
18776
18820
|
|
|
18777
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=style&index=0&id=
|
|
18821
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableColProperty.vue?vue&type=style&index=0&id=9ef504d2&prod&lang=less&
|
|
18778
18822
|
|
|
18779
18823
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
18780
18824
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -40121,7 +40165,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40121
40165
|
key: "deleteTextBeforePath",
|
|
40122
40166
|
value: function () {
|
|
40123
40167
|
var _deleteTextBeforePath = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().mark(function _callee(startPath) {
|
|
40124
|
-
var hoEditorFactory, domRange, nodePosition, childIndex, node, ret, topath, arr, tmp, aRange, endPath, _topath, _aRange, isError, prevNode, cellNode, tableNode, tIndex, cIndex, preParaNode, newpath, signUserId, preNode, nextNode, path, signNode, spath, epath, newSignNode, nodesDeleteUndoUnit, pNode;
|
|
40168
|
+
var hoEditorFactory, domRange, nodePosition, childIndex, node, ret, topath, arr, tmp, aRange, endPath, _topath, _aRange, isError, prevNode, cellNode, tableNode, tIndex, cIndex, preParaNode, newpath, signUserId, preNode, nextNode, path, signNode, table, c, colProperty, spath, epath, newSignNode, nodesDeleteUndoUnit, pNode;
|
|
40125
40169
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().wrap(function _callee$(_context) {
|
|
40126
40170
|
while (1) switch (_context.prev = _context.next) {
|
|
40127
40171
|
case 0:
|
|
@@ -40142,18 +40186,18 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40142
40186
|
// )
|
|
40143
40187
|
// );
|
|
40144
40188
|
// hoEditorFactory.undoService.commit();
|
|
40145
|
-
_context.next =
|
|
40189
|
+
_context.next = 126;
|
|
40146
40190
|
break;
|
|
40147
40191
|
case 6:
|
|
40148
40192
|
nodePosition = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
40149
40193
|
childIndex = nodePosition.childIndex;
|
|
40150
40194
|
node = nodePosition.node;
|
|
40151
40195
|
if (!node) {
|
|
40152
|
-
_context.next =
|
|
40196
|
+
_context.next = 126;
|
|
40153
40197
|
break;
|
|
40154
40198
|
}
|
|
40155
40199
|
if (!domRange.isEmpty) {
|
|
40156
|
-
_context.next =
|
|
40200
|
+
_context.next = 126;
|
|
40157
40201
|
break;
|
|
40158
40202
|
}
|
|
40159
40203
|
if (!(node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R)) {
|
|
@@ -40209,7 +40253,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40209
40253
|
aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_32__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, topath).normalize();
|
|
40210
40254
|
this.deleteRange(aRange, true);
|
|
40211
40255
|
hoEditorFactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_32__/* .DomRange */ .a(this._hoEditorFactoryID, topath, topath);
|
|
40212
|
-
_context.next =
|
|
40256
|
+
_context.next = 126;
|
|
40213
40257
|
break;
|
|
40214
40258
|
case 36:
|
|
40215
40259
|
if (!(node instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j)) {
|
|
@@ -40261,7 +40305,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40261
40305
|
// )
|
|
40262
40306
|
// );
|
|
40263
40307
|
// hoEditorFactory.undoService.commit();
|
|
40264
|
-
_context.next =
|
|
40308
|
+
_context.next = 126;
|
|
40265
40309
|
break;
|
|
40266
40310
|
case 56:
|
|
40267
40311
|
if (!(node instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_31__/* .ParagraphNode */ .C)) {
|
|
@@ -40348,13 +40392,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40348
40392
|
return _context.abrupt("return");
|
|
40349
40393
|
case 98:
|
|
40350
40394
|
if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N)) {
|
|
40351
|
-
_context.next =
|
|
40395
|
+
_context.next = 121;
|
|
40352
40396
|
break;
|
|
40353
40397
|
}
|
|
40354
40398
|
preNode = node.previousLeaf();
|
|
40355
40399
|
nextNode = node.nextLeaf();
|
|
40356
40400
|
if (!((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate && !(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N) && !(nextNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N))) {
|
|
40357
|
-
_context.next =
|
|
40401
|
+
_context.next = 110;
|
|
40358
40402
|
break;
|
|
40359
40403
|
}
|
|
40360
40404
|
path = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
@@ -40363,10 +40407,22 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40363
40407
|
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
40364
40408
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, signNode));
|
|
40365
40409
|
hoEditorFactory.undoService.commit();
|
|
40410
|
+
if (node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_58__/* .CellNode */ .D) {
|
|
40411
|
+
table = node.parentNode.table;
|
|
40412
|
+
if (table.tableProperty.isSignLock && table.tableProperty.isLock) {
|
|
40413
|
+
table.tableProperty.isLock = false;
|
|
40414
|
+
} else {
|
|
40415
|
+
c = node.parentNode.row.indexOf(node.parentNode);
|
|
40416
|
+
colProperty = table.colInfos[c].colProperty;
|
|
40417
|
+
if (colProperty.isSignLock && colProperty.isLock) {
|
|
40418
|
+
colProperty.isLock = false;
|
|
40419
|
+
}
|
|
40420
|
+
}
|
|
40421
|
+
}
|
|
40366
40422
|
return _context.abrupt("return");
|
|
40367
|
-
case
|
|
40423
|
+
case 110:
|
|
40368
40424
|
if (!(preNode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N)) {
|
|
40369
|
-
_context.next =
|
|
40425
|
+
_context.next = 121;
|
|
40370
40426
|
break;
|
|
40371
40427
|
}
|
|
40372
40428
|
spath = "";
|
|
@@ -40388,7 +40444,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40388
40444
|
}
|
|
40389
40445
|
hoEditorFactory.undoService.commit();
|
|
40390
40446
|
return _context.abrupt("return");
|
|
40391
|
-
case
|
|
40447
|
+
case 121:
|
|
40392
40448
|
pNode = node.parentNode;
|
|
40393
40449
|
hoEditorFactory.undoService.begin();
|
|
40394
40450
|
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
@@ -40396,7 +40452,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40396
40452
|
if (pNode && pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_47__/* .TextInputFieldNode */ .re && pNode.childNodes.length === 2) {
|
|
40397
40453
|
this.resetEmptyInputFieldNode(hoEditorFactory, pNode);
|
|
40398
40454
|
}
|
|
40399
|
-
case
|
|
40455
|
+
case 126:
|
|
40400
40456
|
case "end":
|
|
40401
40457
|
return _context.stop();
|
|
40402
40458
|
}
|
|
@@ -43156,6 +43212,49 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43156
43212
|
hoeditorfactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, prevNodePath, textNode));
|
|
43157
43213
|
hoeditorfactory.undoService.commit();
|
|
43158
43214
|
}
|
|
43215
|
+
}, {
|
|
43216
|
+
key: "signLockCheck",
|
|
43217
|
+
value: function signLockCheck(cellNode) {
|
|
43218
|
+
var table = cellNode.table;
|
|
43219
|
+
var mark = true;
|
|
43220
|
+
var loopValid = function loopValid(type, c) {
|
|
43221
|
+
var _loop = function _loop() {
|
|
43222
|
+
var cell = table.childNodes[i];
|
|
43223
|
+
var loopCell = function loopCell() {
|
|
43224
|
+
for (var j = 1; j < cell.childNodes.length; j++) {
|
|
43225
|
+
var anode = cell.childNodes[j];
|
|
43226
|
+
if (anode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N && anode.imgSrc == "" && anode.fingerPrintSrc == "") {
|
|
43227
|
+
mark = false;
|
|
43228
|
+
break;
|
|
43229
|
+
}
|
|
43230
|
+
}
|
|
43231
|
+
};
|
|
43232
|
+
if (type === 1) {
|
|
43233
|
+
loopCell();
|
|
43234
|
+
}
|
|
43235
|
+
if (type === 2) {
|
|
43236
|
+
var col = cell.row.indexOf(cell);
|
|
43237
|
+
if (col === c) {
|
|
43238
|
+
loopCell();
|
|
43239
|
+
}
|
|
43240
|
+
}
|
|
43241
|
+
if (!mark) return 1; // break
|
|
43242
|
+
};
|
|
43243
|
+
for (var i = 0; i < table.childNodes.length; i++) {
|
|
43244
|
+
if (_loop()) break;
|
|
43245
|
+
}
|
|
43246
|
+
};
|
|
43247
|
+
if (table.tableProperty.isSignLock) {
|
|
43248
|
+
loopValid(1, -1);
|
|
43249
|
+
table.tableProperty.isLock = mark;
|
|
43250
|
+
} else {
|
|
43251
|
+
var c = cellNode.row.indexOf(cellNode);
|
|
43252
|
+
if (table.colInfos[c].colProperty.isSignLock) {
|
|
43253
|
+
loopValid(2, c);
|
|
43254
|
+
table.colInfos[c].colProperty.isLock = mark;
|
|
43255
|
+
}
|
|
43256
|
+
}
|
|
43257
|
+
}
|
|
43159
43258
|
/**
|
|
43160
43259
|
* 插入空签名
|
|
43161
43260
|
* @param name 签名名称(空签名的初始化显示)
|
|
@@ -43206,6 +43305,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43206
43305
|
hoEditorFactory.undoService.begin();
|
|
43207
43306
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
|
|
43208
43307
|
hoEditorFactory.undoService.commit();
|
|
43308
|
+
if (parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_58__/* .CellNode */ .D) {
|
|
43309
|
+
this.signLockCheck(parentNode);
|
|
43310
|
+
}
|
|
43209
43311
|
}
|
|
43210
43312
|
/**
|
|
43211
43313
|
* 更新签名
|
|
@@ -43246,6 +43348,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43246
43348
|
// }
|
|
43247
43349
|
//node.connectMode = "/";
|
|
43248
43350
|
hoEditorFactory.docTree.change(changeEvent);
|
|
43351
|
+
if (node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_58__/* .CellNode */ .D) {
|
|
43352
|
+
this.signLockCheck(node.parentNode);
|
|
43353
|
+
}
|
|
43249
43354
|
} else {
|
|
43250
43355
|
//第二次更新签名
|
|
43251
43356
|
if (node.connectMode === "换行") {
|
|
@@ -47395,13 +47500,13 @@ var PageProperty = /*#__PURE__*/function () {
|
|
|
47395
47500
|
/*
|
|
47396
47501
|
* @Author: your name
|
|
47397
47502
|
* @Date: 2020-12-24 16:01:16
|
|
47398
|
-
* @LastEditTime: 2023-08-
|
|
47503
|
+
* @LastEditTime: 2023-08-23 15:35:57
|
|
47399
47504
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
47400
47505
|
* @Description: In User Settings Edit
|
|
47401
47506
|
* @FilePath: \hoeditor-web\src\editor\dom\TableProperty.ts
|
|
47402
47507
|
*/
|
|
47403
47508
|
var TableProperty = /*#__PURE__*/function () {
|
|
47404
|
-
|
|
47509
|
+
//是否锁定
|
|
47405
47510
|
function TableProperty(objectValues) {
|
|
47406
47511
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, TableProperty);
|
|
47407
47512
|
//private _id!: string; //编号
|
|
@@ -47434,6 +47539,8 @@ var TableProperty = /*#__PURE__*/function () {
|
|
|
47434
47539
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_isUsePopEdit", false);
|
|
47435
47540
|
//是否启用表单弹框编辑
|
|
47436
47541
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_isSignLock", false);
|
|
47542
|
+
//签名后是否锁定
|
|
47543
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_isLock", false);
|
|
47437
47544
|
if (objectValues !== "") {
|
|
47438
47545
|
var valuesObj = eval('(' + objectValues + ')');
|
|
47439
47546
|
var assignvalue = function assignvalue(target, source) {
|
|
@@ -47586,6 +47693,14 @@ var TableProperty = /*#__PURE__*/function () {
|
|
|
47586
47693
|
set: function set(value) {
|
|
47587
47694
|
this._isSignLock = value;
|
|
47588
47695
|
}
|
|
47696
|
+
}, {
|
|
47697
|
+
key: "isLock",
|
|
47698
|
+
get: function get() {
|
|
47699
|
+
return this._isLock;
|
|
47700
|
+
},
|
|
47701
|
+
set: function set(value) {
|
|
47702
|
+
this._isLock = value;
|
|
47703
|
+
}
|
|
47589
47704
|
}]);
|
|
47590
47705
|
return TableProperty;
|
|
47591
47706
|
}();
|
|
@@ -48003,7 +48118,7 @@ var EditorProperty;
|
|
|
48003
48118
|
EditorProperty[EditorProperty["Textarea"] = 5] = "Textarea";
|
|
48004
48119
|
})(EditorProperty || (EditorProperty = {})); //编辑器属性 {无,下拉列表,日期,数值,签名,输入域}
|
|
48005
48120
|
var ColProperty = /*#__PURE__*/function () {
|
|
48006
|
-
|
|
48121
|
+
//是否锁定
|
|
48007
48122
|
function ColProperty(objectValues //, table: TableNode
|
|
48008
48123
|
) {
|
|
48009
48124
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, ColProperty);
|
|
@@ -48022,6 +48137,10 @@ var ColProperty = /*#__PURE__*/function () {
|
|
|
48022
48137
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_signProperty", void 0);
|
|
48023
48138
|
//签名属性
|
|
48024
48139
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_customProperties", []);
|
|
48140
|
+
//自定义属性
|
|
48141
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_isSignLock", false);
|
|
48142
|
+
//签名后是否锁定
|
|
48143
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_isLock", false);
|
|
48025
48144
|
if (objectValues !== "") {
|
|
48026
48145
|
var valuesObj = eval('(' + objectValues + ')');
|
|
48027
48146
|
var assignvalue = function assignvalue(target, source) {
|
|
@@ -48132,6 +48251,22 @@ var ColProperty = /*#__PURE__*/function () {
|
|
|
48132
48251
|
set: function set(value) {
|
|
48133
48252
|
this._customProperties = value;
|
|
48134
48253
|
}
|
|
48254
|
+
}, {
|
|
48255
|
+
key: "isSignLock",
|
|
48256
|
+
get: function get() {
|
|
48257
|
+
return this._isSignLock;
|
|
48258
|
+
},
|
|
48259
|
+
set: function set(value) {
|
|
48260
|
+
this._isSignLock = value;
|
|
48261
|
+
}
|
|
48262
|
+
}, {
|
|
48263
|
+
key: "isLock",
|
|
48264
|
+
get: function get() {
|
|
48265
|
+
return this._isLock;
|
|
48266
|
+
},
|
|
48267
|
+
set: function set(value) {
|
|
48268
|
+
this._isLock = value;
|
|
48269
|
+
}
|
|
48135
48270
|
}]);
|
|
48136
48271
|
return ColProperty;
|
|
48137
48272
|
}();
|
|
@@ -53114,6 +53249,8 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
53114
53249
|
_this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
|
|
53115
53250
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_isReadOnly", false);
|
|
53116
53251
|
//是否只读
|
|
53252
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_notSelectTime", false);
|
|
53253
|
+
// 是否禁止选择大于今天的日期
|
|
53117
53254
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_controlStyle", "");
|
|
53118
53255
|
_this._styleIndex = styleIndex;
|
|
53119
53256
|
_this.remark = "";
|
|
@@ -53220,6 +53357,16 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
53220
53357
|
this._isReadOnly = value;
|
|
53221
53358
|
}
|
|
53222
53359
|
}
|
|
53360
|
+
}, {
|
|
53361
|
+
key: "notSelectTime",
|
|
53362
|
+
get: function get() {
|
|
53363
|
+
return this._notSelectTime;
|
|
53364
|
+
},
|
|
53365
|
+
set: function set(value) {
|
|
53366
|
+
if (this._notSelectTime !== value) {
|
|
53367
|
+
this._notSelectTime = value;
|
|
53368
|
+
}
|
|
53369
|
+
}
|
|
53223
53370
|
}, {
|
|
53224
53371
|
key: "controlStyle",
|
|
53225
53372
|
get: function get() {
|
|
@@ -53364,6 +53511,7 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
53364
53511
|
readType: this.readType,
|
|
53365
53512
|
customProperty: this.customProperty,
|
|
53366
53513
|
notReplaceElement: this.notReplaceElement,
|
|
53514
|
+
notSelectTime: this.notSelectTime,
|
|
53367
53515
|
remark: this.remark
|
|
53368
53516
|
};
|
|
53369
53517
|
}
|
|
@@ -53393,6 +53541,7 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
53393
53541
|
readType: this.readType,
|
|
53394
53542
|
customProperty: this.customProperty,
|
|
53395
53543
|
notReplaceElement: this.notReplaceElement,
|
|
53544
|
+
notSelectTime: this.notSelectTime,
|
|
53396
53545
|
remark: this.remark
|
|
53397
53546
|
};
|
|
53398
53547
|
var paga = {
|
|
@@ -53421,6 +53570,7 @@ var DateTimeNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
53421
53570
|
json.isSynchro = !json.isSynchro ? false : json.isSynchro;
|
|
53422
53571
|
json.isAllowDelete = !json.isAllowDelete ? false : json.isAllowDelete;
|
|
53423
53572
|
json.isReadOnly = !json.isReadOnly ? false : json.isReadOnly;
|
|
53573
|
+
json.notSelectTime = !json.notSelectTime ? false : json.notSelectTime;
|
|
53424
53574
|
json.type = parseInt(_ControlNode__WEBPACK_IMPORTED_MODULE_25__/* .ControlType */ .C[json.type]);
|
|
53425
53575
|
json.controlStyle = json.controlStyle.replace("hh", "HH");
|
|
53426
53576
|
if (json.controlStyle !== "yyyy-MM-dd HH:mm:ss" && json.controlStyle !== "") {
|
|
@@ -64262,25 +64412,26 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
64262
64412
|
cols = pto.col;
|
|
64263
64413
|
if (to.colSpan > 1) {
|
|
64264
64414
|
cols = pto.col + to.colSpan - 1;
|
|
64265
|
-
} else {
|
|
64266
|
-
|
|
64267
|
-
|
|
64268
|
-
|
|
64269
|
-
|
|
64270
|
-
|
|
64271
|
-
|
|
64272
|
-
|
|
64273
|
-
|
|
64274
|
-
|
|
64275
|
-
|
|
64276
|
-
|
|
64277
|
-
|
|
64278
|
-
|
|
64279
|
-
|
|
64280
|
-
|
|
64281
|
-
|
|
64282
|
-
|
|
64283
|
-
}
|
|
64415
|
+
} //else {
|
|
64416
|
+
// const tableProperty = {
|
|
64417
|
+
// canAddRow: this.tableProperty.canAddRow,
|
|
64418
|
+
// canAddCol: this.tableProperty.canAddCol,
|
|
64419
|
+
// canAdjustRowHeight: this.tableProperty.canAdjustRowHeight,
|
|
64420
|
+
// canAdjustRowWidth: this.tableProperty.canAdjustRowWidth,
|
|
64421
|
+
// canDeleteRow: this.tableProperty.canDeleteRow,
|
|
64422
|
+
// canDeleteTable: this.tableProperty.canDeleteTable,
|
|
64423
|
+
// continuePrintBorders: this.tableProperty.continuePrintBorders,
|
|
64424
|
+
// customProperties: this.tableProperty.customProperties,
|
|
64425
|
+
// layoutFullLine: this.tableProperty.layoutFullLine,
|
|
64426
|
+
// tightLineSpace: this.tableProperty.tightLineSpace,
|
|
64427
|
+
// isAutoChangeLine: this.tableProperty.isAutoChangeLine,
|
|
64428
|
+
// autoLineHeight: this.tableProperty.autoLineHeight,
|
|
64429
|
+
// fixedOnePage: this.tableProperty.fixedOnePage,
|
|
64430
|
+
// isUsePopEdit: this.tableProperty.isUsePopEdit,
|
|
64431
|
+
// isSignLock: this.tableProperty.isSignLock,
|
|
64432
|
+
// isLock: this.tableProperty.isLock
|
|
64433
|
+
// };
|
|
64434
|
+
//}
|
|
64284
64435
|
}
|
|
64285
64436
|
//for (let i = pfrom.row; i <= this.rowInfos.length-1; i++) {
|
|
64286
64437
|
for (var i = pfrom.row; i <= rows; i++) {
|
|
@@ -64338,7 +64489,9 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
64338
64489
|
dateTimeProperty: "",
|
|
64339
64490
|
numberProperty: "",
|
|
64340
64491
|
signProperty: "",
|
|
64341
|
-
customProperties: ""
|
|
64492
|
+
customProperties: "",
|
|
64493
|
+
isSignLock: false,
|
|
64494
|
+
isLock: false
|
|
64342
64495
|
};
|
|
64343
64496
|
var defaultColPropJson = JSON.parse(JSON.stringify(defaultColProp));
|
|
64344
64497
|
//处理列宽
|
|
@@ -64359,6 +64512,8 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
64359
64512
|
numberProperty: colInfo.colProperty.numberProperty,
|
|
64360
64513
|
signProperty: colInfo.colProperty.signProperty,
|
|
64361
64514
|
//customProperties: colInfo.colProperty.customProperties
|
|
64515
|
+
isSignLock: colInfo.colProperty.isSignLock,
|
|
64516
|
+
isLock: colInfo.colProperty.isLock,
|
|
64362
64517
|
customProperties: _customProperties2
|
|
64363
64518
|
};
|
|
64364
64519
|
var colPropertyJson = JSON.parse(JSON.stringify(colProperty));
|
|
@@ -64524,7 +64679,8 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
64524
64679
|
autoLineHeight: this.tableProperty.autoLineHeight,
|
|
64525
64680
|
fixedOnePage: this.tableProperty.fixedOnePage,
|
|
64526
64681
|
isUsePopEdit: this.tableProperty.isUsePopEdit,
|
|
64527
|
-
isSignLock: this.tableProperty.isSignLock
|
|
64682
|
+
isSignLock: this.tableProperty.isSignLock,
|
|
64683
|
+
isLock: this.tableProperty.isLock
|
|
64528
64684
|
};
|
|
64529
64685
|
var retJson = {
|
|
64530
64686
|
nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_28__/* .NodeType */ .Jq[this.nodeType],
|
|
@@ -65205,6 +65361,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
65205
65361
|
tableProperty.autoLineHeight = tableProperty["autoLineHeight"] || 0.53;
|
|
65206
65362
|
tableProperty.autoLineHeightPx = _editor_utils_UnitConvert__WEBPACK_IMPORTED_MODULE_40__/* .UnitConvert */ .P.instance.mmConversionPx(parseFloat(tableProperty.autoLineHeight) * 10, false);
|
|
65207
65363
|
tableProperty.isSignLock = tableProperty["isSignLock"] || false;
|
|
65364
|
+
tableProperty.isLock = tableProperty["isLock"] || false;
|
|
65208
65365
|
// console.log("json2node", 1);
|
|
65209
65366
|
var tableNode = new TableNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, Number(json.rowCount), Number(json.colCount), tableProperty);
|
|
65210
65367
|
// console.log("json2node", 2);
|
|
@@ -65323,6 +65480,12 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
65323
65480
|
if (colProperty.customProperties) {
|
|
65324
65481
|
tableNode.colInfos[_i6].colProperty.customProperties = Array.isArray(colProperty.customProperties.customProperty) ? colProperty.customProperties.customProperty : Array(colProperty.customProperties.customProperty);
|
|
65325
65482
|
}
|
|
65483
|
+
if (colProperty.isSignLock) {
|
|
65484
|
+
tableNode.colInfos[_i6].colProperty.isSignLock = colProperty.isSignLock;
|
|
65485
|
+
}
|
|
65486
|
+
if (colProperty.isLock) {
|
|
65487
|
+
tableNode.colInfos[_i6].colProperty.isLock = colProperty.isLock;
|
|
65488
|
+
}
|
|
65326
65489
|
}
|
|
65327
65490
|
}
|
|
65328
65491
|
// console.log("json2node", 5);
|
|
@@ -65463,14 +65626,13 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
65463
65626
|
"use strict";
|
|
65464
65627
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
65465
65628
|
/* harmony export */ OL: function() { return /* binding */ DownListProperty; },
|
|
65466
|
-
/* harmony export */ ZX: function() { return /* binding */ DataFormat; },
|
|
65467
65629
|
/* harmony export */ Zi: function() { return /* binding */ InputFieldType; },
|
|
65468
65630
|
/* harmony export */ hc: function() { return /* binding */ ExecuteStatus; },
|
|
65469
65631
|
/* harmony export */ mK: function() { return /* binding */ ReadOnlyStatus; },
|
|
65470
65632
|
/* harmony export */ re: function() { return /* binding */ TextInputFieldNode; },
|
|
65471
65633
|
/* harmony export */ wz: function() { return /* binding */ DataVerifyFormat; }
|
|
65472
65634
|
/* harmony export */ });
|
|
65473
|
-
/* unused harmony exports SpecialFormat, BandDataSource */
|
|
65635
|
+
/* unused harmony exports SpecialFormat, DataFormat, BandDataSource */
|
|
65474
65636
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(94310);
|
|
65475
65637
|
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(40735);
|
|
65476
65638
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61748);
|
|
@@ -65587,7 +65749,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
65587
65749
|
/*
|
|
65588
65750
|
* @Author: your name
|
|
65589
65751
|
* @Date: 2020-11-03 15:17:54
|
|
65590
|
-
* @LastEditTime: 2023-08-
|
|
65752
|
+
* @LastEditTime: 2023-08-23 11:01:42
|
|
65591
65753
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
65592
65754
|
* @Description: In User Settings Edit
|
|
65593
65755
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -66044,8 +66206,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66044
66206
|
//private _importStyle!: ImportStyle;//输入样式
|
|
66045
66207
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_this), "_downListProperty", void 0);
|
|
66046
66208
|
//下拉列表属性
|
|
66047
|
-
|
|
66048
|
-
//数据校验格式
|
|
66209
|
+
//private _dataVerifyFormat!: DataVerifyFormat; //数据校验格式
|
|
66049
66210
|
//private _bandDataSource!: BandDataSource; //绑定数据源
|
|
66050
66211
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_this), "_customProperty", void 0);
|
|
66051
66212
|
//自定义属性
|
|
@@ -66080,7 +66241,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66080
66241
|
_this._childNodes2 = [];
|
|
66081
66242
|
//this._importStyle = new ImportStyle();
|
|
66082
66243
|
_this._downListProperty = new DownListProperty();
|
|
66083
|
-
|
|
66244
|
+
//this._dataVerifyFormat = new DataVerifyFormat();
|
|
66084
66245
|
//this._bandDataSource = new BandDataSource();
|
|
66085
66246
|
_this._alignWithBlocked = false;
|
|
66086
66247
|
_this._customProperty = new Object();
|
|
@@ -66387,16 +66548,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66387
66548
|
this._downListProperty = value;
|
|
66388
66549
|
}
|
|
66389
66550
|
}
|
|
66390
|
-
|
|
66391
|
-
|
|
66392
|
-
|
|
66393
|
-
|
|
66394
|
-
|
|
66395
|
-
|
|
66396
|
-
|
|
66397
|
-
|
|
66398
|
-
}
|
|
66399
|
-
}
|
|
66551
|
+
// get dataVerifyFormat(): DataVerifyFormat {
|
|
66552
|
+
// return this._dataVerifyFormat;
|
|
66553
|
+
// }
|
|
66554
|
+
// set dataVerifyFormat(value: DataVerifyFormat) {
|
|
66555
|
+
// if (this._dataVerifyFormat !== value) {
|
|
66556
|
+
// this._dataVerifyFormat = value;
|
|
66557
|
+
// }
|
|
66558
|
+
// }
|
|
66400
66559
|
// get bandDataSource(): BandDataSource {
|
|
66401
66560
|
// return this._bandDataSource;
|
|
66402
66561
|
// }
|
|
@@ -67361,7 +67520,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67361
67520
|
enableGlobalColor: this.enableGlobalColor,
|
|
67362
67521
|
defaultValue: this.defaultValue,
|
|
67363
67522
|
downListProperty: this.downListProperty,
|
|
67364
|
-
dataVerifyFormat: this.dataVerifyFormat,
|
|
67523
|
+
//dataVerifyFormat: this.dataVerifyFormat,
|
|
67365
67524
|
//bandDataSource: this.bandDataSource,
|
|
67366
67525
|
customProperty: this.customProperty,
|
|
67367
67526
|
alignWithBlocked: this.alignWithBlocked,
|
|
@@ -67403,7 +67562,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67403
67562
|
enableGlobalColor: this.enableGlobalColor,
|
|
67404
67563
|
defaultValue: this.defaultValue,
|
|
67405
67564
|
downListProperty: this.downListProperty,
|
|
67406
|
-
dataVerifyFormat: this.dataVerifyFormat,
|
|
67565
|
+
//dataVerifyFormat: this.dataVerifyFormat,
|
|
67407
67566
|
//bandDataSource: this.bandDataSource,
|
|
67408
67567
|
customProperty: this.customProperty,
|
|
67409
67568
|
alignWithBlocked: this.alignWithBlocked,
|
|
@@ -176663,7 +176822,7 @@ var map = {
|
|
|
176663
176822
|
"./commentDialog/CommentDialog.vue": 61720,
|
|
176664
176823
|
"./customAttributes/CustomAttributes.vue": 75819,
|
|
176665
176824
|
"./dataSource/DataSource.vue": 84051,
|
|
176666
|
-
"./dateDialog/DateDialog.vue":
|
|
176825
|
+
"./dateDialog/DateDialog.vue": 29582,
|
|
176667
176826
|
"./delimiter/Delimiter.vue": 13785,
|
|
176668
176827
|
"./expressionForm/ExpressionForm.vue": 77541,
|
|
176669
176828
|
"./findReplace/FindReplace.vue": 29737,
|
|
@@ -176674,7 +176833,7 @@ var map = {
|
|
|
176674
176833
|
"./pageInfoes/PageInfoes.vue": 99749,
|
|
176675
176834
|
"./paragraph/ParagraphDialog.vue": 58874,
|
|
176676
176835
|
"./poperSelect/PoperMark.vue": 20734,
|
|
176677
|
-
"./poperSelect/PoperSelect.vue":
|
|
176836
|
+
"./poperSelect/PoperSelect.vue": 6459,
|
|
176678
176837
|
"./poperTipText/PoperTipText.vue": 50987,
|
|
176679
176838
|
"./popers/Poper.vue": 57937,
|
|
176680
176839
|
"./popers/Title.vue": 85516,
|
|
@@ -176685,7 +176844,7 @@ var map = {
|
|
|
176685
176844
|
"./sign/Sign.vue": 64207,
|
|
176686
176845
|
"./table/TableCellPoper.vue": 2043,
|
|
176687
176846
|
"./table/TableCellProperty.vue": 23890,
|
|
176688
|
-
"./table/TableColProperty.vue":
|
|
176847
|
+
"./table/TableColProperty.vue": 46226,
|
|
176689
176848
|
"./table/TableForm.vue": 79036,
|
|
176690
176849
|
"./table/TableFormTree.vue": 84804,
|
|
176691
176850
|
"./table/TableFormula.vue": 58585,
|
|
@@ -215873,7 +216032,7 @@ var HoToPage_component = (0,componentNormalizer/* default */.Z)(
|
|
|
215873
216032
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
215874
216033
|
var plugins_util = __webpack_require__(62783);
|
|
215875
216034
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 9 modules
|
|
215876
|
-
var PoperSelect = __webpack_require__(
|
|
216035
|
+
var PoperSelect = __webpack_require__(6459);
|
|
215877
216036
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
|
|
215878
216037
|
var PoperMark = __webpack_require__(20734);
|
|
215879
216038
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
|
|
@@ -217278,7 +217437,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
217278
217437
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
217279
217438
|
var ParagraphNode = __webpack_require__(67945);
|
|
217280
217439
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
217281
|
-
/* harmony default export */ var version = ('3.1.
|
|
217440
|
+
/* harmony default export */ var version = ('3.1.3');
|
|
217282
217441
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
217283
217442
|
var PoperTipText = __webpack_require__(50987);
|
|
217284
217443
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -220388,6 +220547,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
220388
220547
|
tableProperty.isAutoChangeLine = tableProperty['isAutoChangeLine'] || false;
|
|
220389
220548
|
tableProperty.autoLineHeight = tableProperty['autoLineHeight'] || 0.53;
|
|
220390
220549
|
tableProperty.isSignLock = tableProperty['isSignLock'] || false;
|
|
220550
|
+
tableProperty.isLock = tableProperty['isLock'] || false;
|
|
220391
220551
|
return tableProperty;
|
|
220392
220552
|
}
|
|
220393
220553
|
}, {
|
|
@@ -228481,6 +228641,18 @@ var VueController = /*#__PURE__*/function () {
|
|
|
228481
228641
|
hoEditorFactory.undoService.add(new NodeDeleteUndoUnit/* NodeDeleteUndoUnit */.w(this._hoEditorFactoryID, node, ePath));
|
|
228482
228642
|
hoEditorFactory.undoService.add(new NodeInsertUndoUnit/* NodeInsertUndoUnit */.R(this._hoEditorFactoryID, sPath, signNode));
|
|
228483
228643
|
hoEditorFactory.undoService.commit();
|
|
228644
|
+
if (node.parentNode instanceof CellNode/* CellNode */.D) {
|
|
228645
|
+
var table = node.parentNode.table;
|
|
228646
|
+
if (table.tableProperty.isSignLock && table.tableProperty.isLock) {
|
|
228647
|
+
table.tableProperty.isLock = false;
|
|
228648
|
+
} else {
|
|
228649
|
+
var c = node.parentNode.row.indexOf(node.parentNode);
|
|
228650
|
+
var colProperty = table.colInfos[c].colProperty;
|
|
228651
|
+
if (colProperty.isSignLock && colProperty.isLock) {
|
|
228652
|
+
colProperty.isLock = false;
|
|
228653
|
+
}
|
|
228654
|
+
}
|
|
228655
|
+
}
|
|
228484
228656
|
return;
|
|
228485
228657
|
}
|
|
228486
228658
|
if (preNode instanceof SignNode/* SignNode */.N) {
|
|
@@ -228603,90 +228775,88 @@ var VueController = /*#__PURE__*/function () {
|
|
|
228603
228775
|
* 验证病历文件中所有文本域的数据格式
|
|
228604
228776
|
* @param 错误列表(元素,错误信息)
|
|
228605
228777
|
*/
|
|
228606
|
-
|
|
228607
|
-
|
|
228608
|
-
|
|
228609
|
-
|
|
228610
|
-
|
|
228611
|
-
|
|
228612
|
-
|
|
228613
|
-
|
|
228614
|
-
|
|
228615
|
-
|
|
228616
|
-
|
|
228617
|
-
|
|
228618
|
-
|
|
228619
|
-
|
|
228620
|
-
|
|
228621
|
-
|
|
228622
|
-
|
|
228623
|
-
|
|
228624
|
-
|
|
228625
|
-
|
|
228626
|
-
|
|
228627
|
-
|
|
228628
|
-
|
|
228629
|
-
|
|
228630
|
-
|
|
228631
|
-
|
|
228632
|
-
|
|
228633
|
-
|
|
228634
|
-
|
|
228635
|
-
|
|
228636
|
-
|
|
228637
|
-
|
|
228638
|
-
|
|
228639
|
-
|
|
228640
|
-
|
|
228641
|
-
|
|
228642
|
-
|
|
228643
|
-
|
|
228644
|
-
|
|
228645
|
-
|
|
228646
|
-
|
|
228647
|
-
|
|
228648
|
-
|
|
228649
|
-
|
|
228650
|
-
|
|
228651
|
-
|
|
228652
|
-
|
|
228653
|
-
|
|
228654
|
-
|
|
228655
|
-
|
|
228656
|
-
|
|
228657
|
-
|
|
228658
|
-
|
|
228659
|
-
|
|
228660
|
-
|
|
228661
|
-
|
|
228662
|
-
|
|
228663
|
-
|
|
228664
|
-
|
|
228665
|
-
|
|
228666
|
-
|
|
228667
|
-
|
|
228668
|
-
|
|
228669
|
-
|
|
228670
|
-
|
|
228671
|
-
|
|
228672
|
-
|
|
228673
|
-
|
|
228674
|
-
|
|
228675
|
-
|
|
228676
|
-
|
|
228677
|
-
|
|
228678
|
-
|
|
228679
|
-
|
|
228680
|
-
|
|
228681
|
-
|
|
228682
|
-
|
|
228683
|
-
|
|
228684
|
-
|
|
228685
|
-
|
|
228686
|
-
|
|
228687
|
-
|
|
228688
|
-
return errorArray;
|
|
228689
|
-
}
|
|
228778
|
+
// public verifyTextFieldsDataFormat(): Array<[TextInputFieldNode, string]> {
|
|
228779
|
+
// const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
228780
|
+
// const errorArray: Array<[TextInputFieldNode, string]> = [];
|
|
228781
|
+
// let errorInfo = '';
|
|
228782
|
+
// const headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
|
|
228783
|
+
// const footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
|
|
228784
|
+
// const mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
228785
|
+
// const loopFieldNodes = (filedNodes: TextInputFieldNode[]) => {
|
|
228786
|
+
// for (let h = 0; h < filedNodes.length; h++) {
|
|
228787
|
+
// const node = filedNodes[h];
|
|
228788
|
+
// const dataVerifyFormat = node.dataVerifyFormat;
|
|
228789
|
+
// if (dataVerifyFormat.mustInputValue && node.text === '') {
|
|
228790
|
+
// errorInfo = '必须输入,不能为空';
|
|
228791
|
+
// errorArray.push([node, errorInfo]);
|
|
228792
|
+
// } else {
|
|
228793
|
+
// if (dataVerifyFormat.dataFormat === DataFormat.text) {
|
|
228794
|
+
// //文本格式
|
|
228795
|
+
// if (dataVerifyFormat.minLength > 0) {
|
|
228796
|
+
// if (node.text.length < dataVerifyFormat.minLength) {
|
|
228797
|
+
// errorInfo = '内容不能少于' + dataVerifyFormat.minLength.toString() + '个字符';
|
|
228798
|
+
// errorArray.push([node, errorInfo]);
|
|
228799
|
+
// }
|
|
228800
|
+
// }
|
|
228801
|
+
// if (dataVerifyFormat.maxLength > 0) {
|
|
228802
|
+
// if (node.text.length > dataVerifyFormat.maxLength) {
|
|
228803
|
+
// errorInfo = '内容不能多于' + dataVerifyFormat.maxLength.toString() + '个字符';
|
|
228804
|
+
// errorArray.push([node, errorInfo]);
|
|
228805
|
+
// }
|
|
228806
|
+
// }
|
|
228807
|
+
// } else {
|
|
228808
|
+
// //数值格式
|
|
228809
|
+
// if (!isNumber(node.text)) {
|
|
228810
|
+
// errorInfo = '内容必须为数值';
|
|
228811
|
+
// errorArray.push([node, errorInfo]);
|
|
228812
|
+
// } else {
|
|
228813
|
+
// if (dataVerifyFormat.onlyInputInt) {
|
|
228814
|
+
// //必须是整数
|
|
228815
|
+
// if (Number(node.text) % 1 !== 0) {
|
|
228816
|
+
// errorInfo = '数值必须为整数';
|
|
228817
|
+
// errorArray.push([node, errorInfo]);
|
|
228818
|
+
// } else {
|
|
228819
|
+
// if (dataVerifyFormat.maxValue !== 0 && Number(node.text) > dataVerifyFormat.maxValue) {
|
|
228820
|
+
// errorInfo = '数值不能大于' + dataVerifyFormat.maxValue.toString();
|
|
228821
|
+
// errorArray.push([node, errorInfo]);
|
|
228822
|
+
// }
|
|
228823
|
+
// if (dataVerifyFormat.minValue !== 0 && Number(node.text) < dataVerifyFormat.minValue) {
|
|
228824
|
+
// errorInfo = '数值不能小于' + dataVerifyFormat.minValue.toString();
|
|
228825
|
+
// errorArray.push([node, errorInfo]);
|
|
228826
|
+
// }
|
|
228827
|
+
// }
|
|
228828
|
+
// } else {
|
|
228829
|
+
// //非必须是整数
|
|
228830
|
+
// if (dataVerifyFormat.maxSmallBits !== 0 && node.text.split('.')[1].length > dataVerifyFormat.maxSmallBits) {
|
|
228831
|
+
// errorInfo = '小数位数不能多于' + dataVerifyFormat.maxSmallBits.toString() + '位';
|
|
228832
|
+
// errorArray.push([node, errorInfo]);
|
|
228833
|
+
// }
|
|
228834
|
+
// }
|
|
228835
|
+
// }
|
|
228836
|
+
// }
|
|
228837
|
+
// }
|
|
228838
|
+
// }
|
|
228839
|
+
// };
|
|
228840
|
+
// for (let i = 0; i < headerDocTree.length; i++) {
|
|
228841
|
+
// const headerNodes = headerDocTree[i].subDocNodes;
|
|
228842
|
+
// const hsPath = headerNodes[0].getNodePath();
|
|
228843
|
+
// const hePath = hoEditorFactory.docTree.getNodeLastPath(headerNodes[headerNodes.length - 1]);
|
|
228844
|
+
// const headerFileds = DomRange.getRangeTextInputField(this._hoEditorFactoryID, hsPath, hePath, false);
|
|
228845
|
+
// loopFieldNodes(headerFileds);
|
|
228846
|
+
// }
|
|
228847
|
+
// const msPath = mainNodes[0].getNodePath();
|
|
228848
|
+
// const mePath = hoEditorFactory.docTree.getNodeLastPath(mainNodes[mainNodes.length - 1]);
|
|
228849
|
+
// const mainFileds = DomRange.getRangeTextInputField(this._hoEditorFactoryID, msPath, mePath, false);
|
|
228850
|
+
// loopFieldNodes(mainFileds);
|
|
228851
|
+
// for (let i = 0; i < footerDocTree.length; i++) {
|
|
228852
|
+
// const footerNodes = footerDocTree[i].subDocNodes;
|
|
228853
|
+
// const fsPath = footerNodes[0].getNodePath();
|
|
228854
|
+
// const fePath = hoEditorFactory.docTree.getNodeLastPath(footerNodes[footerNodes.length - 1]);
|
|
228855
|
+
// const footerFileds = DomRange.getRangeTextInputField(this._hoEditorFactoryID, fsPath, fePath, false);
|
|
228856
|
+
// loopFieldNodes(footerFileds);
|
|
228857
|
+
// }
|
|
228858
|
+
// return errorArray;
|
|
228859
|
+
// }
|
|
228690
228860
|
/**
|
|
228691
228861
|
* 插入空签名
|
|
228692
228862
|
* @param name 签名名称(空签名的初始化显示)
|
|
@@ -229980,7 +230150,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
229980
230150
|
path = pathArr.join('/');
|
|
229981
230151
|
}
|
|
229982
230152
|
};
|
|
229983
|
-
for (var
|
|
230153
|
+
for (var _i3 = 0; _i3 < text.length; _i3++) {
|
|
229984
230154
|
_loop4();
|
|
229985
230155
|
}
|
|
229986
230156
|
var selectRange = new SelectRange/* SelectRange */.E(this.hoEditorFactoryID);
|
|
@@ -230623,6 +230793,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
230623
230793
|
type: 'sign',
|
|
230624
230794
|
signed: false,
|
|
230625
230795
|
isTemplate: node.isTemplate,
|
|
230796
|
+
number: node.number,
|
|
230626
230797
|
isVerify: node.otherProperties && node.otherProperties.isVerify ? true : false,
|
|
230627
230798
|
customProperty: {}
|
|
230628
230799
|
};
|
|
@@ -230705,8 +230876,19 @@ var VueController = /*#__PURE__*/function () {
|
|
|
230705
230876
|
};
|
|
230706
230877
|
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
230707
230878
|
getAllNodes(mainNodes);
|
|
230879
|
+
var hSignList = signList.map(function (sign, index) {
|
|
230880
|
+
if (sign.number > 1) {
|
|
230881
|
+
for (var i = index; i < signList.length; i++) {
|
|
230882
|
+
if (signList[i].number == 1) {
|
|
230883
|
+
sign.isTemplate = signList[i].isTemplate;
|
|
230884
|
+
break;
|
|
230885
|
+
}
|
|
230886
|
+
}
|
|
230887
|
+
}
|
|
230888
|
+
return sign;
|
|
230889
|
+
});
|
|
230708
230890
|
return {
|
|
230709
|
-
sign:
|
|
230891
|
+
sign: hSignList,
|
|
230710
230892
|
patientSign: patientSignList,
|
|
230711
230893
|
bce01List: bce01List
|
|
230712
230894
|
};
|
|
@@ -230860,7 +231042,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
230860
231042
|
autoLineHeight: node.tableProperty.autoLineHeight,
|
|
230861
231043
|
fixedOnePage: node.tableProperty.fixedOnePage,
|
|
230862
231044
|
isUsePopEdit: node.tableProperty.isUsePopEdit,
|
|
230863
|
-
isSignLock: node.tableProperty.isSignLock
|
|
231045
|
+
isSignLock: node.tableProperty.isSignLock,
|
|
231046
|
+
isLock: node.tableProperty.isLock
|
|
230864
231047
|
};
|
|
230865
231048
|
var defaultRowProp = {
|
|
230866
231049
|
customProperties: '',
|
|
@@ -230880,8 +231063,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
230880
231063
|
var rowInfosArray = new Array();
|
|
230881
231064
|
var rows = node.rowInfos.length - 1;
|
|
230882
231065
|
var cols = node.colInfos.length - 1;
|
|
230883
|
-
for (var
|
|
230884
|
-
var rowInfo = node.rowInfos[
|
|
231066
|
+
for (var _i4 = 0; _i4 <= rows; _i4++) {
|
|
231067
|
+
var rowInfo = node.rowInfos[_i4];
|
|
230885
231068
|
var _customProperties = {
|
|
230886
231069
|
customProperty: Array(rowInfo.rowProperty.customProperties)
|
|
230887
231070
|
};
|
|
@@ -230933,13 +231116,15 @@ var VueController = /*#__PURE__*/function () {
|
|
|
230933
231116
|
dateTimeProperty: '',
|
|
230934
231117
|
numberProperty: '',
|
|
230935
231118
|
signProperty: '',
|
|
230936
|
-
customProperties: ''
|
|
231119
|
+
customProperties: '',
|
|
231120
|
+
isSignLock: false,
|
|
231121
|
+
isLock: false
|
|
230937
231122
|
};
|
|
230938
231123
|
var defaultColPropJson = JSON.parse(JSON.stringify(defaultColProp));
|
|
230939
231124
|
//处理列宽
|
|
230940
231125
|
var colInfosArray = new Array();
|
|
230941
|
-
for (var
|
|
230942
|
-
var colInfo = node.colInfos[
|
|
231126
|
+
for (var _i5 = 0; _i5 <= cols; _i5++) {
|
|
231127
|
+
var colInfo = node.colInfos[_i5];
|
|
230943
231128
|
var _customProperties2 = {
|
|
230944
231129
|
customProperty: Array(colInfo.colProperty.customProperties)
|
|
230945
231130
|
};
|
|
@@ -230952,6 +231137,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
230952
231137
|
dateTimeProperty: colInfo.colProperty.dateTimeProperty,
|
|
230953
231138
|
numberProperty: colInfo.colProperty.numberProperty,
|
|
230954
231139
|
signProperty: colInfo.colProperty.signProperty,
|
|
231140
|
+
isSignLock: colInfo.colProperty.isSignLock,
|
|
231141
|
+
isLock: colInfo.colProperty.isLock,
|
|
230955
231142
|
customProperties: _customProperties2
|
|
230956
231143
|
};
|
|
230957
231144
|
var colPropertyJson = JSON.parse(JSON.stringify(colProperty));
|
|
@@ -231064,8 +231251,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231064
231251
|
if (node instanceof CellNode/* CellNode */.D) {
|
|
231065
231252
|
//处理子节点
|
|
231066
231253
|
var childArray = new Array();
|
|
231067
|
-
for (var
|
|
231068
|
-
var anode = node.childNodes[
|
|
231254
|
+
for (var _i6 = 0; _i6 < node.childNodes.length; _i6++) {
|
|
231255
|
+
var anode = node.childNodes[_i6];
|
|
231069
231256
|
var nodeJson = void 0;
|
|
231070
231257
|
if (anode instanceof TextNode/* TextNode */.R) {
|
|
231071
231258
|
if (anode.text !== '') {
|
|
@@ -231180,8 +231367,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231180
231367
|
};
|
|
231181
231368
|
var xmlRoot = '<?xml version="1.0" encoding="utf-8"?>';
|
|
231182
231369
|
var doc2XmlJson = function doc2XmlJson(nodes) {
|
|
231183
|
-
for (var
|
|
231184
|
-
var node = nodes[
|
|
231370
|
+
for (var _i7 = 0; _i7 < nodes.length; _i7++) {
|
|
231371
|
+
var node = nodes[_i7];
|
|
231185
231372
|
if (node instanceof TextNode/* TextNode */.R || node instanceof ParagraphNode/* ParagraphNode */.C || node instanceof TableNode/* TableNode */.Fh || node instanceof ImageNode/* ImageNode */.H) {
|
|
231186
231373
|
var nodeJson = node2Json(node);
|
|
231187
231374
|
xmlRoot += x2js.js2xml(nodeJson);
|
|
@@ -231557,7 +231744,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231557
231744
|
for (var j = 0; j < pathArr.length; j++) {
|
|
231558
231745
|
var apath = pathArr[j];
|
|
231559
231746
|
var nodeLastPath = pathArr[j];
|
|
231560
|
-
for (var
|
|
231747
|
+
for (var _i8 = 0; _i8 < findText.length; _i8++) {
|
|
231561
231748
|
var np = hoEditorFactory.docTree.findNodePositionByPath(apath);
|
|
231562
231749
|
if (np && np.node) {
|
|
231563
231750
|
nodeLastPath = hoEditorFactory.docTree.getNodeLastPath(np.node);
|
|
@@ -232523,7 +232710,6 @@ var DomController = /*#__PURE__*/function () {
|
|
|
232523
232710
|
|
|
232524
232711
|
|
|
232525
232712
|
|
|
232526
|
-
|
|
232527
232713
|
|
|
232528
232714
|
|
|
232529
232715
|
var EditController = /*#__PURE__*/function () {
|
|
@@ -233046,16 +233232,18 @@ var EditController = /*#__PURE__*/function () {
|
|
|
233046
233232
|
}
|
|
233047
233233
|
if (result && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.Dh.psDesign) {
|
|
233048
233234
|
var pNode = hoEditorFactory.docTree.getParentNode(curDomRange.startPath);
|
|
233049
|
-
if (pNode && pNode instanceof CellNode/* CellNode */.D
|
|
233050
|
-
|
|
233051
|
-
|
|
233052
|
-
|
|
233053
|
-
|
|
233054
|
-
|
|
233055
|
-
|
|
233056
|
-
|
|
233057
|
-
|
|
233058
|
-
|
|
233235
|
+
if (pNode && pNode instanceof CellNode/* CellNode */.D) {
|
|
233236
|
+
if (pNode.table.tableProperty.isSignLock && pNode.table.tableProperty.isLock) {
|
|
233237
|
+
message/* default */.Z.destroy();
|
|
233238
|
+
message/* default */.Z.error("表格已完成签名,不允许修改编辑。");
|
|
233239
|
+
return false;
|
|
233240
|
+
} else {
|
|
233241
|
+
var c = pNode.row.indexOf(pNode);
|
|
233242
|
+
var colProperty = pNode.table.colInfos[c].colProperty;
|
|
233243
|
+
if (colProperty.isSignLock && colProperty.isLock) {
|
|
233244
|
+
message/* default */.Z.destroy();
|
|
233245
|
+
message/* default */.Z.error("本列已完成签名,不允许修改编辑。");
|
|
233246
|
+
return false;
|
|
233059
233247
|
}
|
|
233060
233248
|
}
|
|
233061
233249
|
}
|
|
@@ -233082,7 +233270,7 @@ var EditController = /*#__PURE__*/function () {
|
|
|
233082
233270
|
/*
|
|
233083
233271
|
* @Author: your name
|
|
233084
233272
|
* @Date: 2021-07-31 09:27:53
|
|
233085
|
-
* @LastEditTime: 2023-01-06
|
|
233273
|
+
* @LastEditTime: 2023-01-06 10:15:24
|
|
233086
233274
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
233087
233275
|
* @Description: In User Settings Edit
|
|
233088
233276
|
* @FilePath: \hoeditor-web\src\editor\externalCall\ElementController.ts
|
|
@@ -233160,7 +233348,7 @@ var ElementController = /*#__PURE__*/function () {
|
|
|
233160
233348
|
*/
|
|
233161
233349
|
}, {
|
|
233162
233350
|
key: "updateTextInputFieldValue",
|
|
233163
|
-
value: function updateTextInputFieldValue(node, text, customProperty, keyValue, value
|
|
233351
|
+
value: function updateTextInputFieldValue(node, text, customProperty, keyValue, value) {
|
|
233164
233352
|
var hPromise = Promise.resolve();
|
|
233165
233353
|
hPromise = hPromise.then(function (res) {
|
|
233166
233354
|
return new Promise( /*#__PURE__*/function () {
|
|
@@ -233237,12 +233425,10 @@ var ElementController = /*#__PURE__*/function () {
|
|
|
233237
233425
|
* 验证病历文件中所有文本域的数据格式
|
|
233238
233426
|
* @param 错误列表(元素,错误信息)
|
|
233239
233427
|
*/
|
|
233240
|
-
|
|
233241
|
-
|
|
233242
|
-
|
|
233243
|
-
|
|
233244
|
-
return hoEditorFactory.vueController.verifyTextFieldsDataFormat();
|
|
233245
|
-
}
|
|
233428
|
+
// public verifyTextFieldsDataFormat(): Array<[TextInputFieldNode, string]> {
|
|
233429
|
+
// const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
233430
|
+
// return hoEditorFactory.vueController.verifyTextFieldsDataFormat();
|
|
233431
|
+
// }
|
|
233246
233432
|
/**
|
|
233247
233433
|
* @description 获取所有的元素:包括日期、下拉选择组件、文本域
|
|
233248
233434
|
* @returns 返回获取到的所有元素
|