@bytenew/bn-bus-ui 1.1.461 → 1.1.463
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/install.js +134 -0
- package/package.json +20 -4
- package/packages/BnAddress/index.vue +141 -0
- package/packages/BnAddressParse/index.vue +75 -0
- package/packages/BnAdvancedFilter/BnFilterView.vue +145 -0
- package/packages/BnAdvancedFilter/index.vue +345 -0
- package/packages/BnAdvancedFilter/util.js +171 -0
- package/packages/BnCascader/BnCascader.vue +543 -0
- package/packages/BnCascader/BnCascaderPanel.vue +1331 -0
- package/packages/BnCascader/cascaderDisplay.js +102 -0
- package/packages/BnCheck/BnCheck.vue +253 -0
- package/packages/BnColumnConfig/columnConfigDialog.vue +134 -0
- package/packages/BnColumnConfig/component/childrenFormSetting/assocTable.vue +143 -0
- package/packages/BnColumnConfig/component/childrenFormSetting/assocTableSearch.vue +314 -0
- package/packages/BnColumnConfig/component/childrenFormSetting/index.vue +243 -0
- package/packages/BnColumnConfig/component/defaultSet/defaultSet.vue +114 -0
- package/packages/BnColumnConfig/component/defaultSet/stringDefault.vue +210 -0
- package/packages/BnColumnConfig/component/funcExprDialog/funcExprDialog.vue +126 -0
- package/packages/BnColumnConfig/component/packageFilter/index.vue +141 -0
- package/packages/BnColumnConfig/component/paraExplainSet/index.vue +156 -0
- package/packages/BnColumnConfig/component/setOption/setOption.vue +321 -0
- package/packages/BnColumnConfig/component/setRelationOption/ConditionList.vue +277 -0
- package/packages/BnColumnConfig/component/setRelationOption/LevelHeader.vue +144 -0
- package/packages/BnColumnConfig/component/setRelationOption/setRelationOption.vue +642 -0
- package/packages/BnColumnConfig/data.js +129 -0
- package/packages/BnColumnConfig/index.scss +23 -0
- package/packages/BnColumnConfig/index.vue +309 -0
- package/packages/BnCondVal/BnCondVal.vue +112 -0
- package/packages/BnCondVal/itemVal/dateRegVal.vue +39 -0
- package/packages/BnCondVal/itemVal/dateVal.vue +39 -0
- package/packages/BnCondVal/itemVal/numRegVal.vue +67 -0
- package/packages/BnCondVal/itemVal/numVal.vue +44 -0
- package/packages/BnCondVal/itemVal/relationVal.vue +73 -0
- package/packages/BnCondVal/itemVal/selectColumnVal.vue +58 -0
- package/packages/BnCondVal/itemVal/selectVal.vue +59 -0
- package/packages/BnCondVal/itemVal/stringVal.vue +156 -0
- package/packages/BnCondition/index.vue +551 -0
- package/packages/BnCondition/util.js +232 -0
- package/packages/BnDatePicker/BnDatePicker.vue +194 -0
- package/packages/BnDrop/BnDrop.vue +917 -0
- package/packages/BnEmptyTip/BnEmptyTip.vue +107 -0
- package/packages/BnExportOrder/BnExportOrder.vue +241 -0
- package/packages/BnExportOrder/validatorCode.vue +94 -0
- package/packages/BnFileView/BnFileView.vue +271 -0
- package/packages/BnFileView/FileDetail.vue +125 -0
- package/packages/BnFileView/videoPreview.vue +70 -0
- package/packages/BnFilterOption/BnFilterOption.vue +160 -0
- package/packages/BnFunExpr/BnFunExpr.vue +608 -0
- package/packages/BnImportOrder/BnImportOrder.vue +323 -0
- package/packages/BnImportTemplate/BnImportTemplate.vue +866 -0
- package/packages/BnImportTemplate/assets/merge_tip_img.png +0 -0
- package/packages/BnImportTemplate/assets/sheet_tip.png +0 -0
- package/packages/BnImportTemplate/assets/xls.png +0 -0
- package/packages/BnImportTemplate/components/ImportTemplateTrigger.vue +198 -0
- package/packages/BnImportTemplate/components/TemplateEditDialog.vue +340 -0
- package/packages/BnImportTemplate/components/TemplateFieldsConfig.vue +401 -0
- package/packages/BnImportTemplate/components/TemplateListDialog.vue +297 -0
- package/packages/BnInpNum/BnInpNum.vue +165 -0
- package/packages/BnMenus/BnMenus.vue +502 -0
- package/packages/BnMenus/MenuItem.vue +321 -0
- package/packages/BnOrderCard/BnOrderCard.vue +389 -0
- package/packages/BnOrderCard/orderRemark.vue +178 -0
- package/packages/BnOrderCard/util.js +94 -0
- package/packages/BnOrderDetail/BnOrderDetail.vue +338 -0
- package/packages/BnOrderDetail/filterLogByUser.vue +108 -0
- package/packages/BnOrderDetail/orderLogs.vue +53 -0
- package/packages/BnOrderDetail/showSubForm/index.vue +41 -0
- package/packages/BnOrderDetail/showSubForm/showChildTable.vue +61 -0
- package/packages/BnOrderDetail/showSubForm/showTimeLine.vue +131 -0
- package/packages/BnOrderDetail/showSubForm/tableCellCopy.vue +84 -0
- package/packages/BnOrderShare/index.vue +378 -0
- package/packages/BnOrderShare/shareUrlInp.vue +54 -0
- package/packages/BnRadio/BnRadio.vue +181 -0
- package/packages/BnRelation/BnRelation.vue +120 -0
- package/packages/BnSelect/BnSelect.vue +485 -0
- package/packages/BnSmartForm/BnBatchForm.vue +334 -0
- package/packages/BnSmartForm/BnBatchFormDialog.vue +423 -0
- package/packages/BnSmartForm/BnSmartElf/elfLog/index.vue +57 -0
- package/packages/BnSmartForm/BnSmartElf/index.vue +95 -0
- package/packages/BnSmartForm/BnSmartFormPsychic.js +629 -0
- package/packages/BnSmartForm/BnSmartFormUtil.js +524 -0
- package/packages/BnSmartForm/addressForm/index.vue +73 -0
- package/packages/BnSmartForm/checkboxForm/index.vue +99 -0
- package/packages/BnSmartForm/childrenForm/childFormFile.vue +237 -0
- package/packages/BnSmartForm/childrenForm/childrenFormBody.vue +260 -0
- package/packages/BnSmartForm/childrenForm/index.vue +110 -0
- package/packages/BnSmartForm/childrenForm/searchInventory.vue +115 -0
- package/packages/BnSmartForm/chooseAssocTable/chooseAssocTable.vue +451 -0
- package/packages/BnSmartForm/chooseAssocTable/chooseChildGood.vue +229 -0
- package/packages/BnSmartForm/chooseAssocTable/tableCellCopy.vue +84 -0
- package/packages/BnSmartForm/chooseChildOrder/chooseChildOrder.vue +158 -0
- package/packages/BnSmartForm/chooseIPaasData/chooseIPaasData.vue +307 -0
- package/packages/BnSmartForm/chooseIPaasData/tableCellCopy.vue +84 -0
- package/packages/BnSmartForm/choosePackage/choosePackage.vue +361 -0
- package/packages/BnSmartForm/dateDualForm/index.vue +37 -0
- package/packages/BnSmartForm/dateForm/index.vue +38 -0
- package/packages/BnSmartForm/fileForm/fileFormData.js +50 -0
- package/packages/BnSmartForm/fileForm/index.vue +240 -0
- package/packages/BnSmartForm/formItemFooter/formItemFooter.vue +38 -0
- package/packages/BnSmartForm/formItemTop/formItemTop.vue +42 -0
- package/packages/BnSmartForm/index.vue +1201 -0
- package/packages/BnSmartForm/numberForm/index.vue +63 -0
- package/packages/BnSmartForm/radioForm/index.vue +72 -0
- package/packages/BnSmartForm/receiveForm/index.vue +112 -0
- package/packages/BnSmartForm/relationForm/index.vue +82 -0
- package/packages/BnSmartForm/scoreForm/index.vue +39 -0
- package/packages/BnSmartForm/selectForm/index.vue +55 -0
- package/packages/BnSmartForm/showValForm/index.vue +42 -0
- package/packages/BnSmartForm/showValForm/showValFormTable.vue +104 -0
- package/packages/BnSmartForm/smartFormsCommon.scss +43 -0
- package/packages/BnSmartForm/stringForm/index.vue +170 -0
- package/packages/BnVirtPopover/index.vue +319 -0
- package/packages/BnWebLog/BnWebLog.vue +140 -0
- package/packages/BnWorkSettingDrop/advancedOptions.js +112 -0
- package/packages/BnWorkSettingDrop/benBenAIUtil.js +89 -0
- package/packages/BnWorkSettingDrop/index.vue +292 -0
- package/packages/font/iconfont.css +243 -0
- package/packages/font/iconfont.ttf +0 -0
- package/packages/font/iconfont.woff +0 -0
- package/packages/font/iconfont.woff2 +0 -0
- package/utils/addressParse-old.js +645 -0
- package/utils/addressParse.js +735 -0
- package/utils/config.js +68 -0
- package/utils/index.js +1171 -0
- package/dist/assocTableSearch-C14i_zJO.js +0 -349
- package/dist/assocTableSearch.css +0 -1
- package/dist/bn-bus-ui.es.js +0 -65
- package/dist/bn-bus-ui.umd.js +0 -49
- package/dist/chooseIPaasData-Cl_5qkFA.js +0 -391
- package/dist/chooseIPaasData.css +0 -1
- package/dist/defaultSet-I4xpf8a4.js +0 -297
- package/dist/defaultSet.css +0 -1
- package/dist/fileFormData-D_Q1vylE.js +0 -53
- package/dist/formItemFooter-CTA7rDtV.js +0 -108
- package/dist/formItemFooter.css +0 -1
- package/dist/funcExprDialog-Cm5BiRM3.js +0 -139
- package/dist/funcExprDialog.css +0 -1
- package/dist/index-B6b4uj8v.js +0 -51
- package/dist/index-BWdkDTbz.js +0 -109
- package/dist/index-BdZ1zOap.js +0 -89
- package/dist/index-BdzNjjMC.js +0 -64
- package/dist/index-BfpZqab2.js +0 -66
- package/dist/index-BmkiB4hr.js +0 -66
- package/dist/index-Br1sqCoo.js +0 -58
- package/dist/index-C9qrl-yc.js +0 -183
- package/dist/index-CXFJXCn5.js +0 -746
- package/dist/index-DF114jZq.js +0 -135
- package/dist/index-DFPfZ_Il.js +0 -178
- package/dist/index-DSEtu7TN.js +0 -44
- package/dist/index-Did0UUWV.js +0 -221
- package/dist/index-DrPj-tmI.js +0 -45
- package/dist/index-DzDf9s2W.js +0 -89
- package/dist/index-LnjudNEI.js +0 -118
- package/dist/index-ObCfCmDT.js +0 -45
- package/dist/index.css +0 -1
- package/dist/index2.css +0 -1
- package/dist/index3.css +0 -1
- package/dist/index4.css +0 -1
- package/dist/index5.css +0 -1
- package/dist/index6.css +0 -1
- package/dist/index7.css +0 -1
- package/dist/install-C-scqkds.js +0 -23103
- package/dist/install.css +0 -1
- package/dist/setOption-CSnWzOny.js +0 -329
- package/dist/setOption.css +0 -1
- package/dist/setRelationOption-CJcHdfaa.js +0 -5217
- package/dist/setRelationOption.css +0 -1
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
const p = [
|
|
2
|
-
"gz",
|
|
3
|
-
"cdr",
|
|
4
|
-
"csv",
|
|
5
|
-
"png",
|
|
6
|
-
"jpg",
|
|
7
|
-
"jpeg",
|
|
8
|
-
"gif",
|
|
9
|
-
"bmp",
|
|
10
|
-
"rtf",
|
|
11
|
-
"swf",
|
|
12
|
-
"avi",
|
|
13
|
-
"mpeg",
|
|
14
|
-
"ogg",
|
|
15
|
-
"ogv",
|
|
16
|
-
"webm",
|
|
17
|
-
"mp3",
|
|
18
|
-
"wav",
|
|
19
|
-
"mid",
|
|
20
|
-
"rar",
|
|
21
|
-
"zip",
|
|
22
|
-
"tar",
|
|
23
|
-
"7z",
|
|
24
|
-
"bz2",
|
|
25
|
-
"doc",
|
|
26
|
-
"docx",
|
|
27
|
-
"xls",
|
|
28
|
-
"xlsx",
|
|
29
|
-
"ppt",
|
|
30
|
-
"pptx",
|
|
31
|
-
"pdf",
|
|
32
|
-
"txt",
|
|
33
|
-
"xml",
|
|
34
|
-
"xmind",
|
|
35
|
-
"rp",
|
|
36
|
-
"graffle",
|
|
37
|
-
"mp4",
|
|
38
|
-
"mpg",
|
|
39
|
-
"mov",
|
|
40
|
-
"rmvb",
|
|
41
|
-
"mkv",
|
|
42
|
-
"pot",
|
|
43
|
-
"pps",
|
|
44
|
-
"mpp",
|
|
45
|
-
"rtf",
|
|
46
|
-
"psd",
|
|
47
|
-
"csv",
|
|
48
|
-
"mmap",
|
|
49
|
-
"ofd"
|
|
50
|
-
];
|
|
51
|
-
export {
|
|
52
|
-
p as f
|
|
53
|
-
};
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { resolveComponent as g, openBlock as n, createElementBlock as r, normalizeClass as y, withDirectives as m, createElementVNode as o, vShow as u, createTextVNode as c, toDisplayString as i, createBlock as w, withCtx as s, createCommentVNode as a, Fragment as B, renderList as C } from "vue";
|
|
2
|
-
import { _ as v } from "./install-C-scqkds.js";
|
|
3
|
-
const F = {
|
|
4
|
-
name: "formItemTop",
|
|
5
|
-
props: {
|
|
6
|
-
//组件对象
|
|
7
|
-
column: { type: Object },
|
|
8
|
-
dataBack: { type: Object }
|
|
9
|
-
}
|
|
10
|
-
}, S = { class: "w-color-red w-font-more" };
|
|
11
|
-
function U(d, t, e, I, h, k) {
|
|
12
|
-
const l = g("el-popover");
|
|
13
|
-
return n(), r("div", {
|
|
14
|
-
class: y(["w-default-wrap BnSmartForm-title", { "w-color-red": e.column.error }])
|
|
15
|
-
}, [
|
|
16
|
-
m(o("span", S, "*", 512), [
|
|
17
|
-
[u, e.column.extraInfo.valueEmptyCheck == 1]
|
|
18
|
-
]),
|
|
19
|
-
c(" " + i(e.column.name) + " ", 1),
|
|
20
|
-
e.column.extraInfo.searchKey == 2 ? (n(), w(l, {
|
|
21
|
-
key: 0,
|
|
22
|
-
placement: "top-start",
|
|
23
|
-
width: 400,
|
|
24
|
-
trigger: "hover",
|
|
25
|
-
"show-arrow": !1
|
|
26
|
-
}, {
|
|
27
|
-
reference: s(() => [...t[0] || (t[0] = [
|
|
28
|
-
o("span", { class: "bnUIcon bnUIcon-fast w-color-orange w-font-weight w-cursor-pointer" }, null, -1)
|
|
29
|
-
])]),
|
|
30
|
-
default: s(() => [
|
|
31
|
-
t[1] || (t[1] = o("div", { class: "BnSmartForm-title-tip" }, " 拥有该标识的组件,会在手动修改值或输入框失去焦点后,触发第三方数据拉取,并将结果回填到对应的组件上。 ", -1))
|
|
32
|
-
]),
|
|
33
|
-
_: 1
|
|
34
|
-
})) : a("", !0),
|
|
35
|
-
e.dataBack && e.dataBack.key == e.column.columnCode ? (n(), w(l, {
|
|
36
|
-
key: 1,
|
|
37
|
-
placement: "top-start",
|
|
38
|
-
width: 400,
|
|
39
|
-
trigger: "hover",
|
|
40
|
-
"show-arrow": !1
|
|
41
|
-
}, {
|
|
42
|
-
reference: s(() => [...t[2] || (t[2] = [
|
|
43
|
-
o("span", { class: "bnUIcon bnUIcon-split w-color-blue w-font16 w-font-weight w-cursor-pointer" }, null, -1)
|
|
44
|
-
])]),
|
|
45
|
-
default: s(() => [
|
|
46
|
-
t[3] || (t[3] = o("div", { class: "BnSmartForm-title-tip" }, [
|
|
47
|
-
o("span", { class: "w-color-blue" }, "多层级数据"),
|
|
48
|
-
c(",通过拥有 "),
|
|
49
|
-
o("span", { class: "bnUIcon bnUIcon-fast w-color-orange" }),
|
|
50
|
-
c(" 标识的组件拉取到完整第三方数据后,以该组件为主键进行拆分,选择数据后,我们会整合回填到表单的其他字段中。 "),
|
|
51
|
-
o("span", { class: "w-color-orange" }, "例如:"),
|
|
52
|
-
c("通过订单号拉取到多个包裹,在这里选择包裹后,会自动将多笔包裹数据合并回填整个表单得到完整数据 ")
|
|
53
|
-
], -1))
|
|
54
|
-
]),
|
|
55
|
-
_: 1
|
|
56
|
-
})) : a("", !0)
|
|
57
|
-
], 2);
|
|
58
|
-
}
|
|
59
|
-
const R = /* @__PURE__ */ v(F, [["render", U], ["__scopeId", "data-v-2ae0a737"]]), E = {
|
|
60
|
-
name: "formItemFooter",
|
|
61
|
-
props: {
|
|
62
|
-
//组件对象
|
|
63
|
-
column: { type: Object },
|
|
64
|
-
extraInfo: Object
|
|
65
|
-
}
|
|
66
|
-
}, j = { class: "w-default-wrap" }, O = { class: "w-default-wrap BnSmartForm-tips" }, N = {
|
|
67
|
-
key: 0,
|
|
68
|
-
class: "w-default-wrap BnSmartForm-explain"
|
|
69
|
-
}, P = {
|
|
70
|
-
key: 1,
|
|
71
|
-
class: "w-default-wrap w-margin-top8 w-flex-wrap w-flex-gap8"
|
|
72
|
-
};
|
|
73
|
-
function T(d, t, e, I, h, k) {
|
|
74
|
-
var f, p, _;
|
|
75
|
-
const l = g("el-image");
|
|
76
|
-
return n(), r("div", j, [
|
|
77
|
-
o("div", O, [
|
|
78
|
-
m(o("span", { class: "w-font-min w-color-red" }, i(e.column.error), 513), [
|
|
79
|
-
[u, e.column.error]
|
|
80
|
-
]),
|
|
81
|
-
m(o("span", { class: "w-font-min w-color-orange" }, i(e.column.warning), 513), [
|
|
82
|
-
[u, e.column.warning && !e.column.error]
|
|
83
|
-
]),
|
|
84
|
-
e.extraInfo && e.extraInfo.isCheckRepeat && e.column.warning && e.column.warning.includes("相同") ? (n(), r("span", {
|
|
85
|
-
key: 0,
|
|
86
|
-
class: "w-font-min w-color-blue w-cursor-pointer",
|
|
87
|
-
onClick: t[0] || (t[0] = (x) => d.$emit("operate", this.column, "chooseRepeat"))
|
|
88
|
-
}, "查看")) : a("", !0)
|
|
89
|
-
]),
|
|
90
|
-
(f = e.column.extraInfo) != null && f.paraExplain ? (n(), r("div", N, i(e.column.extraInfo.paraExplain), 1)) : a("", !0),
|
|
91
|
-
((_ = (p = e.column.extraInfo) == null ? void 0 : p.operationPictures) == null ? void 0 : _.length) > 0 ? (n(), r("div", P, [
|
|
92
|
-
(n(!0), r(B, null, C(e.column.extraInfo.operationPictures, (x, b) => (n(), w(l, {
|
|
93
|
-
"preview-teleported": "",
|
|
94
|
-
style: { width: "46px", height: "46px" },
|
|
95
|
-
src: x,
|
|
96
|
-
"preview-src-list": e.column.extraInfo.operationPictures,
|
|
97
|
-
"show-progress": "",
|
|
98
|
-
"initial-index": b,
|
|
99
|
-
fit: "cover"
|
|
100
|
-
}, null, 8, ["src", "preview-src-list", "initial-index"]))), 256))
|
|
101
|
-
])) : a("", !0)
|
|
102
|
-
]);
|
|
103
|
-
}
|
|
104
|
-
const z = /* @__PURE__ */ v(E, [["render", T], ["__scopeId", "data-v-101622e9"]]);
|
|
105
|
-
export {
|
|
106
|
-
R as a,
|
|
107
|
-
z as f
|
|
108
|
-
};
|
package/dist/formItemFooter.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.BnSmartForm-title[data-v-2ae0a737]{height:32px;line-height:32px;font-size:14px;color:#666}.BnSmartForm-title-tip[data-v-2ae0a737]{font-size:12px;color:#777}.BnSmartForm-explain[data-v-2ae0a737]{margin-top:5px;color:#888;font-size:12px}.BnSmartForm-img[data-v-2ae0a737]{margin-top:8px}.BnSmartForm-img-item[data-v-2ae0a737]{display:inline-block;width:46px;height:46px;margin-right:8px;border-radius:4px;border:1px solid #E6E6E6}.BnSmartForm-img-item img[data-v-2ae0a737]{width:100%;height:100%;border-radius:4px}.BnSmartForm-tips[data-v-2ae0a737]{line-height:32px;font-size:12px}.BnSmartForm-title[data-v-101622e9]{height:32px;line-height:32px;font-size:14px;color:#666}.BnSmartForm-title-tip[data-v-101622e9]{font-size:12px;color:#777}.BnSmartForm-explain[data-v-101622e9]{margin-top:5px;color:#888;font-size:12px}.BnSmartForm-img[data-v-101622e9]{margin-top:8px}.BnSmartForm-img-item[data-v-101622e9]{display:inline-block;width:46px;height:46px;margin-right:8px;border-radius:4px;border:1px solid #E6E6E6}.BnSmartForm-img-item img[data-v-101622e9]{width:100%;height:100%;border-radius:4px}.BnSmartForm-tips[data-v-101622e9]{line-height:32px;font-size:12px}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { resolveComponent as i, openBlock as c, createBlock as f, withCtx as n, createCommentVNode as v, createElementVNode as r, createVNode as a, createTextVNode as u } from "vue";
|
|
2
|
-
import { _ as I } from "./install-C-scqkds.js";
|
|
3
|
-
const _ = {
|
|
4
|
-
name: "funcExprDialog",
|
|
5
|
-
props: {
|
|
6
|
-
//最终选中的value
|
|
7
|
-
modelValue: {
|
|
8
|
-
type: Object,
|
|
9
|
-
default() {
|
|
10
|
-
return {};
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
componentList: Array,
|
|
14
|
-
tableCode: String,
|
|
15
|
-
postFunc: Function,
|
|
16
|
-
extendPost: Object
|
|
17
|
-
},
|
|
18
|
-
computed: {
|
|
19
|
-
columnInfo: {
|
|
20
|
-
get() {
|
|
21
|
-
return this.modelValue;
|
|
22
|
-
},
|
|
23
|
-
set(t) {
|
|
24
|
-
this.$emit("update:modelValue", t);
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
columnList() {
|
|
28
|
-
let t = [];
|
|
29
|
-
return this.componentList.forEach((e) => {
|
|
30
|
-
let l = { id: e.id, behaviorType: e.behaviorType, name: e.name };
|
|
31
|
-
if (e.behaviorType === 13) {
|
|
32
|
-
const d = e.moduleDefinition.map((o) => ({
|
|
33
|
-
id: o.id,
|
|
34
|
-
behaviorType: o.behaviorType,
|
|
35
|
-
name: `${e.name}-${o.name}`,
|
|
36
|
-
parentId: e.id,
|
|
37
|
-
parentName: e.name
|
|
38
|
-
}));
|
|
39
|
-
t.push(...d);
|
|
40
|
-
} else
|
|
41
|
-
t.push(l);
|
|
42
|
-
}), [
|
|
43
|
-
{
|
|
44
|
-
name: "工作表组件",
|
|
45
|
-
children: t
|
|
46
|
-
}
|
|
47
|
-
];
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
data() {
|
|
51
|
-
return {
|
|
52
|
-
visible: !1,
|
|
53
|
-
loading: !1
|
|
54
|
-
};
|
|
55
|
-
},
|
|
56
|
-
methods: {
|
|
57
|
-
open() {
|
|
58
|
-
this.loading = !1, this.visible = !0;
|
|
59
|
-
},
|
|
60
|
-
submitForm() {
|
|
61
|
-
this.loading = !0;
|
|
62
|
-
const t = this.$refs.bnFunExpr.saveRule();
|
|
63
|
-
if (!t.exprDisplay) {
|
|
64
|
-
this.columnInfo.extraInfo.exprId = "", this.columnInfo.extraInfo.exprExec = "", this.$emit("saveOver", ""), this.visible = !1;
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
this.postFunc(
|
|
68
|
-
"/expr/create",
|
|
69
|
-
{ ...t, ...this.extendPost }
|
|
70
|
-
).then((e) => {
|
|
71
|
-
this.loading = !1, e.code || (this.$emit("saveOver", t.exprDisplay), this.columnInfo.extraInfo.exprId = e.data.id, this.columnInfo.extraInfo.exprExec = e.data.exprExec, (this.columnInfo.id == 6 || this.columnInfo.columnCode == "task_title") && (this.columnInfo.extraInfo.isAutoTitle = "1", this.columnInfo.extraInfo.autoTitleRule = ""), this.visible = !1);
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}, g = { class: "dialog-footer" };
|
|
76
|
-
function y(t, e, l, d, o, s) {
|
|
77
|
-
const h = i("BnFunExpr"), x = i("el-link"), p = i("el-button"), b = i("el-dialog");
|
|
78
|
-
return c(), f(b, {
|
|
79
|
-
modelValue: o.visible,
|
|
80
|
-
"onUpdate:modelValue": e[1] || (e[1] = (m) => o.visible = m),
|
|
81
|
-
title: "编辑函数",
|
|
82
|
-
top: "5vh",
|
|
83
|
-
"close-on-click-modal": !1,
|
|
84
|
-
width: "900",
|
|
85
|
-
"destroy-on-close": !0,
|
|
86
|
-
"append-to-body": ""
|
|
87
|
-
}, {
|
|
88
|
-
footer: n(() => [
|
|
89
|
-
r("div", g, [
|
|
90
|
-
r("div", null, [
|
|
91
|
-
a(x, {
|
|
92
|
-
type: "primary",
|
|
93
|
-
href: "https://banniu.yuque.com/staff-dmhmqa/zn9sih/mgcoi8ogkyvew7gt?singleDoc# ",
|
|
94
|
-
target: "_blank"
|
|
95
|
-
}, {
|
|
96
|
-
default: n(() => [...e[2] || (e[2] = [
|
|
97
|
-
u("使用手册 ", -1)
|
|
98
|
-
])]),
|
|
99
|
-
_: 1
|
|
100
|
-
})
|
|
101
|
-
]),
|
|
102
|
-
r("div", null, [
|
|
103
|
-
a(p, {
|
|
104
|
-
onClick: e[0] || (e[0] = (m) => o.visible = !1)
|
|
105
|
-
}, {
|
|
106
|
-
default: n(() => [...e[3] || (e[3] = [
|
|
107
|
-
u("取消", -1)
|
|
108
|
-
])]),
|
|
109
|
-
_: 1
|
|
110
|
-
}),
|
|
111
|
-
a(p, {
|
|
112
|
-
type: "primary",
|
|
113
|
-
loading: o.loading,
|
|
114
|
-
onClick: s.submitForm
|
|
115
|
-
}, {
|
|
116
|
-
default: n(() => [...e[4] || (e[4] = [
|
|
117
|
-
u("确认", -1)
|
|
118
|
-
])]),
|
|
119
|
-
_: 1
|
|
120
|
-
}, 8, ["loading", "onClick"])
|
|
121
|
-
])
|
|
122
|
-
])
|
|
123
|
-
]),
|
|
124
|
-
default: n(() => [
|
|
125
|
-
o.visible ? (c(), f(h, {
|
|
126
|
-
key: 0,
|
|
127
|
-
id: s.columnInfo.extraInfo.exprId,
|
|
128
|
-
"column-list": s.columnList,
|
|
129
|
-
ref: "bnFunExpr",
|
|
130
|
-
"post-func": l.postFunc
|
|
131
|
-
}, null, 8, ["id", "column-list", "post-func"])) : v("", !0)
|
|
132
|
-
]),
|
|
133
|
-
_: 1
|
|
134
|
-
}, 8, ["modelValue"]);
|
|
135
|
-
}
|
|
136
|
-
const F = /* @__PURE__ */ I(_, [["render", y], ["__scopeId", "data-v-d954db8c"]]);
|
|
137
|
-
export {
|
|
138
|
-
F as default
|
|
139
|
-
};
|
package/dist/funcExprDialog.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.dialog-footer[data-v-d954db8c]{display:flex;justify-content:space-between;position:relative}
|
package/dist/index-B6b4uj8v.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { a as f, f as _ } from "./formItemFooter-CTA7rDtV.js";
|
|
2
|
-
import { resolveComponent as n, openBlock as o, createElementBlock as t, createVNode as a, createElementVNode as p, Fragment as h, renderList as v, createCommentVNode as F } from "vue";
|
|
3
|
-
import { _ as g } from "./install-C-scqkds.js";
|
|
4
|
-
const V = {
|
|
5
|
-
name: "radioForm",
|
|
6
|
-
components: { formItemFooter: _, formItemTop: f },
|
|
7
|
-
props: {
|
|
8
|
-
column: {
|
|
9
|
-
type: Object,
|
|
10
|
-
default: function() {
|
|
11
|
-
return {};
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
disabled: Boolean
|
|
15
|
-
},
|
|
16
|
-
methods: {
|
|
17
|
-
changeVal() {
|
|
18
|
-
this.column.error = "", this.column.warning = "", this.$emit("onChange", this.column);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}, w = { class: "w-default-wrap radioForm" }, I = { class: "w-default-wrap clearFix" }, b = {
|
|
22
|
-
key: 0,
|
|
23
|
-
class: "w-default-wrap radioForm-empty"
|
|
24
|
-
};
|
|
25
|
-
function x(B, l, e, C, k, m) {
|
|
26
|
-
const r = n("formItemTop"), c = n("BnRadio"), d = n("formItemFooter");
|
|
27
|
-
return o(), t("div", w, [
|
|
28
|
-
a(r, { column: e.column }, null, 8, ["column"]),
|
|
29
|
-
p("div", I, [
|
|
30
|
-
(o(!0), t(h, null, v(e.column.moduleDefinition, (i, u) => (o(), t("div", {
|
|
31
|
-
class: "radioForm-item",
|
|
32
|
-
key: u
|
|
33
|
-
}, [
|
|
34
|
-
a(c, {
|
|
35
|
-
modelValue: e.column.value,
|
|
36
|
-
"onUpdate:modelValue": l[0] || (l[0] = (s) => e.column.value = s),
|
|
37
|
-
optionProps: { value: "code", label: "title" },
|
|
38
|
-
disabled: e.disabled,
|
|
39
|
-
trueData: i,
|
|
40
|
-
onChange: m.changeVal
|
|
41
|
-
}, null, 8, ["modelValue", "disabled", "trueData", "onChange"])
|
|
42
|
-
]))), 128)),
|
|
43
|
-
e.column.moduleDefinition.length == 0 ? (o(), t("div", b, " 无数据 ")) : F("", !0)
|
|
44
|
-
]),
|
|
45
|
-
a(d, { column: e.column }, null, 8, ["column"])
|
|
46
|
-
]);
|
|
47
|
-
}
|
|
48
|
-
const T = /* @__PURE__ */ g(V, [["render", x], ["__scopeId", "data-v-7a529164"]]);
|
|
49
|
-
export {
|
|
50
|
-
T as default
|
|
51
|
-
};
|
package/dist/index-BWdkDTbz.js
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { isEmpty as u } from "lodash";
|
|
2
|
-
import { resolveComponent as m, resolveDirective as f, withDirectives as h, openBlock as i, createElementBlock as n, createElementVNode as a, Fragment as g, renderList as _, normalizeClass as y, toDisplayString as F, createVNode as k } from "vue";
|
|
3
|
-
import { _ as v } from "./install-C-scqkds.js";
|
|
4
|
-
const x = {
|
|
5
|
-
name: "packageFilter",
|
|
6
|
-
computed: {
|
|
7
|
-
filterColumns() {
|
|
8
|
-
return this.columnList.filter((t) => this.columnData.extraInfo.filterColumn.includes(t.columnCode));
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
props: {
|
|
12
|
-
columnData: {
|
|
13
|
-
type: Object,
|
|
14
|
-
default: () => ({})
|
|
15
|
-
},
|
|
16
|
-
postFunc: Function,
|
|
17
|
-
// API请求函数
|
|
18
|
-
extendPost: Object,
|
|
19
|
-
// 额外的请求参数
|
|
20
|
-
columnList: {
|
|
21
|
-
type: Array,
|
|
22
|
-
default: () => []
|
|
23
|
-
},
|
|
24
|
-
disabled: Boolean
|
|
25
|
-
},
|
|
26
|
-
data() {
|
|
27
|
-
return {
|
|
28
|
-
dataFilterByPackage: {},
|
|
29
|
-
lazyLoad: !1,
|
|
30
|
-
//因为下拉菜单多的时候可能会影响加载速度,这里做个延迟加载
|
|
31
|
-
componentWidth: 0
|
|
32
|
-
// 组件宽度
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
mounted() {
|
|
36
|
-
var t, o;
|
|
37
|
-
this.dataFilterByPackage = (t = this.columnData.extraInfo) != null && t.dataFilterByPackage ? JSON.parse((o = this.columnData.extraInfo) == null ? void 0 : o.dataFilterByPackage) : {}, this.calculateWidth(), this.filterColumns.length > 4 ? setTimeout(() => {
|
|
38
|
-
this.lazyLoad = !0;
|
|
39
|
-
}, 200) : this.lazyLoad = !0;
|
|
40
|
-
},
|
|
41
|
-
methods: {
|
|
42
|
-
isEmpty: u,
|
|
43
|
-
/**
|
|
44
|
-
* 计算组件宽度
|
|
45
|
-
*/
|
|
46
|
-
calculateWidth() {
|
|
47
|
-
this.$nextTick(() => {
|
|
48
|
-
const t = this.$el;
|
|
49
|
-
t && (this.componentWidth = t.offsetWidth);
|
|
50
|
-
});
|
|
51
|
-
},
|
|
52
|
-
/**
|
|
53
|
-
* 滚动到列表底部
|
|
54
|
-
*/
|
|
55
|
-
changeDataFilter() {
|
|
56
|
-
this.columnData.extraInfo.dataFilterByPackage = JSON.stringify(this.dataFilterByPackage);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}, B = { class: "packageFilter" }, w = {
|
|
60
|
-
key: 0,
|
|
61
|
-
class: "packageFilter-list",
|
|
62
|
-
ref: "optionList"
|
|
63
|
-
}, D = ["title"], C = { class: "w-flex-center" }, P = {
|
|
64
|
-
key: 1,
|
|
65
|
-
class: "w-empty"
|
|
66
|
-
};
|
|
67
|
-
function b(t, o, c, L, l, s) {
|
|
68
|
-
const r = m("BnSelect"), d = f("loading");
|
|
69
|
-
return h((i(), n("div", B, [
|
|
70
|
-
o[0] || (o[0] = a("div", { class: "packageFilter-top w-flex-center" }, [
|
|
71
|
-
a("div", { class: "packageFilter-top-title" }, "数据过滤"),
|
|
72
|
-
a("div", { class: "w-margin-left8" }, [
|
|
73
|
-
a("span", { class: "w-font12 w-color-orange" }, "(选择包裹时,不会展示符合下方条件的ERP单据)")
|
|
74
|
-
])
|
|
75
|
-
], -1)),
|
|
76
|
-
l.lazyLoad ? (i(), n("div", w, [
|
|
77
|
-
(i(!0), n(g, null, _(s.filterColumns, (e) => (i(), n("div", {
|
|
78
|
-
class: y(["packageFilter-list-item", [l.componentWidth > 400 ? "two" : "one"]])
|
|
79
|
-
}, [
|
|
80
|
-
a("div", {
|
|
81
|
-
class: "w-font14 w-color-black6 w-text-over w-margin-bottom4",
|
|
82
|
-
title: e.name
|
|
83
|
-
}, F(e.name), 9, D),
|
|
84
|
-
a("div", C, [
|
|
85
|
-
k(r, {
|
|
86
|
-
modelValue: l.dataFilterByPackage[e.columnCode],
|
|
87
|
-
"onUpdate:modelValue": (p) => l.dataFilterByPackage[e.columnCode] = p,
|
|
88
|
-
clearable: "",
|
|
89
|
-
filterable: "",
|
|
90
|
-
labelInValue: !1,
|
|
91
|
-
onChange: s.changeDataFilter,
|
|
92
|
-
optionProps: { value: "code", label: "title" },
|
|
93
|
-
multiple: !0,
|
|
94
|
-
options: e.moduleDefinition,
|
|
95
|
-
pathUrl: e.pathUrl,
|
|
96
|
-
"post-data": e.postData,
|
|
97
|
-
postFunc: c.postFunc
|
|
98
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange", "options", "pathUrl", "post-data", "postFunc"])
|
|
99
|
-
])
|
|
100
|
-
], 2))), 256))
|
|
101
|
-
], 512)) : (i(), n("div", P, " 数据加载中... "))
|
|
102
|
-
])), [
|
|
103
|
-
[d, !l.lazyLoad]
|
|
104
|
-
]);
|
|
105
|
-
}
|
|
106
|
-
const W = /* @__PURE__ */ v(x, [["render", b], ["__scopeId", "data-v-a92dc360"]]);
|
|
107
|
-
export {
|
|
108
|
-
W as default
|
|
109
|
-
};
|
package/dist/index-BdZ1zOap.js
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { debounce as h } from "lodash";
|
|
2
|
-
import { f, a as _ } from "./formItemFooter-CTA7rDtV.js";
|
|
3
|
-
import { B as p } from "./index-DzDf9s2W.js";
|
|
4
|
-
import { resolveComponent as l, openBlock as C, createElementBlock as F, createVNode as u, createElementVNode as s } from "vue";
|
|
5
|
-
import { _ as B } from "./install-C-scqkds.js";
|
|
6
|
-
const b = {
|
|
7
|
-
name: "addressForm",
|
|
8
|
-
components: { BnAddressParse: p, formItemTop: _, formItemFooter: f },
|
|
9
|
-
props: {
|
|
10
|
-
column: Object,
|
|
11
|
-
disabled: Boolean,
|
|
12
|
-
postFunc: Function
|
|
13
|
-
},
|
|
14
|
-
methods: {
|
|
15
|
-
/**
|
|
16
|
-
* 输入框输入事件
|
|
17
|
-
* */
|
|
18
|
-
onInput(n) {
|
|
19
|
-
this.column.error = "", this.column.warning = "", this.$emit("onInput", this.column), this.onChange(n);
|
|
20
|
-
},
|
|
21
|
-
/**
|
|
22
|
-
* 输入框Change事件
|
|
23
|
-
* @param {String} type 是否是其他事件类型
|
|
24
|
-
* */
|
|
25
|
-
onChange: h(function(n, e) {
|
|
26
|
-
this.column.error = "", this.column.warning = "", this.$emit("onChange", this.column);
|
|
27
|
-
}, 600),
|
|
28
|
-
/**
|
|
29
|
-
* 输入框onFocus事件
|
|
30
|
-
* */
|
|
31
|
-
onFocus(n) {
|
|
32
|
-
this.$emit("focus", this.column);
|
|
33
|
-
},
|
|
34
|
-
/**
|
|
35
|
-
* 输入框失去焦点事件
|
|
36
|
-
* */
|
|
37
|
-
onBlur() {
|
|
38
|
-
this.$emit("blur", this.column);
|
|
39
|
-
},
|
|
40
|
-
/**
|
|
41
|
-
*自动识别
|
|
42
|
-
* */
|
|
43
|
-
autoParse(n) {
|
|
44
|
-
this.column.value[this.column.moduleDefinition[0].columnCode] = n.address, this.column.value[this.column.moduleDefinition[1].columnCode] = n.detail || "", this.onChange();
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}, w = { class: "w-default-wrap" }, g = { class: "w-default-wrap w-margin-bottom10" }, v = { class: "w-default-wrap" };
|
|
48
|
-
function I(n, e, o, V, D, t) {
|
|
49
|
-
const c = l("formItemTop"), a = l("BnAddressParse"), d = l("BnAddress"), i = l("el-input"), r = l("formItemFooter");
|
|
50
|
-
return C(), F("div", w, [
|
|
51
|
-
u(c, { column: o.column }, null, 8, ["column"]),
|
|
52
|
-
u(a, {
|
|
53
|
-
onParse: t.autoParse,
|
|
54
|
-
"post-func": o.postFunc
|
|
55
|
-
}, null, 8, ["onParse", "post-func"]),
|
|
56
|
-
s("div", g, [
|
|
57
|
-
u(d, {
|
|
58
|
-
modelValue: o.column.value[o.column.moduleDefinition[0].columnCode],
|
|
59
|
-
"onUpdate:modelValue": e[0] || (e[0] = (m) => o.column.value[o.column.moduleDefinition[0].columnCode] = m),
|
|
60
|
-
postFunc: o.postFunc,
|
|
61
|
-
onChange: t.onChange,
|
|
62
|
-
"value-key": "code",
|
|
63
|
-
pathUrl: o.column.pathUrl || "/address/getAreaDataList",
|
|
64
|
-
disabled: o.disabled
|
|
65
|
-
}, null, 8, ["modelValue", "postFunc", "onChange", "pathUrl", "disabled"])
|
|
66
|
-
]),
|
|
67
|
-
s("div", v, [
|
|
68
|
-
u(i, {
|
|
69
|
-
modelValue: o.column.value[o.column.moduleDefinition[1].columnCode],
|
|
70
|
-
"onUpdate:modelValue": e[1] || (e[1] = (m) => o.column.value[o.column.moduleDefinition[1].columnCode] = m),
|
|
71
|
-
type: "textarea",
|
|
72
|
-
rows: 3,
|
|
73
|
-
disabled: o.disabled,
|
|
74
|
-
resize: "none",
|
|
75
|
-
placeholder: "输入详细地址",
|
|
76
|
-
onInput: t.onInput,
|
|
77
|
-
onFocus: t.onFocus,
|
|
78
|
-
onBlur: t.onBlur,
|
|
79
|
-
clearable: "",
|
|
80
|
-
"show-word-limit": ""
|
|
81
|
-
}, null, 8, ["modelValue", "disabled", "onInput", "onFocus", "onBlur"])
|
|
82
|
-
]),
|
|
83
|
-
u(r, { column: o.column }, null, 8, ["column"])
|
|
84
|
-
]);
|
|
85
|
-
}
|
|
86
|
-
const y = /* @__PURE__ */ B(b, [["render", I]]);
|
|
87
|
-
export {
|
|
88
|
-
y as default
|
|
89
|
-
};
|
package/dist/index-BdzNjjMC.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { a as i, f as s } from "./formItemFooter-CTA7rDtV.js";
|
|
2
|
-
import { resolveComponent as o, openBlock as d, createElementBlock as r, createVNode as t, createElementVNode as f } from "vue";
|
|
3
|
-
import { _ as p } from "./install-C-scqkds.js";
|
|
4
|
-
const h = {
|
|
5
|
-
name: "editSelectCol",
|
|
6
|
-
components: { formItemFooter: s, formItemTop: i },
|
|
7
|
-
props: {
|
|
8
|
-
column: {
|
|
9
|
-
type: Object,
|
|
10
|
-
default: function() {
|
|
11
|
-
return {};
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
disabled: Boolean,
|
|
15
|
-
// 接口请求外部转发
|
|
16
|
-
postFunc: Function,
|
|
17
|
-
// 表级别扩展信息
|
|
18
|
-
extraInfo: {
|
|
19
|
-
type: Object,
|
|
20
|
-
default: function() {
|
|
21
|
-
return {};
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
taskId: {}
|
|
25
|
-
},
|
|
26
|
-
methods: {
|
|
27
|
-
/**
|
|
28
|
-
* 组件值发生变化
|
|
29
|
-
* */
|
|
30
|
-
changeValue() {
|
|
31
|
-
this.column.error = "", this.column.warning = "", this.$emit("onChange", this.column);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}, _ = { class: "w-default-wrap" }, g = { class: "w-default-wrap" };
|
|
35
|
-
function I(b, n, e, x, F, l) {
|
|
36
|
-
const a = o("formItemTop"), c = o("BnSelect"), m = o("formItemFooter");
|
|
37
|
-
return d(), r("div", _, [
|
|
38
|
-
t(a, { column: e.column }, null, 8, ["column"]),
|
|
39
|
-
f("div", g, [
|
|
40
|
-
t(c, {
|
|
41
|
-
modelValue: e.column.value,
|
|
42
|
-
"onUpdate:modelValue": n[0] || (n[0] = (u) => e.column.value = u),
|
|
43
|
-
options: e.column.moduleDefinition,
|
|
44
|
-
multiple: e.column.behaviorType == 5,
|
|
45
|
-
disabled: e.disabled || !e.taskId && e.extraInfo.isAutoAssign == 1 && e.column.columnCode == "executor",
|
|
46
|
-
optionProps: { value: "code", label: "title" },
|
|
47
|
-
pageProps: { pageNum: "pageNo", pageSize: "pageSize" },
|
|
48
|
-
pathUrl: e.column.pathUrl,
|
|
49
|
-
postData: e.column.postData,
|
|
50
|
-
postFunc: e.postFunc,
|
|
51
|
-
placeholder: !e.taskId && e.extraInfo.isAutoAssign && e.column.columnCode == "executor" ? "已开启自动分配" : "请选择",
|
|
52
|
-
clearable: "",
|
|
53
|
-
collapseTags: !1,
|
|
54
|
-
filterable: "",
|
|
55
|
-
onChange: l.changeValue
|
|
56
|
-
}, null, 8, ["modelValue", "options", "multiple", "disabled", "pathUrl", "postData", "postFunc", "placeholder", "onChange"])
|
|
57
|
-
]),
|
|
58
|
-
t(m, { column: e.column }, null, 8, ["column"])
|
|
59
|
-
]);
|
|
60
|
-
}
|
|
61
|
-
const k = /* @__PURE__ */ p(h, [["render", I]]);
|
|
62
|
-
export {
|
|
63
|
-
k as default
|
|
64
|
-
};
|
package/dist/index-BfpZqab2.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { a as m, f as s } from "./formItemFooter-CTA7rDtV.js";
|
|
2
|
-
import { resolveComponent as n, openBlock as d, createElementBlock as f, createVNode as l, createElementVNode as p } from "vue";
|
|
3
|
-
import { _ as h } from "./install-C-scqkds.js";
|
|
4
|
-
const _ = {
|
|
5
|
-
name: "relationForm",
|
|
6
|
-
components: { formItemFooter: s, formItemTop: m },
|
|
7
|
-
props: {
|
|
8
|
-
column: {
|
|
9
|
-
type: Object,
|
|
10
|
-
default: function() {
|
|
11
|
-
return {};
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
disabled: Boolean,
|
|
15
|
-
// 接口请求外部转发
|
|
16
|
-
postFunc: Function
|
|
17
|
-
},
|
|
18
|
-
computed: {
|
|
19
|
-
/**
|
|
20
|
-
* 过滤后的选项列表,只保留columnStatus等于1的项
|
|
21
|
-
*/
|
|
22
|
-
filteredOptions() {
|
|
23
|
-
if (!this.column.moduleDefinition || !this.column.moduleDefinition.optionList)
|
|
24
|
-
return [];
|
|
25
|
-
const o = (t) => Array.isArray(t) ? t.filter((e) => e.columnStatus != 1 ? !1 : (e.children && Array.isArray(e.children) && (e.children = o(e.children)), !0)) : [];
|
|
26
|
-
return o(this.column.moduleDefinition.optionList);
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
methods: {
|
|
30
|
-
/**
|
|
31
|
-
* 组件值发生变化
|
|
32
|
-
* */
|
|
33
|
-
changeValue() {
|
|
34
|
-
this.column.error = "", this.column.warning = "", this.$emit("onChange", this.column);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}, b = { class: "w-default-wrap" }, F = { class: "w-default-wrap" };
|
|
38
|
-
function v(o, t, e, V, g, r) {
|
|
39
|
-
const a = n("formItemTop"), i = n("BnCascader"), c = n("formItemFooter");
|
|
40
|
-
return d(), f("div", b, [
|
|
41
|
-
l(a, { column: e.column }, null, 8, ["column"]),
|
|
42
|
-
p("div", F, [
|
|
43
|
-
l(i, {
|
|
44
|
-
onChange: r.changeValue,
|
|
45
|
-
modelValue: e.column.value,
|
|
46
|
-
"onUpdate:modelValue": t[0] || (t[0] = (u) => e.column.value = u),
|
|
47
|
-
postFunc: e.postFunc,
|
|
48
|
-
"path-url": e.column.pathUrl,
|
|
49
|
-
"post-data": e.column.postData,
|
|
50
|
-
"remote-mode": "tree",
|
|
51
|
-
optionProps: { value: "code", label: "title" },
|
|
52
|
-
"label-in-value": !1,
|
|
53
|
-
options: r.filteredOptions,
|
|
54
|
-
"hide-check-to-last": "",
|
|
55
|
-
multiple: e.column.behaviorType == 20,
|
|
56
|
-
disabled: e.disabled,
|
|
57
|
-
clearable: ""
|
|
58
|
-
}, null, 8, ["onChange", "modelValue", "postFunc", "path-url", "post-data", "options", "multiple", "disabled"])
|
|
59
|
-
]),
|
|
60
|
-
l(c, { column: e.column }, null, 8, ["column"])
|
|
61
|
-
]);
|
|
62
|
-
}
|
|
63
|
-
const w = /* @__PURE__ */ h(_, [["render", v]]);
|
|
64
|
-
export {
|
|
65
|
-
w as default
|
|
66
|
-
};
|