cloud-web-corejs 1.0.54-dev.314 → 1.0.54-dev.316
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/baseInputExport/mixins.js +388 -1
- package/src/components/wf/add0pinionButton.vue +102 -0
- package/src/components/wf/content.vue +18 -5
- package/src/components/wf/mixins/setCandidateButton.js +161 -0
- package/src/components/wf/mixins/setCandidateDialog.js +1 -1
- package/src/components/wf/mixins/setCandidateDialog2.js +6 -0
- package/src/components/wf/setCandidateButton.vue +40 -0
- package/src/components/wf/setCandidateDialog2.vue +3 -228
- package/src/components/wf/wf.js +2068 -1
- package/src/components/wf/wfTaskUserRangeDialog.vue +9 -1
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1547 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +108 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +3 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +8 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +91 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -1
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +43 -0
- package/src/components/xform/form-render/container-item/data-table-mixin.js +2416 -1
- package/src/components/xform/lang/zh-CN.js +1 -0
- package/src/components/xform/mixins/scriptHttp.js +172 -1
- package/src/views/user/form/vform/render.vue +1 -1
- package/src/views/user/home/default2.vue +1035 -0
- package/src/views/user/home/taili/index.vue +1024 -0
- package/src/views/user/notify_message/dialog.vue +22 -7
- package/src/views/user/outLink/form_view.vue +211 -211
@@ -38,6 +38,7 @@
|
|
38
38
|
v-show="wfInfo.toRevoke"
|
39
39
|
icon="el-icon-document-delete">{{ $t2('撤回', 'components.wf.revoke') }}
|
40
40
|
</el-button>
|
41
|
+
<add0pinionButton v-if="!!getViewParam('wfSendTaskId')" @confirm="reloadContent()"></add0pinionButton>
|
41
42
|
</div>
|
42
43
|
<div class="title-name">
|
43
44
|
<b>
|
@@ -94,8 +95,19 @@
|
|
94
95
|
<span class="name">{{ wftaskLineData.taskName }}</span>
|
95
96
|
<span>{{ $t2('执行人', 'components.wf.approverName') }}:{{ wftaskLineData.approverName }}</span>
|
96
97
|
<span>
|
97
|
-
|
98
|
-
|
98
|
+
{{ $t2('候选人', 'components.wf.candidateName') }}:
|
99
|
+
<span>
|
100
|
+
<span style="float:left;width:auto;margin-right:10px;">{{ wftaskLineData.candidateNames }}</span>
|
101
|
+
<setCandidateButton
|
102
|
+
v-if="wftaskLineData.flag==1"
|
103
|
+
style="float:left;width:auto;"
|
104
|
+
:current_prefix="current_prefix"
|
105
|
+
:wfInfo="wfInfo"
|
106
|
+
:checkRow="wftaskLineData"
|
107
|
+
@confirm="reloadContent()"
|
108
|
+
></setCandidateButton>
|
109
|
+
</span>
|
110
|
+
|
99
111
|
</span>
|
100
112
|
</p>
|
101
113
|
<p class="t"><span class="t1">{{ $t2('备注/意见', 'components.wf.opinion') }}:</span><span>{{
|
@@ -776,8 +788,7 @@
|
|
776
788
|
<setCandidateDialog v-if="showSetCandidateDialog" :visiable.sync="showSetCandidateDialog"
|
777
789
|
@close="closeSetCandidateDialog"
|
778
790
|
:wfInfo="wfInfo"
|
779
|
-
:current_prefix="current_prefix"
|
780
|
-
:wfUserRangeEnabled="wfUserRangeEnabled"></setCandidateDialog>
|
791
|
+
:current_prefix="current_prefix"></setCandidateDialog>
|
781
792
|
</template>
|
782
793
|
</baseTabPane>
|
783
794
|
<div v-else></div>
|
@@ -792,7 +803,9 @@ export default {
|
|
792
803
|
urgingDialog: () => import('./urgingDialog'),
|
793
804
|
deleteTaskUserDialog: () => import('./deleteTaskUserDialog'),
|
794
805
|
addTaskUserdialog: () => import('./addTaskUserdialog'),
|
795
|
-
setCandidateDialog: () => import('./setCandidateDialog')
|
806
|
+
setCandidateDialog: () => import('./setCandidateDialog'),
|
807
|
+
setCandidateButton: () => import('./setCandidateButton'),
|
808
|
+
add0pinionButton: () => import('./add0pinionButton'),
|
796
809
|
},
|
797
810
|
mixins: [wfContentMixin]
|
798
811
|
};
|
@@ -0,0 +1,161 @@
|
|
1
|
+
import userDialog from "../../../views/user/user/dialog.vue";
|
2
|
+
import wfTaskUserRangeDialog from '../wfTaskUserRangeDialog.vue'
|
3
|
+
|
4
|
+
let moudule = {};
|
5
|
+
moudule = {
|
6
|
+
props: ['visiable', 'multi', 'rows', 'param', 'current_prefix', 'wfInfo','checkRow'],
|
7
|
+
components: {userDialog,wfTaskUserRangeDialog},
|
8
|
+
created() {
|
9
|
+
this.init()
|
10
|
+
},
|
11
|
+
mounted() {
|
12
|
+
|
13
|
+
},
|
14
|
+
data() {
|
15
|
+
var that = this;
|
16
|
+
return {
|
17
|
+
showDialog: true,
|
18
|
+
falseValue: false,
|
19
|
+
selectMulti: true,
|
20
|
+
vxeOption: {},
|
21
|
+
showUserDialog: false,
|
22
|
+
userRows: [],
|
23
|
+
operateIndex: -1,
|
24
|
+
|
25
|
+
rangeTableDatas:[],
|
26
|
+
userRangeRows: [],
|
27
|
+
showWfTaskUserRangeDialog:false,
|
28
|
+
currentRow:null
|
29
|
+
};
|
30
|
+
},
|
31
|
+
methods: {
|
32
|
+
init(){
|
33
|
+
this.currentRow = this.$baseLodash.cloneDeep(this.checkRow);
|
34
|
+
},
|
35
|
+
openShowWfTaskUserRangeDialog(row, rangeTableDatas){
|
36
|
+
/* this.userRangeRows = row.wfTaskCandidateDTOs.map(item => {
|
37
|
+
return {
|
38
|
+
userId: item.id,
|
39
|
+
nickName: item.name
|
40
|
+
}
|
41
|
+
}); */
|
42
|
+
this.rangeTableDatas = rangeTableDatas;
|
43
|
+
this.showWfTaskUserRangeDialog = true;
|
44
|
+
},
|
45
|
+
confirmWfTaskUserRangeDialog(rows){
|
46
|
+
let wfInfo = this.wfInfo;
|
47
|
+
let item2s = []
|
48
|
+
rows.forEach(row => {
|
49
|
+
let userId = row.userId;
|
50
|
+
item2s.push({
|
51
|
+
id: userId,
|
52
|
+
name: row.nickName,
|
53
|
+
userFlag: 6
|
54
|
+
})
|
55
|
+
})
|
56
|
+
|
57
|
+
let formData = {
|
58
|
+
uuid: wfInfo.uuid,
|
59
|
+
taskId:this.currentRow.taskId,
|
60
|
+
nodeId:this.currentRow.taskDefinitionKey,
|
61
|
+
wfTaskCandidateDTOs:item2s
|
62
|
+
}
|
63
|
+
|
64
|
+
this.saveItem(formData);
|
65
|
+
},
|
66
|
+
checkWfTaskUserRange(row, callback){
|
67
|
+
//是否使用用户范围
|
68
|
+
let wfInfo = this.wfInfo;
|
69
|
+
this.$http({
|
70
|
+
url: this.current_prefix + '/wf_task_user_range/list',
|
71
|
+
method: `post`,
|
72
|
+
data: {
|
73
|
+
modelId: wfInfo.modelId,
|
74
|
+
taskDefinitionKey: row.taskDefinitionKey
|
75
|
+
},
|
76
|
+
isLoading: true,
|
77
|
+
errorMsg: false,
|
78
|
+
error:(error)=>{
|
79
|
+
if(error?.response?.status == 404){
|
80
|
+
//不使用用户范围
|
81
|
+
callback && callback();
|
82
|
+
}else{
|
83
|
+
this.$errorMsg({
|
84
|
+
content: error.message,
|
85
|
+
type: 'error',
|
86
|
+
})
|
87
|
+
}
|
88
|
+
},
|
89
|
+
success: res => {
|
90
|
+
let rows = res.objx || [];
|
91
|
+
if(!rows.length){
|
92
|
+
//不使用用户范围
|
93
|
+
callback && callback();
|
94
|
+
}else{
|
95
|
+
//使用用户范围
|
96
|
+
this.openShowWfTaskUserRangeDialog(row, rows)
|
97
|
+
}
|
98
|
+
}
|
99
|
+
});
|
100
|
+
},
|
101
|
+
|
102
|
+
openUserDialig() {
|
103
|
+
let row = this.currentRow;
|
104
|
+
//是否使用用户范围
|
105
|
+
this.checkWfTaskUserRange(row, ()=>{
|
106
|
+
//不使用用户范围
|
107
|
+
/* this.userRows = row.wfTaskCandidateDTOs.map(item => {
|
108
|
+
return {
|
109
|
+
id: item.id,
|
110
|
+
nickName: item.name
|
111
|
+
}
|
112
|
+
}); */
|
113
|
+
this.showUserDialog = true;
|
114
|
+
})
|
115
|
+
},
|
116
|
+
userConfirm(rows) {
|
117
|
+
let wfInfo = this.wfInfo;
|
118
|
+
let item2s = []
|
119
|
+
rows.forEach(row => {
|
120
|
+
let userId = row.id + "";
|
121
|
+
item2s.push({
|
122
|
+
id: userId,
|
123
|
+
name: row.nickName,
|
124
|
+
userFlag: 6
|
125
|
+
})
|
126
|
+
})
|
127
|
+
|
128
|
+
let formData = {
|
129
|
+
uuid: wfInfo.uuid,
|
130
|
+
taskId:this.currentRow.taskId,
|
131
|
+
nodeId:this.currentRow.taskDefinitionKey,
|
132
|
+
wfTaskCandidateDTOs:item2s
|
133
|
+
}
|
134
|
+
|
135
|
+
this.saveItem(formData);
|
136
|
+
},
|
137
|
+
saveItem(row) {
|
138
|
+
this.$http({
|
139
|
+
url: this.current_prefix + '/wf/setCurrentTaskUser',
|
140
|
+
method: `post`,
|
141
|
+
data: row,
|
142
|
+
isLoading: true,
|
143
|
+
success: res => {
|
144
|
+
this.$message({
|
145
|
+
message: res.content,
|
146
|
+
type: 'success',
|
147
|
+
duration: 500,
|
148
|
+
onClose: t => {
|
149
|
+
this.$emit('confirm')
|
150
|
+
}
|
151
|
+
});
|
152
|
+
}
|
153
|
+
});
|
154
|
+
},
|
155
|
+
closeWin() {
|
156
|
+
this.dialogClose();
|
157
|
+
this.$emit('close')
|
158
|
+
}
|
159
|
+
}
|
160
|
+
};
|
161
|
+
export default moudule;
|