gds-plus-design-vue 1.1.78 → 1.1.81

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.
Files changed (72) hide show
  1. package/lib/{chartbi.48631362.mjs → chartbi.57f44d3e.mjs} +175 -175
  2. package/lib/{chartbi.afd83839.js → chartbi.94deb957.js} +10 -10
  3. package/lib/gd-initial.js +13 -13
  4. package/lib/gd-initial.mjs +3947 -3421
  5. package/lib/{main.03b24a05.js → main.1b00a4e3.js} +1 -1
  6. package/lib/{main.eea30a23.js → main.1da3b284.js} +1 -1
  7. package/lib/{main.f1e3ba71.js → main.2a2d1dba.js} +1 -1
  8. package/lib/{main.995a7509.mjs → main.4a1b145d.mjs} +10 -10
  9. package/lib/{main.91146343.mjs → main.85fa6307.mjs} +6 -6
  10. package/lib/{main.bf19ab41.mjs → main.b283cf8f.mjs} +4 -4
  11. package/lib/{messages.7e85146d.mjs → messages.ae101ecd.mjs} +18 -18
  12. package/lib/{messages.083c4ede.js → messages.dc95e9ca.js} +5 -5
  13. package/lib/style.css +2 -2
  14. package/lib/{system.account.78b852cd.js → system.account.13fcfd13.js} +2 -2
  15. package/lib/{system.account.16b1763b.mjs → system.account.80e9070c.mjs} +11 -11
  16. package/lib/{system.config.9c46f279.mjs → system.config.00e549b8.mjs} +3 -3
  17. package/lib/{system.config.327aded6.js → system.config.373fe9dd.js} +1 -1
  18. package/lib/{system.datasource.8a0c7e0f.js → system.datasource.8bc7b3c5.js} +1 -1
  19. package/lib/{system.datasource.4b0951ba.mjs → system.datasource.e47ba035.mjs} +3 -3
  20. package/lib/{system.dict.65f25e4e.mjs → system.dict.28a0f526.mjs} +4 -4
  21. package/lib/{system.dict.72594c98.js → system.dict.aa93f41b.js} +1 -1
  22. package/lib/{system.duplicatechecking.2e9b8df8.js → system.duplicatechecking.77a40e04.js} +1 -1
  23. package/lib/{system.duplicatechecking.b05f1617.mjs → system.duplicatechecking.fa81b9ee.mjs} +22 -22
  24. package/lib/{system.email.0899621c.js → system.email.aa3a3964.js} +2 -2
  25. package/lib/{system.email.591982bd.mjs → system.email.ccea99a3.mjs} +4 -4
  26. package/lib/{system.fieldsecurity.7de4ee1d.mjs → system.fieldsecurity.0b85487c.mjs} +10 -10
  27. package/lib/{system.fieldsecurity.d57edb47.js → system.fieldsecurity.14445e20.js} +1 -1
  28. package/lib/{system.file.b3558a8b.js → system.file.d5e18ffc.js} +1 -1
  29. package/lib/{system.file.f152d4fe.mjs → system.file.e706cecf.mjs} +4 -4
  30. package/lib/{system.log.f243e7d0.js → system.log.4ddc4031.js} +1 -1
  31. package/lib/{system.log.30e5157c.mjs → system.log.cc844d4f.mjs} +2 -2
  32. package/lib/{system.machine.332fb31c.js → system.machine.15cb8251.js} +1 -1
  33. package/lib/{system.machine.325b256e.mjs → system.machine.4c9db2b1.mjs} +2 -2
  34. package/lib/{system.notice.540e97ca.js → system.notice.29eda0a6.js} +1 -1
  35. package/lib/{system.notice.9821e123.mjs → system.notice.c3b65e57.mjs} +5 -5
  36. package/lib/{system.noticereceived.1fb75290.js → system.noticereceived.5f2ff5b8.js} +1 -1
  37. package/lib/{system.noticereceived.0f77a614.mjs → system.noticereceived.a3af9de9.mjs} +4 -4
  38. package/lib/{system.onlineuser.e0c261ed.js → system.onlineuser.6f9d9ab8.js} +1 -1
  39. package/lib/{system.onlineuser.90c08aef.mjs → system.onlineuser.99bd4e86.mjs} +2 -2
  40. package/lib/{system.org.65452f67.js → system.org.37d1d503.js} +1 -1
  41. package/lib/{system.org.b8d59e5d.mjs → system.org.b76023b7.mjs} +3 -3
  42. package/lib/{system.permissions.d74ca430.mjs → system.permissions.70965fc6.mjs} +5 -5
  43. package/lib/{system.permissions.8b0d3c8c.js → system.permissions.e350ba73.js} +2 -2
  44. package/lib/{system.plugin.07b3c38e.js → system.plugin.2afed6da.js} +1 -1
  45. package/lib/{system.plugin.4911a33d.mjs → system.plugin.8ab6d913.mjs} +4 -4
  46. package/lib/{system.pos.c274f13c.mjs → system.pos.db7cc8b1.mjs} +3 -3
  47. package/lib/{system.pos.6ed35c39.js → system.pos.ef817301.js} +1 -1
  48. package/lib/{system.promptmanagement.67475aac.js → system.promptmanagement.db48f9a4.js} +1 -1
  49. package/lib/{system.promptmanagement.e9976712.mjs → system.promptmanagement.ea39e6d1.mjs} +4 -4
  50. package/lib/{system.role.f2eff184.mjs → system.role.0bba7e75.mjs} +16 -15
  51. package/lib/{system.role.6ce127e7.js → system.role.c9313c04.js} +1 -1
  52. package/lib/system.sumberrules.5e052247.js +1 -0
  53. package/lib/system.sumberrules.70378ac3.mjs +553 -0
  54. package/lib/{system.timers.ef6b6796.js → system.timers.2b286d7f.js} +2 -2
  55. package/lib/{system.timers.69f1792a.mjs → system.timers.d0f4b3d9.mjs} +16 -16
  56. package/lib/{system.translation.8f7e4144.js → system.translation.2e43f7a2.js} +1 -1
  57. package/lib/{system.translation.48ff0b03.mjs → system.translation.bb67cd46.mjs} +6 -6
  58. package/lib/{system.user.17234177.mjs → system.user.12324280.mjs} +25 -18
  59. package/lib/{system.user.4924c331.js → system.user.ffdbb3f9.js} +6 -6
  60. package/lib/{system.useraffiliation.f3c88a51.js → system.useraffiliation.4fc3c0aa.js} +1 -1
  61. package/lib/{system.useraffiliation.1e74fa9e.mjs → system.useraffiliation.761f4b55.mjs} +7 -7
  62. package/lib/{system.webresource.e9518d87.mjs → system.webresource.15e6ad21.mjs} +9 -9
  63. package/lib/{system.webresource.5049d97b.js → system.webresource.7018c9a3.js} +1 -1
  64. package/lib/{system.welcome.b109df88.js → system.welcome.14985d84.js} +1 -1
  65. package/lib/{system.welcome.3f1cce96.mjs → system.welcome.90e60cc9.mjs} +2 -2
  66. package/locale/en_US.js +23 -4
  67. package/locale/id_ID.js +23 -4
  68. package/locale/vi_VN.js +23 -4
  69. package/locale/zh_CN.js +23 -4
  70. package/package.json +1 -1
  71. /package/lib/{element-theme-chalk.ae828c17.js → element-theme-chalk.dee12271.js} +0 -0
  72. /package/lib/{element-theme-chalk.35b1f600.mjs → element-theme-chalk.fbb1a631.mjs} +0 -0
