cnhis-design-vue 3.4.0-beta.39 → 3.4.0-beta.40
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.
@@ -617,14 +617,31 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
617
617
|
return state.spinning;
|
618
618
|
};
|
619
619
|
const handleOneTypePrint = (templateCode, templateId, formatId, isOuterClick) => {
|
620
|
-
|
621
|
-
|
620
|
+
const tmpParam = state.printParams[templateCode];
|
621
|
+
props.prevPrintFn({
|
622
|
+
templateId,
|
623
|
+
formatId,
|
624
|
+
params: tmpParam
|
625
|
+
}).then(() => {
|
626
|
+
var _a;
|
622
627
|
if (!tmpParam)
|
623
628
|
return;
|
624
629
|
state.isClickOuterPrint = isOuterClick;
|
625
630
|
state.currentFormatId = formatId;
|
626
631
|
const printToParam = state.originParams[templateCode] || [];
|
627
|
-
handleClickPrint(tmpParam, templateCode, templateId, formatId, printToParam);
|
632
|
+
handleClickPrint(tmpParam, templateCode, templateId, formatId, printToParam, true);
|
633
|
+
if (isPrintAllType.value == 4 && ((_a = printAllFormatIds == null ? void 0 : printAllFormatIds.value) == null ? void 0 : _a.includes(formatId))) {
|
634
|
+
const printFormatIds = printAllFormatIds.value.filter((id) => id != formatId);
|
635
|
+
printFormatIds.forEach((id) => {
|
636
|
+
const curFormatItem = state.formatList.find((item) => item.id === id);
|
637
|
+
if (curFormatItem) {
|
638
|
+
const tmpParam2 = state.printParams[curFormatItem.number];
|
639
|
+
const printToParam2 = state.originParams[curFormatItem.number] || [];
|
640
|
+
state.currentFormatId = id;
|
641
|
+
handleClickPrint(tmpParam2, curFormatItem.number, curFormatItem.templateId, id, printToParam2, true);
|
642
|
+
}
|
643
|
+
});
|
644
|
+
}
|
628
645
|
});
|
629
646
|
};
|
630
647
|
const handleClickPrint = async (curPrintParamList = [], templateCode, templateId, formatId, printToParam = [], needContinuePrint) => {
|
@@ -1370,7 +1387,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
1370
1387
|
component: unref(PrintOutline),
|
1371
1388
|
size: "18"
|
1372
1389
|
}, null, 8, ["component"])]),
|
1373
|
-
default: withCtx(() => [createTextVNode(" " + toDisplayString(!isShowPrintAllBtn.value || isPrintAllType.value == 3 ? __props.btnText : i18n("10010.1.475", "\u6253\u5370\u5168\u90E8")) + " ", 1), printAllShortcut.value ? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(printAllShortcut.value), 1)) : createCommentVNode("v-if", true)]),
|
1390
|
+
default: withCtx(() => [createTextVNode(" " + toDisplayString(!isShowPrintAllBtn.value || isPrintAllType.value == 3 || isPrintAllType.value == 4 ? __props.btnText : i18n("10010.1.475", "\u6253\u5370\u5168\u90E8")) + " ", 1), printAllShortcut.value ? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(printAllShortcut.value), 1)) : createCommentVNode("v-if", true)]),
|
1374
1391
|
_: 1
|
1375
1392
|
}, 16, ["loading", "class"]), createCommentVNode(" \u53EA\u6709\u4E0B\u62C9\u6846\u6709\u9879\uFF0C\u624D\u5C55\u793A\u56FE\u6807\u6309\u94AE "), createVNode(unref(NButton), mergeProps({
|
1376
1393
|
class: "icon-select"
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "cnhis-design-vue",
|
3
|
-
"version": "3.4.0-beta.
|
3
|
+
"version": "3.4.0-beta.40",
|
4
4
|
"license": "ISC",
|
5
5
|
"module": "./es/components/index.js",
|
6
6
|
"main": "./es/components/index.js",
|
@@ -73,5 +73,5 @@
|
|
73
73
|
"iOS 7",
|
74
74
|
"last 3 iOS versions"
|
75
75
|
],
|
76
|
-
"gitHead": "
|
76
|
+
"gitHead": "38feade657a5fc3ef92bbe001805e69547bb1fdf"
|
77
77
|
}
|