cloud-web-corejs 1.0.54-dev.505 → 1.0.54-dev.507
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/package.json +1 -1
- package/src/components/baseAlert/mixins.js +57 -1
- package/src/components/confirmDialog/index.vue +24 -17
- package/src/components/confirmDialog/mixins.js +31 -1
- package/src/components/errorMsg/mixins.js +93 -1
- package/src/components/table/index.js +1038 -1
- package/src/components/wf/wf.js +101 -81
- package/src/components/xform/form-designer/designer.js +0 -2
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +6 -181
- package/src/components/xform/form-render/indexMixin.js +0 -4
- package/src/components/xform/utils/util.js +0 -2
- package/src/components/xform/utils/formula-util copy 2.js +0 -945
- package/src/components/xform/utils/formula-util copy.js +0 -857
package/src/components/wf/wf.js
CHANGED
|
@@ -705,48 +705,51 @@ wfContentMixin = {
|
|
|
705
705
|
});
|
|
706
706
|
},
|
|
707
707
|
async rejectWfTask(operateType) {
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
await that.$http({
|
|
714
|
-
url: this.current_prefix + "/wf/getPreIncomeNodes",
|
|
715
|
-
data: {
|
|
716
|
-
stringOne: taskId,
|
|
717
|
-
},
|
|
718
|
-
method: "post",
|
|
719
|
-
//contentType: 'application/json;charset=utf-8',
|
|
720
|
-
async: false,
|
|
721
|
-
isLoading: true,
|
|
722
|
-
success: (resultMsg) => {
|
|
723
|
-
destinations = (resultMsg.objx || []).reverse();
|
|
724
|
-
},
|
|
725
|
-
});
|
|
708
|
+
this.handleReminderContent("rejectReminder", async ()=>{
|
|
709
|
+
let that = getTarget(this);
|
|
710
|
+
var procInstId = this.wfInfo.procInstId;
|
|
711
|
+
var taskId = this.wfInfo.taskId;
|
|
712
|
+
var destinations = [];
|
|
726
713
|
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
714
|
+
await that.$http({
|
|
715
|
+
url: this.current_prefix + "/wf/getPreIncomeNodes",
|
|
716
|
+
data: {
|
|
717
|
+
stringOne: taskId,
|
|
718
|
+
},
|
|
719
|
+
method: "post",
|
|
720
|
+
//contentType: 'application/json;charset=utf-8',
|
|
721
|
+
async: false,
|
|
722
|
+
isLoading: true,
|
|
723
|
+
success: (resultMsg) => {
|
|
724
|
+
destinations = (resultMsg.objx || []).reverse();
|
|
725
|
+
},
|
|
735
726
|
});
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
727
|
+
|
|
728
|
+
if (destinations == null) {
|
|
729
|
+
return false;
|
|
730
|
+
}
|
|
731
|
+
if (destinations.length == 0) {
|
|
732
|
+
that.$message({
|
|
733
|
+
message: this.$t2('无法驳回,没有目标节点', 'components.wf.rejectWarnMsg1'),
|
|
734
|
+
type: "error",
|
|
735
|
+
duration: 2 * 1000,
|
|
736
|
+
});
|
|
737
|
+
return false;
|
|
738
|
+
}
|
|
739
|
+
this.operateType = operateType;
|
|
740
|
+
let rejectSubmitModel = null;
|
|
741
|
+
if (this.wfInfo.toNextNode === 1) {
|
|
742
|
+
rejectSubmitModel = this.wfInfo.toNextNode
|
|
743
|
+
} else {
|
|
744
|
+
rejectSubmitModel = this.wfInfo.toRejectNode == false ? 2 : null
|
|
745
|
+
}
|
|
746
|
+
this.rejectForm.rejectSubmitModel = rejectSubmitModel;
|
|
747
|
+
this.rejectForm.nodeId = destinations[0].nodeId;
|
|
748
|
+
this.rejectForm.opinion = "";
|
|
749
|
+
this.rejectNodes = destinations;
|
|
750
|
+
this.rejectDialogVisible = true;
|
|
751
|
+
})
|
|
752
|
+
|
|
750
753
|
},
|
|
751
754
|
subRejectForm() {
|
|
752
755
|
let that = getTarget(this);
|
|
@@ -800,35 +803,70 @@ wfContentMixin = {
|
|
|
800
803
|
},
|
|
801
804
|
});
|
|
802
805
|
},
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
this.agreeForm = {
|
|
808
|
-
opinion: this.$t2('同意', 'components.wf.defaultAgreeOption'),
|
|
809
|
-
nodeId: null,
|
|
810
|
-
};
|
|
811
|
-
this.agreeNodes = [];
|
|
812
|
-
that.$http({
|
|
813
|
-
url: this.current_prefix + "/wf/getNextOutgoingNodes",
|
|
806
|
+
handleReminderContent(scriptType, callback){
|
|
807
|
+
let that = getTarget(this);
|
|
808
|
+
that.$http({
|
|
809
|
+
url: this.current_prefix + "/wf/getReminderContent",
|
|
814
810
|
data: {
|
|
815
|
-
|
|
811
|
+
scriptType,
|
|
812
|
+
taskId: this.wfInfo.taskId,
|
|
813
|
+
uuid: this.wfInfo.uuid,
|
|
816
814
|
},
|
|
817
815
|
method: "post",
|
|
818
|
-
async: false,
|
|
819
816
|
isLoading: true,
|
|
817
|
+
errorMsg: false,
|
|
820
818
|
success: (res) => {
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
819
|
+
if(res.objx){
|
|
820
|
+
that.$baseConfirm(res.objx).then(() => {
|
|
821
|
+
callback && callback();
|
|
822
|
+
});
|
|
823
|
+
}else{
|
|
824
|
+
callback && callback();
|
|
827
825
|
}
|
|
828
|
-
this.agreeNodes = nodes;
|
|
829
|
-
this.agreeDialogVisible = true;
|
|
830
826
|
},
|
|
831
|
-
|
|
827
|
+
error: (e) => {
|
|
828
|
+
if(e.response.status === 404){
|
|
829
|
+
callback && callback();
|
|
830
|
+
}else{
|
|
831
|
+
that.$errorMsg({
|
|
832
|
+
content: e.message,
|
|
833
|
+
type: 'error',
|
|
834
|
+
});
|
|
835
|
+
}
|
|
836
|
+
},
|
|
837
|
+
});
|
|
838
|
+
},
|
|
839
|
+
openAgreeDialog(operateType) {
|
|
840
|
+
const done = () => {
|
|
841
|
+
this.handleReminderContent("submitReminder", ()=>{
|
|
842
|
+
this.operateType = operateType;
|
|
843
|
+
let that = getTarget(this);
|
|
844
|
+
this.agreeForm = {
|
|
845
|
+
opinion: this.$t2('同意', 'components.wf.defaultAgreeOption'),
|
|
846
|
+
nodeId: null,
|
|
847
|
+
};
|
|
848
|
+
this.agreeNodes = [];
|
|
849
|
+
that.$http({
|
|
850
|
+
url: this.current_prefix + "/wf/getNextOutgoingNodes",
|
|
851
|
+
data: {
|
|
852
|
+
stringOne: this.wfInfo.taskId,
|
|
853
|
+
},
|
|
854
|
+
method: "post",
|
|
855
|
+
async: false,
|
|
856
|
+
isLoading: true,
|
|
857
|
+
success: (res) => {
|
|
858
|
+
let nodes = res.objx || [];
|
|
859
|
+
/*if (tq == true) {
|
|
860
|
+
nodes.reverse();
|
|
861
|
+
}*/
|
|
862
|
+
if (nodes.length) {
|
|
863
|
+
this.agreeForm.nodeId = nodes[0].nodeId;
|
|
864
|
+
}
|
|
865
|
+
this.agreeNodes = nodes;
|
|
866
|
+
this.agreeDialogVisible = true;
|
|
867
|
+
},
|
|
868
|
+
});
|
|
869
|
+
})
|
|
832
870
|
}
|
|
833
871
|
let wfConfig = this.wfConfig;
|
|
834
872
|
if (wfConfig.onClickAgree) {
|
|
@@ -848,25 +886,7 @@ wfContentMixin = {
|
|
|
848
886
|
done();
|
|
849
887
|
}
|
|
850
888
|
},
|
|
851
|
-
|
|
852
|
-
let that = getTarget(this);
|
|
853
|
-
let wfConfig = this.wfConfig;
|
|
854
|
-
let wfActionTipConfig = wfConfig.wfActionTipConfig
|
|
855
|
-
let tipMsg = "";
|
|
856
|
-
if(wfActionTipConfig){
|
|
857
|
-
wfActionTipConfig.forEach((item) => {
|
|
858
|
-
if(item.operateType == this.operateType){
|
|
859
|
-
tipMsg = item.tipMsg || "";
|
|
860
|
-
}
|
|
861
|
-
})
|
|
862
|
-
}
|
|
863
|
-
if (this.formConfig.wfActionTipConfigEnabled) {
|
|
864
|
-
tipMsg = this.wfConfig.wfActionTipConfig || "";
|
|
865
|
-
} else {
|
|
866
|
-
tipMsg = that.$t2('是否同意该操作?', 'components.wf.defaultAgreeTipMsg');
|
|
867
|
-
}
|
|
868
|
-
return tipMsg;
|
|
869
|
-
},
|
|
889
|
+
|
|
870
890
|
subAgreeHandle() {
|
|
871
891
|
let that = getTarget(this);
|
|
872
892
|
let nodeId = null;
|
|
@@ -89,8 +89,6 @@ let chartContainers = [],
|
|
|
89
89
|
wfAgreeConfigData:[],
|
|
90
90
|
wfConfigDataEnabled:false,
|
|
91
91
|
wfConfigData:[],
|
|
92
|
-
wfActionTipConfigEnabled:false,//是否启用流程工作流操作提示配置
|
|
93
|
-
wfActionTipConfig:[],//流程工作流操作提示配置
|
|
94
92
|
multiTabEnabled:false,
|
|
95
93
|
multiTabLabelField:null,
|
|
96
94
|
addFormCode: null,
|
|
@@ -120,6 +120,12 @@
|
|
|
120
120
|
@change="changeWfEnabled"
|
|
121
121
|
></el-switch>
|
|
122
122
|
</el-form-item>
|
|
123
|
+
<el-form-item :label="i18nt('默认流程单据类型名称')">
|
|
124
|
+
<el-input
|
|
125
|
+
type="text"
|
|
126
|
+
v-model="designer.vueInstance.reportTemplate.objTypeName"
|
|
127
|
+
></el-input>
|
|
128
|
+
</el-form-item>
|
|
123
129
|
<el-form-item>
|
|
124
130
|
<span slot="label"
|
|
125
131
|
>流程主题
|
|
@@ -174,13 +180,6 @@
|
|
|
174
180
|
<i class="el-icon-edit"></i>
|
|
175
181
|
</a>
|
|
176
182
|
</el-form-item>
|
|
177
|
-
|
|
178
|
-
<el-form-item :label="i18nt('默认流程单据类型名称')">
|
|
179
|
-
<el-input
|
|
180
|
-
type="text"
|
|
181
|
-
v-model="designer.vueInstance.reportTemplate.objTypeName"
|
|
182
|
-
></el-input>
|
|
183
|
-
</el-form-item>
|
|
184
183
|
<el-form-item :label="i18nt('引用流程的表单编码')">
|
|
185
184
|
<el-input
|
|
186
185
|
type="text"
|
|
@@ -826,120 +825,6 @@
|
|
|
826
825
|
</div>
|
|
827
826
|
</el-dialog>
|
|
828
827
|
|
|
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
|
-
|
|
943
828
|
<formTemplateDialog
|
|
944
829
|
v-if="showFormTemplateDialog"
|
|
945
830
|
:visiable.sync="showFormTemplateDialog"
|
|
@@ -1045,9 +930,6 @@ export default {
|
|
|
1045
930
|
dialogVisible2: false,
|
|
1046
931
|
wfAgreeConfigData: [],
|
|
1047
932
|
|
|
1048
|
-
showWfActionTipConfigDialog: false, //是否显示流程操作提示配置对话框
|
|
1049
|
-
wfActionTipConfig: [], //流程操作提示配置
|
|
1050
|
-
|
|
1051
933
|
showBdCompanyEnvDialog1: false,
|
|
1052
934
|
showBdCompanyEnvDialog2: false,
|
|
1053
935
|
|
|
@@ -1481,63 +1363,6 @@ $\{wf.starterName\}提交的$\{pm_product_project.product_code\}$\{pm_product_pr
|
|
|
1481
1363
|
formCode: null,
|
|
1482
1364
|
});
|
|
1483
1365
|
},
|
|
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
|
-
},
|
|
1541
1366
|
},
|
|
1542
1367
|
};
|
|
1543
1368
|
</script>
|
|
@@ -1282,10 +1282,6 @@ modules = {
|
|
|
1282
1282
|
};
|
|
1283
1283
|
}
|
|
1284
1284
|
|
|
1285
|
-
if(formConfig.wfActionTipConfigEnable){
|
|
1286
|
-
let wfActionTipConfig = formConfig.wfActionTipConfig
|
|
1287
|
-
}
|
|
1288
|
-
|
|
1289
1285
|
let resOption = option;
|
|
1290
1286
|
if (wfConfig1) {
|
|
1291
1287
|
resOption = extendDeeply(resOption, wfConfig1);
|
|
@@ -853,8 +853,6 @@ export function getDefaultFormConfig() {
|
|
|
853
853
|
wfAgreeConfigData: [],
|
|
854
854
|
wfConfigDataEnabled: false,
|
|
855
855
|
wfConfigData: [],
|
|
856
|
-
wfActionTipConfigEnabled: false, //是否启用流程工作流操作提示配置
|
|
857
|
-
wfActionTipConfig: [], //流程工作流操作提示配置
|
|
858
856
|
multiTabEnabled: false,
|
|
859
857
|
multiTabLabelField: null,
|
|
860
858
|
addFormCode: null,
|