@@ -0,0 +1,553 @@
1
+ import { n as o, m as d } from "./chartbi.57f44d3e.mjs";
2
+ import { f as c, t as u } from "./messages.ae101ecd.mjs";
3
+ function p(a) {
4
+ return window.axios({
5
+ url: "/SysNumberRules/page",
6
+ method: "get",
7
+ params: a
8
+ });
9
+ }
10
+ function m(a) {
11
+ return window.axios({
12
+ url: "/sysNumberRules/add",
13
+ method: "post",
14
+ data: a
15
+ });
16
+ }
17
+ function g(a) {
18
+ return window.axios({
19
+ url: "/sysNumberRules/edit",
20
+ method: "post",
21
+ data: a
22
+ });
23
+ }
24
+ function f(a) {
25
+ return window.axios({
26
+ url: "/sysNumberRules/delete",
27
+ method: "post",
28
+ data: a
29
+ });
30
+ }
31
+ const h = {
32
+ data() {
33
+ return {
34
+ tableColumns: [{
35
+ type: "selection",
36
+ width: "60",
37
+ fixed: !0
38
+ }, {
39
+ transKey: "gd.msg.sendRecord.name",
40
+ prop: "name",
41
+ label: "\u540D\u79F0",
42
+ type: "slot",
43
+ slotType: "name",
44
+ align: "left",
45
+ fixed: !0,
46
+ showOverflowTooltip: !0
47
+ }, {
48
+ transKey: "gd.process.tableSort",
49
+ prop: "sysCodeGenId",
50
+ label: "\u8868\u540D\u79F0",
51
+ type: "slot",
52
+ slotType: "sysCodeGenId",
53
+ align: "left"
54
+ }, {
55
+ transKey: "gd.process.tableSort",
56
+ prop: "columnid",
57
+ label: "\u5B57\u6BB5",
58
+ type: "slot",
59
+ slotType: "columnid",
60
+ align: "left"
61
+ }, {
62
+ transKey: "gd.process.tableSort",
63
+ prop: "nextseqno",
64
+ label: "\u4E0B\u4E00\u6D41\u6C34\u53F7",
65
+ align: "left"
66
+ }, {
67
+ transKey: "gd.flow.state",
68
+ prop: "statecodes",
69
+ label: "\u72B6\u6001",
70
+ type: "slot",
71
+ slotType: "statecodes",
72
+ align: "left"
73
+ }],
74
+ formColumns: [
75
+ {
76
+ transKey: "gd.user.name",
77
+ prop: "name",
78
+ effectType: "input",
79
+ label: "\u59D3\u540D",
80
+ placeholder: "\u8BF7\u8F93\u5165",
81
+ placeholderTransKey: "gd.placeholder.input",
82
+ rules: [{
83
+ required: !0,
84
+ message: "\u8BF7\u8F93\u5165",
85
+ transKey: "gd.placeholder.input",
86
+ trigger: "change"
87
+ }]
88
+ },
89
+ {
90
+ transKey: "gd.msg.sendRecord.msgTemplate",
91
+ effectType: "selectFkMultiple",
92
+ prop: "syscodegenid",
93
+ label: "\u7F16\u53F7\u8868",
94
+ placeholder: "\u8BF7\u9009\u62E9",
95
+ placeholderTransKey: "gd.placeholder.select",
96
+ fkEntityName: "sys_code_gen",
97
+ disabled: !1,
98
+ multiple: !1,
99
+ rules: []
100
+ }
101
+ ],
102
+ tableButtons: [
103
+ {
104
+ displayName: "\u65B0\u589E",
105
+ functionName: "add",
106
+ show: !0,
107
+ transKey: "gd.btn.add",
108
+ icon: "el-icon-plus",
109
+ name: "sysSumberrules:add"
110
+ },
111
+ {
112
+ displayName: "\u7F16\u8F91",
113
+ functionName: "edit",
114
+ show: !0,
115
+ transKey: "gd.btn.edit",
116
+ icon: "el-icon-edit",
117
+ name: "sysSumberrules:edit"
118
+ },
119
+ {
120
+ displayName: "\u5220\u9664",
121
+ functionName: "del",
122
+ show: !0,
123
+ transKey: "gd.btn.del",
124
+ icon: "el-icon-delete",
125
+ btnType: "danger",
126
+ name: "sysSumberrules:delete"
127
+ }
128
+ ],
129
+ tableQueries: [
130
+ {
131
+ transKey: "gd.org.name",
132
+ prop: "name",
133
+ label: "\u540D\u79F0",
134
+ effectType: "input",
135
+ rules: []
136
+ }
137
+ ],
138
+ formButtons: [{
139
+ displayName: "\u786E\u5B9A",
140
+ functionName: "handleSubmit",
141
+ show: !0,
142
+ transKey: "gd.btn.confirm",
143
+ icon: "el-icon-document-checked",
144
+ validate: !0
145
+ }]
146
+ };
147
+ }
148
+ };
149
+ const y = {
150
+ props: {
151
+ modalAppendToBody: {
152
+ type: Boolean,
153
+ default: !0
154
+ },
155
+ appendToBody: {
156
+ type: Boolean,
157
+ default: !0
158
+ }
159
+ },
160
+ data() {
161
+ return {
162
+ confirmLoading: !1,
163
+ visible: !1,
164
+ fullScreen: !1,
165
+ title: "",
166
+ width: "50%",
167
+ sysViewButtons: [{
168
+ displayName: "\u786E\u5B9A",
169
+ functionName: "handleSubmit",
170
+ show: !0,
171
+ transKey: "gd.btn.confirm",
172
+ icon: "el-icon-document-checked",
173
+ validate: !0
174
+ }],
175
+ rules: {
176
+ name: [{
177
+ required: !0,
178
+ message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
179
+ trigger: "change"
180
+ }],
181
+ prefixtype: [{
182
+ required: !0,
183
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
184
+ trigger: "change"
185
+ }],
186
+ nextseqno: [{
187
+ required: !0,
188
+ message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
189
+ trigger: "change"
190
+ }]
191
+ },
192
+ ruleFormData: {
193
+ id: "",
194
+ name: "",
195
+ prefixtype: "",
196
+ prefix: "",
197
+ dateformat: "",
198
+ seqtype: "",
199
+ seqrange: "",
200
+ seqlength: void 0,
201
+ postfixtype: "",
202
+ postfix: "",
203
+ nextseqno: "",
204
+ separatorch: "",
205
+ syscodegenid: "",
206
+ columnid: ""
207
+ },
208
+ dataList: [],
209
+ columnList: [],
210
+ disabled: !0,
211
+ type: 1
212
+ };
213
+ },
214
+ methods: {
215
+ lookup() {
216
+ this.disabled;
217
+ },
218
+ open(a) {
219
+ this.visible = !0, this.fullScreen = !1, this.title = a ? this.$i18nt("gd.https.edit") : this.$i18nt("gd.https.add"), this.type = a ? 2 : 1, a && this.getSetData(a);
220
+ },
221
+ getSetData(a) {
222
+ let e = {
223
+ id: a.id,
224
+ name: a.name,
225
+ prefixtype: a.prefixtype.toString(),
226
+ prefix: a.prefix,
227
+ dateformat: a.dateformat || a.dateformat == 0 ? a.dateformat.toString() : "",
228
+ seqtype: a.seqtype || a.seqtype == 0 ? a.seqtype.toString() : "",
229
+ seqrange: a.seqrange ? a.seqrange.toString() : "",
230
+ seqlength: a.seqlength,
231
+ postfixtype: a.postfixtype || a.postfixtype == 0 ? a.postfixtype.toString() : "",
232
+ postfix: a.postfix,
233
+ nextseqno: a.nextseqno ? a.nextseqno.toString() : "",
234
+ separatorch: a.separatorch || a.separatorch == 0 ? a.separatorch.toString() : "",
235
+ syscodegenid: a.syscodegen ? a.syscodegenid : "",
236
+ columnid: a.syscodegenconfig ? a.columnid : ""
237
+ };
238
+ this.$nextTick(() => {
239
+ setTimeout(() => {
240
+ this.ruleFormData = e;
241
+ }, 0);
242
+ }), this.getFkDada(a);
243
+ },
244
+ getFkDada(a) {
245
+ let e = [];
246
+ if (a.syscodegenid) {
247
+ let t = this.searchData(
248
+ {
249
+ id: a.syscodegenid,
250
+ fkEntityName: "sys_code_gen"
251
+ },
252
+ "syscodegenid"
253
+ );
254
+ e.push(t);
255
+ }
256
+ if (a.columnid) {
257
+ let t = this.searchData(
258
+ {
259
+ id: a.columnid,
260
+ fkEntityName: "sys_code_gen_config"
261
+ },
262
+ "columnid"
263
+ );
264
+ e.push(t);
265
+ }
266
+ Promise.all(e).then((t) => {
267
+ t.forEach((s) => {
268
+ s.prop == "syscodegenid" && (this.dataList = s.res.data ? s.res.data : []), s.prop == "columnid" && (this.columnList = s.res.data ? s.res.data : []);
269
+ });
270
+ });
271
+ },
272
+ searchData(a, e) {
273
+ return c(a).then((t) => ({
274
+ res: t,
275
+ data: a,
276
+ prop: e
277
+ }));
278
+ },
279
+ handleSubmit() {
280
+ this.$refs.ruleForm.validate((a) => {
281
+ if (a) {
282
+ let e = {
283
+ ...this.ruleFormData
284
+ };
285
+ this.type == 1 ? this.add(e) : this.edit(e);
286
+ }
287
+ });
288
+ },
289
+ add(a) {
290
+ this.confirmLoading = !0, delete a.id, m(a).then((e) => {
291
+ e.success ? (this.$message.success(this.$i18nt("gd.https.addSucc", "\u65B0\u589E\u6210\u529F")), this.$emit("ok"), this.handleCancel()) : this.$message.error(this.$i18nt("gd.https.addFail", "\u65B0\u589E\u5931\u8D25: ") + e.message);
292
+ }).finally((e) => {
293
+ this.confirmLoading = !1;
294
+ });
295
+ },
296
+ edit(a) {
297
+ this.confirmLoading = !0, g(a).then((e) => {
298
+ e.success ? (this.$message.success(this.$i18nt("gd.https.editSucc", "\u7F16\u8F91\u6210\u529F")), this.$emit("ok"), this.handleCancel()) : this.$message.error(this.$i18nt("gd.https.editFail", "\u7F16\u8F91\u5931\u8D25: ") + e.message);
299
+ }).finally((e) => {
300
+ this.confirmLoading = !1;
301
+ });
302
+ },
303
+ getDictionary(a) {
304
+ return this.$options.filters.dictData(a);
305
+ },
306
+ toggleFullscreen() {
307
+ this.fullScreen = !this.fullScreen;
308
+ },
309
+ handleCancel() {
310
+ this.visible = !1, this.confirmLoading = !1, this.$refs.ruleForm.resetFields(), this.ruleFormData = {
311
+ name: "",
312
+ prefixtype: "",
313
+ prefix: "",
314
+ dateformat: "",
315
+ seqtype: "",
316
+ seqrange: "",
317
+ seqlength: void 0,
318
+ postfixtype: "",
319
+ postfix: "",
320
+ nextseqno: "",
321
+ separatorch: "",
322
+ syscodegenid: "",
323
+ columnid: ""
324
+ };
325
+ },
326
+ doEvent(a) {
327
+ let e = a.item.functionName;
328
+ this[e] && this[e]();
329
+ }
330
+ }
331
+ };
332
+ var b = function() {
333
+ var e = this, t = e._self._c;
334
+ return t("el-dialog", { class: e.fullScreen ? "gd-dialog" : "gd-dialog gd-dialog-fangda", attrs: { width: e.width, visible: e.visible, fullscreen: e.fullScreen, footer: null, top: "80px", "modal-append-to-body": e.modalAppendToBody, "append-to-body": e.appendToBody, "show-close": !1 }, on: { "update:visible": function(s) {
335
+ e.visible = s;
336
+ }, closed: e.handleCancel } }, [t("gd-modal-title", { attrs: { slot: "title", title: e.title, fullscreen: e.fullScreen, buttons: e.sysViewButtons, confirmLoading: e.confirmLoading, showClose: !0, closed: "handleCancel" }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen }, slot: "title" }), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [t("div", { class: e.fullScreen ? "modal-bodyq" : "modal-body" }, [t("el-form", { ref: "ruleForm", attrs: { rules: e.rules, model: e.ruleFormData, "label-width": "100px" }, nativeOn: { submit: function(s) {
337
+ s.preventDefault();
338
+ } } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.name", "\u540D\u79F0"), prop: "name" } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleFormData.name, callback: function(s) {
339
+ e.$set(e.ruleFormData, "name", s);
340
+ }, expression: "ruleFormData.name" } })], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.prefixType", "\u524D\u7F00\u7C7B\u578B"), prop: "prefixtype" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select"), clearable: "" }, model: { value: e.ruleFormData.prefixtype, callback: function(s) {
341
+ e.$set(e.ruleFormData, "prefixtype", s);
342
+ }, expression: "ruleFormData.prefixtype" } }, e._l(e.getDictionary("prefix_type"), function(s, l) {
343
+ return t("el-option", { key: l, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
344
+ }), 1)], 1)], 1), t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.prefix", "\u524D\u7F00"), prop: "prefix" } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleFormData.prefix, callback: function(s) {
345
+ e.$set(e.ruleFormData, "prefix", s);
346
+ }, expression: "ruleFormData.prefix" } })], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.dateFormat", "\u65E5\u671F\u683C\u5F0F"), prop: "dateformat" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select"), clearable: "" }, model: { value: e.ruleFormData.dateformat, callback: function(s) {
347
+ e.$set(e.ruleFormData, "dateformat", s);
348
+ }, expression: "ruleFormData.dateformat" } }, e._l(e.getDictionary("dateformat"), function(s, l) {
349
+ return t("el-option", { key: l, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
350
+ }), 1)], 1)], 1), t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.seqType", "\u6D41\u6C34\u53F7\u7C7B\u578B"), prop: "seqtype" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select"), clearable: "" }, model: { value: e.ruleFormData.seqtype, callback: function(s) {
351
+ e.$set(e.ruleFormData, "seqtype", s);
352
+ }, expression: "ruleFormData.seqtype" } }, e._l(e.getDictionary("seqtype"), function(s, l) {
353
+ return t("el-option", { key: l, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
354
+ }), 1)], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.seqRange", "\u6D41\u6C34\u53F7\u8303\u56F4"), prop: "seqrange" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select"), clearable: "" }, model: { value: e.ruleFormData.seqrange, callback: function(s) {
355
+ e.$set(e.ruleFormData, "seqrange", s);
356
+ }, expression: "ruleFormData.seqrange" } }, e._l(e.getDictionary("seqrange"), function(s, l) {
357
+ return t("el-option", { key: l, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
358
+ }), 1)], 1)], 1), t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.seqLength", "\u6D41\u6C34\u53F7\u957F\u5EA6"), prop: "seqlength" } }, [t("el-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input"), "controls-position": "right", min: 0, max: 10 }, model: { value: e.ruleFormData.seqlength, callback: function(s) {
359
+ e.$set(e.ruleFormData, "seqlength", s);
360
+ }, expression: "ruleFormData.seqlength" } })], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.postfixType", "\u540E\u7F00\u7C7B\u578B"), prop: "postfixtype" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select"), clearable: "" }, model: { value: e.ruleFormData.postfixtype, callback: function(s) {
361
+ e.$set(e.ruleFormData, "postfixtype", s);
362
+ }, expression: "ruleFormData.postfixtype" } }, e._l(e.getDictionary("postfix_type"), function(s, l) {
363
+ return t("el-option", { key: l, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
364
+ }), 1)], 1)], 1), t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.postfix", "\u540E\u7F00"), prop: "postfix" } }, [t("el-input", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input") }, model: { value: e.ruleFormData.postfix, callback: function(s) {
365
+ e.$set(e.ruleFormData, "postfix", s);
366
+ }, expression: "ruleFormData.postfix" } })], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.nextSeqNo", "\u4E0B\u4E00\u6D41\u6C34\u53F7"), prop: "nextseqno" } }, [t("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleFormData.nextseqno, callback: function(s) {
367
+ e.$set(e.ruleFormData, "nextseqno", s);
368
+ }, expression: "ruleFormData.nextseqno" } })], 1)], 1), t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.separatorCh", "\u5206\u9694\u7B26"), prop: "separatorch" } }, [t("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select"), clearable: "" }, model: { value: e.ruleFormData.separatorch, callback: function(s) {
369
+ e.$set(e.ruleFormData, "separatorch", s);
370
+ }, expression: "ruleFormData.separatorch" } }, e._l(e.getDictionary("separator"), function(s, l) {
371
+ return t("el-option", { key: l, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
372
+ }), 1)], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.sysCodeGenId", "\u7F16\u53F7\u8868"), prop: "syscodegenid" } }, [t("div", { staticClass: "cao_about" }, [t("el-select", { staticClass: "cao_input", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), "reserve-keyword": "", filterable: "", remote: "", clearable: "", "collapse-tags": !0, disabled: e.disabled }, model: { value: e.ruleFormData.syscodegenid, callback: function(s) {
373
+ e.$set(e.ruleFormData, "syscodegenid", s);
374
+ }, expression: "ruleFormData.syscodegenid" } }, e._l(e.dataList, function(s) {
375
+ return t("el-option", { key: s.id, attrs: { label: s.name, value: s.id } });
376
+ }), 1), t("div", { staticClass: "cao_setting" }, [t("i", { staticClass: "el-input__icon el-icon-search cao_setting-disabled", on: { click: function(s) {
377
+ return e.lookup("syscodegenid", e.ruleFormData.syscodegenid);
378
+ } } })])], 1)])], 1), t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.numberingRules.columnId", "\u7F16\u53F7\u5B57\u6BB5"), prop: "columnid" } }, [t("div", { staticClass: "cao_about" }, [t("el-select", { staticClass: "cao_input", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), "reserve-keyword": "", filterable: "", remote: "", clearable: "", "collapse-tags": !0, disabled: e.disabled }, model: { value: e.ruleFormData.columnid, callback: function(s) {
379
+ e.$set(e.ruleFormData, "columnid", s);
380
+ }, expression: "ruleFormData.columnid" } }, e._l(e.columnList, function(s) {
381
+ return t("el-option", { key: s.id, attrs: { label: s.name, value: s.id } });
382
+ }), 1), t("div", { staticClass: "cao_setting" }, [t("i", { staticClass: "el-input__icon el-icon-search cao_setting-disabled", on: { click: function(s) {
383
+ return e.lookup("columnid", e.ruleFormData.columnid);
384
+ } } })])], 1)])], 1)], 1)], 1), t("el-divider"), t("div", { staticClass: "remarks_title" }, [e._v(" " + e._s(e.$i18nt("gd.numberingRules.remarks", "\u793A\u4F8B:{\u56FA\u5B9A\u524D\u7F00/ \u968F\u673A\u524D\u7F00}{ \u5E74\u6708\u65E5 }{ \u6D41\u6C34\u53F7, \u6D41\u6C34\u53F7\u7C7B\u578B(\u4E3B/ \u5B50, \u5B9E\u4F53 /), \u6D41\u6C34\u53F7\u8303\u56F4(\u5168\u5C40 / \u65E5\u671F\u5185)}{ \u56FA\u5B9A\u540E\u7F00 / \u968F\u673A\u540E\u7F00 } Acc202206130001zzz")) + " ")])], 1)])], 1);
385
+ }, $ = [], _ = /* @__PURE__ */ o(
386
+ y,
387
+ b,
388
+ $,
389
+ !1,
390
+ null,
391
+ "37876631",
392
+ null,
393
+ null
394
+ );
395
+ const x = _.exports;
396
+ const v = {
397
+ name: "GdSumberrules",
398
+ mixins: [u, h],
399
+ props: {
400
+ height: {
401
+ type: Number,
402
+ default: 100
403
+ }
404
+ },
405
+ data() {
406
+ return {
407
+ formLoading: !1,
408
+ transKey: "gd.btn.add",
409
+ selectedRowKeys: [],
410
+ selectedRows: [],
411
+ queryParam: {},
412
+ loadData: (a) => p(this.getQueryParam).then((e) => ({
413
+ pageNo: 1,
414
+ pageSize: 100,
415
+ totalRows: 0,
416
+ rows: e.map((s) => {
417
+ let l = this.tableLists.filter((r) => r.id === s.syscodegenid)[0];
418
+ return Object.assign(s, {
419
+ syscodegen: l
420
+ });
421
+ })
422
+ }))
423
+ };
424
+ },
425
+ computed: {
426
+ getQueryParam() {
427
+ let a = /* @__PURE__ */ new Map();
428
+ for (let e in this.queryParam)
429
+ this.queryParam[e] !== "" && a.set(e, this.queryParam[e]);
430
+ return Object.fromEntries(a);
431
+ },
432
+ getHeight() {
433
+ return this.height;
434
+ },
435
+ ...d(["tablePageSize", "tableSize", "labelPosition", "formMode", "tableLists"])
436
+ },
437
+ components: {
438
+ editForm: x
439
+ },
440
+ methods: {
441
+ saveQueries(a) {
442
+ this.queryParam = {
443
+ ...a
444
+ }, this.refresh();
445
+ },
446
+ refresh() {
447
+ this.$refs.table.refresh();
448
+ },
449
+ editForm(a) {
450
+ this.transKey = "gd.btn.edit", this.$refs.editForm.open(a);
451
+ },
452
+ add() {
453
+ this.$refs.editForm.open();
454
+ },
455
+ edit() {
456
+ if (this.selectedRowKeys.length === 0) {
457
+ this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
458
+ return;
459
+ }
460
+ if (this.selectedRowKeys.length > 1) {
461
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
462
+ return;
463
+ }
464
+ this.editForm(this.selectedRows[0]);
465
+ },
466
+ handleOk() {
467
+ this.refresh();
468
+ },
469
+ del() {
470
+ if (this.selectedRowKeys.length === 0) {
471
+ this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u6570\u636E!"));
472
+ return;
473
+ }
474
+ if (this.selectedRowKeys.length > 1) {
475
+ this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
476
+ return;
477
+ }
478
+ this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
479
+ confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
480
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
481
+ showClose: !1,
482
+ confirmButtonLoading: !1,
483
+ cancelButtonLoading: !1,
484
+ closeOnClickModal: !1,
485
+ type: "warning",
486
+ confirmButtonClass: "el-button--danger",
487
+ customClass: "custom-alert",
488
+ callback: () => {
489
+ },
490
+ beforeClose: (a, e, t) => {
491
+ this.delHand(a, e, t);
492
+ }
493
+ });
494
+ },
495
+ delHand(a, e, t) {
496
+ if (a !== "confirm") {
497
+ t();
498
+ return;
499
+ }
500
+ let s = [];
501
+ this.selectedRows.forEach((l) => {
502
+ let r = f(l).then((n) => n);
503
+ s.push(r);
504
+ }), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(s).then((l) => {
505
+ const r = l.filter((n) => !n.success);
506
+ r.length === 0 ? this.$message.success(this.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")) : this.$message.error(this.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + r[0].message), t(), this.refresh(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
507
+ });
508
+ },
509
+ onSelectChange(a, e) {
510
+ this.selectedRowKeys = a, this.selectedRows = e;
511
+ },
512
+ doEvent(a) {
513
+ let e = a.item.functionName;
514
+ this[e] && this[e]();
515
+ },
516
+ dictSwitch(a, e) {
517
+ let t = this.$options.filters.dictData(e).filter((s) => s.code == a)[0];
518
+ return t != null && t.colour ? t.colour : null;
519
+ }
520
+ }
521
+ };
522
+ var w = function() {
523
+ var e = this, t = e._self._c;
524
+ return t("div", { staticClass: "gd-page-view" }, [t("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [t("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !0, showPagination: !1 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
525
+ return [t("div", { staticClass: "gd-table-operator" }, [t("div", { staticClass: "gd-table-operatorr" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
526
+ }, proxy: !0 }, { key: "name", fn: function({ column: s, row: l }) {
527
+ return [t("gd-tooltip", { attrs: { rowKey: "name", row: l, highlight: "" }, on: { click: e.editForm } })];
528
+ } }, { key: "sysCodeGenId", fn: function({ column: s, row: l }) {
529
+ return [l.syscodegen ? t("span", [e._v(" " + e._s(e.$i18nt(`Dynamics.${l.syscodegen.transkey}`, l.syscodegen.busname)) + " ")]) : e._e()];
530
+ } }, { key: "columnid", fn: function({ column: s, row: l }) {
531
+ return [l.syscodegenconfig ? t("span", [e._v(" " + e._s(e.$i18nt(`Dynamics.${l.syscodegenconfig.transkey}`, l.syscodegenconfig.name)) + " ")]) : e._e()];
532
+ } }, { key: "statecodes", fn: function(s) {
533
+ return [e.dictSwitch(s.row.statecodes, "state_code") ? t("el-tag", { staticStyle: { "border-color": "transparent" }, attrs: { effect: "dark", color: e.dictSwitch(s.row.statecodes, "state_code") } }, [e._v(" " + e._s(e._f("dictType")("state_code", s.row.statecodes)) + " ")]) : t("span", [e._v(e._s(e._f("dictType")("state_code", s.row.statecodes)))])];
534
+ } }, { key: "filtering", fn: function({ colse: s, visible: l }) {
535
+ return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.height, queryParam: e.queryParam, colse: s, visible: l }, on: { save: e.saveQueries } })];
536
+ } }]) })], 1), t("editForm", { ref: "editForm", attrs: { openPermissions: !0 }, on: { ok: e.handleOk } })], 1);
537
+ }, D = [], F = /* @__PURE__ */ o(
538
+ v,
539
+ w,
540
+ D,
541
+ !1,
542
+ null,
543
+ "4481d39a",
544
+ null,
545
+ null
546
+ );
547
+ const i = F.exports;
548
+ i.install = function(a) {
549
+ a.component(i.name, i);
550
+ };
551
+ export {
552
+ i as G
553
+ };