cloud-web-corejs 1.0.54-dev.500 → 1.0.54-dev.502

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.
@@ -77,6 +77,7 @@ export default {
77
77
  },
78
78
  computedStyle() {
79
79
  let displayStyle = !this.designState && this.field.options.hidden ? "none !important":this.displayStyle
80
+ if(!this.designState && !this.isShow)displayStyle = "none !important";
80
81
  return {display: displayStyle, height: this.heightStyle};
81
82
  },
82
83
  isShow() {
@@ -20,6 +20,100 @@
20
20
  placeholder="默认saveUpdatge"
21
21
  ></el-input>
22
22
  </el-form-item>
23
+ <el-form-item :label="i18nt('designer.setting.globalFunctions')">
24
+ <a
25
+ href="javascript:void(0);"
26
+ class="a-link link-oneLind"
27
+ @click="editGlobalFunctions"
28
+ >
29
+ <span>{{ formConfig.functions }}</span>
30
+ <i class="el-icon-edit"></i>
31
+ </a>
32
+ </el-form-item>
33
+ <el-form-item :label="i18nt('designer.setting.formCss')">
34
+ <el-button type="info" icon="el-icon-edit" plain round @click="editFormCss">
35
+ {{ i18nt("designer.setting.addCss") }}
36
+ </el-button>
37
+ </el-form-item>
38
+ </el-collapse-item>
39
+ <el-collapse-item name="2" title="详情表单信息">
40
+ <el-form-item :label="i18nt('加载详情数据')">
41
+ <el-switch v-model="formConfig.isLoadEntity"></el-switch>
42
+ </el-form-item>
43
+ <el-form-item :label="i18nt('详情数据脚本编码')">
44
+ <el-input
45
+ type="text"
46
+ v-model="formConfig.formScriptCode"
47
+ placeholder="默认getOne"
48
+ ></el-input>
49
+ </el-form-item>
50
+ <el-form-item :label="i18nt('详情数据脚本参数')">
51
+ <a
52
+ href="javascript:void(0);"
53
+ class="a-link link-oneLind"
54
+ @click="editFormScriptParam"
55
+ >
56
+ <span>{{ formConfig.formScriptParam }}</span>
57
+ <i class="el-icon-edit"></i>
58
+ </a>
59
+ </el-form-item>
60
+ <el-form-item :label="i18nt('详情数据脚本回调')">
61
+ <a
62
+ href="javascript:void(0);"
63
+ class="a-link link-oneLind"
64
+ @click="editFormScriptSuccess"
65
+ >
66
+ <span>{{ formConfig.formScriptSuccess }}</span>
67
+ <i class="el-icon-edit"></i>
68
+ </a>
69
+ </el-form-item>
70
+ <el-form-item :label="i18nt('查看页面表单编码')">
71
+ <el-input
72
+ class="search-input"
73
+ max="200"
74
+ v-model="formConfig.editFormCode"
75
+ @clear="
76
+ formConfig.editFormName = null;
77
+ $forceUpdate();
78
+ "
79
+ v-el-readonly
80
+ clearable
81
+ >
82
+ <i
83
+ slot="suffix"
84
+ class="el-input__icon el-icon-search"
85
+ @click="openFormTemplate(2)"
86
+ ></i>
87
+ </el-input>
88
+ </el-form-item>
89
+ <el-form-item :label="i18nt('查看页面表单名称')">
90
+ {{ formConfig.editFormName }}
91
+ </el-form-item>
92
+ <el-form-item :label="i18nt('新增页面表单编码')">
93
+ <el-input
94
+ class="search-input"
95
+ max="200"
96
+ v-model="formConfig.addFormCode"
97
+ @clear="
98
+ formConfig.addFormCode = null;
99
+ $forceUpdate();
100
+ "
101
+ v-el-readonly
102
+ clearable
103
+ placeholder="默认使用查看表单编码"
104
+ >
105
+ <i
106
+ slot="suffix"
107
+ class="el-input__icon el-icon-search"
108
+ @click="openFormTemplate(1)"
109
+ ></i>
110
+ </el-input>
111
+ </el-form-item>
112
+ <el-form-item :label="i18nt('新增页面表单名称')">
113
+ {{ formConfig.addFormName }}
114
+ </el-form-item>
115
+ </el-collapse-item>
116
+ <el-collapse-item name="3" title="流程信息">
23
117
  <el-form-item :label="i18nt('启用流程')">
24
118
  <el-switch
25
119
  v-model="formConfig.wfEnabled"
@@ -33,13 +127,6 @@
33
127
  title="流程主题说明"
34
128
  path="static/readme/WfSubject.txt"
35
129
  ></scriptDescriptionButton>
36
- <!-- <el-tooltip effect="light">
37
- <i class="el-icon-info"></i>
38
- <div slot="content" style="white-space: pre-wrap;">
39
- {{tip1}}
40
- </div>
41
-
42
- </el-tooltip> -->
43
130
  </span>
44
131
  </el-form-item>
45
132
  <div>
@@ -110,59 +197,8 @@
110
197
  <i class="el-icon-edit"></i>
111
198
  </a>
112
199
  </el-form-item>
113
- <!-- <el-form-item label="流程单据定义">
114
- <a href="javascript:void(0);" class="a-link link-oneLind" @click="openWfObjConfigDialog">
115
- <span>{{ wfObjConfigs.length ? '已维护' : null}}</span>
116
- <i class="el-icon-edit"></i>
117
- </a>
118
- </el-form-item>-->
119
- <el-form-item :label="i18nt('加载详情数据')">
120
- <el-switch v-model="formConfig.isLoadEntity"></el-switch>
121
- </el-form-item>
122
- <el-form-item :label="i18nt('详情数据脚本编码')">
123
- <el-input
124
- type="text"
125
- v-model="formConfig.formScriptCode"
126
- placeholder="默认getOne"
127
- ></el-input>
128
- </el-form-item>
129
- <el-form-item :label="i18nt('详情数据脚本参数')">
130
- <a
131
- href="javascript:void(0);"
132
- class="a-link link-oneLind"
133
- @click="editFormScriptParam"
134
- >
135
- <span>{{ formConfig.formScriptParam }}</span>
136
- <i class="el-icon-edit"></i>
137
- </a>
138
- </el-form-item>
139
- <el-form-item :label="i18nt('详情数据脚本回调')">
140
- <a
141
- href="javascript:void(0);"
142
- class="a-link link-oneLind"
143
- @click="editFormScriptSuccess"
144
- >
145
- <span>{{ formConfig.formScriptSuccess }}</span>
146
- <i class="el-icon-edit"></i>
147
- </a>
148
- </el-form-item>
149
- <el-form-item :label="i18nt('designer.setting.globalFunctions')">
150
- <a
151
- href="javascript:void(0);"
152
- class="a-link link-oneLind"
153
- @click="editGlobalFunctions"
154
- >
155
- <span>{{ formConfig.functions }}</span>
156
- <i class="el-icon-edit"></i>
157
- </a>
158
- </el-form-item>
159
- <el-form-item :label="i18nt('designer.setting.formCss')">
160
- <el-button type="info" icon="el-icon-edit" plain round @click="editFormCss">
161
- {{ i18nt("designer.setting.addCss") }}
162
- </el-button>
163
- </el-form-item>
164
200
  </el-collapse-item>
165
- <el-collapse-item name="2" title="列表标签页信息">
201
+ <el-collapse-item name="4" title="列表标签页信息">
166
202
  <el-form-item :label="i18nt('列表启用详情多标签')">
167
203
  <el-switch v-model="formConfig.multiTabEnabled"></el-switch>
168
204
  </el-form-item>
@@ -170,7 +206,7 @@
170
206
  <el-input type="text" v-model="formConfig.multiTabLabelField"></el-input>
171
207
  </el-form-item>
172
208
  </el-collapse-item>
173
- <el-collapse-item name="2" title="其他标签页信息">
209
+ <el-collapse-item name="5" title="其他标签页信息">
174
210
  <el-form-item :label="i18nt('自定义列表标签名称')">
175
211
  <el-input
176
212
  type="text"
@@ -225,55 +261,7 @@
225
261
  </div>
226
262
  </el-form-item>
227
263
  </el-collapse-item>
228
-
229
- <el-collapse-item name="3" title="详情表单信息">
230
- <el-form-item :label="i18nt('查看页面表单编码')">
231
- <el-input
232
- class="search-input"
233
- max="200"
234
- v-model="formConfig.editFormCode"
235
- @clear="
236
- formConfig.editFormName = null;
237
- $forceUpdate();
238
- "
239
- v-el-readonly
240
- clearable
241
- >
242
- <i
243
- slot="suffix"
244
- class="el-input__icon el-icon-search"
245
- @click="openFormTemplate(2)"
246
- ></i>
247
- </el-input>
248
- </el-form-item>
249
- <el-form-item :label="i18nt('查看页面表单名称')">
250
- {{ formConfig.editFormName }}
251
- </el-form-item>
252
- <el-form-item :label="i18nt('新增页面表单编码')">
253
- <el-input
254
- class="search-input"
255
- max="200"
256
- v-model="formConfig.addFormCode"
257
- @clear="
258
- formConfig.addFormCode = null;
259
- $forceUpdate();
260
- "
261
- v-el-readonly
262
- clearable
263
- placeholder="默认使用查看表单编码"
264
- >
265
- <i
266
- slot="suffix"
267
- class="el-input__icon el-icon-search"
268
- @click="openFormTemplate(1)"
269
- ></i>
270
- </el-input>
271
- </el-form-item>
272
- <el-form-item :label="i18nt('新增页面表单名称')">
273
- {{ formConfig.addFormName }}
274
- </el-form-item>
275
- </el-collapse-item>
276
- <el-collapse-item name="4" title="查询弹框展示信息">
264
+ <el-collapse-item name="6" title="查询弹框展示信息">
277
265
  <el-form-item :label="i18nt('展示字段')">
278
266
  <el-input
279
267
  class="search-input"
@@ -296,7 +284,7 @@
296
284
 
297
285
  <el-collapse-item
298
286
  v-if="showEventCollapse()"
299
- name="2"
287
+ name="7"
300
288
  :title="i18nt('designer.setting.eventSetting')"
301
289
  >
302
290
  <!-- <el-form-item label="onBeforeCreated" label-width="150px">
@@ -838,6 +826,120 @@
838
826
  </div>
839
827
  </el-dialog>
840
828
 
829
+ <el-dialog
830
+ v-if="showWfActionTipConfigDialog"
831
+ custom-class="dialog-style list-dialog"
832
+ :title="i18nt('流程提交提醒配置')"
833
+ :visible.sync="showWfActionTipConfigDialog"
834
+ :show-close="!0"
835
+ :append-to-body="true"
836
+ :modal="false"
837
+ :close-on-click-modal="!1"
838
+ :close-on-press-escape="!1"
839
+ :destroy-on-close="!0"
840
+ width="1220px"
841
+ top="5vh"
842
+ v-dialog-drag
843
+ :fullscreen="true"
844
+ >
845
+ <div class="cont" style="padding-bottom: 8px">
846
+ <el-table
847
+ ref="singleTable"
848
+ width="100%"
849
+ :data="wfActionTipConfig"
850
+ height="100%"
851
+ border=""
852
+ row-key="columnId"
853
+ stripe=""
854
+ style="margin-bottom: 0px"
855
+ >
856
+ <el-table-column type="index" width="35" fixed="left"></el-table-column>
857
+ <el-table-column :label="i18nt('组织编码')" width="250">
858
+ <template slot-scope="{ row, $index }">
859
+ <el-input
860
+ class="search-input"
861
+ max="200"
862
+ v-model="row.companyCodes"
863
+ @clear="clearBdCompanyEnv2(row)"
864
+ v-el-readonly
865
+ clearable
866
+ >
867
+ <i
868
+ slot="suffix"
869
+ class="el-input__icon el-icon-search"
870
+ @click="openBdCompanyEnvDialog2($index)"
871
+ ></i>
872
+ </el-input>
873
+ </template>
874
+ </el-table-column>
875
+ <el-table-column :label="i18nt('服务名称')" width="150">
876
+ <template slot-scope="{ row }">
877
+ {{ row.serveName }}
878
+ </template>
879
+ </el-table-column>
880
+ <el-table-column :label="i18nt('流程模板序号')" width="150">
881
+ <template slot-scope="{ row }">
882
+ <base-input-number v-model="row.modelOrders" clearable></base-input-number>
883
+ </template>
884
+ </el-table-column>
885
+ <el-table-column :label="i18nt('节点步骤')" width="250">
886
+ <template slot-scope="{ row }">
887
+ <el-input v-model="row.taskStep" clearable></el-input>
888
+ </template>
889
+ </el-table-column>
890
+ <el-table-column :label="i18nt('通过提示语')" width="250">
891
+ <template slot-scope="{ row }">
892
+ <el-input v-model="row.sumitTip" clearable></el-input>
893
+ </template>
894
+ </el-table-column>
895
+ <el-table-column
896
+ :label="i18nt('designer.setting.actionColumn')"
897
+ width="100"
898
+ align="center"
899
+ >
900
+ <template #header>
901
+ <span>{{ i18nt("designer.setting.actionColumn") }}</span>
902
+ <el-button
903
+ :title="i18nt('designer.setting.addTableColumn')"
904
+ size="mini"
905
+ type=""
906
+ circle=""
907
+ icon="el-icon-plus"
908
+ @click="addWfActionTip"
909
+ ></el-button>
910
+ </template>
911
+ <template slot-scope="scope">
912
+ <el-button
913
+ :title="i18nt('designer.setting.deleteTableColumn')"
914
+ size="mini"
915
+ type=""
916
+ circle=""
917
+ icon="el-icon-minus"
918
+ @click="wfActionTipConfig.splice(scope.$index, 1)"
919
+ ></el-button>
920
+ </template>
921
+ </el-table-column>
922
+ </el-table>
923
+ </div>
924
+ <div class="dialog-footer" slot="footer">
925
+ <el-button
926
+ @click="showWfActionTipConfigDialog = false"
927
+ class="button-sty"
928
+ icon="el-icon-close"
929
+ >
930
+ {{ i18nt("designer.hint.cancel") }}
931
+ </el-button>
932
+ <el-button
933
+ type="primary"
934
+ @click="confirmWfActionTipConfigDialog"
935
+ class="button-sty"
936
+ icon="el-icon-check"
937
+ >
938
+ {{ i18nt("designer.hint.confirm") }}
939
+ </el-button>
940
+ </div>
941
+ </el-dialog>
942
+
841
943
  <formTemplateDialog
842
944
  v-if="showFormTemplateDialog"
843
945
  :visiable.sync="showFormTemplateDialog"
@@ -885,7 +987,7 @@ export default {
885
987
  formTemplateDialog,
886
988
  wfObjConfigDialog,
887
989
  bdCompanyEnvDialog,
888
- Draggable
990
+ Draggable,
889
991
  },
890
992
  props: {
891
993
  designer: Object,
@@ -896,7 +998,7 @@ export default {
896
998
  return {
897
999
  designerConfig: this.getDesignerConfig(),
898
1000
 
899
- formActiveCollapseNames: ["1", "2"],
1001
+ formActiveCollapseNames: ["1", "2", "7"],
900
1002
 
901
1003
  formSizes: [
902
1004
  { label: "default", value: "" },
@@ -943,6 +1045,9 @@ export default {
943
1045
  dialogVisible2: false,
944
1046
  wfAgreeConfigData: [],
945
1047
 
1048
+ showWfActionTipConfigDialog: false, //是否显示流程操作提示配置对话框
1049
+ wfActionTipConfig: [], //流程操作提示配置
1050
+
946
1051
  showBdCompanyEnvDialog1: false,
947
1052
  showBdCompanyEnvDialog2: false,
948
1053
 
@@ -1376,6 +1481,63 @@ $\{wf.starterName\}提交的$\{pm_product_project.product_code\}$\{pm_product_pr
1376
1481
  formCode: null,
1377
1482
  });
1378
1483
  },
1484
+ //流程工作流提示配置
1485
+ openWfActionTipConfigDialog() {
1486
+ let tableData = this.formConfig.wfActionTipConfig || [];
1487
+ this.showWfActionTipConfigDialog = true;
1488
+ this.wfActionTipConfig = this.$baseLodash.cloneDeep(tableData);
1489
+ },
1490
+ addWfActionTip() {
1491
+ let newItem = {
1492
+ type: null,
1493
+ serveType: null,
1494
+ serveName: null,
1495
+ modelKey: null,
1496
+ modelOrders: undefined,
1497
+ taskStep: null,
1498
+ companyCodes: null,
1499
+ sumitTip: null,
1500
+ };
1501
+ this.wfActionTipConfigData.push(newItem);
1502
+ },
1503
+ confirmWfActionTipConfigDialog() {
1504
+ let tableData = this.wfActionTipConfig;
1505
+ let map = {};
1506
+ for (let i = 0; i < tableData.length; i++) {
1507
+ let item = tableData[i];
1508
+ if (!item.serveName) {
1509
+ this.$message({
1510
+ type: "error",
1511
+ message: "服务名称不能为空",
1512
+ });
1513
+ return;
1514
+ }
1515
+ if (!item.companyCodes) {
1516
+ this.$message({
1517
+ type: "error",
1518
+ message: "组织编码不能为空",
1519
+ });
1520
+ return;
1521
+ }
1522
+ /* let modelOrders = item.modelOrders ?? "";
1523
+
1524
+ let serveName = item.serveName;
1525
+ let companyCodes = item.companyCodes;
1526
+ let key = serveName + "_" + companyCodes + "_" + modelOrders;
1527
+ if (!map[key]) {
1528
+ map[key] = true;
1529
+ } else {
1530
+ this.$message({
1531
+ type: "error",
1532
+ message: "[服务+组织+流程模板序号]不能重复",
1533
+ });
1534
+ return;
1535
+ } */
1536
+ }
1537
+
1538
+ this.showWfActionTipConfigDialog = false;
1539
+ this.formConfig.wfActionTipConfig = tableData;
1540
+ },
1379
1541
  },
1380
1542
  };
1381
1543
  </script>