cnhis-design-vue 2.1.140 → 2.1.143
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/CHANGELOG.md +51 -19
- package/es/age/index.js +2 -2
- package/es/big-table/index.js +152 -112
- package/es/big-table/style.css +1 -1
- package/es/button/index.js +2395 -253
- package/es/button/style.css +1 -1
- package/es/captcha/index.js +3 -3
- package/es/card-reader-sdk/index.js +1 -1
- package/es/checkbox/index.js +1 -1
- package/es/color-picker/index.js +1 -1
- package/es/drag-layout/index.js +3 -3
- package/es/editor/index.js +1 -1
- package/es/ellipsis/index.js +1 -1
- package/es/fabric-chart/index.js +280 -143
- package/es/form-table/index.js +20 -20
- package/es/full-calendar/index.js +4 -4
- package/es/index/index.js +2822 -503
- package/es/index/style.css +1 -1
- package/es/input/index.js +1 -1
- package/es/map/index.js +1 -1
- package/es/multi-chat/index.js +25 -25
- package/es/multi-chat-client/index.js +19 -19
- package/es/multi-chat-history/index.js +4 -4
- package/es/multi-chat-record/index.js +4 -4
- package/es/multi-chat-setting/index.js +20 -20
- package/es/multi-chat-sip/index.js +1 -1
- package/es/radio/index.js +1 -1
- package/es/scale-container/index.js +1 -1
- package/es/scale-view/index.js +27 -27
- package/es/select/index.js +4 -4
- package/es/select-label/index.js +3 -3
- package/es/select-person/index.js +35 -28
- package/es/select-person/style.css +1 -1
- package/es/select-tag/index.js +4 -4
- package/es/shortcut-setter/index.js +2 -2
- package/es/slider-tree/index.js +1 -1
- package/es/table-filter/index.js +2301 -138
- package/es/table-filter/style.css +1 -1
- package/es/tag/index.js +1 -1
- package/es/verification-code/index.js +2 -2
- package/lib/cui.common.js +3064 -716
- package/lib/cui.umd.js +3064 -716
- package/lib/cui.umd.min.js +66 -66
- package/package.json +1 -1
- package/packages/big-table/src/BigTable.vue +5 -4
- package/packages/big-table/src/utils/headerFilter.js +54 -18
- package/packages/button/src/ButtonPrint/index.vue +27 -691
- package/packages/button/src/ButtonPrint/js/print.es.min.js +1 -1
- package/packages/button/src/ButtonPrint/js/print.es.min1.js +1 -1
- package/packages/button/src/ButtonPrint/new.vue +1438 -0
- package/packages/button/src/ButtonPrint/old.vue +809 -0
- package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +90 -7
- package/packages/select-person/select-person.vue +79 -67
- package/packages/table-filter/src/components/render-widget/components/CheckboxGroup.vue +18 -4
- package/packages/table-filter/src/components/render-widget/index.vue +2 -2
- package/packages/table-filter/src/components/render-widget/widgetCfgMaps.js +2 -2
package/es/button/index.js
CHANGED
|
@@ -457,17 +457,6 @@ module.exports = require("ant-design-vue/es/base/style");
|
|
|
457
457
|
|
|
458
458
|
module.exports = require("core-js/modules/es.date.to-primitive.js");
|
|
459
459
|
|
|
460
|
-
/***/ }),
|
|
461
|
-
|
|
462
|
-
/***/ "1f49":
|
|
463
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
464
|
-
|
|
465
|
-
"use strict";
|
|
466
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_1_lang_less___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("41ba");
|
|
467
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_1_lang_less___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_1_lang_less___WEBPACK_IMPORTED_MODULE_0__);
|
|
468
|
-
/* unused harmony reexport * */
|
|
469
|
-
|
|
470
|
-
|
|
471
460
|
/***/ }),
|
|
472
461
|
|
|
473
462
|
/***/ "2266":
|
|
@@ -4612,7 +4601,7 @@ var qi = function () {
|
|
|
4612
4601
|
console.log("解析e.data失败," + t);
|
|
4613
4602
|
}
|
|
4614
4603
|
|
|
4615
|
-
if (["print", "pdf"].includes(null === (e = r) || void 0 === e ? void 0 : e.cmd)) {
|
|
4604
|
+
if (["print", "pdf", "resetprint"].includes(null === (e = r) || void 0 === e ? void 0 : e.cmd)) {
|
|
4616
4605
|
console.log("打印命令执行了", r);
|
|
4617
4606
|
var n = this.messageHandlerQueue.shift();
|
|
4618
4607
|
if (!n) return console.log("当前回执", t, "没有可用的handler");
|
|
@@ -4620,6 +4609,10 @@ var qi = function () {
|
|
|
4620
4609
|
i = n.reject;
|
|
4621
4610
|
|
|
4622
4611
|
try {
|
|
4612
|
+
var a, u;
|
|
4613
|
+
if ("resetprint" === (null === (a = r) || void 0 === a ? void 0 : a.cmd)) return void o({
|
|
4614
|
+
result: null !== (u = r) && void 0 !== u && u.res ? "success" : "fail"
|
|
4615
|
+
});
|
|
4623
4616
|
o(r.res || "");
|
|
4624
4617
|
} catch (t) {
|
|
4625
4618
|
i(t);
|
|
@@ -4685,6 +4678,26 @@ var qi = function () {
|
|
|
4685
4678
|
}.bind(this));
|
|
4686
4679
|
}.bind(this));
|
|
4687
4680
|
}
|
|
4681
|
+
}, {
|
|
4682
|
+
key: "resetPrinter",
|
|
4683
|
+
value: function value(t) {
|
|
4684
|
+
var e = this;
|
|
4685
|
+
return this.webview ? this.postMessage({
|
|
4686
|
+
exec: "resetprint",
|
|
4687
|
+
data: {
|
|
4688
|
+
formatID: t
|
|
4689
|
+
}
|
|
4690
|
+
}) : Bi({
|
|
4691
|
+
url: "".concat(Ni, "/services/printset"),
|
|
4692
|
+
method: "get",
|
|
4693
|
+
withCredentials: !1,
|
|
4694
|
+
params: {
|
|
4695
|
+
inputdata: t
|
|
4696
|
+
}
|
|
4697
|
+
}).then(function (t) {
|
|
4698
|
+
return o(this, e), t.data;
|
|
4699
|
+
}.bind(this));
|
|
4700
|
+
}
|
|
4688
4701
|
}, {
|
|
4689
4702
|
key: "_queryServicesPrint",
|
|
4690
4703
|
value: function value(t) {
|
|
@@ -5567,17 +5580,17 @@ module.exports = require("core-js/modules/es.symbol.iterator.js");
|
|
|
5567
5580
|
|
|
5568
5581
|
/***/ }),
|
|
5569
5582
|
|
|
5570
|
-
/***/ "
|
|
5571
|
-
/***/ (function(module, exports) {
|
|
5583
|
+
/***/ "3016":
|
|
5584
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5572
5585
|
|
|
5573
|
-
|
|
5586
|
+
// extracted by mini-css-extract-plugin
|
|
5574
5587
|
|
|
5575
5588
|
/***/ }),
|
|
5576
5589
|
|
|
5577
|
-
/***/ "
|
|
5578
|
-
/***/ (function(module, exports
|
|
5590
|
+
/***/ "30df":
|
|
5591
|
+
/***/ (function(module, exports) {
|
|
5579
5592
|
|
|
5580
|
-
|
|
5593
|
+
module.exports = require("core-js/modules/es.regexp.to-string.js");
|
|
5581
5594
|
|
|
5582
5595
|
/***/ }),
|
|
5583
5596
|
|
|
@@ -5614,12 +5627,31 @@ module.exports = function (it) {
|
|
|
5614
5627
|
|
|
5615
5628
|
"use strict";
|
|
5616
5629
|
|
|
5617
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
5618
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('
|
|
5630
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"9441c33a-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/ButtonPrint/index.vue?vue&type=template&id=56bddcac&
|
|
5631
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c(_vm.isComponent,_vm._g(_vm._b({ref:"printComponentRef",tag:"component",scopedSlots:_vm._u([{key:"button",fn:function(slotProps){return [_vm._t("button",null,null,slotProps)]}}],null,true)},'component',_vm.getProps,false),_vm.$listeners))],1)}
|
|
5619
5632
|
var staticRenderFns = []
|
|
5620
5633
|
|
|
5621
5634
|
|
|
5622
|
-
// CONCATENATED MODULE: ./packages/button/src/ButtonPrint/index.vue?vue&type=template&id=
|
|
5635
|
+
// CONCATENATED MODULE: ./packages/button/src/ButtonPrint/index.vue?vue&type=template&id=56bddcac&
|
|
5636
|
+
|
|
5637
|
+
// EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
|
|
5638
|
+
var es_number_constructor_js_ = __webpack_require__("f989");
|
|
5639
|
+
|
|
5640
|
+
// EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
|
|
5641
|
+
var es_object_to_string_js_ = __webpack_require__("97d3");
|
|
5642
|
+
|
|
5643
|
+
// EXTERNAL MODULE: external "core-js/modules/es.object.keys.js"
|
|
5644
|
+
var es_object_keys_js_ = __webpack_require__("ea64");
|
|
5645
|
+
|
|
5646
|
+
// EXTERNAL MODULE: ./src/core/create.js
|
|
5647
|
+
var create = __webpack_require__("8aef");
|
|
5648
|
+
|
|
5649
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"9441c33a-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/ButtonPrint/old.vue?vue&type=template&id=edc09274&scoped=true&
|
|
5650
|
+
var oldvue_type_template_id_edc09274_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:(_vm.handleClickOutside),expression:"handleClickOutside"}],on:{"click":_vm.handleClickWrap}},[_c('a-dropdown',{attrs:{"visible":_vm.visible,"overlayClassName":"rowFoldHideBtnList-dropdown"}},[_c('a-menu',{attrs:{"slot":"overlay"},slot:"overlay"},[_c('a-sub-menu',{key:"format",staticClass:"format-name",attrs:{"title":_vm.formatTitle}},_vm._l((_vm.formatList),function(item){return _c('a-menu-item',{key:item.id,class:{ active: item.id === _vm.currentFormatId },on:{"click":function($event){return _vm.handleClickFormat(item.id)}}},[_vm._v(" "+_vm._s(item.name)+" ")])}),1),_c('a-menu-divider'),_c('a-menu-item',{on:{"click":function (e) { return _vm.handleClickPrint(e); }}},[_vm._v(" "+_vm._s(_vm.printText)+" ")]),_c('a-menu-item',{on:{"click":function (e) { return _vm.handleClickPreview(e); }}},[_vm._v(" "+_vm._s(_vm.previewText)+" ")]),_c('a-menu-item',{on:{"click":function (e) { return _vm.handleClickPdf(e); }}},[_vm._v(" "+_vm._s(_vm.pdfLoadText)+" ")]),_c('a-menu-item',{on:{"click":function (e) { return _vm.handleClickEdit(e); }}},[_vm._v(" "+_vm._s(_vm.formatEditText)+" ")])],1),_vm._t("button",function(){return [_c('a-button',{staticClass:"dropdown-button",staticStyle:{"margin":"0 8px 8px 0"},on:{"click":function($event){$event.stopPropagation();return _vm.handleClickBtn.apply(null, arguments)}}},[(_vm.spinning)?_c('a-icon',{staticStyle:{"line-height":"10px"},attrs:{"type":"loading"}}):_vm._e(),_vm._v(" "+_vm._s(_vm.btnText)+" "),_c('a-icon',{attrs:{"type":"down"}})],1)]},{"handleClickPrintBtn":_vm.handleClickBtn,"printSpinning":_vm.spinning,"printbtnText":_vm.btnText,"printVisible":_vm.visible})],2),_c('IdentityVerification',{attrs:{"printConfig":_vm.printConfig,"baseUrl":_vm.baseUrl,"verifyUserUrl":_vm.verifyUserUrl,"visible":_vm.identityVerification.visible,"identityVerificationTitle":_vm.identityVerificationTitle,"authorizationKey":_vm.authorizationKey},on:{"update:visible":function($event){return _vm.$set(_vm.identityVerification, "visible", $event)},"success":_vm.verifiySuccess}})],1)}
|
|
5651
|
+
var oldvue_type_template_id_edc09274_scoped_true_staticRenderFns = []
|
|
5652
|
+
|
|
5653
|
+
|
|
5654
|
+
// CONCATENATED MODULE: ./packages/button/src/ButtonPrint/old.vue?vue&type=template&id=edc09274&scoped=true&
|
|
5623
5655
|
|
|
5624
5656
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
5625
5657
|
var esm_typeof = __webpack_require__("53ca");
|
|
@@ -5667,12 +5699,6 @@ var icon_default = /*#__PURE__*/__webpack_require__.n(icon_);
|
|
|
5667
5699
|
// EXTERNAL MODULE: external "regenerator-runtime/runtime.js"
|
|
5668
5700
|
var runtime_js_ = __webpack_require__("d16b");
|
|
5669
5701
|
|
|
5670
|
-
// EXTERNAL MODULE: external "core-js/modules/es.number.constructor.js"
|
|
5671
|
-
var es_number_constructor_js_ = __webpack_require__("f989");
|
|
5672
|
-
|
|
5673
|
-
// EXTERNAL MODULE: external "core-js/modules/es.object.to-string.js"
|
|
5674
|
-
var es_object_to_string_js_ = __webpack_require__("97d3");
|
|
5675
|
-
|
|
5676
5702
|
// EXTERNAL MODULE: external "core-js/modules/es.array.find.js"
|
|
5677
5703
|
var es_array_find_js_ = __webpack_require__("0d58");
|
|
5678
5704
|
|
|
@@ -5694,9 +5720,6 @@ var web_dom_collections_for_each_js_ = __webpack_require__("13e3");
|
|
|
5694
5720
|
// EXTERNAL MODULE: external "core-js/modules/es.string.includes.js"
|
|
5695
5721
|
var es_string_includes_js_ = __webpack_require__("fd22");
|
|
5696
5722
|
|
|
5697
|
-
// EXTERNAL MODULE: external "core-js/modules/es.object.keys.js"
|
|
5698
|
-
var es_object_keys_js_ = __webpack_require__("ea64");
|
|
5699
|
-
|
|
5700
5723
|
// EXTERNAL MODULE: external "core-js/modules/es.array.map.js"
|
|
5701
5724
|
var es_array_map_js_ = __webpack_require__("4391");
|
|
5702
5725
|
|
|
@@ -5706,7 +5729,7 @@ var es_array_join_js_ = __webpack_require__("be94");
|
|
|
5706
5729
|
// EXTERNAL MODULE: ./packages/button/src/ButtonPrint/js/print.es.min.js
|
|
5707
5730
|
var print_es_min = __webpack_require__("2c29");
|
|
5708
5731
|
|
|
5709
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
5732
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"9441c33a-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/ButtonPrint/components/IdentityVerification.vue?vue&type=template&id=9404f70a&scoped=true&
|
|
5710
5733
|
var IdentityVerificationvue_type_template_id_9404f70a_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-modal',{staticClass:"standard-modal standard-modal-white authentication-modal",attrs:{"centered":"","visible":_vm.visible,"maskClosable":false,"width":_vm.style.width,"bodyStyle":{ maxHeight: _vm.style.height, overflowY: 'auto' },"footer":null},on:{"cancel":_vm.handleClickClose},scopedSlots:_vm._u([{key:"title",fn:function(){return [_vm._v(" "+_vm._s(_vm.identityVerificationTitle)+" ")]},proxy:true}])},[_c('div',{staticClass:"content"},[_c('a-form-model',{ref:"ruleForm",staticClass:"login-form",attrs:{"model":_vm.form,"rules":_vm.rules}},[_c('a-form-model-item',{ref:"account",attrs:{"prop":"account"}},[_c('a-input',{attrs:{"placeholder":"请输入账号"},model:{value:(_vm.form.account),callback:function ($$v) {_vm.$set(_vm.form, "account", $$v)},expression:"form.account"}})],1),_c('a-form-model-item',{ref:"password",attrs:{"prop":"password"}},[_c('a-input-password',{attrs:{"placeholder":"请输入密码"},model:{value:(_vm.form.password),callback:function ($$v) {_vm.$set(_vm.form, "password", $$v)},expression:"form.password"}})],1),_c('a-form-model-item',[_c('a-button',{staticClass:"login-form-button",attrs:{"type":"primary"},on:{"click":_vm.handleClickSubmit}},[_vm._v("登录")])],1)],1)],1)])}
|
|
5711
5734
|
var IdentityVerificationvue_type_template_id_9404f70a_scoped_true_staticRenderFns = []
|
|
5712
5735
|
|
|
@@ -6010,9 +6033,6 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
6010
6033
|
var clickoutside_ = __webpack_require__("b88e");
|
|
6011
6034
|
var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
|
|
6012
6035
|
|
|
6013
|
-
// EXTERNAL MODULE: ./src/core/create.js
|
|
6014
|
-
var create = __webpack_require__("8aef");
|
|
6015
|
-
|
|
6016
6036
|
// EXTERNAL MODULE: external "moment"
|
|
6017
6037
|
var external_moment_ = __webpack_require__("c32d");
|
|
6018
6038
|
var external_moment_default = /*#__PURE__*/__webpack_require__.n(external_moment_);
|
|
@@ -6021,7 +6041,7 @@ var external_moment_default = /*#__PURE__*/__webpack_require__.n(external_moment
|
|
|
6021
6041
|
var vexutils_ = __webpack_require__("9715");
|
|
6022
6042
|
var vexutils_default = /*#__PURE__*/__webpack_require__.n(vexutils_);
|
|
6023
6043
|
|
|
6024
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/ButtonPrint/
|
|
6044
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/ButtonPrint/old.vue?vue&type=script&lang=js&
|
|
6025
6045
|
|
|
6026
6046
|
|
|
6027
6047
|
|
|
@@ -6097,7 +6117,7 @@ var vexutils_default = /*#__PURE__*/__webpack_require__.n(vexutils_);
|
|
|
6097
6117
|
* @desc 全继承antd按钮组件,后期再扩展
|
|
6098
6118
|
* @time 2021-06-08
|
|
6099
6119
|
*/
|
|
6100
|
-
var
|
|
6120
|
+
var oldvue_type_script_lang_js_httpFn = null;
|
|
6101
6121
|
|
|
6102
6122
|
|
|
6103
6123
|
|
|
@@ -6106,7 +6126,7 @@ var ButtonPrintvue_type_script_lang_js_httpFn = null;
|
|
|
6106
6126
|
|
|
6107
6127
|
|
|
6108
6128
|
|
|
6109
|
-
/* harmony default export */ var
|
|
6129
|
+
/* harmony default export */ var oldvue_type_script_lang_js_ = (Object(create["a" /* default */])({
|
|
6110
6130
|
name: 'button-print',
|
|
6111
6131
|
components: {
|
|
6112
6132
|
IdentityVerification: IdentityVerification
|
|
@@ -6387,7 +6407,7 @@ var ButtonPrintvue_type_script_lang_js_httpFn = null;
|
|
|
6387
6407
|
config.baseURL = printUrlPrefix;
|
|
6388
6408
|
}
|
|
6389
6409
|
|
|
6390
|
-
|
|
6410
|
+
oldvue_type_script_lang_js_httpFn = external_axios_default.a.create(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, config), cCofing));
|
|
6391
6411
|
_context2.next = 13;
|
|
6392
6412
|
return _this3.queryFormatList();
|
|
6393
6413
|
|
|
@@ -6537,7 +6557,7 @@ var ButtonPrintvue_type_script_lang_js_httpFn = null;
|
|
|
6537
6557
|
versionType = this.versionType;
|
|
6538
6558
|
var suffix = [1, 3].includes(versionType) ? "jsessionids=".concat(vexutils_default.a.cookie.get('jsessionids') || '31e5fc0e-955f-4c89-9679-39c43d0171321636163291241') : "authorizationKey=".concat(authorizationKey);
|
|
6539
6559
|
var url = "".concat(baseUrl).concat(getPrintFormatByNumberUrl, "?number=").concat(templateNumber, "&").concat(suffix);
|
|
6540
|
-
return
|
|
6560
|
+
return oldvue_type_script_lang_js_httpFn.get(url).then( /*#__PURE__*/function () {
|
|
6541
6561
|
var _ref2 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(_ref) {
|
|
6542
6562
|
var data;
|
|
6543
6563
|
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
@@ -6595,7 +6615,7 @@ var ButtonPrintvue_type_script_lang_js_httpFn = null;
|
|
|
6595
6615
|
templateId = _ref3.templateId;
|
|
6596
6616
|
|
|
6597
6617
|
var url = "".concat(baseUrl).concat(getTemplateParamsUrl, "?number=").concat(templateNumber, "&templateId=").concat(templateId, "&authorizationKey=").concat(authorizationKey);
|
|
6598
|
-
return
|
|
6618
|
+
return oldvue_type_script_lang_js_httpFn.get(url).then( /*#__PURE__*/function () {
|
|
6599
6619
|
var _ref5 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(_ref4) {
|
|
6600
6620
|
var data;
|
|
6601
6621
|
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
@@ -6646,7 +6666,7 @@ var ButtonPrintvue_type_script_lang_js_httpFn = null;
|
|
|
6646
6666
|
tVal = String(tableVal) || '';
|
|
6647
6667
|
}
|
|
6648
6668
|
|
|
6649
|
-
return
|
|
6669
|
+
return (i === null || i === void 0 ? void 0 : i.defaultValue) || tVal || '';
|
|
6650
6670
|
},
|
|
6651
6671
|
formatParams: function formatParams(_ref6) {
|
|
6652
6672
|
var _this9 = this;
|
|
@@ -7077,15 +7097,15 @@ var ButtonPrintvue_type_script_lang_js_httpFn = null;
|
|
|
7077
7097
|
}
|
|
7078
7098
|
}
|
|
7079
7099
|
}));
|
|
7080
|
-
// CONCATENATED MODULE: ./packages/button/src/ButtonPrint/
|
|
7081
|
-
/* harmony default export */ var
|
|
7082
|
-
// EXTERNAL MODULE: ./packages/button/src/ButtonPrint/
|
|
7083
|
-
var
|
|
7100
|
+
// CONCATENATED MODULE: ./packages/button/src/ButtonPrint/old.vue?vue&type=script&lang=js&
|
|
7101
|
+
/* harmony default export */ var ButtonPrint_oldvue_type_script_lang_js_ = (oldvue_type_script_lang_js_);
|
|
7102
|
+
// EXTERNAL MODULE: ./packages/button/src/ButtonPrint/old.vue?vue&type=style&index=0&id=edc09274&lang=less&scoped=true&
|
|
7103
|
+
var oldvue_type_style_index_0_id_edc09274_lang_less_scoped_true_ = __webpack_require__("ac56");
|
|
7084
7104
|
|
|
7085
|
-
// EXTERNAL MODULE: ./packages/button/src/ButtonPrint/
|
|
7086
|
-
var
|
|
7105
|
+
// EXTERNAL MODULE: ./packages/button/src/ButtonPrint/old.vue?vue&type=style&index=1&lang=less&
|
|
7106
|
+
var oldvue_type_style_index_1_lang_less_ = __webpack_require__("f250");
|
|
7087
7107
|
|
|
7088
|
-
// CONCATENATED MODULE: ./packages/button/src/ButtonPrint/
|
|
7108
|
+
// CONCATENATED MODULE: ./packages/button/src/ButtonPrint/old.vue
|
|
7089
7109
|
|
|
7090
7110
|
|
|
7091
7111
|
|
|
@@ -7095,245 +7115,2271 @@ var ButtonPrintvue_type_style_index_1_lang_less_ = __webpack_require__("1f49");
|
|
|
7095
7115
|
|
|
7096
7116
|
/* normalize component */
|
|
7097
7117
|
|
|
7098
|
-
var
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7118
|
+
var old_component = Object(componentNormalizer["a" /* default */])(
|
|
7119
|
+
ButtonPrint_oldvue_type_script_lang_js_,
|
|
7120
|
+
oldvue_type_template_id_edc09274_scoped_true_render,
|
|
7121
|
+
oldvue_type_template_id_edc09274_scoped_true_staticRenderFns,
|
|
7102
7122
|
false,
|
|
7103
7123
|
null,
|
|
7104
|
-
"
|
|
7124
|
+
"edc09274",
|
|
7105
7125
|
null
|
|
7106
7126
|
|
|
7107
7127
|
)
|
|
7108
7128
|
|
|
7109
|
-
/* harmony default export */ var
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7113
|
-
/***/ "362b":
|
|
7114
|
-
/***/ (function(module, exports) {
|
|
7115
|
-
|
|
7116
|
-
module.exports = require("core-js/modules/es.object.get-prototype-of.js");
|
|
7117
|
-
|
|
7118
|
-
/***/ }),
|
|
7119
|
-
|
|
7120
|
-
/***/ "37e8":
|
|
7121
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7122
|
-
|
|
7123
|
-
var DESCRIPTORS = __webpack_require__("83ab");
|
|
7124
|
-
var definePropertyModule = __webpack_require__("9bf2");
|
|
7125
|
-
var anObject = __webpack_require__("825a");
|
|
7126
|
-
var objectKeys = __webpack_require__("df75");
|
|
7127
|
-
|
|
7128
|
-
// `Object.defineProperties` method
|
|
7129
|
-
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
7130
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
7131
|
-
module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
7132
|
-
anObject(O);
|
|
7133
|
-
var keys = objectKeys(Properties);
|
|
7134
|
-
var length = keys.length;
|
|
7135
|
-
var index = 0;
|
|
7136
|
-
var key;
|
|
7137
|
-
while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]);
|
|
7138
|
-
return O;
|
|
7139
|
-
};
|
|
7140
|
-
|
|
7141
|
-
|
|
7142
|
-
/***/ }),
|
|
7143
|
-
|
|
7144
|
-
/***/ "38fe":
|
|
7145
|
-
/***/ (function(module, exports) {
|
|
7146
|
-
|
|
7147
|
-
module.exports = require("core-js/modules/es.typed-array.to-locale-string.js");
|
|
7148
|
-
|
|
7149
|
-
/***/ }),
|
|
7150
|
-
|
|
7151
|
-
/***/ "3bbe":
|
|
7152
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7153
|
-
|
|
7154
|
-
var isObject = __webpack_require__("861d");
|
|
7155
|
-
|
|
7156
|
-
module.exports = function (it) {
|
|
7157
|
-
if (!isObject(it) && it !== null) {
|
|
7158
|
-
throw TypeError("Can't set " + String(it) + ' as a prototype');
|
|
7159
|
-
} return it;
|
|
7160
|
-
};
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
/***/ }),
|
|
7164
|
-
|
|
7165
|
-
/***/ "3dbc":
|
|
7166
|
-
/***/ (function(module, exports) {
|
|
7167
|
-
|
|
7168
|
-
module.exports = require("core-js/modules/es.typed-array.for-each.js");
|
|
7169
|
-
|
|
7170
|
-
/***/ }),
|
|
7171
|
-
|
|
7172
|
-
/***/ "3edf":
|
|
7173
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
7174
|
-
|
|
7175
|
-
"use strict";
|
|
7176
|
-
__webpack_require__.r(__webpack_exports__);
|
|
7177
|
-
/* harmony import */ var ant_design_vue_es_base_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1df2");
|
|
7178
|
-
/* harmony import */ var ant_design_vue_es_base_style__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(ant_design_vue_es_base_style__WEBPACK_IMPORTED_MODULE_0__);
|
|
7179
|
-
/* harmony import */ var ant_design_vue_es_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("be79");
|
|
7180
|
-
/* harmony import */ var ant_design_vue_es_base__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(ant_design_vue_es_base__WEBPACK_IMPORTED_MODULE_1__);
|
|
7181
|
-
/* harmony import */ var F_project_crm_refactor_cnhis_design_v2_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("e260");
|
|
7182
|
-
/* harmony import */ var F_project_crm_refactor_cnhis_design_v2_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(F_project_crm_refactor_cnhis_design_v2_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
7183
|
-
/* harmony import */ var F_project_crm_refactor_cnhis_design_v2_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("e6cf");
|
|
7184
|
-
/* harmony import */ var F_project_crm_refactor_cnhis_design_v2_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(F_project_crm_refactor_cnhis_design_v2_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
7185
|
-
/* harmony import */ var F_project_crm_refactor_cnhis_design_v2_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("cca6");
|
|
7186
|
-
/* harmony import */ var F_project_crm_refactor_cnhis_design_v2_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(F_project_crm_refactor_cnhis_design_v2_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
7187
|
-
/* harmony import */ var F_project_crm_refactor_cnhis_design_v2_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("a79d");
|
|
7188
|
-
/* harmony import */ var F_project_crm_refactor_cnhis_design_v2_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(F_project_crm_refactor_cnhis_design_v2_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7194
|
-
|
|
7195
|
-
/* harmony default export */ __webpack_exports__["default"] = (ant_design_vue_es_base__WEBPACK_IMPORTED_MODULE_1___default.a);
|
|
7196
|
-
|
|
7197
|
-
/***/ }),
|
|
7198
|
-
|
|
7199
|
-
/***/ "3f8c":
|
|
7200
|
-
/***/ (function(module, exports) {
|
|
7201
|
-
|
|
7202
|
-
module.exports = {};
|
|
7129
|
+
/* harmony default export */ var old = (old_component.exports);
|
|
7130
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"9441c33a-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/ButtonPrint/new.vue?vue&type=template&id=9821bc7e&scoped=true&
|
|
7131
|
+
var newvue_type_template_id_9821bc7e_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"newprint-all-buttons"},[_c('div',{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:(_vm.handleAllClickOutside),expression:"handleAllClickOutside"}],staticClass:"newprint-button-outer",attrs:{"id":"newprint-button-outer"}},[_c('a-button-group',_vm._l((_vm.outerPrintItems),function(outer){return _c('a-dropdown',{key:outer.key,staticClass:"c-dropdown",attrs:{"trigger":_vm.dropOuter},scopedSlots:_vm._u([{key:"overlay",fn:function(){return [_c('a-menu',_vm._l((_vm.operations),function(operation){return _c('a-menu-item',{key:operation.key,on:{"click":function($event){return _vm.handleSelect(operation.key, outer)}}},[_c('span',{staticClass:"label"},[_vm._v(_vm._s(operation.label))])])}),1)]},proxy:true}],null,true)},[_c('a-button',{attrs:{"disabled":!_vm.printParams[outer.templateCode],"loading":outer.isLoading},on:{"click":function($event){return _vm.handleOneTypePrint(outer.templateCode, outer.templateId, outer.key, true)}}},[_vm._v(" "+_vm._s(outer.label)+" "),_c('a-icon',{attrs:{"type":"down"}})],1)],1)}),1),(_vm.outerPrintItems.length > 0 && _vm.outerPrintItems.length == _vm.options.length && _vm.isShowOutSettingBtn)?_c('a-dropdown',{attrs:{"overlayClassName":"newprint-button-menu","getPopupContainer":_vm.getPopupContainerNode,"id":"dropdown-outer-setting-btn","visible":_vm.outSettingVisible,"trigger":_vm.dropOperation}},[_c('a-button',{on:{"click":function($event){return _vm.showSettingVisible('outSettingVisible')}}},[_vm._v(" 外显设置 "),_c('a-icon',{attrs:{"type":"setting"}})],1),_c('a-menu',{attrs:{"slot":"overlay"},slot:"overlay"},[_vm._l((_vm.options),function(sItem){return _c('a-menu-item',{key:sItem.key,staticClass:"dropdown-between",staticStyle:{"padding":"0 12px"}},[_c('span',{staticClass:"label bold"},[_vm._v(_vm._s(sItem.label))]),_c('a-checkbox',{attrs:{"checked":sItem.selected},on:{"change":function($event){return _vm.onSettingChange(sItem)}}},[_vm._v("外显")])],1)}),_c('a-menu-item',{staticClass:"print-divider"},[_c('a-divider')],1),_c('a-menu-item',{staticClass:"dropdown-between",staticStyle:{"padding":"0 12px"}},[_c('a-button',{attrs:{"type":"primary","size":"small"},on:{"click":function($event){return _vm.savePrintOutSetting('outSettingVisible')}}},[_vm._v("保存")]),(_vm.options && _vm.options.length > 1)?_c('a-checkbox',{attrs:{"checked":_vm.isSelectedAll},on:{"change":_vm.onSelectedAllChange}},[_vm._v("全选")]):_vm._e()],1)],2)],1):_c('a-button-group',[_c('a-button',{attrs:{"loading":this.spinning},on:{"click":function($event){$event.stopPropagation();return _vm.printAllButtonClick.apply(null, arguments)}}},[_vm._v(_vm._s(_vm.isShowPrintAllBtn ? '打印全部' : _vm.btnText))]),_c('a-dropdown',{attrs:{"visible":_vm.visible,"getPopupContainer":_vm.getPopupContainerNode,"overlayClassName":"newprint-button-menu","trigger":_vm.dropOperation}},[_c('a-button',{on:{"click":function($event){$event.stopPropagation();return _vm.handleClickBtn.apply(null, arguments)}}},[_c('a-icon',{attrs:{"type":"down"}})],1),_c('a-menu',{attrs:{"slot":"overlay"},slot:"overlay"},[_vm._l((_vm.innerPrintItems),function(option){return _c('a-menu-item',{key:option.key,staticClass:"dropdown-between"},[_c('span',{staticClass:"label bold",class:!_vm.printParams[option.templateCode] ? 'isDisabled' : '',on:{"click":function($event){return _vm.handleOneTypePrint(option.templateCode, option.templateId, option.key, true)}}},[(option.isLoading)?_c('a-icon',{staticStyle:{"margin-right":"6px"},attrs:{"type":"loading"}}):_vm._e(),_vm._v(_vm._s(option.label)+" ")],1),_c('a-dropdown',{attrs:{"trigger":_vm.dropOperation}},[_c('a-button',{staticStyle:{"margin-left":"8px"},attrs:{"size":"small"}},[_c('a-icon',{attrs:{"type":"right"}})],1),_c('a-menu',{attrs:{"slot":"overlay"},slot:"overlay"},_vm._l((_vm.operations),function(operation){return _c('a-menu-item',{key:operation.key,on:{"click":function($event){return _vm.handleSelect(operation.key, option)}}},[_c('span',{staticClass:"label"},[_vm._v(_vm._s(operation.label))])])}),1)],1)],1)}),(_vm.isShowOutSettingBtn)?_c('a-menu-item',{staticClass:"print-divider"},[_c('a-divider')],1):_vm._e(),(_vm.isShowOutSettingBtn)?_c('a-menu-item',[_c('a-dropdown',{attrs:{"visible":_vm.innerSettingVisible,"trigger":_vm.dropOperation,"getPopupContainer":_vm.getPopupContainerNode,"overlayClassName":"newprint-button-menu"}},[_c('div',{staticStyle:{"width":"100%","display":"flex","justify-content":"space-between","align-items":"center"},on:{"click":function($event){return _vm.showSettingVisible('innerSettingVisible')}}},[_c('span',{staticClass:"label bold"},[_vm._v("外显设置 ")]),_c('a-icon',{attrs:{"type":"setting"}})],1),_c('a-menu',{attrs:{"slot":"overlay"},slot:"overlay"},[_vm._l((_vm.options),function(sItem){return _c('a-menu-item',{key:sItem.key,staticClass:"dropdown-between",staticStyle:{"padding":"0 12px"}},[_c('span',{staticClass:"label bold"},[_vm._v(" "+_vm._s(sItem.label)+" ")]),_c('a-checkbox',{attrs:{"checked":sItem.selected},on:{"change":function($event){return _vm.onSettingChange(sItem)}}},[_vm._v("外显")])],1)}),_c('a-menu-item',{staticClass:"print-divider"},[_c('a-divider')],1),_c('a-menu-item',{staticClass:"dropdown-between",staticStyle:{"padding":"0 12px"}},[_c('a-button',{attrs:{"type":"primary"},on:{"click":function($event){return _vm.savePrintOutSetting('innerSettingVisible')}}},[_vm._v("保存")]),(_vm.options && _vm.options.length > 1)?_c('a-checkbox',{attrs:{"checked":_vm.isSelectedAll},on:{"change":_vm.onSelectedAllChange}},[_vm._v("全选")]):_vm._e()],1)],2)],1)],1):_vm._e()],2)],1)],1),_c('IdentityVerification',{attrs:{"printConfig":_vm.printConfig,"baseUrl":_vm.baseUrl,"verifyUserUrl":_vm.verifyUserUrl,"visible":_vm.identityVerification.visible,"identityVerificationTitle":_vm.identityVerificationTitle,"authorizationKey":_vm.authorizationKey},on:{"update:visible":function($event){return _vm.$set(_vm.identityVerification, "visible", $event)},"success":_vm.verifiySuccess}})],1)])}
|
|
7132
|
+
var newvue_type_template_id_9821bc7e_scoped_true_staticRenderFns = []
|
|
7203
7133
|
|
|
7204
7134
|
|
|
7205
|
-
|
|
7135
|
+
// CONCATENATED MODULE: ./packages/button/src/ButtonPrint/new.vue?vue&type=template&id=9821bc7e&scoped=true&
|
|
7206
7136
|
|
|
7207
|
-
|
|
7208
|
-
|
|
7137
|
+
// EXTERNAL MODULE: external "ant-design-vue/es/divider/style"
|
|
7138
|
+
var divider_style_ = __webpack_require__("e3aa");
|
|
7209
7139
|
|
|
7210
|
-
//
|
|
7140
|
+
// EXTERNAL MODULE: external "ant-design-vue/es/divider"
|
|
7141
|
+
var divider_ = __webpack_require__("ea01");
|
|
7142
|
+
var divider_default = /*#__PURE__*/__webpack_require__.n(divider_);
|
|
7211
7143
|
|
|
7212
|
-
|
|
7144
|
+
// EXTERNAL MODULE: external "ant-design-vue/es/checkbox/style"
|
|
7145
|
+
var checkbox_style_ = __webpack_require__("97a9");
|
|
7213
7146
|
|
|
7214
|
-
|
|
7215
|
-
|
|
7147
|
+
// EXTERNAL MODULE: external "ant-design-vue/es/checkbox"
|
|
7148
|
+
var checkbox_ = __webpack_require__("5f5b");
|
|
7149
|
+
var checkbox_default = /*#__PURE__*/__webpack_require__.n(checkbox_);
|
|
7216
7150
|
|
|
7217
|
-
|
|
7151
|
+
// EXTERNAL MODULE: external "ant-design-vue/es/popover/style"
|
|
7152
|
+
var popover_style_ = __webpack_require__("9c6d");
|
|
7218
7153
|
|
|
7219
|
-
|
|
7154
|
+
// EXTERNAL MODULE: external "ant-design-vue/es/popover"
|
|
7155
|
+
var popover_ = __webpack_require__("6c41");
|
|
7156
|
+
var popover_default = /*#__PURE__*/__webpack_require__.n(popover_);
|
|
7220
7157
|
|
|
7221
|
-
|
|
7222
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7158
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/ButtonPrint/new.vue?vue&type=script&lang=js&
|
|
7223
7159
|
|
|
7224
|
-
exports.nextTick = function nextTick(fn) {
|
|
7225
|
-
var args = Array.prototype.slice.call(arguments);
|
|
7226
|
-
args.shift();
|
|
7227
|
-
setTimeout(function () {
|
|
7228
|
-
fn.apply(null, args);
|
|
7229
|
-
}, 0);
|
|
7230
|
-
};
|
|
7231
7160
|
|
|
7232
|
-
exports.platform = exports.arch =
|
|
7233
|
-
exports.execPath = exports.title = 'browser';
|
|
7234
|
-
exports.pid = 1;
|
|
7235
|
-
exports.browser = true;
|
|
7236
|
-
exports.env = {};
|
|
7237
|
-
exports.argv = [];
|
|
7238
7161
|
|
|
7239
|
-
exports.binding = function (name) {
|
|
7240
|
-
throw new Error('No such module. (Possibly not yet loaded)')
|
|
7241
|
-
};
|
|
7242
7162
|
|
|
7243
|
-
(function () {
|
|
7244
|
-
var cwd = '/';
|
|
7245
|
-
var path;
|
|
7246
|
-
exports.cwd = function () { return cwd };
|
|
7247
|
-
exports.chdir = function (dir) {
|
|
7248
|
-
if (!path) path = __webpack_require__("df7c");
|
|
7249
|
-
cwd = path.resolve(dir, cwd);
|
|
7250
|
-
};
|
|
7251
|
-
})();
|
|
7252
7163
|
|
|
7253
|
-
exports.exit = exports.kill =
|
|
7254
|
-
exports.umask = exports.dlopen =
|
|
7255
|
-
exports.uptime = exports.memoryUsage =
|
|
7256
|
-
exports.uvCounters = function() {};
|
|
7257
|
-
exports.features = {};
|
|
7258
7164
|
|
|
7259
7165
|
|
|
7260
|
-
/***/ }),
|
|
7261
7166
|
|
|
7262
|
-
/***/ "4391":
|
|
7263
|
-
/***/ (function(module, exports) {
|
|
7264
7167
|
|
|
7265
|
-
module.exports = require("core-js/modules/es.array.map.js");
|
|
7266
7168
|
|
|
7267
|
-
/***/ }),
|
|
7268
7169
|
|
|
7269
|
-
/***/ "44ad":
|
|
7270
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7271
7170
|
|
|
7272
|
-
var fails = __webpack_require__("d039");
|
|
7273
|
-
var classof = __webpack_require__("c6b6");
|
|
7274
7171
|
|
|
7275
|
-
var split = ''.split;
|
|
7276
7172
|
|
|
7277
|
-
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
7278
|
-
module.exports = fails(function () {
|
|
7279
|
-
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
7280
|
-
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
7281
|
-
return !Object('z').propertyIsEnumerable(0);
|
|
7282
|
-
}) ? function (it) {
|
|
7283
|
-
return classof(it) == 'String' ? split.call(it, '') : Object(it);
|
|
7284
|
-
} : Object;
|
|
7285
7173
|
|
|
7286
7174
|
|
|
7287
|
-
/***/ }),
|
|
7288
7175
|
|
|
7289
|
-
/***/ "44d2":
|
|
7290
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7291
7176
|
|
|
7292
|
-
var wellKnownSymbol = __webpack_require__("b622");
|
|
7293
|
-
var create = __webpack_require__("7c73");
|
|
7294
|
-
var definePropertyModule = __webpack_require__("9bf2");
|
|
7295
7177
|
|
|
7296
|
-
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
|
7297
|
-
var ArrayPrototype = Array.prototype;
|
|
7298
7178
|
|
|
7299
|
-
// Array.prototype[@@unscopables]
|
|
7300
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
7301
|
-
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
7302
|
-
definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
|
|
7303
|
-
configurable: true,
|
|
7304
|
-
value: create(null)
|
|
7305
|
-
});
|
|
7306
|
-
}
|
|
7307
7179
|
|
|
7308
|
-
// add a key to Array.prototype[@@unscopables]
|
|
7309
|
-
module.exports = function (key) {
|
|
7310
|
-
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
7311
|
-
};
|
|
7312
7180
|
|
|
7313
7181
|
|
|
7314
|
-
/***/ }),
|
|
7315
7182
|
|
|
7316
|
-
/***/ "44de":
|
|
7317
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7318
7183
|
|
|
7319
|
-
var global = __webpack_require__("da84");
|
|
7320
7184
|
|
|
7321
|
-
module.exports = function (a, b) {
|
|
7322
|
-
var console = global.console;
|
|
7323
|
-
if (console && console.error) {
|
|
7324
|
-
arguments.length === 1 ? console.error(a) : console.error(a, b);
|
|
7325
|
-
}
|
|
7326
|
-
};
|
|
7327
7185
|
|
|
7328
7186
|
|
|
7329
|
-
/***/ }),
|
|
7330
7187
|
|
|
7331
|
-
/***/ "45ef":
|
|
7332
|
-
/***/ (function(module, exports) {
|
|
7333
7188
|
|
|
7334
|
-
module.exports = require("ant-design-vue/es/button/style");
|
|
7335
7189
|
|
|
7336
|
-
|
|
7190
|
+
//
|
|
7191
|
+
//
|
|
7192
|
+
//
|
|
7193
|
+
//
|
|
7194
|
+
//
|
|
7195
|
+
//
|
|
7196
|
+
//
|
|
7197
|
+
//
|
|
7198
|
+
//
|
|
7199
|
+
//
|
|
7200
|
+
//
|
|
7201
|
+
//
|
|
7202
|
+
//
|
|
7203
|
+
//
|
|
7204
|
+
//
|
|
7205
|
+
//
|
|
7206
|
+
//
|
|
7207
|
+
//
|
|
7208
|
+
//
|
|
7209
|
+
//
|
|
7210
|
+
//
|
|
7211
|
+
//
|
|
7212
|
+
//
|
|
7213
|
+
//
|
|
7214
|
+
//
|
|
7215
|
+
//
|
|
7216
|
+
//
|
|
7217
|
+
//
|
|
7218
|
+
//
|
|
7219
|
+
//
|
|
7220
|
+
//
|
|
7221
|
+
//
|
|
7222
|
+
//
|
|
7223
|
+
//
|
|
7224
|
+
//
|
|
7225
|
+
//
|
|
7226
|
+
//
|
|
7227
|
+
//
|
|
7228
|
+
//
|
|
7229
|
+
//
|
|
7230
|
+
//
|
|
7231
|
+
//
|
|
7232
|
+
//
|
|
7233
|
+
//
|
|
7234
|
+
//
|
|
7235
|
+
//
|
|
7236
|
+
//
|
|
7237
|
+
//
|
|
7238
|
+
//
|
|
7239
|
+
//
|
|
7240
|
+
//
|
|
7241
|
+
//
|
|
7242
|
+
//
|
|
7243
|
+
//
|
|
7244
|
+
//
|
|
7245
|
+
//
|
|
7246
|
+
//
|
|
7247
|
+
//
|
|
7248
|
+
//
|
|
7249
|
+
//
|
|
7250
|
+
//
|
|
7251
|
+
//
|
|
7252
|
+
//
|
|
7253
|
+
//
|
|
7254
|
+
//
|
|
7255
|
+
//
|
|
7256
|
+
//
|
|
7257
|
+
//
|
|
7258
|
+
//
|
|
7259
|
+
//
|
|
7260
|
+
//
|
|
7261
|
+
//
|
|
7262
|
+
//
|
|
7263
|
+
//
|
|
7264
|
+
//
|
|
7265
|
+
//
|
|
7266
|
+
//
|
|
7267
|
+
//
|
|
7268
|
+
//
|
|
7269
|
+
//
|
|
7270
|
+
//
|
|
7271
|
+
//
|
|
7272
|
+
//
|
|
7273
|
+
//
|
|
7274
|
+
//
|
|
7275
|
+
//
|
|
7276
|
+
//
|
|
7277
|
+
//
|
|
7278
|
+
//
|
|
7279
|
+
//
|
|
7280
|
+
//
|
|
7281
|
+
//
|
|
7282
|
+
//
|
|
7283
|
+
//
|
|
7284
|
+
//
|
|
7285
|
+
//
|
|
7286
|
+
//
|
|
7287
|
+
//
|
|
7288
|
+
//
|
|
7289
|
+
//
|
|
7290
|
+
//
|
|
7291
|
+
//
|
|
7292
|
+
//
|
|
7293
|
+
//
|
|
7294
|
+
//
|
|
7295
|
+
//
|
|
7296
|
+
//
|
|
7297
|
+
//
|
|
7298
|
+
//
|
|
7299
|
+
//
|
|
7300
|
+
//
|
|
7301
|
+
//
|
|
7302
|
+
//
|
|
7303
|
+
//
|
|
7304
|
+
//
|
|
7305
|
+
//
|
|
7306
|
+
//
|
|
7307
|
+
//
|
|
7308
|
+
//
|
|
7309
|
+
//
|
|
7310
|
+
//
|
|
7311
|
+
//
|
|
7312
|
+
//
|
|
7313
|
+
//
|
|
7314
|
+
//
|
|
7315
|
+
//
|
|
7316
|
+
//
|
|
7317
|
+
//
|
|
7318
|
+
//
|
|
7319
|
+
//
|
|
7320
|
+
//
|
|
7321
|
+
//
|
|
7322
|
+
//
|
|
7323
|
+
//
|
|
7324
|
+
//
|
|
7325
|
+
|
|
7326
|
+
/**
|
|
7327
|
+
* @author ruanlin
|
|
7328
|
+
* @desc 全继承antd按钮组件,后期再扩展
|
|
7329
|
+
* @time 2021-06-08
|
|
7330
|
+
*/
|
|
7331
|
+
var newvue_type_script_lang_js_httpFn = null;
|
|
7332
|
+
|
|
7333
|
+
|
|
7334
|
+
|
|
7335
|
+
|
|
7336
|
+
|
|
7337
|
+
|
|
7338
|
+
|
|
7339
|
+
|
|
7340
|
+
/* harmony default export */ var newvue_type_script_lang_js_ = (Object(create["a" /* default */])({
|
|
7341
|
+
name: 'button-print',
|
|
7342
|
+
components: {
|
|
7343
|
+
IdentityVerification: IdentityVerification
|
|
7344
|
+
},
|
|
7345
|
+
directives: {
|
|
7346
|
+
Clickoutside: clickoutside_default.a
|
|
7347
|
+
},
|
|
7348
|
+
props: {
|
|
7349
|
+
baseUrl: {
|
|
7350
|
+
type: String
|
|
7351
|
+
},
|
|
7352
|
+
|
|
7353
|
+
/* */
|
|
7354
|
+
btnText: {
|
|
7355
|
+
type: String,
|
|
7356
|
+
default: '打印'
|
|
7357
|
+
},
|
|
7358
|
+
printText: {
|
|
7359
|
+
type: String,
|
|
7360
|
+
default: '直接打印'
|
|
7361
|
+
},
|
|
7362
|
+
previewText: {
|
|
7363
|
+
type: String,
|
|
7364
|
+
default: '打印预览'
|
|
7365
|
+
},
|
|
7366
|
+
pdfLoadText: {
|
|
7367
|
+
type: String,
|
|
7368
|
+
default: '下载pdf'
|
|
7369
|
+
},
|
|
7370
|
+
formatEditText: {
|
|
7371
|
+
type: String,
|
|
7372
|
+
default: '格式编辑'
|
|
7373
|
+
},
|
|
7374
|
+
identityVerificationTitle: {
|
|
7375
|
+
type: String,
|
|
7376
|
+
default: '打印服务身份校验'
|
|
7377
|
+
},
|
|
7378
|
+
|
|
7379
|
+
/* */
|
|
7380
|
+
authorizationKey: {
|
|
7381
|
+
type: String,
|
|
7382
|
+
require: true
|
|
7383
|
+
},
|
|
7384
|
+
templateNumber: {
|
|
7385
|
+
type: [Number, String],
|
|
7386
|
+
require: true
|
|
7387
|
+
},
|
|
7388
|
+
|
|
7389
|
+
/* 格式化打印参数,需的原始数据 */
|
|
7390
|
+
params: {
|
|
7391
|
+
type: Array
|
|
7392
|
+
},
|
|
7393
|
+
hisParams: {
|
|
7394
|
+
type: Object
|
|
7395
|
+
},
|
|
7396
|
+
|
|
7397
|
+
/* */
|
|
7398
|
+
prevFn: {
|
|
7399
|
+
type: Function,
|
|
7400
|
+
default: function _default() {
|
|
7401
|
+
return Promise.resolve();
|
|
7402
|
+
}
|
|
7403
|
+
},
|
|
7404
|
+
|
|
7405
|
+
/** */
|
|
7406
|
+
verifyUserUrl: {
|
|
7407
|
+
type: String,
|
|
7408
|
+
default: '/verifyUser'
|
|
7409
|
+
},
|
|
7410
|
+
|
|
7411
|
+
/** */
|
|
7412
|
+
getPrintFormatByNumberUrl: {
|
|
7413
|
+
type: String,
|
|
7414
|
+
default: '/getPrintFormatByNumber'
|
|
7415
|
+
},
|
|
7416
|
+
|
|
7417
|
+
/** */
|
|
7418
|
+
getTemplateParamsUrl: {
|
|
7419
|
+
type: String,
|
|
7420
|
+
default: '/getTemplateParams'
|
|
7421
|
+
},
|
|
7422
|
+
|
|
7423
|
+
/* 打印策略,默认多条打印 */
|
|
7424
|
+
strategy: {
|
|
7425
|
+
type: String,
|
|
7426
|
+
default: 'MULTI'
|
|
7427
|
+
},
|
|
7428
|
+
printConfig: {
|
|
7429
|
+
type: Object,
|
|
7430
|
+
default: function _default() {
|
|
7431
|
+
return {};
|
|
7432
|
+
}
|
|
7433
|
+
},
|
|
7434
|
+
// 1 为his老版,2 为新版 3为his更老版本
|
|
7435
|
+
versionType: {
|
|
7436
|
+
type: [Number, String],
|
|
7437
|
+
default: '2'
|
|
7438
|
+
},
|
|
7439
|
+
// 用于获取用户信息的token
|
|
7440
|
+
token: {
|
|
7441
|
+
type: String,
|
|
7442
|
+
default: ''
|
|
7443
|
+
},
|
|
7444
|
+
// 打印弹窗设置,1弹0不弹,默认不弹
|
|
7445
|
+
printdlgshow: {
|
|
7446
|
+
type: [String, Number],
|
|
7447
|
+
default: '0'
|
|
7448
|
+
},
|
|
7449
|
+
// 没有模板提示
|
|
7450
|
+
noformatTips: {
|
|
7451
|
+
type: String,
|
|
7452
|
+
default: ''
|
|
7453
|
+
},
|
|
7454
|
+
getOnceParamsAfter: {
|
|
7455
|
+
type: Function
|
|
7456
|
+
},
|
|
7457
|
+
getPrintParamsAfter: {
|
|
7458
|
+
type: Function
|
|
7459
|
+
},
|
|
7460
|
+
// 新版打印配置(新)
|
|
7461
|
+
newPrintSetting: {
|
|
7462
|
+
type: Object,
|
|
7463
|
+
default: function _default() {
|
|
7464
|
+
return {
|
|
7465
|
+
// 是否显示打印全部
|
|
7466
|
+
isShowPrintAll: true,
|
|
7467
|
+
// 是否展示外显设置
|
|
7468
|
+
isShowOutSetting: true,
|
|
7469
|
+
// 打印自定义属性
|
|
7470
|
+
customProps: {},
|
|
7471
|
+
// 外显打印(formatId)值集合,用于初始化展示外显按钮
|
|
7472
|
+
outerPrintKeys: [],
|
|
7473
|
+
// 默认需要打印的格式(formatId)
|
|
7474
|
+
defaultFormatId: ''
|
|
7475
|
+
};
|
|
7476
|
+
}
|
|
7477
|
+
}
|
|
7478
|
+
},
|
|
7479
|
+
computed: {
|
|
7480
|
+
currentFormatItem: function currentFormatItem() {
|
|
7481
|
+
if (!this.currentFormatId) return {};
|
|
7482
|
+
var id = this.currentFormatId;
|
|
7483
|
+
return this.formatList.find(function (item) {
|
|
7484
|
+
return item.id === id;
|
|
7485
|
+
});
|
|
7486
|
+
},
|
|
7487
|
+
formatTitle: function formatTitle() {
|
|
7488
|
+
var _this$currentFormatIt;
|
|
7489
|
+
|
|
7490
|
+
return ((_this$currentFormatIt = this.currentFormatItem) === null || _this$currentFormatIt === void 0 ? void 0 : _this$currentFormatIt.name) || '格式选择';
|
|
7491
|
+
},
|
|
7492
|
+
printExtraParams: function printExtraParams() {
|
|
7493
|
+
var _this$printConfig;
|
|
7494
|
+
|
|
7495
|
+
return (this === null || this === void 0 ? void 0 : (_this$printConfig = this.printConfig) === null || _this$printConfig === void 0 ? void 0 : _this$printConfig.printExtraParams) || {};
|
|
7496
|
+
},
|
|
7497
|
+
queryParams: function queryParams() {
|
|
7498
|
+
return {
|
|
7499
|
+
formatId: this.currentFormatId,
|
|
7500
|
+
templateId: this.getTemplateIdByFormatId(this.currentFormatId)
|
|
7501
|
+
};
|
|
7502
|
+
},
|
|
7503
|
+
// 是否展示全部打印按钮
|
|
7504
|
+
isShowPrintAllBtn: function isShowPrintAllBtn() {
|
|
7505
|
+
var _this$newPrintSetting;
|
|
7506
|
+
|
|
7507
|
+
return (_this$newPrintSetting = this.newPrintSetting) === null || _this$newPrintSetting === void 0 ? void 0 : _this$newPrintSetting.isShowPrintAll;
|
|
7508
|
+
},
|
|
7509
|
+
// 是否展示外显设置
|
|
7510
|
+
isShowOutSettingBtn: function isShowOutSettingBtn() {
|
|
7511
|
+
var _this$newPrintSetting2;
|
|
7512
|
+
|
|
7513
|
+
return (_this$newPrintSetting2 = this.newPrintSetting) === null || _this$newPrintSetting2 === void 0 ? void 0 : _this$newPrintSetting2.isShowOutSetting;
|
|
7514
|
+
},
|
|
7515
|
+
// 打印自定义属性
|
|
7516
|
+
printCustomProps: function printCustomProps() {
|
|
7517
|
+
var _this$newPrintSetting3;
|
|
7518
|
+
|
|
7519
|
+
return ((_this$newPrintSetting3 = this.newPrintSetting) === null || _this$newPrintSetting3 === void 0 ? void 0 : _this$newPrintSetting3.customProps) || {};
|
|
7520
|
+
},
|
|
7521
|
+
// 默认打印的formatId
|
|
7522
|
+
defaultPrintFormatId: function defaultPrintFormatId() {
|
|
7523
|
+
var _this$newPrintSetting4;
|
|
7524
|
+
|
|
7525
|
+
return ((_this$newPrintSetting4 = this.newPrintSetting) === null || _this$newPrintSetting4 === void 0 ? void 0 : _this$newPrintSetting4.defaultFormatId) || '';
|
|
7526
|
+
},
|
|
7527
|
+
isSelectedAll: function isSelectedAll() {
|
|
7528
|
+
return this.options.every(function (option) {
|
|
7529
|
+
return option.selected;
|
|
7530
|
+
});
|
|
7531
|
+
}
|
|
7532
|
+
},
|
|
7533
|
+
data: function data() {
|
|
7534
|
+
return {
|
|
7535
|
+
spinning: false,
|
|
7536
|
+
visible: false,
|
|
7537
|
+
// 内部设置弹窗的展示状态
|
|
7538
|
+
innerSettingVisible: false,
|
|
7539
|
+
// 外部设置弹窗展示状态
|
|
7540
|
+
outSettingVisible: false,
|
|
7541
|
+
formatList: [],
|
|
7542
|
+
templateParams: {},
|
|
7543
|
+
// 打印参数汇总
|
|
7544
|
+
printParams: [],
|
|
7545
|
+
// 原始参数汇总
|
|
7546
|
+
originParams: [],
|
|
7547
|
+
currentFormatId: '',
|
|
7548
|
+
|
|
7549
|
+
/* */
|
|
7550
|
+
identityVerification: {
|
|
7551
|
+
visible: false
|
|
7552
|
+
},
|
|
7553
|
+
isInited: false,
|
|
7554
|
+
watchPrintParamsReformatFn: null,
|
|
7555
|
+
spinTimer: null,
|
|
7556
|
+
printInstance: null,
|
|
7557
|
+
dropOperation: ['click'],
|
|
7558
|
+
dropOuter: ['hover'],
|
|
7559
|
+
// 内显打印项
|
|
7560
|
+
innerPrintItems: [],
|
|
7561
|
+
// 外显打印项
|
|
7562
|
+
outerPrintItems: [],
|
|
7563
|
+
// 下拉数据
|
|
7564
|
+
options: [],
|
|
7565
|
+
// 操作按钮集合
|
|
7566
|
+
operations: [{
|
|
7567
|
+
label: this.pdfLoadText,
|
|
7568
|
+
// 下载pdf
|
|
7569
|
+
key: 'downloadPdf'
|
|
7570
|
+
}, {
|
|
7571
|
+
label: this.previewText,
|
|
7572
|
+
// 打印预览
|
|
7573
|
+
key: 'previewText'
|
|
7574
|
+
}, {
|
|
7575
|
+
label: this.formatEditText,
|
|
7576
|
+
// 格式编辑
|
|
7577
|
+
key: 'formatEditText'
|
|
7578
|
+
}, {
|
|
7579
|
+
label: '重置打印机',
|
|
7580
|
+
// 重置打印机
|
|
7581
|
+
key: 'resetPrinter'
|
|
7582
|
+
}],
|
|
7583
|
+
// 当前打印参数列表
|
|
7584
|
+
curPrintParamList: [],
|
|
7585
|
+
// 当前是否为点击单个打印
|
|
7586
|
+
isClickSinglePrint: false
|
|
7587
|
+
};
|
|
7588
|
+
},
|
|
7589
|
+
beforeCreate: function beforeCreate() {
|
|
7590
|
+
external_vue_default.a.use(button_default.a).use(dropdown_default.a).use(menu_default.a).use(icon_default.a).use(divider_default.a).use(checkbox_default.a).use(popover_default.a);
|
|
7591
|
+
},
|
|
7592
|
+
mounted: function mounted() {
|
|
7593
|
+
this.isInited = false;
|
|
7594
|
+
},
|
|
7595
|
+
beforeDestroy: function beforeDestroy() {
|
|
7596
|
+
var _this$printInstance, _this$printInstance$d;
|
|
7597
|
+
|
|
7598
|
+
// 创建Print实例的时候会在webview中注册一个事件, 需要调用printInstance.destroy()手动清除
|
|
7599
|
+
(_this$printInstance = this.printInstance) === null || _this$printInstance === void 0 ? void 0 : (_this$printInstance$d = _this$printInstance.destroy) === null || _this$printInstance$d === void 0 ? void 0 : _this$printInstance$d.call(_this$printInstance);
|
|
7600
|
+
this.printInstance = null;
|
|
7601
|
+
},
|
|
7602
|
+
watch: {
|
|
7603
|
+
// 监听变化, 重新格式化printParams
|
|
7604
|
+
params: {
|
|
7605
|
+
deep: true,
|
|
7606
|
+
immediate: true,
|
|
7607
|
+
handler: function handler(val) {
|
|
7608
|
+
// if (!val?.length) return false;
|
|
7609
|
+
var keys = Object.keys(this.templateParams);
|
|
7610
|
+
|
|
7611
|
+
if ((keys === null || keys === void 0 ? void 0 : keys.length) > 0) {
|
|
7612
|
+
this.reformatPrintParams();
|
|
7613
|
+
}
|
|
7614
|
+
}
|
|
7615
|
+
},
|
|
7616
|
+
newPrintSetting: {
|
|
7617
|
+
deep: true,
|
|
7618
|
+
immediate: true,
|
|
7619
|
+
handler: function handler(val) {
|
|
7620
|
+
var _this = this;
|
|
7621
|
+
|
|
7622
|
+
return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
7623
|
+
var keys;
|
|
7624
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
7625
|
+
while (1) {
|
|
7626
|
+
switch (_context.prev = _context.next) {
|
|
7627
|
+
case 0:
|
|
7628
|
+
keys = (val === null || val === void 0 ? void 0 : val.outerPrintKeys) || [];
|
|
7629
|
+
|
|
7630
|
+
if (!(keys.length > 0)) {
|
|
7631
|
+
_context.next = 4;
|
|
7632
|
+
break;
|
|
7633
|
+
}
|
|
7634
|
+
|
|
7635
|
+
_context.next = 4;
|
|
7636
|
+
return _this.handleClickBtn(false);
|
|
7637
|
+
|
|
7638
|
+
case 4:
|
|
7639
|
+
case "end":
|
|
7640
|
+
return _context.stop();
|
|
7641
|
+
}
|
|
7642
|
+
}
|
|
7643
|
+
}, _callee);
|
|
7644
|
+
}))();
|
|
7645
|
+
}
|
|
7646
|
+
}
|
|
7647
|
+
},
|
|
7648
|
+
methods: {
|
|
7649
|
+
getPopupContainerNode: function getPopupContainerNode() {
|
|
7650
|
+
var node = document.getElementById('newprint-button-outer');
|
|
7651
|
+
return node;
|
|
7652
|
+
},
|
|
7653
|
+
// 重置所有的弹窗
|
|
7654
|
+
handleAllClickOutside: function handleAllClickOutside() {
|
|
7655
|
+
this.outSettingVisible = this.innerSettingVisible = this.visible = false;
|
|
7656
|
+
},
|
|
7657
|
+
// 外显勾选
|
|
7658
|
+
onSettingChange: function onSettingChange(sItem) {
|
|
7659
|
+
sItem.selected = !sItem.selected;
|
|
7660
|
+
},
|
|
7661
|
+
// 勾选(取消勾选)全部
|
|
7662
|
+
onSelectedAllChange: function onSelectedAllChange(e) {
|
|
7663
|
+
var isChecked = e.target.checked;
|
|
7664
|
+
this.options.forEach(function (option) {
|
|
7665
|
+
option.selected = isChecked;
|
|
7666
|
+
});
|
|
7667
|
+
},
|
|
7668
|
+
printAllButtonClick: function printAllButtonClick() {
|
|
7669
|
+
var _this2 = this;
|
|
7670
|
+
|
|
7671
|
+
return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
7672
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
7673
|
+
while (1) {
|
|
7674
|
+
switch (_context2.prev = _context2.next) {
|
|
7675
|
+
case 0:
|
|
7676
|
+
if (!_this2.isShowPrintAllBtn) {
|
|
7677
|
+
_context2.next = 5;
|
|
7678
|
+
break;
|
|
7679
|
+
}
|
|
7680
|
+
|
|
7681
|
+
_context2.next = 3;
|
|
7682
|
+
return _this2.directPrint();
|
|
7683
|
+
|
|
7684
|
+
case 3:
|
|
7685
|
+
_context2.next = 12;
|
|
7686
|
+
break;
|
|
7687
|
+
|
|
7688
|
+
case 5:
|
|
7689
|
+
if (!_this2.defaultPrintFormatId) {
|
|
7690
|
+
_context2.next = 10;
|
|
7691
|
+
break;
|
|
7692
|
+
}
|
|
7693
|
+
|
|
7694
|
+
_context2.next = 8;
|
|
7695
|
+
return _this2.directDefaultFormatPrint(_this2.defaultPrintFormatId);
|
|
7696
|
+
|
|
7697
|
+
case 8:
|
|
7698
|
+
_context2.next = 12;
|
|
7699
|
+
break;
|
|
7700
|
+
|
|
7701
|
+
case 10:
|
|
7702
|
+
_context2.next = 12;
|
|
7703
|
+
return _this2.handleClickBtn();
|
|
7704
|
+
|
|
7705
|
+
case 12:
|
|
7706
|
+
case "end":
|
|
7707
|
+
return _context2.stop();
|
|
7708
|
+
}
|
|
7709
|
+
}
|
|
7710
|
+
}, _callee2);
|
|
7711
|
+
}))();
|
|
7712
|
+
},
|
|
7713
|
+
// 打印全部
|
|
7714
|
+
directPrint: function directPrint() {
|
|
7715
|
+
var _this3 = this;
|
|
7716
|
+
|
|
7717
|
+
return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
7718
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
7719
|
+
while (1) {
|
|
7720
|
+
switch (_context3.prev = _context3.next) {
|
|
7721
|
+
case 0:
|
|
7722
|
+
_context3.next = 2;
|
|
7723
|
+
return _this3.handleClickBtn(false);
|
|
7724
|
+
|
|
7725
|
+
case 2:
|
|
7726
|
+
_this3.handleClickPrintAll();
|
|
7727
|
+
|
|
7728
|
+
case 3:
|
|
7729
|
+
case "end":
|
|
7730
|
+
return _context3.stop();
|
|
7731
|
+
}
|
|
7732
|
+
}
|
|
7733
|
+
}, _callee3);
|
|
7734
|
+
}))();
|
|
7735
|
+
},
|
|
7736
|
+
// 打印全部
|
|
7737
|
+
handleClickPrintAll: function handleClickPrintAll() {
|
|
7738
|
+
var _this4 = this;
|
|
7739
|
+
|
|
7740
|
+
var templateNumbers = Object.keys(this.printParams);
|
|
7741
|
+
this.isClickSinglePrint = false;
|
|
7742
|
+
var originParamsClone = this.originParams;
|
|
7743
|
+
|
|
7744
|
+
var _loop = function _loop(i) {
|
|
7745
|
+
var templateCode = templateNumbers[i];
|
|
7746
|
+
var tmpParam = _this4.printParams[templateCode];
|
|
7747
|
+
var printToParam = originParamsClone[templateCode] || []; // 一个templateCode可能会对应多个类型
|
|
7748
|
+
|
|
7749
|
+
var formatTypeList = _this4.formatList.filter(function (format) {
|
|
7750
|
+
return format.number == templateCode;
|
|
7751
|
+
});
|
|
7752
|
+
|
|
7753
|
+
if (formatTypeList && formatTypeList.length > 0) {
|
|
7754
|
+
formatTypeList.forEach(function (format) {
|
|
7755
|
+
_this4.currentFormatId = format.id;
|
|
7756
|
+
|
|
7757
|
+
_this4.handleClickPrint(tmpParam, format.number, format.templateId, format.id, printToParam, true);
|
|
7758
|
+
});
|
|
7759
|
+
}
|
|
7760
|
+
};
|
|
7761
|
+
|
|
7762
|
+
for (var i = 0; i < templateNumbers.length; i++) {
|
|
7763
|
+
_loop(i);
|
|
7764
|
+
}
|
|
7765
|
+
},
|
|
7766
|
+
// 打印默认模板格式
|
|
7767
|
+
directDefaultFormatPrint: function directDefaultFormatPrint(defaultFormatId) {
|
|
7768
|
+
var _this5 = this;
|
|
7769
|
+
|
|
7770
|
+
return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
7771
|
+
var curFormat;
|
|
7772
|
+
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
7773
|
+
while (1) {
|
|
7774
|
+
switch (_context4.prev = _context4.next) {
|
|
7775
|
+
case 0:
|
|
7776
|
+
_context4.next = 2;
|
|
7777
|
+
return _this5.handleClickBtn(false);
|
|
7778
|
+
|
|
7779
|
+
case 2:
|
|
7780
|
+
curFormat = _this5.innerPrintItems.find(function (option) {
|
|
7781
|
+
return option.key == defaultFormatId;
|
|
7782
|
+
});
|
|
7783
|
+
|
|
7784
|
+
if (curFormat) {
|
|
7785
|
+
_this5.handleOneTypePrint(curFormat.templateCode, curFormat.templateId, curFormat.key, false);
|
|
7786
|
+
}
|
|
7787
|
+
|
|
7788
|
+
case 4:
|
|
7789
|
+
case "end":
|
|
7790
|
+
return _context4.stop();
|
|
7791
|
+
}
|
|
7792
|
+
}
|
|
7793
|
+
}, _callee4);
|
|
7794
|
+
}))();
|
|
7795
|
+
},
|
|
7796
|
+
// 点击某类型打印
|
|
7797
|
+
handleOneTypePrint: function handleOneTypePrint(templateCode, templateId, formatId, isSingleClick) {
|
|
7798
|
+
var tmpParam = this.printParams[templateCode]; // 当前模板下没有传入打印的数据
|
|
7799
|
+
|
|
7800
|
+
if (!tmpParam) return;
|
|
7801
|
+
this.isClickSinglePrint = isSingleClick;
|
|
7802
|
+
this.currentFormatId = formatId;
|
|
7803
|
+
var printToParam = this.originParams[templateCode] || [];
|
|
7804
|
+
this.handleClickPrint(tmpParam, templateCode, templateId, formatId, printToParam);
|
|
7805
|
+
},
|
|
7806
|
+
showSettingVisible: function showSettingVisible(key) {
|
|
7807
|
+
this[key] = true;
|
|
7808
|
+
},
|
|
7809
|
+
// 修改设置
|
|
7810
|
+
savePrintOutSetting: function savePrintOutSetting(key) {
|
|
7811
|
+
this.visible = false;
|
|
7812
|
+
this[key] = false;
|
|
7813
|
+
this.innerPrintItems = this.options.filter(function (option) {
|
|
7814
|
+
return !option.selected;
|
|
7815
|
+
});
|
|
7816
|
+
this.outerPrintItems = this.options.filter(function (option) {
|
|
7817
|
+
return option.selected;
|
|
7818
|
+
});
|
|
7819
|
+
this.$emit('saveOuterPrint', this.outerPrintItems);
|
|
7820
|
+
},
|
|
7821
|
+
handleSelect: function handleSelect(type, _ref) {
|
|
7822
|
+
var templateCode = _ref.templateCode,
|
|
7823
|
+
templateId = _ref.templateId,
|
|
7824
|
+
key = _ref.key;
|
|
7825
|
+
var tmpParam = this.printParams[templateCode]; // 当前模板下没有传入打印的数据
|
|
7826
|
+
|
|
7827
|
+
if (!tmpParam) return;
|
|
7828
|
+
this.isClickSinglePrint = true;
|
|
7829
|
+
this.currentFormatId = key;
|
|
7830
|
+
|
|
7831
|
+
switch (type) {
|
|
7832
|
+
// 打印预览
|
|
7833
|
+
case 'previewText':
|
|
7834
|
+
this.handleClickPreview(tmpParam, templateCode, templateId, key);
|
|
7835
|
+
break;
|
|
7836
|
+
// 格式编辑
|
|
7837
|
+
|
|
7838
|
+
case 'formatEditText':
|
|
7839
|
+
this.handleClickEdit(tmpParam, templateCode, templateId, key);
|
|
7840
|
+
break;
|
|
7841
|
+
// 下载pdf
|
|
7842
|
+
|
|
7843
|
+
case 'downloadPdf':
|
|
7844
|
+
this.handleClickPdf(tmpParam, templateCode, templateId, key);
|
|
7845
|
+
break;
|
|
7846
|
+
// 重置打印机
|
|
7847
|
+
|
|
7848
|
+
case 'resetPrinter':
|
|
7849
|
+
this.handleResetPrinter(tmpParam, templateCode, templateId, key);
|
|
7850
|
+
break;
|
|
7851
|
+
|
|
7852
|
+
default:
|
|
7853
|
+
break;
|
|
7854
|
+
}
|
|
7855
|
+
},
|
|
7856
|
+
// 重置打印机
|
|
7857
|
+
handleResetPrinter: function handleResetPrinter() {
|
|
7858
|
+
var _arguments = arguments,
|
|
7859
|
+
_this6 = this;
|
|
7860
|
+
|
|
7861
|
+
return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
|
7862
|
+
var curPrintParamList, templateCode, templateId, formatId, data;
|
|
7863
|
+
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
7864
|
+
while (1) {
|
|
7865
|
+
switch (_context5.prev = _context5.next) {
|
|
7866
|
+
case 0:
|
|
7867
|
+
curPrintParamList = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : [];
|
|
7868
|
+
templateCode = _arguments.length > 1 ? _arguments[1] : undefined;
|
|
7869
|
+
templateId = _arguments.length > 2 ? _arguments[2] : undefined;
|
|
7870
|
+
formatId = _arguments.length > 3 ? _arguments[3] : undefined;
|
|
7871
|
+
|
|
7872
|
+
if (!_this6.getCurrentLoading()) {
|
|
7873
|
+
_context5.next = 6;
|
|
7874
|
+
break;
|
|
7875
|
+
}
|
|
7876
|
+
|
|
7877
|
+
return _context5.abrupt("return");
|
|
7878
|
+
|
|
7879
|
+
case 6:
|
|
7880
|
+
_this6.toggleExpandLoading(true, formatId);
|
|
7881
|
+
|
|
7882
|
+
_context5.next = 9;
|
|
7883
|
+
return _this6.printInstance.resetPrinter(formatId);
|
|
7884
|
+
|
|
7885
|
+
case 9:
|
|
7886
|
+
data = _context5.sent;
|
|
7887
|
+
|
|
7888
|
+
_this6.toggleExpandLoading(false);
|
|
7889
|
+
|
|
7890
|
+
if (!((data === null || data === void 0 ? void 0 : data.result) == 'success')) {
|
|
7891
|
+
_context5.next = 14;
|
|
7892
|
+
break;
|
|
7893
|
+
}
|
|
7894
|
+
|
|
7895
|
+
_this6.$message.success(data.message || '重置打印机成功');
|
|
7896
|
+
|
|
7897
|
+
return _context5.abrupt("return");
|
|
7898
|
+
|
|
7899
|
+
case 14:
|
|
7900
|
+
_this6.$message.warning('重置打印机失败');
|
|
7901
|
+
|
|
7902
|
+
case 15:
|
|
7903
|
+
case "end":
|
|
7904
|
+
return _context5.stop();
|
|
7905
|
+
}
|
|
7906
|
+
}
|
|
7907
|
+
}, _callee5);
|
|
7908
|
+
}))();
|
|
7909
|
+
},
|
|
7910
|
+
|
|
7911
|
+
/* */
|
|
7912
|
+
handleClickBtn: function handleClickBtn() {
|
|
7913
|
+
var _arguments2 = arguments,
|
|
7914
|
+
_this7 = this;
|
|
7915
|
+
|
|
7916
|
+
return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
|
7917
|
+
var visible, result;
|
|
7918
|
+
return regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
7919
|
+
while (1) {
|
|
7920
|
+
switch (_context6.prev = _context6.next) {
|
|
7921
|
+
case 0:
|
|
7922
|
+
visible = _arguments2.length > 0 && _arguments2[0] !== undefined ? _arguments2[0] : true;
|
|
7923
|
+
|
|
7924
|
+
if (_this7.visible) {
|
|
7925
|
+
_context6.next = 7;
|
|
7926
|
+
break;
|
|
7927
|
+
}
|
|
7928
|
+
|
|
7929
|
+
_context6.next = 4;
|
|
7930
|
+
return _this7.init();
|
|
7931
|
+
|
|
7932
|
+
case 4:
|
|
7933
|
+
result = _context6.sent;
|
|
7934
|
+
|
|
7935
|
+
if (result) {
|
|
7936
|
+
_context6.next = 7;
|
|
7937
|
+
break;
|
|
7938
|
+
}
|
|
7939
|
+
|
|
7940
|
+
return _context6.abrupt("return", false);
|
|
7941
|
+
|
|
7942
|
+
case 7:
|
|
7943
|
+
if (visible) {
|
|
7944
|
+
_this7.visible = !_this7.visible;
|
|
7945
|
+
}
|
|
7946
|
+
|
|
7947
|
+
case 8:
|
|
7948
|
+
case "end":
|
|
7949
|
+
return _context6.stop();
|
|
7950
|
+
}
|
|
7951
|
+
}
|
|
7952
|
+
}, _callee6);
|
|
7953
|
+
}))();
|
|
7954
|
+
},
|
|
7955
|
+
|
|
7956
|
+
/* */
|
|
7957
|
+
init: function init() {
|
|
7958
|
+
var _this8 = this;
|
|
7959
|
+
|
|
7960
|
+
return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
|
|
7961
|
+
var _this8$printConfig, _this8$printConfig2;
|
|
7962
|
+
|
|
7963
|
+
var config, printUrlPrefix, customCofing, cCofing, formatListResult;
|
|
7964
|
+
return regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
7965
|
+
while (1) {
|
|
7966
|
+
switch (_context7.prev = _context7.next) {
|
|
7967
|
+
case 0:
|
|
7968
|
+
if (!_this8.isInited) {
|
|
7969
|
+
_context7.next = 2;
|
|
7970
|
+
break;
|
|
7971
|
+
}
|
|
7972
|
+
|
|
7973
|
+
return _context7.abrupt("return", true);
|
|
7974
|
+
|
|
7975
|
+
case 2:
|
|
7976
|
+
_this8.isInited = true;
|
|
7977
|
+
|
|
7978
|
+
_this8.setTimeoutSpin();
|
|
7979
|
+
|
|
7980
|
+
_this8.instantiatePrintSDK();
|
|
7981
|
+
|
|
7982
|
+
config = {
|
|
7983
|
+
withCredentials: false,
|
|
7984
|
+
timeout: 5000
|
|
7985
|
+
};
|
|
7986
|
+
printUrlPrefix = _this8 === null || _this8 === void 0 ? void 0 : (_this8$printConfig = _this8.printConfig) === null || _this8$printConfig === void 0 ? void 0 : _this8$printConfig.printUrlPrefix;
|
|
7987
|
+
customCofing = (_this8 === null || _this8 === void 0 ? void 0 : (_this8$printConfig2 = _this8.printConfig) === null || _this8$printConfig2 === void 0 ? void 0 : _this8$printConfig2.customCofing) || {};
|
|
7988
|
+
cCofing = _this8.getCustomCofing(customCofing);
|
|
7989
|
+
|
|
7990
|
+
if (external_axios_default.a !== _this8.axios && printUrlPrefix) {
|
|
7991
|
+
config.baseURL = printUrlPrefix;
|
|
7992
|
+
}
|
|
7993
|
+
|
|
7994
|
+
newvue_type_script_lang_js_httpFn = external_axios_default.a.create(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, config), cCofing));
|
|
7995
|
+
_context7.next = 13;
|
|
7996
|
+
return _this8.queryFormatList();
|
|
7997
|
+
|
|
7998
|
+
case 13:
|
|
7999
|
+
formatListResult = _context7.sent;
|
|
8000
|
+
|
|
8001
|
+
if (formatListResult) {
|
|
8002
|
+
_context7.next = 18;
|
|
8003
|
+
break;
|
|
8004
|
+
}
|
|
8005
|
+
|
|
8006
|
+
_this8.isInited = false;
|
|
8007
|
+
|
|
8008
|
+
_this8.$message.error('获取模板参数失败,请联系管理员');
|
|
8009
|
+
|
|
8010
|
+
return _context7.abrupt("return", false);
|
|
8011
|
+
|
|
8012
|
+
case 18:
|
|
8013
|
+
if (!(_this8.versionType == 1 || _this8.versionType == 3)) {
|
|
8014
|
+
_context7.next = 22;
|
|
8015
|
+
break;
|
|
8016
|
+
}
|
|
8017
|
+
|
|
8018
|
+
_this8.initHIS(formatListResult);
|
|
8019
|
+
|
|
8020
|
+
_context7.next = 24;
|
|
8021
|
+
break;
|
|
8022
|
+
|
|
8023
|
+
case 22:
|
|
8024
|
+
_context7.next = 24;
|
|
8025
|
+
return _this8.initCRM(formatListResult);
|
|
8026
|
+
|
|
8027
|
+
case 24:
|
|
8028
|
+
_this8.setLoaded();
|
|
8029
|
+
|
|
8030
|
+
return _context7.abrupt("return", true);
|
|
8031
|
+
|
|
8032
|
+
case 26:
|
|
8033
|
+
case "end":
|
|
8034
|
+
return _context7.stop();
|
|
8035
|
+
}
|
|
8036
|
+
}
|
|
8037
|
+
}, _callee7);
|
|
8038
|
+
}))();
|
|
8039
|
+
},
|
|
8040
|
+
// 设置基础数据
|
|
8041
|
+
setOptions: function setOptions() {
|
|
8042
|
+
var _this$options,
|
|
8043
|
+
_this$newPrintSetting5,
|
|
8044
|
+
_this$newPrintSetting6,
|
|
8045
|
+
_this9 = this;
|
|
8046
|
+
|
|
8047
|
+
this.options = [];
|
|
8048
|
+
var children = this.formatList.map(function (v) {
|
|
8049
|
+
return {
|
|
8050
|
+
templateCode: v.number,
|
|
8051
|
+
templateId: v.templateId,
|
|
8052
|
+
label: v.name,
|
|
8053
|
+
key: v.id,
|
|
8054
|
+
selected: false,
|
|
8055
|
+
isLoading: false
|
|
8056
|
+
};
|
|
8057
|
+
});
|
|
8058
|
+
|
|
8059
|
+
(_this$options = this.options).unshift.apply(_this$options, Object(toConsumableArray["a" /* default */])(children)); // 自动设置外显的数据
|
|
8060
|
+
|
|
8061
|
+
|
|
8062
|
+
if (((_this$newPrintSetting5 = this.newPrintSetting) === null || _this$newPrintSetting5 === void 0 ? void 0 : (_this$newPrintSetting6 = _this$newPrintSetting5.outerPrintKeys) === null || _this$newPrintSetting6 === void 0 ? void 0 : _this$newPrintSetting6.length) > 0) {
|
|
8063
|
+
this.options.forEach(function (option) {
|
|
8064
|
+
var _this9$newPrintSettin;
|
|
8065
|
+
|
|
8066
|
+
if ((_this9$newPrintSettin = _this9.newPrintSetting) !== null && _this9$newPrintSettin !== void 0 && _this9$newPrintSettin.outerPrintKeys.includes(option.key)) {
|
|
8067
|
+
option.selected = true;
|
|
8068
|
+
}
|
|
8069
|
+
});
|
|
8070
|
+
this.outerPrintItems = this.options.filter(function (option) {
|
|
8071
|
+
return option.selected;
|
|
8072
|
+
});
|
|
8073
|
+
}
|
|
8074
|
+
|
|
8075
|
+
this.innerPrintItems = this.options.filter(function (option) {
|
|
8076
|
+
return !option.selected;
|
|
8077
|
+
});
|
|
8078
|
+
},
|
|
8079
|
+
initHIS: function initHIS(formatListResult) {
|
|
8080
|
+
this.formatList = formatListResult ? formatListResult.list.filter(function (item) {
|
|
8081
|
+
return item.printmark == 1;
|
|
8082
|
+
}) : [];
|
|
8083
|
+
this.currentFormatId = this.getDefaultFormatId(this.formatList, 'printmark');
|
|
8084
|
+
this.templateParams = this.formatList[0] || {};
|
|
8085
|
+
},
|
|
8086
|
+
initCRM: function initCRM(formatListResult) {
|
|
8087
|
+
var _this10 = this;
|
|
8088
|
+
|
|
8089
|
+
return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee8() {
|
|
8090
|
+
return regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
8091
|
+
while (1) {
|
|
8092
|
+
switch (_context8.prev = _context8.next) {
|
|
8093
|
+
case 0:
|
|
8094
|
+
_this10.formatList = formatListResult ? _this10.formatFormatList(formatListResult.obj) : []; // this.currentFormatId = this.getDefaultFormatId(this.formatList, 'defaultFlag');
|
|
8095
|
+
// if (!this.currentFormatId) {
|
|
8096
|
+
// this.$message.error(this.noformatTips || '获取打印格式失败,请联系管理员!');
|
|
8097
|
+
// return this.requestError();
|
|
8098
|
+
// }
|
|
8099
|
+
// if (!this.currentFormatId) {
|
|
8100
|
+
// this.requestError();
|
|
8101
|
+
// return;
|
|
8102
|
+
// }
|
|
8103
|
+
|
|
8104
|
+
_this10.setOptions(); // this.templateParams = await this.queryTemplateParams();
|
|
8105
|
+
|
|
8106
|
+
|
|
8107
|
+
_context8.next = 4;
|
|
8108
|
+
return _this10.mergeTemplateList(formatListResult.obj);
|
|
8109
|
+
|
|
8110
|
+
case 4:
|
|
8111
|
+
_this10.templateParams = _context8.sent;
|
|
8112
|
+
// if (templateParamsResult) {
|
|
8113
|
+
// this.templateParams = templateParamsResult;
|
|
8114
|
+
// } else {
|
|
8115
|
+
// return this.requestError();
|
|
8116
|
+
// }
|
|
8117
|
+
// this.printParams = this.formatParams(this.templateParams, this.params);
|
|
8118
|
+
_this10.printParams = _this10.formatSomeTypeParams(_this10.templateParams, _this10.params);
|
|
8119
|
+
_this10.originParams = _this10.formatSomeOriginParams(_this10.templateParams, _this10.params);
|
|
8120
|
+
|
|
8121
|
+
case 7:
|
|
8122
|
+
case "end":
|
|
8123
|
+
return _context8.stop();
|
|
8124
|
+
}
|
|
8125
|
+
}
|
|
8126
|
+
}, _callee8);
|
|
8127
|
+
}))();
|
|
8128
|
+
},
|
|
8129
|
+
formatSomeTypeParams: function formatSomeTypeParams() {
|
|
8130
|
+
var _this11 = this;
|
|
8131
|
+
|
|
8132
|
+
var templateParams = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
8133
|
+
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
8134
|
+
var mergeParams = {};
|
|
8135
|
+
params = params ? params : [];
|
|
8136
|
+
params.forEach(function (paramObj) {
|
|
8137
|
+
mergeParams = Object.assign({}, _this11.findTemplateAndInsertData(mergeParams, paramObj, templateParams));
|
|
8138
|
+
});
|
|
8139
|
+
return mergeParams;
|
|
8140
|
+
},
|
|
8141
|
+
// 格式化原始params映射值
|
|
8142
|
+
formatSomeOriginParams: function formatSomeOriginParams() {
|
|
8143
|
+
var _this12 = this;
|
|
8144
|
+
|
|
8145
|
+
var templateParams = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
8146
|
+
var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
8147
|
+
var mergeOriginParams = {};
|
|
8148
|
+
params = params ? params : [];
|
|
8149
|
+
params.forEach(function (paramObj) {
|
|
8150
|
+
mergeOriginParams = Object.assign({}, _this12.findTemplateAndInsertParams(mergeOriginParams, paramObj, templateParams));
|
|
8151
|
+
});
|
|
8152
|
+
return mergeOriginParams;
|
|
8153
|
+
},
|
|
8154
|
+
// 查找模板并插入数据
|
|
8155
|
+
findTemplateAndInsertData: function findTemplateAndInsertData(mergeData, paramItem, templateParams) {
|
|
8156
|
+
// 判断当前数据有没有指定模板
|
|
8157
|
+
// 1. 有模板,则插入数据
|
|
8158
|
+
if (paramItem.templateNumbers) {
|
|
8159
|
+
for (var i = 0; i < paramItem.templateNumbers.length; i++) {
|
|
8160
|
+
var tempNumber = paramItem.templateNumbers[i];
|
|
8161
|
+
var templateObj = templateParams[tempNumber];
|
|
8162
|
+
|
|
8163
|
+
if (!templateObj) {
|
|
8164
|
+
this.$message.error('当前勾选的数据没有匹配的模板');
|
|
8165
|
+
return mergeData;
|
|
8166
|
+
}
|
|
8167
|
+
|
|
8168
|
+
if (!mergeData[tempNumber]) {
|
|
8169
|
+
mergeData[tempNumber] = [];
|
|
8170
|
+
}
|
|
8171
|
+
|
|
8172
|
+
mergeData[tempNumber].push(this.formatItemParam(templateObj, paramItem));
|
|
8173
|
+
}
|
|
8174
|
+
|
|
8175
|
+
return mergeData;
|
|
8176
|
+
} // 2. 将当前数据循环模板参数
|
|
8177
|
+
|
|
8178
|
+
|
|
8179
|
+
var templateParamKeys = Object.keys(templateParams);
|
|
8180
|
+
|
|
8181
|
+
for (var _i = 0; _i < templateParamKeys.length; _i++) {
|
|
8182
|
+
var _tempNumber = templateParamKeys[_i];
|
|
8183
|
+
var _templateObj = templateParams[_tempNumber];
|
|
8184
|
+
|
|
8185
|
+
if (!_templateObj) {
|
|
8186
|
+
this.$message.error('当前勾选的数据没有匹配的模板');
|
|
8187
|
+
return mergeData;
|
|
8188
|
+
}
|
|
8189
|
+
|
|
8190
|
+
if (!mergeData[_tempNumber]) {
|
|
8191
|
+
mergeData[_tempNumber] = [];
|
|
8192
|
+
}
|
|
8193
|
+
|
|
8194
|
+
mergeData[_tempNumber].push(this.formatItemParam(_templateObj, paramItem));
|
|
8195
|
+
}
|
|
8196
|
+
|
|
8197
|
+
return mergeData;
|
|
8198
|
+
},
|
|
8199
|
+
// 查找模板并插入数据
|
|
8200
|
+
findTemplateAndInsertParams: function findTemplateAndInsertParams(mergeData, paramItem, templateParams) {
|
|
8201
|
+
// 判断当前数据有没有指定模板
|
|
8202
|
+
// 1. 有模板,则插入数据
|
|
8203
|
+
if (paramItem.templateNumbers) {
|
|
8204
|
+
for (var i = 0; i < paramItem.templateNumbers.length; i++) {
|
|
8205
|
+
var tempNumber = paramItem.templateNumbers[i];
|
|
8206
|
+
var templateObj = templateParams[tempNumber];
|
|
8207
|
+
|
|
8208
|
+
if (!templateObj) {
|
|
8209
|
+
this.$message.error('当前勾选的数据没有匹配的模板');
|
|
8210
|
+
return mergeData;
|
|
8211
|
+
}
|
|
8212
|
+
|
|
8213
|
+
if (!mergeData[tempNumber]) {
|
|
8214
|
+
mergeData[tempNumber] = [];
|
|
8215
|
+
}
|
|
8216
|
+
|
|
8217
|
+
mergeData[tempNumber].push(paramItem);
|
|
8218
|
+
}
|
|
8219
|
+
|
|
8220
|
+
return mergeData;
|
|
8221
|
+
} // 2. 将当前数据循环模板参数
|
|
8222
|
+
|
|
8223
|
+
|
|
8224
|
+
var templateParamKeys = Object.keys(templateParams);
|
|
8225
|
+
|
|
8226
|
+
for (var _i2 = 0; _i2 < templateParamKeys.length; _i2++) {
|
|
8227
|
+
var _tempNumber2 = templateParamKeys[_i2];
|
|
8228
|
+
var _templateObj2 = templateParams[_tempNumber2];
|
|
8229
|
+
|
|
8230
|
+
if (!_templateObj2) {
|
|
8231
|
+
this.$message.error('当前勾选的数据没有匹配的模板');
|
|
8232
|
+
return mergeData;
|
|
8233
|
+
}
|
|
8234
|
+
|
|
8235
|
+
if (!mergeData[_tempNumber2]) {
|
|
8236
|
+
mergeData[_tempNumber2] = [];
|
|
8237
|
+
}
|
|
8238
|
+
|
|
8239
|
+
mergeData[_tempNumber2].push(paramItem);
|
|
8240
|
+
}
|
|
8241
|
+
|
|
8242
|
+
return mergeData;
|
|
8243
|
+
},
|
|
8244
|
+
// 单条数据转换,通过getPrintFormatByNumber接口获取到的数据没有customizeDataset
|
|
8245
|
+
formatItemParam: function formatItemParam() {
|
|
8246
|
+
var param = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
8247
|
+
var paramObj = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
8248
|
+
var res = {}; // 自定义结果集
|
|
8249
|
+
// customizeDataset.forEach((dataSetItem) => {
|
|
8250
|
+
// const selectFieldList = dataSetItem.dataSetting[0].selectFieldList;
|
|
8251
|
+
// if (!res['datasetData']) {
|
|
8252
|
+
// res['datasetData'] = {};
|
|
8253
|
+
// }
|
|
8254
|
+
// res['datasetData'][dataSetItem.name] = JSON.stringify(this.formatPrintParams(paramObj, selectFieldList, 'fieldName'))
|
|
8255
|
+
// });
|
|
8256
|
+
// 参数
|
|
8257
|
+
|
|
8258
|
+
res = Object.assign({}, res, this.formatPrintParams(paramObj, param, 'key'));
|
|
8259
|
+
return res;
|
|
8260
|
+
},
|
|
8261
|
+
// 合并所有的模板
|
|
8262
|
+
mergeTemplateList: function mergeTemplateList(list) {
|
|
8263
|
+
var templateObj = {};
|
|
8264
|
+
list && list.forEach(function (item) {
|
|
8265
|
+
if (!item.param) return false;
|
|
8266
|
+
templateObj[item.number] = item.param;
|
|
8267
|
+
});
|
|
8268
|
+
return templateObj;
|
|
8269
|
+
},
|
|
8270
|
+
setTimeoutSpin: function setTimeoutSpin() {
|
|
8271
|
+
var _this13 = this;
|
|
8272
|
+
|
|
8273
|
+
this.spinTimer = setTimeout(function () {
|
|
8274
|
+
_this13.spinning = true;
|
|
8275
|
+
}, 1500);
|
|
8276
|
+
},
|
|
8277
|
+
setLoaded: function setLoaded() {
|
|
8278
|
+
this.spinning = false;
|
|
8279
|
+
if (!this.spinTimer) return false;
|
|
8280
|
+
clearTimeout(this.spinTimer);
|
|
8281
|
+
this.spinTimer = null;
|
|
8282
|
+
},
|
|
8283
|
+
// 展开模式下按钮loading状态
|
|
8284
|
+
toggleExpandLoading: function toggleExpandLoading(isLoading, formatId) {
|
|
8285
|
+
// 点击单个打印
|
|
8286
|
+
if (this.isClickSinglePrint) {
|
|
8287
|
+
if (isLoading && formatId) {
|
|
8288
|
+
var curOption = this.options.find(function (outer) {
|
|
8289
|
+
return outer.key == formatId;
|
|
8290
|
+
});
|
|
8291
|
+
if (curOption) curOption.isLoading = isLoading;
|
|
8292
|
+
return;
|
|
8293
|
+
} // 让所有单个打印按钮都停止loading
|
|
8294
|
+
|
|
8295
|
+
|
|
8296
|
+
this.options.forEach(function (outer) {
|
|
8297
|
+
outer.isLoading = false;
|
|
8298
|
+
});
|
|
8299
|
+
} else {
|
|
8300
|
+
// 全部按钮打印
|
|
8301
|
+
this.spinning = isLoading;
|
|
8302
|
+
}
|
|
8303
|
+
},
|
|
8304
|
+
getCurrentLoading: function getCurrentLoading() {
|
|
8305
|
+
if (this.isClickSinglePrint) {
|
|
8306
|
+
return this.options.some(function (outer) {
|
|
8307
|
+
return outer.isLoading;
|
|
8308
|
+
});
|
|
8309
|
+
}
|
|
8310
|
+
|
|
8311
|
+
return this.spinning;
|
|
8312
|
+
},
|
|
8313
|
+
requestError: function requestError() {
|
|
8314
|
+
var _this14 = this;
|
|
8315
|
+
|
|
8316
|
+
this.isInited = false;
|
|
8317
|
+
this.setLoaded();
|
|
8318
|
+
setTimeout(function () {
|
|
8319
|
+
_this14.visible = false;
|
|
8320
|
+
}, 0);
|
|
8321
|
+
return false;
|
|
8322
|
+
},
|
|
8323
|
+
getDefaultFormatId: function getDefaultFormatId(list, key) {
|
|
8324
|
+
if (!(list !== null && list !== void 0 && list.length)) return '';
|
|
8325
|
+
var findDefault = list.find(function (item) {
|
|
8326
|
+
return item[key] == 1;
|
|
8327
|
+
});
|
|
8328
|
+
return (findDefault === null || findDefault === void 0 ? void 0 : findDefault.id) || list[0].id;
|
|
8329
|
+
},
|
|
8330
|
+
|
|
8331
|
+
/* */
|
|
8332
|
+
instantiatePrintSDK: function instantiatePrintSDK() {
|
|
8333
|
+
if (this.printInstance) return false;
|
|
8334
|
+
this.printInstance = new print_es_min["a" /* default */]();
|
|
8335
|
+
},
|
|
8336
|
+
|
|
8337
|
+
/* */
|
|
8338
|
+
queryFormatList: function queryFormatList() {
|
|
8339
|
+
var _this15 = this;
|
|
8340
|
+
|
|
8341
|
+
var templateNumber = this.templateNumber,
|
|
8342
|
+
authorizationKey = this.authorizationKey,
|
|
8343
|
+
baseUrl = this.baseUrl,
|
|
8344
|
+
getPrintFormatByNumberUrl = this.getPrintFormatByNumberUrl,
|
|
8345
|
+
versionType = this.versionType;
|
|
8346
|
+
var suffix = [1, 3].includes(versionType) ? "jsessionids=".concat(vexutils_default.a.cookie.get('jsessionids') || '31e5fc0e-955f-4c89-9679-39c43d0171321636163291241') : "authorizationKey=".concat(authorizationKey);
|
|
8347
|
+
var url = "".concat(baseUrl).concat(getPrintFormatByNumberUrl, "?number=").concat(templateNumber, "&").concat(suffix);
|
|
8348
|
+
return newvue_type_script_lang_js_httpFn.get(url).then( /*#__PURE__*/function () {
|
|
8349
|
+
var _ref3 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee9(_ref2) {
|
|
8350
|
+
var data;
|
|
8351
|
+
return regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
8352
|
+
while (1) {
|
|
8353
|
+
switch (_context9.prev = _context9.next) {
|
|
8354
|
+
case 0:
|
|
8355
|
+
data = _ref2.data;
|
|
8356
|
+
|
|
8357
|
+
if (!(data.result !== 'SUCCESS')) {
|
|
8358
|
+
_context9.next = 4;
|
|
8359
|
+
break;
|
|
8360
|
+
}
|
|
8361
|
+
|
|
8362
|
+
_this15.$message.error(data.resultMsg || '参数异常,请联系管理员');
|
|
8363
|
+
|
|
8364
|
+
return _context9.abrupt("return", false);
|
|
8365
|
+
|
|
8366
|
+
case 4:
|
|
8367
|
+
return _context9.abrupt("return", data);
|
|
8368
|
+
|
|
8369
|
+
case 5:
|
|
8370
|
+
case "end":
|
|
8371
|
+
return _context9.stop();
|
|
8372
|
+
}
|
|
8373
|
+
}
|
|
8374
|
+
}, _callee9);
|
|
8375
|
+
}));
|
|
8376
|
+
|
|
8377
|
+
return function (_x) {
|
|
8378
|
+
return _ref3.apply(this, arguments);
|
|
8379
|
+
};
|
|
8380
|
+
}()).catch(function (e) {
|
|
8381
|
+
return false;
|
|
8382
|
+
});
|
|
8383
|
+
},
|
|
8384
|
+
formatFormatList: function formatFormatList(list) {
|
|
8385
|
+
var formatList = [];
|
|
8386
|
+
list.forEach(function (item) {
|
|
8387
|
+
if (!item.format) return false;
|
|
8388
|
+
formatList.push.apply(formatList, Object(toConsumableArray["a" /* default */])(item.format));
|
|
8389
|
+
});
|
|
8390
|
+
return formatList;
|
|
8391
|
+
},
|
|
8392
|
+
|
|
8393
|
+
/* */
|
|
8394
|
+
queryTemplateParams: function queryTemplateParams() {
|
|
8395
|
+
var _this16 = this;
|
|
8396
|
+
|
|
8397
|
+
var templateNumber = this.templateNumber,
|
|
8398
|
+
authorizationKey = this.authorizationKey,
|
|
8399
|
+
baseUrl = this.baseUrl,
|
|
8400
|
+
getTemplateParamsUrl = this.getTemplateParamsUrl;
|
|
8401
|
+
|
|
8402
|
+
var _ref4 = this.formatList[0] || {},
|
|
8403
|
+
templateId = _ref4.templateId;
|
|
8404
|
+
|
|
8405
|
+
var url = "".concat(baseUrl).concat(getTemplateParamsUrl, "?number=").concat(templateNumber, "&templateId=").concat(templateId, "&authorizationKey=").concat(authorizationKey);
|
|
8406
|
+
return newvue_type_script_lang_js_httpFn.get(url).then( /*#__PURE__*/function () {
|
|
8407
|
+
var _ref6 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee10(_ref5) {
|
|
8408
|
+
var data;
|
|
8409
|
+
return regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
8410
|
+
while (1) {
|
|
8411
|
+
switch (_context10.prev = _context10.next) {
|
|
8412
|
+
case 0:
|
|
8413
|
+
data = _ref5.data;
|
|
8414
|
+
|
|
8415
|
+
if (!(data.result !== 'SUCCESS')) {
|
|
8416
|
+
_context10.next = 4;
|
|
8417
|
+
break;
|
|
8418
|
+
}
|
|
8419
|
+
|
|
8420
|
+
_this16.$message.error(data.resultMsg || '参数异常,请联系管理员');
|
|
8421
|
+
|
|
8422
|
+
return _context10.abrupt("return", false);
|
|
8423
|
+
|
|
8424
|
+
case 4:
|
|
8425
|
+
return _context10.abrupt("return", (data === null || data === void 0 ? void 0 : data.obj) || {});
|
|
8426
|
+
|
|
8427
|
+
case 5:
|
|
8428
|
+
case "end":
|
|
8429
|
+
return _context10.stop();
|
|
8430
|
+
}
|
|
8431
|
+
}
|
|
8432
|
+
}, _callee10);
|
|
8433
|
+
}));
|
|
8434
|
+
|
|
8435
|
+
return function (_x2) {
|
|
8436
|
+
return _ref6.apply(this, arguments);
|
|
8437
|
+
};
|
|
8438
|
+
}()).catch(function (e) {
|
|
8439
|
+
return false;
|
|
8440
|
+
});
|
|
8441
|
+
},
|
|
8442
|
+
formatDefaultVal: function formatDefaultVal(i, tableVal) {
|
|
8443
|
+
var formatMap = {
|
|
8444
|
+
DATE: 'YYYY-MM-DD',
|
|
8445
|
+
DATETIME: 'YYYY-MM-DD HH:mm:ss'
|
|
8446
|
+
};
|
|
8447
|
+
var tVal = tableVal;
|
|
8448
|
+
|
|
8449
|
+
if (Object.keys(formatMap).includes(i.type) && tableVal) {
|
|
8450
|
+
tVal = external_moment_default()(tableVal).format(formatMap[i.type]);
|
|
8451
|
+
}
|
|
8452
|
+
|
|
8453
|
+
if (i.type === 'TEXT') {
|
|
8454
|
+
tVal = String(tableVal) || '';
|
|
8455
|
+
}
|
|
8456
|
+
|
|
8457
|
+
return (i === null || i === void 0 ? void 0 : i.defaultValue) || tVal || '';
|
|
8458
|
+
},
|
|
8459
|
+
// formatParams({ customizeDataset = [], param = [] }, params = []) {
|
|
8460
|
+
// return params.map(paramObj => {
|
|
8461
|
+
// let res = {};
|
|
8462
|
+
// // 自定义结果集
|
|
8463
|
+
// customizeDataset.forEach(dataSetItem => {
|
|
8464
|
+
// const selectFieldList = dataSetItem.dataSetting[0].selectFieldList;
|
|
8465
|
+
// res['datasetData'] = {
|
|
8466
|
+
// [dataSetItem.name]: JSON.stringify(this.formatPrintParams(paramObj, selectFieldList, 'fieldName'))
|
|
8467
|
+
// };
|
|
8468
|
+
// });
|
|
8469
|
+
// // 参数
|
|
8470
|
+
// res = Object.assign({}, res, this.formatPrintParams(paramObj, param, 'key'));
|
|
8471
|
+
// return res;
|
|
8472
|
+
// });
|
|
8473
|
+
// },
|
|
8474
|
+
reformatPrintParams: function reformatPrintParams() {
|
|
8475
|
+
var _this17 = this;
|
|
8476
|
+
|
|
8477
|
+
this.watchPrintParamsReformatFn && this.watchPrintParamsReformatFn();
|
|
8478
|
+
/*
|
|
8479
|
+
还没初始化完毕时(还没获取到模板格式配置等..)
|
|
8480
|
+
触发再格式化逻辑,需等待初始化完毕,再重新执行格式化
|
|
8481
|
+
*/
|
|
8482
|
+
|
|
8483
|
+
if (!this.isInited) {
|
|
8484
|
+
this.watchPrintParamsReformatFn = this.$watch('isInited', function (val) {
|
|
8485
|
+
if (!val) return false;
|
|
8486
|
+
|
|
8487
|
+
_this17.reformatPrintParams();
|
|
8488
|
+
});
|
|
8489
|
+
return;
|
|
8490
|
+
} // this.printParams = this.formatParams(this.templateParams, this.params);
|
|
8491
|
+
|
|
8492
|
+
|
|
8493
|
+
this.printParams = this.formatSomeTypeParams(this.templateParams, this.params);
|
|
8494
|
+
this.originParams = this.formatSomeOriginParams(this.templateParams, this.params);
|
|
8495
|
+
},
|
|
8496
|
+
formatPrintParams: function formatPrintParams(paramObj, fieldList, keyName) {
|
|
8497
|
+
var _this18 = this;
|
|
8498
|
+
|
|
8499
|
+
var obj = {};
|
|
8500
|
+
fieldList.forEach(function (i) {
|
|
8501
|
+
var defaultVal = _this18.formatDefaultVal(i, paramObj[i[keyName]]);
|
|
8502
|
+
|
|
8503
|
+
if (paramObj[i[keyName]] && defaultVal) {
|
|
8504
|
+
obj[i[keyName]] = defaultVal;
|
|
8505
|
+
}
|
|
8506
|
+
});
|
|
8507
|
+
return obj;
|
|
8508
|
+
},
|
|
8509
|
+
|
|
8510
|
+
/* */
|
|
8511
|
+
handleClickFormat: function handleClickFormat(id) {
|
|
8512
|
+
this.currentFormatId = id;
|
|
8513
|
+
},
|
|
8514
|
+
|
|
8515
|
+
/* */
|
|
8516
|
+
getPrintParams: function getPrintParams() {
|
|
8517
|
+
var extraParams = (this === null || this === void 0 ? void 0 : this.printExtraParams) || {};
|
|
8518
|
+
|
|
8519
|
+
var res = Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, this.token ? {
|
|
8520
|
+
token: this.token
|
|
8521
|
+
} : {}), extraParams);
|
|
8522
|
+
|
|
8523
|
+
if (typeof this.getPrintParamsAfter === 'function') {
|
|
8524
|
+
var t = this.getPrintParamsAfter(res);
|
|
8525
|
+
return t || res;
|
|
8526
|
+
}
|
|
8527
|
+
|
|
8528
|
+
return JSON.stringify(res);
|
|
8529
|
+
},
|
|
8530
|
+
getTemplateIdByFormatId: function getTemplateIdByFormatId(id) {
|
|
8531
|
+
var find = this.formatList.find(function (item) {
|
|
8532
|
+
return item.id === id;
|
|
8533
|
+
});
|
|
8534
|
+
return (find === null || find === void 0 ? void 0 : find.templateId) || '';
|
|
8535
|
+
},
|
|
8536
|
+
getTemplateCodeByFormatId: function getTemplateCodeByFormatId(id) {
|
|
8537
|
+
var find = this.formatList.find(function (item) {
|
|
8538
|
+
return item.id === id;
|
|
8539
|
+
});
|
|
8540
|
+
return (find === null || find === void 0 ? void 0 : find.number) || '';
|
|
8541
|
+
},
|
|
8542
|
+
getOnceParams: function getOnceParams() {
|
|
8543
|
+
var _this$templateParams$, _this$templateParams$2;
|
|
8544
|
+
|
|
8545
|
+
var curPrintParamList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
8546
|
+
var templateCode = arguments.length > 1 ? arguments[1] : undefined;
|
|
8547
|
+
// 聚合一条
|
|
8548
|
+
var params = {};
|
|
8549
|
+
var obj = {}; // let cur = this.printParams?.[0] || {};
|
|
8550
|
+
|
|
8551
|
+
if ((_this$templateParams$ = this.templateParams[templateCode]) !== null && _this$templateParams$ !== void 0 && (_this$templateParams$2 = _this$templateParams$.customizeDataset) !== null && _this$templateParams$2 !== void 0 && _this$templateParams$2.length) {
|
|
8552
|
+
var _Object$keys, _curPrintParamList$;
|
|
8553
|
+
|
|
8554
|
+
// 有模板数据
|
|
8555
|
+
var key = ((_Object$keys = Object.keys(((_curPrintParamList$ = curPrintParamList[0]) === null || _curPrintParamList$ === void 0 ? void 0 : _curPrintParamList$.datasetData) || {})) === null || _Object$keys === void 0 ? void 0 : _Object$keys[0]) || '';
|
|
8556
|
+
var datasetDataKeyVal = JSON.stringify(curPrintParamList.map(function (v) {
|
|
8557
|
+
return JSON.parse(v.datasetData[key]);
|
|
8558
|
+
}));
|
|
8559
|
+
obj = {
|
|
8560
|
+
datasetData: {}
|
|
8561
|
+
};
|
|
8562
|
+
obj.datasetData[key] = datasetDataKeyVal;
|
|
8563
|
+
} else {
|
|
8564
|
+
// 无模板数据
|
|
8565
|
+
Object.keys(curPrintParamList[0]).forEach(function (v) {
|
|
8566
|
+
obj[v] = [];
|
|
8567
|
+
curPrintParamList.forEach(function (k) {
|
|
8568
|
+
if (!obj[v].includes(k[v])) {
|
|
8569
|
+
obj[v].push(k[v]);
|
|
8570
|
+
}
|
|
8571
|
+
});
|
|
8572
|
+
obj[v] = obj[v].join(',');
|
|
8573
|
+
});
|
|
8574
|
+
}
|
|
8575
|
+
|
|
8576
|
+
params = Object.assign({}, JSON.parse(this.getPrintParams()), this.printCustomProps, obj);
|
|
8577
|
+
|
|
8578
|
+
if (typeof this.getOnceParamsAfter === 'function') {
|
|
8579
|
+
var res = this.getOnceParamsAfter(params, obj);
|
|
8580
|
+
return res || params;
|
|
8581
|
+
}
|
|
8582
|
+
|
|
8583
|
+
return JSON.stringify(params);
|
|
8584
|
+
},
|
|
8585
|
+
handleClickPrint: function handleClickPrint(curPrintParamList, templateCode, templateId, formatId) {
|
|
8586
|
+
var _this19 = this;
|
|
8587
|
+
|
|
8588
|
+
var printToParam = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : [];
|
|
8589
|
+
var needContinuePrint = arguments.length > 5 ? arguments[5] : undefined;
|
|
8590
|
+
var len = curPrintParamList.length;
|
|
8591
|
+
|
|
8592
|
+
var callLocalServicesSuccessCb = /*#__PURE__*/function () {
|
|
8593
|
+
var _ref7 = Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee11(data) {
|
|
8594
|
+
return regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
8595
|
+
while (1) {
|
|
8596
|
+
switch (_context11.prev = _context11.next) {
|
|
8597
|
+
case 0:
|
|
8598
|
+
try {
|
|
8599
|
+
if (--len <= 0) {
|
|
8600
|
+
_this19.callLocalServicesSuccessCb(data, 'print');
|
|
8601
|
+
}
|
|
8602
|
+
} catch (error) {
|
|
8603
|
+
console.log('error', error);
|
|
8604
|
+
}
|
|
8605
|
+
|
|
8606
|
+
case 1:
|
|
8607
|
+
case "end":
|
|
8608
|
+
return _context11.stop();
|
|
8609
|
+
}
|
|
8610
|
+
}
|
|
8611
|
+
}, _callee11);
|
|
8612
|
+
}));
|
|
8613
|
+
|
|
8614
|
+
return function callLocalServicesSuccessCb(_x3) {
|
|
8615
|
+
return _ref7.apply(this, arguments);
|
|
8616
|
+
};
|
|
8617
|
+
}();
|
|
8618
|
+
|
|
8619
|
+
if (this.getCurrentLoading() && !needContinuePrint) return;
|
|
8620
|
+
this.toggleExpandLoading(true, formatId);
|
|
8621
|
+
this.prevFn().catch(function () {
|
|
8622
|
+
_this19.prevFnError();
|
|
8623
|
+
|
|
8624
|
+
return Promise.reject();
|
|
8625
|
+
}).then(function () {
|
|
8626
|
+
if (_this19.versionType == 1 || _this19.versionType == 3) {
|
|
8627
|
+
var printFn = _this19.versionType == 1 ? 'handleHisPrint' : 'handleOldHisPrint';
|
|
8628
|
+
|
|
8629
|
+
if (_this19.strategy === 'MULTI') {
|
|
8630
|
+
for (var i = 0; i < _this19.params.length; i++) {
|
|
8631
|
+
var params = _this19.getHisParams(i);
|
|
8632
|
+
|
|
8633
|
+
_this19.printInstance[printFn](7, params).then(function (res) {
|
|
8634
|
+
console.log(res, '777777777777');
|
|
8635
|
+
}).catch(function (error) {
|
|
8636
|
+
console.log(error, 'error777');
|
|
8637
|
+
});
|
|
8638
|
+
}
|
|
8639
|
+
} else {
|
|
8640
|
+
var _params = _this19.getOnceHisParams();
|
|
8641
|
+
|
|
8642
|
+
_this19.printInstance[printFn](7, _params).then(function (res) {
|
|
8643
|
+
console.log(res, '777777777777');
|
|
8644
|
+
}).catch(function (error) {
|
|
8645
|
+
console.log(error, 'error777');
|
|
8646
|
+
});
|
|
8647
|
+
}
|
|
8648
|
+
} else {
|
|
8649
|
+
_this19.curPrintParamList = curPrintParamList;
|
|
8650
|
+
var queryParams = {
|
|
8651
|
+
// ...this.queryParams,
|
|
8652
|
+
formatId: formatId,
|
|
8653
|
+
templateId: templateId,
|
|
8654
|
+
printdlgshow: _this19.printdlgshow
|
|
8655
|
+
};
|
|
8656
|
+
|
|
8657
|
+
if (_this19.strategy === 'MULTI') {
|
|
8658
|
+
// 循环多条
|
|
8659
|
+
for (var _i3 = 0; _i3 < curPrintParamList.length; _i3++) {
|
|
8660
|
+
if (_i3 > 0) queryParams.printdlgshow = '0';
|
|
8661
|
+
|
|
8662
|
+
var _params2 = JSON.stringify(Object.assign({}, JSON.parse(_this19.getPrintParams()), _this19.printCustomProps, curPrintParamList[_i3]));
|
|
8663
|
+
|
|
8664
|
+
_this19.printInstance.printDirect(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, queryParams), {}, {
|
|
8665
|
+
params: _params2
|
|
8666
|
+
}), callLocalServicesSuccessCb, _this19.callLocalServicesErrorCb, _this19.callLocalServicesCancelCb);
|
|
8667
|
+
}
|
|
8668
|
+
} else {
|
|
8669
|
+
// 聚合一条
|
|
8670
|
+
_this19.printInstance.printDirect(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, queryParams), {}, {
|
|
8671
|
+
params: _this19.getOnceParams(curPrintParamList, templateCode)
|
|
8672
|
+
}), function (res) {
|
|
8673
|
+
res.params = printToParam;
|
|
8674
|
+
res.templateCode = templateCode;
|
|
8675
|
+
res.templateId = templateId;
|
|
8676
|
+
|
|
8677
|
+
_this19.callLocalServicesSuccessCb(res, 'print');
|
|
8678
|
+
}, _this19.callLocalServicesErrorCb, _this19.callLocalServicesCancelCb);
|
|
8679
|
+
}
|
|
8680
|
+
}
|
|
8681
|
+
});
|
|
8682
|
+
},
|
|
8683
|
+
getHisParams: function getHisParams() {
|
|
8684
|
+
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
8685
|
+
var templateParams = this.templateParams,
|
|
8686
|
+
hisParams = this.hisParams,
|
|
8687
|
+
params = this.params;
|
|
8688
|
+
var _hisParams$reportid = hisParams.reportid,
|
|
8689
|
+
reportid = _hisParams$reportid === void 0 ? '280' : _hisParams$reportid;
|
|
8690
|
+
var id = templateParams.id,
|
|
8691
|
+
name = templateParams.name;
|
|
8692
|
+
return {
|
|
8693
|
+
reportid: reportid,
|
|
8694
|
+
formatid: this.currentFormatId || id,
|
|
8695
|
+
formatname: name,
|
|
8696
|
+
param: params[index]
|
|
8697
|
+
};
|
|
8698
|
+
},
|
|
8699
|
+
getOnceHisParams: function getOnceHisParams() {
|
|
8700
|
+
var templateParams = this.templateParams,
|
|
8701
|
+
hisParams = this.hisParams,
|
|
8702
|
+
params = this.params;
|
|
8703
|
+
var _hisParams$reportid2 = hisParams.reportid,
|
|
8704
|
+
reportid = _hisParams$reportid2 === void 0 ? '280' : _hisParams$reportid2;
|
|
8705
|
+
var id = templateParams.id,
|
|
8706
|
+
name = templateParams.name;
|
|
8707
|
+
var obj = {};
|
|
8708
|
+
Object.keys(params[0]).forEach(function (v) {
|
|
8709
|
+
obj[v] = [];
|
|
8710
|
+
params.forEach(function (k) {
|
|
8711
|
+
obj[v].push(k[v]);
|
|
8712
|
+
});
|
|
8713
|
+
obj[v] = obj[v].join(',');
|
|
8714
|
+
});
|
|
8715
|
+
return {
|
|
8716
|
+
reportid: reportid,
|
|
8717
|
+
formatid: this.currentFormatId || id,
|
|
8718
|
+
formatname: name,
|
|
8719
|
+
param: obj
|
|
8720
|
+
};
|
|
8721
|
+
},
|
|
8722
|
+
handleClickPreview: function handleClickPreview() {
|
|
8723
|
+
var _arguments3 = arguments,
|
|
8724
|
+
_this20 = this;
|
|
8725
|
+
|
|
8726
|
+
return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee12() {
|
|
8727
|
+
var curPrintParamList, templateCode, templateId, formatId;
|
|
8728
|
+
return regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
8729
|
+
while (1) {
|
|
8730
|
+
switch (_context12.prev = _context12.next) {
|
|
8731
|
+
case 0:
|
|
8732
|
+
curPrintParamList = _arguments3.length > 0 && _arguments3[0] !== undefined ? _arguments3[0] : [];
|
|
8733
|
+
templateCode = _arguments3.length > 1 ? _arguments3[1] : undefined;
|
|
8734
|
+
templateId = _arguments3.length > 2 ? _arguments3[2] : undefined;
|
|
8735
|
+
formatId = _arguments3.length > 3 ? _arguments3[3] : undefined;
|
|
8736
|
+
|
|
8737
|
+
if (!_this20.getCurrentLoading()) {
|
|
8738
|
+
_context12.next = 6;
|
|
8739
|
+
break;
|
|
8740
|
+
}
|
|
8741
|
+
|
|
8742
|
+
return _context12.abrupt("return");
|
|
8743
|
+
|
|
8744
|
+
case 6:
|
|
8745
|
+
_this20.toggleExpandLoading(true, formatId);
|
|
8746
|
+
|
|
8747
|
+
_this20.prevFn().catch(function () {
|
|
8748
|
+
_this20.prevFnError();
|
|
8749
|
+
|
|
8750
|
+
return Promise.reject();
|
|
8751
|
+
}).then(function () {
|
|
8752
|
+
if (_this20.versionType == 1 || _this20.versionType == 3) {
|
|
8753
|
+
var params = _this20.strategy === 'MULTI' ? _this20.getHisParams() : _this20.getOnceHisParams();
|
|
8754
|
+
var printFn = _this20.versionType == 1 ? 'handleHisPrint' : 'handleOldHisPrint';
|
|
8755
|
+
|
|
8756
|
+
_this20.printInstance[printFn](8, params).then(function (res) {
|
|
8757
|
+
console.log(res, 88888888);
|
|
8758
|
+
}).catch(function (error) {
|
|
8759
|
+
console.log(error, 'error888');
|
|
8760
|
+
});
|
|
8761
|
+
} else {
|
|
8762
|
+
_this20.curPrintParamList = curPrintParamList;
|
|
8763
|
+
var IS_MULTI = _this20.strategy === 'MULTI';
|
|
8764
|
+
var queryParams = {
|
|
8765
|
+
formatId: formatId,
|
|
8766
|
+
templateId: templateId
|
|
8767
|
+
};
|
|
8768
|
+
var paramsFirst = JSON.stringify(Object.assign({}, JSON.parse(_this20.getPrintParams()), _this20.printCustomProps.value, curPrintParamList[0]));
|
|
8769
|
+
|
|
8770
|
+
_this20.printInstance.preview(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, queryParams), {}, {
|
|
8771
|
+
params: IS_MULTI ? paramsFirst : _this20.getOnceParams(curPrintParamList, templateCode)
|
|
8772
|
+
}), function (res) {
|
|
8773
|
+
_this20.callLocalServicesSuccessCb(res, 'preview');
|
|
8774
|
+
}, _this20.callLocalServicesErrorCb);
|
|
8775
|
+
}
|
|
8776
|
+
});
|
|
8777
|
+
|
|
8778
|
+
case 8:
|
|
8779
|
+
case "end":
|
|
8780
|
+
return _context12.stop();
|
|
8781
|
+
}
|
|
8782
|
+
}
|
|
8783
|
+
}, _callee12);
|
|
8784
|
+
}))();
|
|
8785
|
+
},
|
|
8786
|
+
// 下载pdf
|
|
8787
|
+
handleClickPdf: function handleClickPdf() {
|
|
8788
|
+
var _arguments4 = arguments,
|
|
8789
|
+
_this21 = this;
|
|
8790
|
+
|
|
8791
|
+
return Object(asyncToGenerator["a" /* default */])( /*#__PURE__*/regeneratorRuntime.mark(function _callee13() {
|
|
8792
|
+
var curPrintParamList, templateCode, templateId, formatId;
|
|
8793
|
+
return regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
8794
|
+
while (1) {
|
|
8795
|
+
switch (_context13.prev = _context13.next) {
|
|
8796
|
+
case 0:
|
|
8797
|
+
curPrintParamList = _arguments4.length > 0 && _arguments4[0] !== undefined ? _arguments4[0] : [];
|
|
8798
|
+
templateCode = _arguments4.length > 1 ? _arguments4[1] : undefined;
|
|
8799
|
+
templateId = _arguments4.length > 2 ? _arguments4[2] : undefined;
|
|
8800
|
+
formatId = _arguments4.length > 3 ? _arguments4[3] : undefined;
|
|
8801
|
+
|
|
8802
|
+
if (!_this21.getCurrentLoading()) {
|
|
8803
|
+
_context13.next = 6;
|
|
8804
|
+
break;
|
|
8805
|
+
}
|
|
8806
|
+
|
|
8807
|
+
return _context13.abrupt("return");
|
|
8808
|
+
|
|
8809
|
+
case 6:
|
|
8810
|
+
_this21.toggleExpandLoading(true, formatId);
|
|
8811
|
+
|
|
8812
|
+
_this21.prevFn().catch(function () {
|
|
8813
|
+
_this21.prevFnError();
|
|
8814
|
+
|
|
8815
|
+
return Promise.reject();
|
|
8816
|
+
}).then(function () {
|
|
8817
|
+
if (_this21.versionType == 1 || _this21.versionType == 3) {
|
|
8818
|
+
console.log('下载pdf>>>');
|
|
8819
|
+
} else {
|
|
8820
|
+
_this21.curPrintParamList = curPrintParamList;
|
|
8821
|
+
var IS_MULTI = _this21.strategy === 'MULTI'; // const queryParams = {
|
|
8822
|
+
// ...this.queryParams,
|
|
8823
|
+
// print: { print: '1', type: '1', callback: '1' },
|
|
8824
|
+
// };
|
|
8825
|
+
|
|
8826
|
+
var queryParams = {
|
|
8827
|
+
formatId: formatId,
|
|
8828
|
+
templateId: templateId,
|
|
8829
|
+
print: {
|
|
8830
|
+
print: '1',
|
|
8831
|
+
type: '1',
|
|
8832
|
+
callback: '1'
|
|
8833
|
+
}
|
|
8834
|
+
};
|
|
8835
|
+
var paramsFirst = JSON.stringify(Object.assign({}, JSON.parse(_this21.getPrintParams()), _this21.printCustomProps.value, curPrintParamList[0]));
|
|
8836
|
+
|
|
8837
|
+
_this21.printInstance.downloadPDF(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, queryParams), {}, {
|
|
8838
|
+
params: IS_MULTI ? paramsFirst : _this21.getOnceParams(curPrintParamList, templateCode)
|
|
8839
|
+
}), function (res) {
|
|
8840
|
+
_this21.callLocalServicesSuccessCb(res, 'download');
|
|
8841
|
+
}, _this21.callLocalServicesErrorCb);
|
|
8842
|
+
}
|
|
8843
|
+
});
|
|
8844
|
+
|
|
8845
|
+
case 8:
|
|
8846
|
+
case "end":
|
|
8847
|
+
return _context13.stop();
|
|
8848
|
+
}
|
|
8849
|
+
}
|
|
8850
|
+
}, _callee13);
|
|
8851
|
+
}))();
|
|
8852
|
+
},
|
|
8853
|
+
handleClickEdit: function handleClickEdit() {
|
|
8854
|
+
var _this22 = this;
|
|
8855
|
+
|
|
8856
|
+
var curPrintParamList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
8857
|
+
var templateCode = arguments.length > 1 ? arguments[1] : undefined;
|
|
8858
|
+
var templateId = arguments.length > 2 ? arguments[2] : undefined;
|
|
8859
|
+
var formatId = arguments.length > 3 ? arguments[3] : undefined;
|
|
8860
|
+
if (this.getCurrentLoading()) return;
|
|
8861
|
+
this.toggleExpandLoading(true, formatId);
|
|
8862
|
+
this.prevFn().catch(function () {
|
|
8863
|
+
_this22.prevFnError();
|
|
8864
|
+
|
|
8865
|
+
return Promise.reject();
|
|
8866
|
+
}).then(function () {
|
|
8867
|
+
if (_this22.versionType == 1 || _this22.versionType == 3) {
|
|
8868
|
+
var params = _this22.strategy === 'MULTI' ? _this22.getHisParams() : _this22.getOnceHisParams();
|
|
8869
|
+
var printFn = _this22.versionType == 1 ? 'handleHisPrint' : 'handleOldHisPrint';
|
|
8870
|
+
|
|
8871
|
+
_this22.printInstance[printFn](9, params).then(function (res) {
|
|
8872
|
+
console.log(res, 999999);
|
|
8873
|
+
}).catch(function (error) {
|
|
8874
|
+
console.log(error, 'error999');
|
|
8875
|
+
});
|
|
8876
|
+
} else {
|
|
8877
|
+
_this22.toggleExpandLoading(false);
|
|
8878
|
+
|
|
8879
|
+
_this22.curPrintParamList = curPrintParamList;
|
|
8880
|
+
_this22.currentFormatId = formatId;
|
|
8881
|
+
_this22.identityVerification.visible = true;
|
|
8882
|
+
}
|
|
8883
|
+
});
|
|
8884
|
+
},
|
|
8885
|
+
verifiySuccess: function verifiySuccess(token) {
|
|
8886
|
+
var _this23 = this;
|
|
8887
|
+
|
|
8888
|
+
this.identityVerification.visible = false;
|
|
8889
|
+
var paramsFirst = JSON.stringify(Object.assign({}, JSON.parse(this.getPrintParams()), this.printCustomProps.value, this.curPrintParamList[0]));
|
|
8890
|
+
var params = this.strategy === 'MULTI' ? paramsFirst : this.getOnceParams(this.curPrintParamList, this.getTemplateCodeByFormatId(this.currentFormatId));
|
|
8891
|
+
var queryParams = {
|
|
8892
|
+
// ...this.queryParams,
|
|
8893
|
+
formatId: this.currentFormatId,
|
|
8894
|
+
templateId: this.getTemplateIdByFormatId(this.currentFormatId),
|
|
8895
|
+
params: params,
|
|
8896
|
+
token: token
|
|
8897
|
+
};
|
|
8898
|
+
this.printInstance.editPrintFormat(queryParams, function (res) {
|
|
8899
|
+
_this23.callLocalServicesSuccessCb(res, 'edit');
|
|
8900
|
+
}, this.callLocalServicesErrorCb);
|
|
8901
|
+
},
|
|
8902
|
+
|
|
8903
|
+
/* */
|
|
8904
|
+
prevFnError: function prevFnError() {
|
|
8905
|
+
// 前置条件执行错误这里不弹提示,“前置条件”事件内有弹提示了
|
|
8906
|
+
// let error = {
|
|
8907
|
+
// message: '前置条件执行错误'
|
|
8908
|
+
// };
|
|
8909
|
+
// this.$emit('error', error);
|
|
8910
|
+
this.toggleExpandLoading(false);
|
|
8911
|
+
this.visible = false;
|
|
8912
|
+
},
|
|
8913
|
+
|
|
8914
|
+
/* */
|
|
8915
|
+
callLocalServicesSuccessCb: function callLocalServicesSuccessCb(res, type) {
|
|
8916
|
+
this.toggleExpandLoading(false);
|
|
8917
|
+
var info = {
|
|
8918
|
+
type: type,
|
|
8919
|
+
formatId: this.currentFormatId,
|
|
8920
|
+
templateId: (res === null || res === void 0 ? void 0 : res.templateId) || this.getTemplateIdByFormatId(this.currentFormatId),
|
|
8921
|
+
templateCode: (res === null || res === void 0 ? void 0 : res.templateCode) || this.getTemplateCodeByFormatId(this.currentFormatId)
|
|
8922
|
+
};
|
|
8923
|
+
this.$emit('success', res, info);
|
|
8924
|
+
},
|
|
8925
|
+
callLocalServicesErrorCb: function callLocalServicesErrorCb(res) {
|
|
8926
|
+
this.toggleExpandLoading(false);
|
|
8927
|
+
this.$emit('error', res);
|
|
8928
|
+
},
|
|
8929
|
+
callLocalServicesCancelCb: function callLocalServicesCancelCb(res) {
|
|
8930
|
+
this.toggleExpandLoading(false);
|
|
8931
|
+
this.$emit('cancel', res);
|
|
8932
|
+
},
|
|
8933
|
+
|
|
8934
|
+
/**
|
|
8935
|
+
* 获取 axios 自定义配置
|
|
8936
|
+
*/
|
|
8937
|
+
getCustomCofing: function getCustomCofing(customCofing) {
|
|
8938
|
+
var cCofing = {};
|
|
8939
|
+
|
|
8940
|
+
var type = Object(esm_typeof["a" /* default */])(customCofing);
|
|
8941
|
+
|
|
8942
|
+
if (type === 'function') {
|
|
8943
|
+
cCofing = customCofing();
|
|
8944
|
+
} else if (type === 'object') {
|
|
8945
|
+
cCofing = customCofing;
|
|
8946
|
+
}
|
|
8947
|
+
|
|
8948
|
+
return cCofing;
|
|
8949
|
+
}
|
|
8950
|
+
}
|
|
8951
|
+
}));
|
|
8952
|
+
// CONCATENATED MODULE: ./packages/button/src/ButtonPrint/new.vue?vue&type=script&lang=js&
|
|
8953
|
+
/* harmony default export */ var ButtonPrint_newvue_type_script_lang_js_ = (newvue_type_script_lang_js_);
|
|
8954
|
+
// EXTERNAL MODULE: ./packages/button/src/ButtonPrint/new.vue?vue&type=style&index=0&id=9821bc7e&lang=less&scoped=true&
|
|
8955
|
+
var newvue_type_style_index_0_id_9821bc7e_lang_less_scoped_true_ = __webpack_require__("88f2");
|
|
8956
|
+
|
|
8957
|
+
// EXTERNAL MODULE: ./packages/button/src/ButtonPrint/new.vue?vue&type=style&index=1&lang=less&
|
|
8958
|
+
var newvue_type_style_index_1_lang_less_ = __webpack_require__("a462");
|
|
8959
|
+
|
|
8960
|
+
// CONCATENATED MODULE: ./packages/button/src/ButtonPrint/new.vue
|
|
8961
|
+
|
|
8962
|
+
|
|
8963
|
+
|
|
8964
|
+
|
|
8965
|
+
|
|
8966
|
+
|
|
8967
|
+
|
|
8968
|
+
/* normalize component */
|
|
8969
|
+
|
|
8970
|
+
var new_component = Object(componentNormalizer["a" /* default */])(
|
|
8971
|
+
ButtonPrint_newvue_type_script_lang_js_,
|
|
8972
|
+
newvue_type_template_id_9821bc7e_scoped_true_render,
|
|
8973
|
+
newvue_type_template_id_9821bc7e_scoped_true_staticRenderFns,
|
|
8974
|
+
false,
|
|
8975
|
+
null,
|
|
8976
|
+
"9821bc7e",
|
|
8977
|
+
null
|
|
8978
|
+
|
|
8979
|
+
)
|
|
8980
|
+
|
|
8981
|
+
/* harmony default export */ var ButtonPrint_new = (new_component.exports);
|
|
8982
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/ButtonPrint/index.vue?vue&type=script&lang=js&
|
|
8983
|
+
|
|
8984
|
+
|
|
8985
|
+
|
|
8986
|
+
//
|
|
8987
|
+
//
|
|
8988
|
+
//
|
|
8989
|
+
//
|
|
8990
|
+
//
|
|
8991
|
+
//
|
|
8992
|
+
//
|
|
8993
|
+
//
|
|
8994
|
+
//
|
|
8995
|
+
//
|
|
8996
|
+
//
|
|
8997
|
+
//
|
|
8998
|
+
//
|
|
8999
|
+
//
|
|
9000
|
+
//
|
|
9001
|
+
|
|
9002
|
+
|
|
9003
|
+
|
|
9004
|
+
/* harmony default export */ var ButtonPrintvue_type_script_lang_js_ = (Object(create["a" /* default */])({
|
|
9005
|
+
name: 'button-print',
|
|
9006
|
+
components: {
|
|
9007
|
+
OldPrintComponent: old,
|
|
9008
|
+
NewPrintComponent: ButtonPrint_new
|
|
9009
|
+
},
|
|
9010
|
+
props: {
|
|
9011
|
+
baseUrl: {
|
|
9012
|
+
type: String
|
|
9013
|
+
},
|
|
9014
|
+
|
|
9015
|
+
/* */
|
|
9016
|
+
btnText: {
|
|
9017
|
+
type: String,
|
|
9018
|
+
default: '打印'
|
|
9019
|
+
},
|
|
9020
|
+
printText: {
|
|
9021
|
+
type: String,
|
|
9022
|
+
default: '直接打印'
|
|
9023
|
+
},
|
|
9024
|
+
previewText: {
|
|
9025
|
+
type: String,
|
|
9026
|
+
default: '打印预览'
|
|
9027
|
+
},
|
|
9028
|
+
pdfLoadText: {
|
|
9029
|
+
type: String,
|
|
9030
|
+
default: '下载pdf'
|
|
9031
|
+
},
|
|
9032
|
+
formatEditText: {
|
|
9033
|
+
type: String,
|
|
9034
|
+
default: '格式编辑'
|
|
9035
|
+
},
|
|
9036
|
+
identityVerificationTitle: {
|
|
9037
|
+
type: String,
|
|
9038
|
+
default: '打印服务身份校验'
|
|
9039
|
+
},
|
|
9040
|
+
|
|
9041
|
+
/* */
|
|
9042
|
+
authorizationKey: {
|
|
9043
|
+
type: String,
|
|
9044
|
+
require: true
|
|
9045
|
+
},
|
|
9046
|
+
templateNumber: {
|
|
9047
|
+
type: [Number, String],
|
|
9048
|
+
require: true
|
|
9049
|
+
},
|
|
9050
|
+
|
|
9051
|
+
/* 格式化打印参数,需的原始数据 */
|
|
9052
|
+
params: {
|
|
9053
|
+
type: Array
|
|
9054
|
+
},
|
|
9055
|
+
hisParams: {
|
|
9056
|
+
type: Object
|
|
9057
|
+
},
|
|
9058
|
+
|
|
9059
|
+
/* */
|
|
9060
|
+
prevFn: {
|
|
9061
|
+
type: Function,
|
|
9062
|
+
default: function _default() {
|
|
9063
|
+
return Promise.resolve();
|
|
9064
|
+
}
|
|
9065
|
+
},
|
|
9066
|
+
|
|
9067
|
+
/** */
|
|
9068
|
+
verifyUserUrl: {
|
|
9069
|
+
type: String,
|
|
9070
|
+
default: '/verifyUser'
|
|
9071
|
+
},
|
|
9072
|
+
|
|
9073
|
+
/** */
|
|
9074
|
+
getPrintFormatByNumberUrl: {
|
|
9075
|
+
type: String,
|
|
9076
|
+
default: '/getPrintFormatByNumber'
|
|
9077
|
+
},
|
|
9078
|
+
|
|
9079
|
+
/** */
|
|
9080
|
+
getTemplateParamsUrl: {
|
|
9081
|
+
type: String,
|
|
9082
|
+
default: '/getTemplateParams'
|
|
9083
|
+
},
|
|
9084
|
+
|
|
9085
|
+
/* 打印策略,默认多条打印 */
|
|
9086
|
+
strategy: {
|
|
9087
|
+
type: String,
|
|
9088
|
+
default: 'MULTI'
|
|
9089
|
+
},
|
|
9090
|
+
printConfig: {
|
|
9091
|
+
type: Object,
|
|
9092
|
+
default: function _default() {
|
|
9093
|
+
return {};
|
|
9094
|
+
}
|
|
9095
|
+
},
|
|
9096
|
+
// 1 为his老版,2 为新版 3为his更老版本
|
|
9097
|
+
versionType: {
|
|
9098
|
+
type: [Number, String],
|
|
9099
|
+
default: '2'
|
|
9100
|
+
},
|
|
9101
|
+
// 用于获取用户信息的token
|
|
9102
|
+
token: {
|
|
9103
|
+
type: String,
|
|
9104
|
+
default: ''
|
|
9105
|
+
},
|
|
9106
|
+
// 打印弹窗设置,1弹0不弹,默认不弹
|
|
9107
|
+
printdlgshow: {
|
|
9108
|
+
type: [String, Number],
|
|
9109
|
+
default: '0'
|
|
9110
|
+
},
|
|
9111
|
+
// 没有模板提示
|
|
9112
|
+
noformatTips: {
|
|
9113
|
+
type: String,
|
|
9114
|
+
default: ''
|
|
9115
|
+
},
|
|
9116
|
+
getOnceParamsAfter: {
|
|
9117
|
+
type: Function
|
|
9118
|
+
},
|
|
9119
|
+
getPrintParamsAfter: {
|
|
9120
|
+
type: Function
|
|
9121
|
+
},
|
|
9122
|
+
// 新版打印配置(新)
|
|
9123
|
+
newPrintSetting: {
|
|
9124
|
+
type: Object,
|
|
9125
|
+
default: function _default() {
|
|
9126
|
+
return {};
|
|
9127
|
+
}
|
|
9128
|
+
}
|
|
9129
|
+
},
|
|
9130
|
+
computed: {
|
|
9131
|
+
isComponent: function isComponent() {
|
|
9132
|
+
var _Object$keys;
|
|
9133
|
+
|
|
9134
|
+
return ((_Object$keys = Object.keys(this.newPrintSetting)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) > 0 ? ButtonPrint_new : old;
|
|
9135
|
+
},
|
|
9136
|
+
getProps: function getProps() {
|
|
9137
|
+
return this.$props;
|
|
9138
|
+
}
|
|
9139
|
+
}
|
|
9140
|
+
}));
|
|
9141
|
+
// CONCATENATED MODULE: ./packages/button/src/ButtonPrint/index.vue?vue&type=script&lang=js&
|
|
9142
|
+
/* harmony default export */ var src_ButtonPrintvue_type_script_lang_js_ = (ButtonPrintvue_type_script_lang_js_);
|
|
9143
|
+
// CONCATENATED MODULE: ./packages/button/src/ButtonPrint/index.vue
|
|
9144
|
+
|
|
9145
|
+
|
|
9146
|
+
|
|
9147
|
+
|
|
9148
|
+
|
|
9149
|
+
/* normalize component */
|
|
9150
|
+
|
|
9151
|
+
var ButtonPrint_component = Object(componentNormalizer["a" /* default */])(
|
|
9152
|
+
src_ButtonPrintvue_type_script_lang_js_,
|
|
9153
|
+
render,
|
|
9154
|
+
staticRenderFns,
|
|
9155
|
+
false,
|
|
9156
|
+
null,
|
|
9157
|
+
null,
|
|
9158
|
+
null
|
|
9159
|
+
|
|
9160
|
+
)
|
|
9161
|
+
|
|
9162
|
+
/* harmony default export */ var ButtonPrint = __webpack_exports__["a"] = (ButtonPrint_component.exports);
|
|
9163
|
+
|
|
9164
|
+
/***/ }),
|
|
9165
|
+
|
|
9166
|
+
/***/ "362b":
|
|
9167
|
+
/***/ (function(module, exports) {
|
|
9168
|
+
|
|
9169
|
+
module.exports = require("core-js/modules/es.object.get-prototype-of.js");
|
|
9170
|
+
|
|
9171
|
+
/***/ }),
|
|
9172
|
+
|
|
9173
|
+
/***/ "37e8":
|
|
9174
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
9175
|
+
|
|
9176
|
+
var DESCRIPTORS = __webpack_require__("83ab");
|
|
9177
|
+
var definePropertyModule = __webpack_require__("9bf2");
|
|
9178
|
+
var anObject = __webpack_require__("825a");
|
|
9179
|
+
var objectKeys = __webpack_require__("df75");
|
|
9180
|
+
|
|
9181
|
+
// `Object.defineProperties` method
|
|
9182
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
9183
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
9184
|
+
module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
9185
|
+
anObject(O);
|
|
9186
|
+
var keys = objectKeys(Properties);
|
|
9187
|
+
var length = keys.length;
|
|
9188
|
+
var index = 0;
|
|
9189
|
+
var key;
|
|
9190
|
+
while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]);
|
|
9191
|
+
return O;
|
|
9192
|
+
};
|
|
9193
|
+
|
|
9194
|
+
|
|
9195
|
+
/***/ }),
|
|
9196
|
+
|
|
9197
|
+
/***/ "38fe":
|
|
9198
|
+
/***/ (function(module, exports) {
|
|
9199
|
+
|
|
9200
|
+
module.exports = require("core-js/modules/es.typed-array.to-locale-string.js");
|
|
9201
|
+
|
|
9202
|
+
/***/ }),
|
|
9203
|
+
|
|
9204
|
+
/***/ "3bbe":
|
|
9205
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
9206
|
+
|
|
9207
|
+
var isObject = __webpack_require__("861d");
|
|
9208
|
+
|
|
9209
|
+
module.exports = function (it) {
|
|
9210
|
+
if (!isObject(it) && it !== null) {
|
|
9211
|
+
throw TypeError("Can't set " + String(it) + ' as a prototype');
|
|
9212
|
+
} return it;
|
|
9213
|
+
};
|
|
9214
|
+
|
|
9215
|
+
|
|
9216
|
+
/***/ }),
|
|
9217
|
+
|
|
9218
|
+
/***/ "3dbc":
|
|
9219
|
+
/***/ (function(module, exports) {
|
|
9220
|
+
|
|
9221
|
+
module.exports = require("core-js/modules/es.typed-array.for-each.js");
|
|
9222
|
+
|
|
9223
|
+
/***/ }),
|
|
9224
|
+
|
|
9225
|
+
/***/ "3edf":
|
|
9226
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9227
|
+
|
|
9228
|
+
"use strict";
|
|
9229
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9230
|
+
/* harmony import */ var ant_design_vue_es_base_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1df2");
|
|
9231
|
+
/* harmony import */ var ant_design_vue_es_base_style__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(ant_design_vue_es_base_style__WEBPACK_IMPORTED_MODULE_0__);
|
|
9232
|
+
/* harmony import */ var ant_design_vue_es_base__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("be79");
|
|
9233
|
+
/* harmony import */ var ant_design_vue_es_base__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(ant_design_vue_es_base__WEBPACK_IMPORTED_MODULE_1__);
|
|
9234
|
+
/* harmony import */ var F_project_crm_refactor_cnhis_design_v2_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("e260");
|
|
9235
|
+
/* harmony import */ var F_project_crm_refactor_cnhis_design_v2_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(F_project_crm_refactor_cnhis_design_v2_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
9236
|
+
/* harmony import */ var F_project_crm_refactor_cnhis_design_v2_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("e6cf");
|
|
9237
|
+
/* harmony import */ var F_project_crm_refactor_cnhis_design_v2_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(F_project_crm_refactor_cnhis_design_v2_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
9238
|
+
/* harmony import */ var F_project_crm_refactor_cnhis_design_v2_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("cca6");
|
|
9239
|
+
/* harmony import */ var F_project_crm_refactor_cnhis_design_v2_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(F_project_crm_refactor_cnhis_design_v2_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
9240
|
+
/* harmony import */ var F_project_crm_refactor_cnhis_design_v2_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("a79d");
|
|
9241
|
+
/* harmony import */ var F_project_crm_refactor_cnhis_design_v2_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(F_project_crm_refactor_cnhis_design_v2_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
9242
|
+
|
|
9243
|
+
|
|
9244
|
+
|
|
9245
|
+
|
|
9246
|
+
|
|
9247
|
+
|
|
9248
|
+
/* harmony default export */ __webpack_exports__["default"] = (ant_design_vue_es_base__WEBPACK_IMPORTED_MODULE_1___default.a);
|
|
9249
|
+
|
|
9250
|
+
/***/ }),
|
|
9251
|
+
|
|
9252
|
+
/***/ "3f8c":
|
|
9253
|
+
/***/ (function(module, exports) {
|
|
9254
|
+
|
|
9255
|
+
module.exports = {};
|
|
9256
|
+
|
|
9257
|
+
|
|
9258
|
+
/***/ }),
|
|
9259
|
+
|
|
9260
|
+
/***/ "4362":
|
|
9261
|
+
/***/ (function(module, exports) {
|
|
9262
|
+
|
|
9263
|
+
module.exports = require("core-js/modules/es.array.from.js");
|
|
9264
|
+
|
|
9265
|
+
/***/ }),
|
|
9266
|
+
|
|
9267
|
+
/***/ "43622":
|
|
9268
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
9269
|
+
|
|
9270
|
+
exports.nextTick = function nextTick(fn) {
|
|
9271
|
+
var args = Array.prototype.slice.call(arguments);
|
|
9272
|
+
args.shift();
|
|
9273
|
+
setTimeout(function () {
|
|
9274
|
+
fn.apply(null, args);
|
|
9275
|
+
}, 0);
|
|
9276
|
+
};
|
|
9277
|
+
|
|
9278
|
+
exports.platform = exports.arch =
|
|
9279
|
+
exports.execPath = exports.title = 'browser';
|
|
9280
|
+
exports.pid = 1;
|
|
9281
|
+
exports.browser = true;
|
|
9282
|
+
exports.env = {};
|
|
9283
|
+
exports.argv = [];
|
|
9284
|
+
|
|
9285
|
+
exports.binding = function (name) {
|
|
9286
|
+
throw new Error('No such module. (Possibly not yet loaded)')
|
|
9287
|
+
};
|
|
9288
|
+
|
|
9289
|
+
(function () {
|
|
9290
|
+
var cwd = '/';
|
|
9291
|
+
var path;
|
|
9292
|
+
exports.cwd = function () { return cwd };
|
|
9293
|
+
exports.chdir = function (dir) {
|
|
9294
|
+
if (!path) path = __webpack_require__("df7c");
|
|
9295
|
+
cwd = path.resolve(dir, cwd);
|
|
9296
|
+
};
|
|
9297
|
+
})();
|
|
9298
|
+
|
|
9299
|
+
exports.exit = exports.kill =
|
|
9300
|
+
exports.umask = exports.dlopen =
|
|
9301
|
+
exports.uptime = exports.memoryUsage =
|
|
9302
|
+
exports.uvCounters = function() {};
|
|
9303
|
+
exports.features = {};
|
|
9304
|
+
|
|
9305
|
+
|
|
9306
|
+
/***/ }),
|
|
9307
|
+
|
|
9308
|
+
/***/ "4391":
|
|
9309
|
+
/***/ (function(module, exports) {
|
|
9310
|
+
|
|
9311
|
+
module.exports = require("core-js/modules/es.array.map.js");
|
|
9312
|
+
|
|
9313
|
+
/***/ }),
|
|
9314
|
+
|
|
9315
|
+
/***/ "44ad":
|
|
9316
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
9317
|
+
|
|
9318
|
+
var fails = __webpack_require__("d039");
|
|
9319
|
+
var classof = __webpack_require__("c6b6");
|
|
9320
|
+
|
|
9321
|
+
var split = ''.split;
|
|
9322
|
+
|
|
9323
|
+
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
9324
|
+
module.exports = fails(function () {
|
|
9325
|
+
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
9326
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
9327
|
+
return !Object('z').propertyIsEnumerable(0);
|
|
9328
|
+
}) ? function (it) {
|
|
9329
|
+
return classof(it) == 'String' ? split.call(it, '') : Object(it);
|
|
9330
|
+
} : Object;
|
|
9331
|
+
|
|
9332
|
+
|
|
9333
|
+
/***/ }),
|
|
9334
|
+
|
|
9335
|
+
/***/ "44d2":
|
|
9336
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
9337
|
+
|
|
9338
|
+
var wellKnownSymbol = __webpack_require__("b622");
|
|
9339
|
+
var create = __webpack_require__("7c73");
|
|
9340
|
+
var definePropertyModule = __webpack_require__("9bf2");
|
|
9341
|
+
|
|
9342
|
+
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
|
9343
|
+
var ArrayPrototype = Array.prototype;
|
|
9344
|
+
|
|
9345
|
+
// Array.prototype[@@unscopables]
|
|
9346
|
+
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
9347
|
+
if (ArrayPrototype[UNSCOPABLES] == undefined) {
|
|
9348
|
+
definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {
|
|
9349
|
+
configurable: true,
|
|
9350
|
+
value: create(null)
|
|
9351
|
+
});
|
|
9352
|
+
}
|
|
9353
|
+
|
|
9354
|
+
// add a key to Array.prototype[@@unscopables]
|
|
9355
|
+
module.exports = function (key) {
|
|
9356
|
+
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
9357
|
+
};
|
|
9358
|
+
|
|
9359
|
+
|
|
9360
|
+
/***/ }),
|
|
9361
|
+
|
|
9362
|
+
/***/ "44de":
|
|
9363
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
9364
|
+
|
|
9365
|
+
var global = __webpack_require__("da84");
|
|
9366
|
+
|
|
9367
|
+
module.exports = function (a, b) {
|
|
9368
|
+
var console = global.console;
|
|
9369
|
+
if (console && console.error) {
|
|
9370
|
+
arguments.length === 1 ? console.error(a) : console.error(a, b);
|
|
9371
|
+
}
|
|
9372
|
+
};
|
|
9373
|
+
|
|
9374
|
+
|
|
9375
|
+
/***/ }),
|
|
9376
|
+
|
|
9377
|
+
/***/ "45ef":
|
|
9378
|
+
/***/ (function(module, exports) {
|
|
9379
|
+
|
|
9380
|
+
module.exports = require("ant-design-vue/es/button/style");
|
|
9381
|
+
|
|
9382
|
+
/***/ }),
|
|
7337
9383
|
|
|
7338
9384
|
/***/ "47b8":
|
|
7339
9385
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
@@ -7686,6 +9732,13 @@ module.exports = require("core-js/modules/es.typed-array.last-index-of.js");
|
|
|
7686
9732
|
|
|
7687
9733
|
/***/ }),
|
|
7688
9734
|
|
|
9735
|
+
/***/ "5f5b":
|
|
9736
|
+
/***/ (function(module, exports) {
|
|
9737
|
+
|
|
9738
|
+
module.exports = require("ant-design-vue/es/checkbox");
|
|
9739
|
+
|
|
9740
|
+
/***/ }),
|
|
9741
|
+
|
|
7689
9742
|
/***/ "605d":
|
|
7690
9743
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7691
9744
|
|
|
@@ -7893,6 +9946,13 @@ function _arrayLikeToArray(arr, len) {
|
|
|
7893
9946
|
|
|
7894
9947
|
/***/ }),
|
|
7895
9948
|
|
|
9949
|
+
/***/ "6c41":
|
|
9950
|
+
/***/ (function(module, exports) {
|
|
9951
|
+
|
|
9952
|
+
module.exports = require("ant-design-vue/es/popover");
|
|
9953
|
+
|
|
9954
|
+
/***/ }),
|
|
9955
|
+
|
|
7896
9956
|
/***/ "6de0":
|
|
7897
9957
|
/***/ (function(module, exports) {
|
|
7898
9958
|
|
|
@@ -8293,6 +10353,17 @@ module.exports = function (it) {
|
|
|
8293
10353
|
|
|
8294
10354
|
module.exports = require("core-js/modules/es.regexp.constructor.js");
|
|
8295
10355
|
|
|
10356
|
+
/***/ }),
|
|
10357
|
+
|
|
10358
|
+
/***/ "88f2":
|
|
10359
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10360
|
+
|
|
10361
|
+
"use strict";
|
|
10362
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_new_vue_vue_type_style_index_0_id_9821bc7e_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("e9bc");
|
|
10363
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_new_vue_vue_type_style_index_0_id_9821bc7e_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_new_vue_vue_type_style_index_0_id_9821bc7e_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
10364
|
+
/* unused harmony reexport * */
|
|
10365
|
+
|
|
10366
|
+
|
|
8296
10367
|
/***/ }),
|
|
8297
10368
|
|
|
8298
10369
|
/***/ "88fd":
|
|
@@ -8389,7 +10460,7 @@ var create = __webpack_require__("8aef");
|
|
|
8389
10460
|
name: 'button-group',
|
|
8390
10461
|
extends: button_default.a.Group
|
|
8391
10462
|
}));
|
|
8392
|
-
// EXTERNAL MODULE: ./packages/button/src/ButtonPrint/index.vue +
|
|
10463
|
+
// EXTERNAL MODULE: ./packages/button/src/ButtonPrint/index.vue + 20 modules
|
|
8393
10464
|
var ButtonPrint = __webpack_require__("35a8");
|
|
8394
10465
|
|
|
8395
10466
|
// CONCATENATED MODULE: ./packages/button/index.js
|
|
@@ -8527,6 +10598,13 @@ module.exports = require("core-js/modules/es.typed-array.to-string.js");
|
|
|
8527
10598
|
|
|
8528
10599
|
/***/ }),
|
|
8529
10600
|
|
|
10601
|
+
/***/ "964d":
|
|
10602
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
10603
|
+
|
|
10604
|
+
// extracted by mini-css-extract-plugin
|
|
10605
|
+
|
|
10606
|
+
/***/ }),
|
|
10607
|
+
|
|
8530
10608
|
/***/ "9715":
|
|
8531
10609
|
/***/ (function(module, exports) {
|
|
8532
10610
|
|
|
@@ -8541,6 +10619,13 @@ module.exports = require("core-js/modules/es.typed-array.map.js");
|
|
|
8541
10619
|
|
|
8542
10620
|
/***/ }),
|
|
8543
10621
|
|
|
10622
|
+
/***/ "97a9":
|
|
10623
|
+
/***/ (function(module, exports) {
|
|
10624
|
+
|
|
10625
|
+
module.exports = require("ant-design-vue/es/checkbox/style");
|
|
10626
|
+
|
|
10627
|
+
/***/ }),
|
|
10628
|
+
|
|
8544
10629
|
/***/ "97d3":
|
|
8545
10630
|
/***/ (function(module, exports) {
|
|
8546
10631
|
|
|
@@ -8602,6 +10687,13 @@ exports.f = DESCRIPTORS ? $defineProperty : function defineProperty(O, P, Attrib
|
|
|
8602
10687
|
};
|
|
8603
10688
|
|
|
8604
10689
|
|
|
10690
|
+
/***/ }),
|
|
10691
|
+
|
|
10692
|
+
/***/ "9c6d":
|
|
10693
|
+
/***/ (function(module, exports) {
|
|
10694
|
+
|
|
10695
|
+
module.exports = require("ant-design-vue/es/popover/style");
|
|
10696
|
+
|
|
8605
10697
|
/***/ }),
|
|
8606
10698
|
|
|
8607
10699
|
/***/ "9ea4":
|
|
@@ -8670,6 +10762,17 @@ module.exports = function (argument) {
|
|
|
8670
10762
|
|
|
8671
10763
|
module.exports = require("crypto-js");
|
|
8672
10764
|
|
|
10765
|
+
/***/ }),
|
|
10766
|
+
|
|
10767
|
+
/***/ "a462":
|
|
10768
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10769
|
+
|
|
10770
|
+
"use strict";
|
|
10771
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_new_vue_vue_type_style_index_1_lang_less___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("3016");
|
|
10772
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_new_vue_vue_type_style_index_1_lang_less___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_new_vue_vue_type_style_index_1_lang_less___WEBPACK_IMPORTED_MODULE_0__);
|
|
10773
|
+
/* unused harmony reexport * */
|
|
10774
|
+
|
|
10775
|
+
|
|
8673
10776
|
/***/ }),
|
|
8674
10777
|
|
|
8675
10778
|
/***/ "a479":
|
|
@@ -8763,6 +10866,17 @@ if (!IS_PURE && typeof NativePromise == 'function') {
|
|
|
8763
10866
|
}
|
|
8764
10867
|
|
|
8765
10868
|
|
|
10869
|
+
/***/ }),
|
|
10870
|
+
|
|
10871
|
+
/***/ "ac56":
|
|
10872
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10873
|
+
|
|
10874
|
+
"use strict";
|
|
10875
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_old_vue_vue_type_style_index_0_id_edc09274_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("df26");
|
|
10876
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_old_vue_vue_type_style_index_0_id_edc09274_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_old_vue_vue_type_style_index_0_id_edc09274_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
10877
|
+
/* unused harmony reexport * */
|
|
10878
|
+
|
|
10879
|
+
|
|
8766
10880
|
/***/ }),
|
|
8767
10881
|
|
|
8768
10882
|
/***/ "ade3":
|
|
@@ -10875,17 +12989,6 @@ module.exports = require("ant-design-vue/es/input/style");
|
|
|
10875
12989
|
module.exports = false;
|
|
10876
12990
|
|
|
10877
12991
|
|
|
10878
|
-
/***/ }),
|
|
10879
|
-
|
|
10880
|
-
/***/ "c656":
|
|
10881
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10882
|
-
|
|
10883
|
-
"use strict";
|
|
10884
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_64bb5496_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("31ea");
|
|
10885
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_64bb5496_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_64bb5496_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
10886
|
-
/* unused harmony reexport * */
|
|
10887
|
-
|
|
10888
|
-
|
|
10889
12992
|
/***/ }),
|
|
10890
12993
|
|
|
10891
12994
|
/***/ "c6b6":
|
|
@@ -11271,6 +13374,13 @@ module.exports = require("core-js/modules/es.function.name.js");
|
|
|
11271
13374
|
|
|
11272
13375
|
/***/ }),
|
|
11273
13376
|
|
|
13377
|
+
/***/ "df26":
|
|
13378
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
13379
|
+
|
|
13380
|
+
// extracted by mini-css-extract-plugin
|
|
13381
|
+
|
|
13382
|
+
/***/ }),
|
|
13383
|
+
|
|
11274
13384
|
/***/ "df75":
|
|
11275
13385
|
/***/ (function(module, exports, __webpack_require__) {
|
|
11276
13386
|
|
|
@@ -11709,6 +13819,13 @@ module.exports = function (target, src, options) {
|
|
|
11709
13819
|
};
|
|
11710
13820
|
|
|
11711
13821
|
|
|
13822
|
+
/***/ }),
|
|
13823
|
+
|
|
13824
|
+
/***/ "e3aa":
|
|
13825
|
+
/***/ (function(module, exports) {
|
|
13826
|
+
|
|
13827
|
+
module.exports = require("ant-design-vue/es/divider/style");
|
|
13828
|
+
|
|
11712
13829
|
/***/ }),
|
|
11713
13830
|
|
|
11714
13831
|
/***/ "e667":
|
|
@@ -12171,6 +14288,20 @@ module.exports = require("core-js/modules/es.typed-array.set.js");
|
|
|
12171
14288
|
|
|
12172
14289
|
/***/ }),
|
|
12173
14290
|
|
|
14291
|
+
/***/ "e9bc":
|
|
14292
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
14293
|
+
|
|
14294
|
+
// extracted by mini-css-extract-plugin
|
|
14295
|
+
|
|
14296
|
+
/***/ }),
|
|
14297
|
+
|
|
14298
|
+
/***/ "ea01":
|
|
14299
|
+
/***/ (function(module, exports) {
|
|
14300
|
+
|
|
14301
|
+
module.exports = require("ant-design-vue/es/divider");
|
|
14302
|
+
|
|
14303
|
+
/***/ }),
|
|
14304
|
+
|
|
12174
14305
|
/***/ "ea12":
|
|
12175
14306
|
/***/ (function(module, exports) {
|
|
12176
14307
|
|
|
@@ -12217,6 +14348,17 @@ module.exports.f = function (C) {
|
|
|
12217
14348
|
|
|
12218
14349
|
module.exports = require("base64-js");
|
|
12219
14350
|
|
|
14351
|
+
/***/ }),
|
|
14352
|
+
|
|
14353
|
+
/***/ "f250":
|
|
14354
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
14355
|
+
|
|
14356
|
+
"use strict";
|
|
14357
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_old_vue_vue_type_style_index_1_lang_less___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("964d");
|
|
14358
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_old_vue_vue_type_style_index_1_lang_less___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_old_vue_vue_type_style_index_1_lang_less___WEBPACK_IMPORTED_MODULE_0__);
|
|
14359
|
+
/* unused harmony reexport * */
|
|
14360
|
+
|
|
14361
|
+
|
|
12220
14362
|
/***/ }),
|
|
12221
14363
|
|
|
12222
14364
|
/***/ "f3b8":
|