@bytenew/bn-bus-ui 1.1.443 → 1.1.445
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/README.md +637 -637
- package/common.scss +841 -841
- package/dist/{assocTableSearch-wWHJAEoc.js → assocTableSearch-BdJZwkIo.js} +8 -8
- package/dist/assocTableSearch.css +1 -1
- package/dist/bn-bus-ui.es.js +46 -47
- package/dist/bn-bus-ui.umd.js +35 -35
- package/dist/{chooseIPaasData-BKN3tJOL.js → chooseIPaasData-BqXMfPqI.js} +28 -28
- package/dist/chooseIPaasData.css +1 -1
- package/dist/{defaultSet-DSHHKS-E.js → defaultSet-j1QYjMD4.js} +86 -111
- package/dist/defaultSet.css +1 -1
- package/dist/{formItemFooter-CUO7lN3y.js → formItemFooter-CWaCSFIt.js} +3 -3
- package/dist/formItemFooter.css +1 -1
- package/dist/{funcExprDialog-CB0G7Adz.js → funcExprDialog-COxanKEf.js} +9 -9
- package/dist/funcExprDialog.css +1 -1
- package/dist/{index-CA5p03_X.js → index-8e9BxXuV.js} +162 -156
- package/dist/{index-CoRPuY-A.js → index-B-fCpph5.js} +3 -3
- package/dist/{index-Di4QUZGh.js → index-B1CCOEZh.js} +4 -4
- package/dist/{index-ikd6cc8K.js → index-B35rCAqR.js} +2 -2
- package/dist/{index-BVnrcrC7.js → index-BOWYSziY.js} +9 -9
- package/dist/{index-D6_A0LoJ.js → index-Bcs08vJH.js} +1 -1
- package/dist/{index-D-6pu0D0.js → index-Bf6PK4pL.js} +3 -3
- package/dist/{index-B8igHhBO.js → index-BicpKVoa.js} +2 -2
- package/dist/{index-DB919mNO.js → index-CKn4kcDL.js} +2 -2
- package/dist/{index-BovCPakD.js → index-COj1uXF9.js} +2 -2
- package/dist/{index-No0bAPly.js → index-CUoUi1U2.js} +2 -2
- package/dist/{index-D44Fmvmv.js → index-D1IDxBaB.js} +2 -2
- package/dist/{index-5Rq45Jg0.js → index-D2PjsTuk.js} +2 -2
- package/dist/{index-DOp91p3h.js → index-Dam-6pal.js} +3 -3
- package/dist/{index-Cijchf4-.js → index-DhLgKawG.js} +3 -3
- package/dist/{index-DaSFxdPn.js → index-DwRgK4h_.js} +2 -2
- package/dist/{index-CcPJgAeZ.js → index-Y9Dd4yKZ.js} +2 -2
- package/dist/index.css +1 -1
- package/dist/index2.css +1 -1
- package/dist/index3.css +1 -1
- package/dist/index4.css +1 -1
- package/dist/index5.css +1 -1
- package/dist/index6.css +1 -1
- package/dist/index7.css +1 -1
- package/dist/{install-CXQxMw8K.js → install-DaHu6xrB.js} +4385 -4634
- package/dist/install.css +1 -1
- package/dist/{setOption-Dy-OMm7l.js → setOption-Bvw99dqF.js} +2 -2
- package/dist/setOption.css +1 -1
- package/dist/{setRelationOption-C5kkv7gq.js → setRelationOption-BAvxn4RJ.js} +204 -204
- package/dist/setRelationOption.css +1 -1
- package/package.json +51 -51
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { debounce as V } from "lodash";
|
|
2
|
-
import { _ as
|
|
3
|
-
import { f as
|
|
4
|
-
import { resolveComponent as d, openBlock as i, createElementBlock as p, createElementVNode as r, createVNode as h, withCtx as u, createTextVNode as y, toDisplayString as
|
|
5
|
-
import { a as j, f as
|
|
6
|
-
const
|
|
2
|
+
import { _ as U, a3 as z, a0 as P } from "./install-DaHu6xrB.js";
|
|
3
|
+
import { f as $ } from "./fileFormData-D_Q1vylE.js";
|
|
4
|
+
import { resolveComponent as d, openBlock as i, createElementBlock as p, createElementVNode as r, createVNode as h, withCtx as u, createTextVNode as y, toDisplayString as I, withDirectives as x, vShow as Y, createCommentVNode as f, resolveDirective as M, createBlock as _, Fragment as S, renderList as T } from "vue";
|
|
5
|
+
import { a as j, f as H } from "./formItemFooter-CWaCSFIt.js";
|
|
6
|
+
const R = {
|
|
7
7
|
name: "childFormFile",
|
|
8
8
|
props: {
|
|
9
9
|
column: {
|
|
@@ -17,7 +17,7 @@ const H = {
|
|
|
17
17
|
},
|
|
18
18
|
data() {
|
|
19
19
|
return {
|
|
20
|
-
fileType: this.column.fileType ||
|
|
20
|
+
fileType: this.column.fileType || $,
|
|
21
21
|
pasteValue: "",
|
|
22
22
|
pasteImgList: [],
|
|
23
23
|
//用来存放粘贴的图片
|
|
@@ -37,20 +37,20 @@ const H = {
|
|
|
37
37
|
/**
|
|
38
38
|
* 上传成功
|
|
39
39
|
* */
|
|
40
|
-
fileSuccess(
|
|
41
|
-
if (this.column.error = "", this.uploadProgress = 0,
|
|
40
|
+
fileSuccess(a) {
|
|
41
|
+
if (this.column.error = "", this.uploadProgress = 0, a.code)
|
|
42
42
|
this.$message({
|
|
43
|
-
message:
|
|
43
|
+
message: a.msg,
|
|
44
44
|
type: "warning"
|
|
45
45
|
});
|
|
46
46
|
else {
|
|
47
47
|
const e = {
|
|
48
|
-
title:
|
|
49
|
-
id:
|
|
50
|
-
code:
|
|
51
|
-
size:
|
|
52
|
-
type:
|
|
53
|
-
url:
|
|
48
|
+
title: a.data.fileName,
|
|
49
|
+
id: a.data.id,
|
|
50
|
+
code: a.data.id,
|
|
51
|
+
size: a.data.fileSize,
|
|
52
|
+
type: a.data.suffix,
|
|
53
|
+
url: a.data.url
|
|
54
54
|
};
|
|
55
55
|
this.value.length < this.uploadFileNumber ? (this.value.push(e), this.$emit("onChange", this.column)) : this.$message({
|
|
56
56
|
message: `上传文件个数不能超过${this.uploadFileNumber}个`,
|
|
@@ -61,35 +61,35 @@ const H = {
|
|
|
61
61
|
/**
|
|
62
62
|
* 附件上传前
|
|
63
63
|
* */
|
|
64
|
-
beforeUpload(
|
|
64
|
+
beforeUpload(a) {
|
|
65
65
|
if (this.value.length >= this.uploadFileNumber)
|
|
66
66
|
return this.$message({
|
|
67
67
|
message: `上传文件个数不能超过${this.uploadFileNumber}个`,
|
|
68
68
|
type: "warning"
|
|
69
69
|
}), !1;
|
|
70
70
|
const e = 50, t = 1048576 * e;
|
|
71
|
-
if (
|
|
71
|
+
if (a.size > t)
|
|
72
72
|
return this.$message({
|
|
73
73
|
message: `上传文件大小不能超出${e}MB`,
|
|
74
74
|
type: "warning"
|
|
75
75
|
}), !1;
|
|
76
|
-
const m =
|
|
76
|
+
const m = a.name.split(".").pop().toLowerCase();
|
|
77
77
|
return this.fileType.includes(m) ? (this.uploadFileCount++, !0) : (this.$message({
|
|
78
78
|
message: "上传的文件格式不支持",
|
|
79
79
|
type: "warning"
|
|
80
80
|
}), !1);
|
|
81
81
|
},
|
|
82
|
-
handleUploadProgress(
|
|
83
|
-
this.uploadProgress = Math.round(
|
|
82
|
+
handleUploadProgress(a) {
|
|
83
|
+
this.uploadProgress = Math.round(a.percent);
|
|
84
84
|
},
|
|
85
85
|
//粘贴图片到编辑器,事件处理方法,主要用于事件销毁
|
|
86
|
-
pasteEvent(
|
|
86
|
+
pasteEvent(a) {
|
|
87
87
|
if (this.value.length >= this.uploadFileNumber)
|
|
88
88
|
return this.$message({
|
|
89
89
|
message: `上传文件个数不能超过${this.uploadFileNumber}个`,
|
|
90
90
|
type: "warning"
|
|
91
91
|
}), !1;
|
|
92
|
-
this.column.error = "", this.pasteImgList.push(
|
|
92
|
+
this.column.error = "", this.pasteImgList.push(a), z(a, this.column.pathUrl || this.uploadAction).then((e) => {
|
|
93
93
|
if (e.code)
|
|
94
94
|
this.$message({
|
|
95
95
|
message: e.msg,
|
|
@@ -120,21 +120,21 @@ const H = {
|
|
|
120
120
|
);
|
|
121
121
|
}
|
|
122
122
|
}, J = { class: "childFormFile" }, q = { class: "" }, K = { class: "childFormFile-tip" }, W = { key: 0 };
|
|
123
|
-
function X(
|
|
124
|
-
const
|
|
123
|
+
function X(a, e, t, m, c, l) {
|
|
124
|
+
const b = d("el-upload"), v = d("el-input"), g = d("el-progress"), w = d("BnFileView");
|
|
125
125
|
return i(), p("div", J, [
|
|
126
126
|
r("div", q, [
|
|
127
|
-
h(
|
|
127
|
+
h(b, {
|
|
128
128
|
class: "childFormFile-upload",
|
|
129
129
|
ref: "uploadInput",
|
|
130
130
|
drag: "",
|
|
131
131
|
action: t.column.pathUrl || c.uploadAction,
|
|
132
132
|
"show-file-list": !1,
|
|
133
|
-
"before-upload":
|
|
133
|
+
"before-upload": l.beforeUpload,
|
|
134
134
|
multiple: "",
|
|
135
135
|
data: c.uploadData,
|
|
136
|
-
"on-progress":
|
|
137
|
-
"on-success":
|
|
136
|
+
"on-progress": l.handleUploadProgress,
|
|
137
|
+
"on-success": l.fileSuccess
|
|
138
138
|
}, {
|
|
139
139
|
default: u(() => [...e[1] || (e[1] = [
|
|
140
140
|
r("div", { class: "childFormFile-btn" }, [
|
|
@@ -144,16 +144,16 @@ function X(o, e, t, m, c, n) {
|
|
|
144
144
|
])]),
|
|
145
145
|
_: 1
|
|
146
146
|
}, 8, ["action", "before-upload", "data", "on-progress", "on-success"]),
|
|
147
|
-
h(
|
|
147
|
+
h(v, {
|
|
148
148
|
modelValue: c.pasteValue,
|
|
149
149
|
"onUpdate:modelValue": e[0] || (e[0] = (F) => c.pasteValue = F),
|
|
150
150
|
ref: "fileUploadInput",
|
|
151
151
|
placeholder: "复制粘贴上传截图",
|
|
152
152
|
class: "childFormFile-input"
|
|
153
153
|
}, null, 8, ["modelValue"]),
|
|
154
|
-
r("span", K, "最多可上传" +
|
|
154
|
+
r("span", K, "最多可上传" + I(c.uploadFileNumber) + "个文件,单个文件不超过" + I(c.showLimit) + "M", 1)
|
|
155
155
|
]),
|
|
156
|
-
|
|
156
|
+
x(h(g, {
|
|
157
157
|
style: { width: "100%", "max-width": "444px" },
|
|
158
158
|
percentage: c.uploadProgress,
|
|
159
159
|
class: "childFormFile-progress"
|
|
@@ -169,7 +169,7 @@ function X(o, e, t, m, c, n) {
|
|
|
169
169
|
])) : f("", !0)
|
|
170
170
|
]);
|
|
171
171
|
}
|
|
172
|
-
const G = /* @__PURE__ */
|
|
172
|
+
const G = /* @__PURE__ */ U(R, [["render", X], ["__scopeId", "data-v-a1b3b6de"]]), Q = {
|
|
173
173
|
name: "searchInventory",
|
|
174
174
|
props: {
|
|
175
175
|
row: {},
|
|
@@ -186,8 +186,8 @@ const G = /* @__PURE__ */ x(H, [["render", X], ["__scopeId", "data-v-b5b06973"]]
|
|
|
186
186
|
};
|
|
187
187
|
},
|
|
188
188
|
beforeCreate() {
|
|
189
|
-
this.searchData = V(function(
|
|
190
|
-
this.loading || (this.headData = [], this.inventoryData = [], this.loading = !0, this.postFunc("/v2/elcStock/getStockInfoV2",
|
|
189
|
+
this.searchData = V(function(a) {
|
|
190
|
+
this.loading || (this.headData = [], this.inventoryData = [], this.loading = !0, this.postFunc("/v2/elcStock/getStockInfoV2", a).then((e) => {
|
|
191
191
|
if (this.loading = !1, !e.code && e.data) {
|
|
192
192
|
this.headData = e.data.arrayData[0], this.inventoryData = e.data.data;
|
|
193
193
|
const t = this.calculateTotalStock(this.inventoryData);
|
|
@@ -200,11 +200,11 @@ const G = /* @__PURE__ */ x(H, [["render", X], ["__scopeId", "data-v-b5b06973"]]
|
|
|
200
200
|
watch: {
|
|
201
201
|
// 只监听用于查询的特定字段,避免被自己修改的总库存字段触发
|
|
202
202
|
row: {
|
|
203
|
-
handler(
|
|
203
|
+
handler(a) {
|
|
204
204
|
var m;
|
|
205
205
|
const e = (m = this.column.extraInfo) == null ? void 0 : m.stockSearchColumnCode;
|
|
206
206
|
if (!e) return;
|
|
207
|
-
const t =
|
|
207
|
+
const t = a[e];
|
|
208
208
|
if (this.stockSearch !== t) {
|
|
209
209
|
this.stockSearch = t;
|
|
210
210
|
let c = {
|
|
@@ -223,18 +223,18 @@ const G = /* @__PURE__ */ x(H, [["render", X], ["__scopeId", "data-v-b5b06973"]]
|
|
|
223
223
|
* @param {Array} arr - 要遍历的数组,格式如:[{可发库存:10.0000}, {可发库存:10.00}]
|
|
224
224
|
* @returns {Number} 总和
|
|
225
225
|
*/
|
|
226
|
-
calculateTotalStock(
|
|
227
|
-
return !
|
|
226
|
+
calculateTotalStock(a) {
|
|
227
|
+
return !a || !Array.isArray(a) || a.length === 0 ? 0 : a.reduce((e, t) => {
|
|
228
228
|
const m = parseFloat(t.可发库存 || 0);
|
|
229
229
|
return e + (isNaN(m) ? 0 : m);
|
|
230
230
|
}, 0);
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
}, Z = { class: "inventory" };
|
|
234
|
-
function ee(
|
|
235
|
-
const
|
|
236
|
-
return
|
|
237
|
-
|
|
234
|
+
function ee(a, e, t, m, c, l) {
|
|
235
|
+
const b = d("vxe-column"), v = d("vxe-table"), g = M("loading");
|
|
236
|
+
return x((i(), p("div", Z, [
|
|
237
|
+
x((i(), _(v, {
|
|
238
238
|
ref: "assocTable",
|
|
239
239
|
border: "",
|
|
240
240
|
size: "small",
|
|
@@ -251,7 +251,7 @@ function ee(o, e, t, m, c, n) {
|
|
|
251
251
|
r("span", null, "未查到库存数据", -1)
|
|
252
252
|
])]),
|
|
253
253
|
default: u(() => [
|
|
254
|
-
(i(!0), p(S, null, T(c.headData, (w, F) => (i(), _(
|
|
254
|
+
(i(!0), p(S, null, T(c.headData, (w, F) => (i(), _(b, {
|
|
255
255
|
title: w,
|
|
256
256
|
field: w,
|
|
257
257
|
"min-width": "100",
|
|
@@ -269,7 +269,7 @@ function ee(o, e, t, m, c, n) {
|
|
|
269
269
|
[g, c.loading]
|
|
270
270
|
]);
|
|
271
271
|
}
|
|
272
|
-
const te = /* @__PURE__ */
|
|
272
|
+
const te = /* @__PURE__ */ U(Q, [["render", ee], ["__scopeId", "data-v-7c5817ba"]]), oe = {
|
|
273
273
|
name: "editLabel",
|
|
274
274
|
components: { childFormFile: G, searchInventory: te },
|
|
275
275
|
props: {
|
|
@@ -290,50 +290,50 @@ const te = /* @__PURE__ */ x(Q, [["render", ee], ["__scopeId", "data-v-740d3d8f"
|
|
|
290
290
|
/**
|
|
291
291
|
* 根据权限判断是否限制组件
|
|
292
292
|
* */
|
|
293
|
-
isShow(
|
|
293
|
+
isShow(a) {
|
|
294
294
|
let e = !0;
|
|
295
|
-
return (!this.taskId &&
|
|
295
|
+
return (!this.taskId && a.extraInfo.isAddable != 1 || this.taskId && a.extraInfo.isEditable != 1) && (e = !1), e;
|
|
296
296
|
},
|
|
297
297
|
/**
|
|
298
298
|
* 根据权限判断是否禁用组件
|
|
299
299
|
* */
|
|
300
|
-
isDisabled(
|
|
300
|
+
isDisabled(a) {
|
|
301
301
|
let e = !1;
|
|
302
|
-
return (!this.taskId &&
|
|
302
|
+
return (!this.taskId && a.extraInfo.valueAddable == 1 || this.taskId && a.extraInfo.valueEditable == 1) && (e = !0), e;
|
|
303
303
|
},
|
|
304
304
|
/**
|
|
305
305
|
* 向表格内插入数据
|
|
306
306
|
* */
|
|
307
|
-
addDefault(
|
|
307
|
+
addDefault(a) {
|
|
308
308
|
if (this.sourceData.value.length >= 30)
|
|
309
309
|
return this.$message.warning("最多支持30条"), !1;
|
|
310
310
|
let e = {};
|
|
311
311
|
this.sourceData.moduleDefinition.forEach((m) => {
|
|
312
312
|
var c;
|
|
313
|
-
m.behaviorType == 1 && ((c = this.defaultLink) != null && c.setColumn[`${this.sourceData.columnCode}.${m.columnCode}`]) ? e[m.columnCode] =
|
|
313
|
+
m.behaviorType == 1 && ((c = this.defaultLink) != null && c.setColumn[`${this.sourceData.columnCode}.${m.columnCode}`]) ? e[m.columnCode] = P(this.componentList, this.defaultLink.setColumn[`${this.sourceData.columnCode}.${m.columnCode}`]) : e[m.columnCode] = m.value;
|
|
314
314
|
});
|
|
315
315
|
let t = JSON.parse(JSON.stringify(e));
|
|
316
|
-
|
|
316
|
+
a ? this.sourceData.value.splice(a, 0, t) : this.sourceData.value.push(t), this.onChange("addRow", { row: t }, null);
|
|
317
317
|
},
|
|
318
318
|
/**
|
|
319
319
|
* 删除数据
|
|
320
320
|
* */
|
|
321
|
-
delItem(
|
|
322
|
-
this.sourceData.value.splice(
|
|
321
|
+
delItem(a) {
|
|
322
|
+
this.sourceData.value.splice(a, 1), this.onChange("delRow", { delIndx: a }, null);
|
|
323
323
|
},
|
|
324
324
|
/**
|
|
325
325
|
* 输入框Change事件
|
|
326
326
|
* @param {String} type 是否是其他事件类型
|
|
327
327
|
* @param {Object} params 扩展参数
|
|
328
328
|
* */
|
|
329
|
-
onChange: V(function(
|
|
330
|
-
this.sourceData.error = "", this.sourceData.warning = "", this.$emit("onChange", this.sourceData, { type:
|
|
329
|
+
onChange: V(function(a, e, t) {
|
|
330
|
+
this.sourceData.error = "", this.sourceData.warning = "", this.$emit("onChange", this.sourceData, { type: a, tableScope: e, childColumn: t });
|
|
331
331
|
}, 500),
|
|
332
332
|
/**
|
|
333
333
|
* 输入框输入事件
|
|
334
334
|
* @param {Object} params 扩展参数
|
|
335
335
|
* */
|
|
336
|
-
onInput(
|
|
336
|
+
onInput(a, e, t) {
|
|
337
337
|
this.$emit("input", this.sourceData, { tableScope: e, childColumn: t }), this.onChange("input", e, t);
|
|
338
338
|
},
|
|
339
339
|
/**
|
|
@@ -341,18 +341,18 @@ const te = /* @__PURE__ */ x(Q, [["render", ee], ["__scopeId", "data-v-740d3d8f"
|
|
|
341
341
|
* @param {Object} params 表格组件行数据
|
|
342
342
|
* @param {Object} column 子组件
|
|
343
343
|
* */
|
|
344
|
-
onFocus(
|
|
344
|
+
onFocus(a, e, t) {
|
|
345
345
|
this.$emit("focus", this.sourceData, { tableScope: e, childColumn: t });
|
|
346
346
|
},
|
|
347
347
|
/**
|
|
348
348
|
* 输入框失去焦点事件
|
|
349
349
|
* @param {Object} params 扩展参数
|
|
350
350
|
* */
|
|
351
|
-
onBlur(
|
|
351
|
+
onBlur(a, e, t) {
|
|
352
352
|
this.$emit("blur", this.sourceData, { tableScope: e, childColumn: t });
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
|
-
},
|
|
355
|
+
}, ae = { class: "w-default-wrap" }, le = { class: "w-flex-center" }, ne = {
|
|
356
356
|
key: 0,
|
|
357
357
|
class: "w-color-red w-margin-right4"
|
|
358
358
|
}, ie = { class: "w-flex-left" }, se = {
|
|
@@ -376,10 +376,10 @@ const te = /* @__PURE__ */ x(Q, [["render", ee], ["__scopeId", "data-v-740d3d8f"
|
|
|
376
376
|
}, me = {
|
|
377
377
|
key: 0,
|
|
378
378
|
class: "childFormBody-file-view"
|
|
379
|
-
}, pe = { class: "childFormBody-operate" }, fe = { class: "w-flex-center" }, ge = ["onClick"],
|
|
380
|
-
function
|
|
381
|
-
const
|
|
382
|
-
return i(), p("div",
|
|
379
|
+
}, pe = { class: "childFormBody-operate" }, fe = { class: "w-flex-center" }, ge = ["onClick"], be = ["onClick"];
|
|
380
|
+
function ve(a, e, t, m, c, l) {
|
|
381
|
+
const b = d("vxe-column"), v = d("el-input"), g = d("BnInpNum"), w = d("BnSelect"), F = d("BnCascader"), k = d("el-date-picker"), D = d("child-form-file"), C = d("el-popover"), E = d("BnFileView"), A = d("searchInventory"), O = d("vxe-table");
|
|
382
|
+
return i(), p("div", ae, [
|
|
383
383
|
h(O, {
|
|
384
384
|
border: "",
|
|
385
385
|
size: "small",
|
|
@@ -392,102 +392,108 @@ function be(o, e, t, m, c, n) {
|
|
|
392
392
|
t.disabled ? f("", !0) : (i(), p("span", {
|
|
393
393
|
key: 0,
|
|
394
394
|
class: "w-color-blue w-cursor-pointer",
|
|
395
|
-
onClick: e[0] || (e[0] = (
|
|
395
|
+
onClick: e[0] || (e[0] = (o) => l.addDefault(0))
|
|
396
396
|
}, "点击添加"))
|
|
397
397
|
])
|
|
398
398
|
]),
|
|
399
399
|
default: u(() => [
|
|
400
|
-
h(
|
|
400
|
+
h(b, {
|
|
401
401
|
type: "seq",
|
|
402
402
|
width: "50"
|
|
403
403
|
}),
|
|
404
|
-
(i(!0), p(S, null, T(t.sourceData.moduleDefinition, (
|
|
405
|
-
|
|
404
|
+
(i(!0), p(S, null, T(t.sourceData.moduleDefinition, (o, B) => (i(), p(S, { key: B }, [
|
|
405
|
+
l.isShow(o) ? (i(), _(b, {
|
|
406
406
|
key: 0,
|
|
407
|
-
title:
|
|
408
|
-
params:
|
|
407
|
+
title: o.name,
|
|
408
|
+
params: o.extraInfo || {},
|
|
409
409
|
"min-width": 240,
|
|
410
410
|
"show-header-overflow": "title"
|
|
411
411
|
}, {
|
|
412
|
-
header: u((
|
|
413
|
-
r("div",
|
|
414
|
-
|
|
415
|
-
r("span", null,
|
|
412
|
+
header: u((n) => [
|
|
413
|
+
r("div", le, [
|
|
414
|
+
n.column.params.valueEmptyCheck == 1 ? (i(), p("span", ne, "*")) : f("", !0),
|
|
415
|
+
r("span", null, I(n.column.title), 1)
|
|
416
416
|
])
|
|
417
417
|
]),
|
|
418
|
-
default: u((
|
|
418
|
+
default: u((n) => {
|
|
419
419
|
var L, N;
|
|
420
420
|
return [
|
|
421
421
|
r("div", ie, [
|
|
422
|
-
|
|
423
|
-
h(
|
|
422
|
+
o.behaviorType == 1 ? (i(), p("div", se, [
|
|
423
|
+
h(v, {
|
|
424
424
|
type: "textarea",
|
|
425
425
|
resize: "none",
|
|
426
426
|
rows: 1,
|
|
427
427
|
placeholder: "请输入",
|
|
428
|
-
disabled: t.disabled ||
|
|
429
|
-
onInput: (s) =>
|
|
430
|
-
onFocus: (s) =>
|
|
431
|
-
onBlur: (s) =>
|
|
428
|
+
disabled: t.disabled || l.isDisabled(o),
|
|
429
|
+
onInput: (s) => l.onInput(s, n, o),
|
|
430
|
+
onFocus: (s) => l.onFocus(s, n, o),
|
|
431
|
+
onBlur: (s) => l.onBlur(s, n, o),
|
|
432
432
|
maxlength: 2e5,
|
|
433
|
-
modelValue:
|
|
434
|
-
"onUpdate:modelValue": (s) =>
|
|
433
|
+
modelValue: n.row[o.columnCode],
|
|
434
|
+
"onUpdate:modelValue": (s) => n.row[o.columnCode] = s,
|
|
435
435
|
modelModifiers: { trim: !0 }
|
|
436
436
|
}, null, 8, ["disabled", "onInput", "onFocus", "onBlur", "modelValue", "onUpdate:modelValue"])
|
|
437
437
|
])) : f("", !0),
|
|
438
|
-
|
|
438
|
+
o.behaviorType == 2 ? (i(), p("div", re, [
|
|
439
439
|
h(g, {
|
|
440
|
-
onInput: (s) =>
|
|
441
|
-
disabled: t.disabled ||
|
|
442
|
-
onFocus: (s) =>
|
|
443
|
-
onBlur: (s) =>
|
|
444
|
-
precision: (L =
|
|
445
|
-
modelValue:
|
|
446
|
-
"onUpdate:modelValue": (s) =>
|
|
440
|
+
onInput: (s) => l.onInput(s, n, o),
|
|
441
|
+
disabled: t.disabled || l.isDisabled(o),
|
|
442
|
+
onFocus: (s) => l.onFocus(s, n, o),
|
|
443
|
+
onBlur: (s) => l.onBlur(s, n, o),
|
|
444
|
+
precision: (L = o.extraInfo) == null ? void 0 : L.valueType,
|
|
445
|
+
modelValue: n.row[o.columnCode],
|
|
446
|
+
"onUpdate:modelValue": (s) => n.row[o.columnCode] = s,
|
|
447
447
|
placeholder: "请输入有效数值"
|
|
448
448
|
}, null, 8, ["onInput", "disabled", "onFocus", "onBlur", "precision", "modelValue", "onUpdate:modelValue"])
|
|
449
449
|
])) : f("", !0),
|
|
450
|
-
[3, 4, 5].includes(
|
|
450
|
+
[3, 4, 5].includes(o.behaviorType) ? (i(), p("div", de, [
|
|
451
451
|
h(w, {
|
|
452
|
-
modelValue:
|
|
453
|
-
"onUpdate:modelValue": (s) =>
|
|
452
|
+
modelValue: n.row[o.columnCode],
|
|
453
|
+
"onUpdate:modelValue": (s) => n.row[o.columnCode] = s,
|
|
454
454
|
clearable: "",
|
|
455
455
|
filterable: "",
|
|
456
|
-
multiple:
|
|
456
|
+
multiple: o.behaviorType == 5,
|
|
457
457
|
optionProps: { value: "code", label: "title" },
|
|
458
|
-
options:
|
|
459
|
-
disabled: t.disabled ||
|
|
460
|
-
pathUrl:
|
|
461
|
-
postData:
|
|
458
|
+
options: o.moduleDefinition,
|
|
459
|
+
disabled: t.disabled || l.isDisabled(o),
|
|
460
|
+
pathUrl: o.pathUrl,
|
|
461
|
+
postData: o.postData,
|
|
462
462
|
postFunc: t.postFunc,
|
|
463
|
-
onChange: (s) =>
|
|
463
|
+
onChange: (s) => l.onChange("change", n, o)
|
|
464
464
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "multiple", "options", "disabled", "pathUrl", "postData", "postFunc", "onChange"])
|
|
465
465
|
])) : f("", !0),
|
|
466
|
-
[6, 20].includes(
|
|
466
|
+
[6, 20].includes(o.behaviorType) ? (i(), p("div", ue, [
|
|
467
467
|
h(F, {
|
|
468
|
-
onChange: (s) =>
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
"
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
468
|
+
onChange: (s) => l.onChange("change", n, o),
|
|
469
|
+
modelValue: n.row[o.columnCode],
|
|
470
|
+
"onUpdate:modelValue": (s) => n.row[o.columnCode] = s,
|
|
471
|
+
postFunc: t.postFunc,
|
|
472
|
+
"path-url": o.pathUrl,
|
|
473
|
+
"post-data": o.postData,
|
|
474
|
+
"remote-mode": "tree",
|
|
475
|
+
optionProps: { value: "code", label: "title" },
|
|
476
|
+
"label-in-value": !1,
|
|
477
|
+
options: o.moduleDefinition.optionList,
|
|
478
|
+
"hide-check-to-last": "",
|
|
479
|
+
multiple: o.behaviorType == 20,
|
|
480
|
+
disabled: t.disabled || l.isDisabled(o),
|
|
481
|
+
clearable: ""
|
|
482
|
+
}, null, 8, ["onChange", "modelValue", "onUpdate:modelValue", "postFunc", "path-url", "post-data", "options", "multiple", "disabled"])
|
|
477
483
|
])) : f("", !0),
|
|
478
|
-
|
|
484
|
+
o.behaviorType == 7 ? (i(), p("div", ce, [
|
|
479
485
|
h(k, {
|
|
480
|
-
onChange: (s) =>
|
|
481
|
-
disabled: t.disabled ||
|
|
482
|
-
modelValue:
|
|
483
|
-
"onUpdate:modelValue": (s) =>
|
|
486
|
+
onChange: (s) => l.onChange("change", n, o),
|
|
487
|
+
disabled: t.disabled || l.isDisabled(o),
|
|
488
|
+
modelValue: n.row[o.columnCode],
|
|
489
|
+
"onUpdate:modelValue": (s) => n.row[o.columnCode] = s,
|
|
484
490
|
type: "datetime",
|
|
485
491
|
format: "YYYY-MM-DD HH:mm:ss",
|
|
486
492
|
"value-format": "YYYY-MM-DD HH:mm:ss"
|
|
487
493
|
}, null, 8, ["onChange", "disabled", "modelValue", "onUpdate:modelValue"])
|
|
488
494
|
])) : f("", !0),
|
|
489
|
-
|
|
490
|
-
h(
|
|
495
|
+
o.behaviorType == 10 ? (i(), p("div", he, [
|
|
496
|
+
h(C, {
|
|
491
497
|
placement: "top",
|
|
492
498
|
title: "附件上传",
|
|
493
499
|
width: 400,
|
|
@@ -498,25 +504,25 @@ function be(o, e, t, m, c, n) {
|
|
|
498
504
|
])]),
|
|
499
505
|
default: u(() => [
|
|
500
506
|
h(D, {
|
|
501
|
-
column:
|
|
502
|
-
value:
|
|
503
|
-
onChange: (s) =>
|
|
507
|
+
column: o,
|
|
508
|
+
value: n.row[o.columnCode],
|
|
509
|
+
onChange: (s) => l.onChange("change", n, o)
|
|
504
510
|
}, null, 8, ["column", "value", "onChange"])
|
|
505
511
|
]),
|
|
506
512
|
_: 2
|
|
507
513
|
}, 1024),
|
|
508
|
-
|
|
514
|
+
n.row[o.columnCode] ? (i(), p("div", me, [
|
|
509
515
|
h(E, {
|
|
510
|
-
"file-list":
|
|
516
|
+
"file-list": n.row[o.columnCode],
|
|
511
517
|
"is-mini": !0,
|
|
512
518
|
isDel: !0,
|
|
513
519
|
"no-warp": !0,
|
|
514
|
-
onDelFile: (s) =>
|
|
520
|
+
onDelFile: (s) => l.onChange("change", n, o)
|
|
515
521
|
}, null, 8, ["file-list", "onDelFile"])
|
|
516
522
|
])) : f("", !0)
|
|
517
523
|
])) : f("", !0),
|
|
518
524
|
r("div", pe, [
|
|
519
|
-
(N =
|
|
525
|
+
(N = o.extraInfo) != null && N.stockSearchColumnCode ? (i(), _(C, {
|
|
520
526
|
key: 0,
|
|
521
527
|
placement: "bottom",
|
|
522
528
|
width: "480"
|
|
@@ -529,10 +535,10 @@ function be(o, e, t, m, c, n) {
|
|
|
529
535
|
])]),
|
|
530
536
|
default: u(() => [
|
|
531
537
|
(i(), _(A, {
|
|
532
|
-
key:
|
|
538
|
+
key: n.row._X_ROW_KEY,
|
|
533
539
|
postFunc: t.postFunc,
|
|
534
|
-
column:
|
|
535
|
-
row:
|
|
540
|
+
column: o,
|
|
541
|
+
row: n.row
|
|
536
542
|
}, null, 8, ["postFunc", "column", "row"]))
|
|
537
543
|
]),
|
|
538
544
|
_: 2
|
|
@@ -544,12 +550,12 @@ function be(o, e, t, m, c, n) {
|
|
|
544
550
|
_: 2
|
|
545
551
|
}, 1032, ["title", "params"])) : f("", !0)
|
|
546
552
|
], 64))), 128)),
|
|
547
|
-
t.disabled ? f("", !0) : (i(), _(
|
|
553
|
+
t.disabled ? f("", !0) : (i(), _(b, {
|
|
548
554
|
key: 0,
|
|
549
555
|
fixed: "right",
|
|
550
556
|
width: "52"
|
|
551
557
|
}, {
|
|
552
|
-
header: u(({ column:
|
|
558
|
+
header: u(({ column: o }) => [
|
|
553
559
|
r("div", fe, [
|
|
554
560
|
t.sourceData.value.length > 0 ? (i(), p("span", {
|
|
555
561
|
key: 0,
|
|
@@ -559,15 +565,15 @@ function be(o, e, t, m, c, n) {
|
|
|
559
565
|
})) : f("", !0)
|
|
560
566
|
])
|
|
561
567
|
]),
|
|
562
|
-
default: u((
|
|
568
|
+
default: u((o) => [
|
|
563
569
|
r("span", {
|
|
564
570
|
class: "bnUIcon bnUIcon-add w-color-blue w-cursor-pointer w-font-max w-margin-right5",
|
|
565
|
-
onClick: (B) =>
|
|
571
|
+
onClick: (B) => l.addDefault(o.rowIndex + 1)
|
|
566
572
|
}, null, 8, ge),
|
|
567
573
|
r("span", {
|
|
568
574
|
class: "bnUIcon bnUIcon-delete w-color-red w-font-max w-cursor-pointer",
|
|
569
|
-
onClick: (B) =>
|
|
570
|
-
}, null, 8,
|
|
575
|
+
onClick: (B) => l.delItem(o.rowIndex)
|
|
576
|
+
}, null, 8, be)
|
|
571
577
|
]),
|
|
572
578
|
_: 1
|
|
573
579
|
}))
|
|
@@ -576,9 +582,9 @@ function be(o, e, t, m, c, n) {
|
|
|
576
582
|
}, 8, ["data"])
|
|
577
583
|
]);
|
|
578
584
|
}
|
|
579
|
-
const _e = /* @__PURE__ */
|
|
585
|
+
const _e = /* @__PURE__ */ U(oe, [["render", ve], ["__scopeId", "data-v-30ec2afe"]]), we = {
|
|
580
586
|
name: "childrenForm",
|
|
581
|
-
components: { formItemFooter:
|
|
587
|
+
components: { formItemFooter: H, formItemTop: j, childrenFormBody: _e },
|
|
582
588
|
props: {
|
|
583
589
|
column: {
|
|
584
590
|
type: Object,
|
|
@@ -599,36 +605,36 @@ const _e = /* @__PURE__ */ x(oe, [["render", be], ["__scopeId", "data-v-396393e7
|
|
|
599
605
|
* Change事件
|
|
600
606
|
* params:子表单需要增加更多参数,用来表示是自己那个子组件,发生的什么变化
|
|
601
607
|
* */
|
|
602
|
-
onChange: V(function(
|
|
608
|
+
onChange: V(function(a, e) {
|
|
603
609
|
this.$emit("onChange", this.column, e);
|
|
604
610
|
}, 500),
|
|
605
611
|
/**
|
|
606
612
|
* 输入框输入事件
|
|
607
613
|
* */
|
|
608
|
-
onInput(
|
|
614
|
+
onInput(a, e) {
|
|
609
615
|
this.$emit("input", this.column, e);
|
|
610
616
|
},
|
|
611
617
|
/**
|
|
612
618
|
* 输入框onFocus事件
|
|
613
619
|
* */
|
|
614
|
-
onFocus(
|
|
620
|
+
onFocus(a, e) {
|
|
615
621
|
this.$emit("focus", this.column, e);
|
|
616
622
|
},
|
|
617
623
|
/**
|
|
618
624
|
* 输入框失去焦点事件
|
|
619
625
|
* */
|
|
620
|
-
onBlur(
|
|
626
|
+
onBlur(a, e) {
|
|
621
627
|
this.$emit("blur", this.column, e);
|
|
622
628
|
}
|
|
623
629
|
}
|
|
624
|
-
}, ye = { class: "w-default-wrap childrenForm" }, Fe = { class: "childrenForm-behavior" },
|
|
625
|
-
function
|
|
630
|
+
}, ye = { class: "w-default-wrap childrenForm" }, Fe = { class: "childrenForm-behavior" }, Ce = { class: "w-flex-center w-margin-bottom6" };
|
|
631
|
+
function Ie(a, e, t, m, c, l) {
|
|
626
632
|
var k, D;
|
|
627
|
-
const
|
|
633
|
+
const b = d("formItemTop"), v = d("el-button"), g = d("el-popover"), w = d("childrenFormBody"), F = d("formItemFooter");
|
|
628
634
|
return i(), p("div", ye, [
|
|
629
|
-
h(
|
|
635
|
+
h(b, { column: t.column }, null, 8, ["column"]),
|
|
630
636
|
r("div", Fe, [
|
|
631
|
-
r("div",
|
|
637
|
+
r("div", Ce, [
|
|
632
638
|
t.dataBack && t.dataBack.order == t.column.columnCode ? (i(), _(g, {
|
|
633
639
|
key: 0,
|
|
634
640
|
placement: "top-start",
|
|
@@ -637,11 +643,11 @@ function Ce(o, e, t, m, c, n) {
|
|
|
637
643
|
"show-arrow": !1
|
|
638
644
|
}, {
|
|
639
645
|
reference: u(() => [
|
|
640
|
-
h(
|
|
646
|
+
h(v, {
|
|
641
647
|
link: "",
|
|
642
648
|
type: "primary",
|
|
643
649
|
style: { "padding-left": "0" },
|
|
644
|
-
onClick: e[0] || (e[0] = (
|
|
650
|
+
onClick: e[0] || (e[0] = (C) => a.$emit("operate", this.column, "chooseChildOrder"))
|
|
645
651
|
}, {
|
|
646
652
|
default: u(() => [...e[3] || (e[3] = [
|
|
647
653
|
r("span", { class: "bnUIcon bnUIcon-split" }, null, -1),
|
|
@@ -666,15 +672,15 @@ function Ce(o, e, t, m, c, n) {
|
|
|
666
672
|
"show-arrow": !1
|
|
667
673
|
}, {
|
|
668
674
|
reference: u(() => [
|
|
669
|
-
h(
|
|
675
|
+
h(v, {
|
|
670
676
|
link: "",
|
|
671
677
|
type: "primary",
|
|
672
678
|
style: { "padding-left": "0" },
|
|
673
|
-
onClick: e[1] || (e[1] = (
|
|
679
|
+
onClick: e[1] || (e[1] = (C) => a.$emit("operate", this.column, "chooseAssocTable"))
|
|
674
680
|
}, {
|
|
675
681
|
default: u(() => [
|
|
676
682
|
e[5] || (e[5] = r("span", { class: "bnUIcon bnUIcon-linkTable" }, null, -1)),
|
|
677
|
-
y("筛选" +
|
|
683
|
+
y("筛选" + I(t.column.name), 1)
|
|
678
684
|
]),
|
|
679
685
|
_: 1
|
|
680
686
|
})
|
|
@@ -695,15 +701,15 @@ function Ce(o, e, t, m, c, n) {
|
|
|
695
701
|
"show-arrow": !1
|
|
696
702
|
}, {
|
|
697
703
|
reference: u(() => [
|
|
698
|
-
h(
|
|
704
|
+
h(v, {
|
|
699
705
|
link: "",
|
|
700
706
|
type: "primary",
|
|
701
707
|
style: { "padding-left": "0" },
|
|
702
|
-
onClick: e[2] || (e[2] = (
|
|
708
|
+
onClick: e[2] || (e[2] = (C) => a.$emit("operate", this.column, "chooseIPaasData"))
|
|
703
709
|
}, {
|
|
704
710
|
default: u(() => [
|
|
705
711
|
e[7] || (e[7] = r("span", { class: "bnUIcon bnUIcon-api" }, null, -1)),
|
|
706
|
-
y("查询" +
|
|
712
|
+
y("查询" + I(t.column.name), 1)
|
|
707
713
|
]),
|
|
708
714
|
_: 1
|
|
709
715
|
})
|
|
@@ -725,16 +731,16 @@ function Ce(o, e, t, m, c, n) {
|
|
|
725
731
|
defaultLink: t.defaultLink,
|
|
726
732
|
componentList: t.componentList,
|
|
727
733
|
postFunc: t.postFunc,
|
|
728
|
-
onInput:
|
|
729
|
-
onOnChange:
|
|
730
|
-
onFocus:
|
|
731
|
-
onBlur:
|
|
734
|
+
onInput: l.onInput,
|
|
735
|
+
onOnChange: l.onChange,
|
|
736
|
+
onFocus: l.onFocus,
|
|
737
|
+
onBlur: l.onBlur
|
|
732
738
|
}, null, 8, ["sourceData", "disabled", "taskId", "defaultLink", "componentList", "postFunc", "onInput", "onOnChange", "onFocus", "onBlur"])
|
|
733
739
|
]),
|
|
734
740
|
h(F, { column: t.column }, null, 8, ["column"])
|
|
735
741
|
]);
|
|
736
742
|
}
|
|
737
|
-
const Se = /* @__PURE__ */
|
|
743
|
+
const Se = /* @__PURE__ */ U(we, [["render", Ie]]);
|
|
738
744
|
export {
|
|
739
745
|
Se as default
|
|
740
746
|
};
|