cloud-web-corejs 1.0.54-dev.568 → 1.0.54-dev.569
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/VabUpload/index.js +48 -1
- package/src/components/VabUpload/mixins.js +1821 -1
- package/src/components/VabUpload/privateProfileDialogMixins.js +1063 -1
- package/src/components/advancedSearchDialog/mixins.js +28 -1
- package/src/components/baseAlert/index.js +44 -1
- package/src/components/baseAlert/mixins.js +61 -1
- package/src/components/baseAttachment/install.js +21 -5
- package/src/components/baseAttachment/mixins.js +317 -1
- package/src/components/baseInputBatch/mixins.js +58 -1
- package/src/components/baseInputExport/mixins.js +391 -1
- package/src/components/baseTabs/mixins.js +166 -1
- package/src/components/cnPrint/index.js +44 -1
- package/src/components/cnPrint/mixins.js +189 -1
- package/src/components/confirmDialog/index.js +41 -1
- package/src/components/confirmDialog/mixins.js +31 -1
- package/src/components/errorMsg/index.js +44 -1
- package/src/components/errorMsg/mixins.js +96 -1
- package/src/components/excelExport/index.js +1 -1
- package/src/components/excelExport/mixins.js +1 -1
- package/src/components/excelImport/index.js +13 -13
- package/src/components/excelImport/mixins.js +1 -1
- package/src/components/formOplog/mixins.js +77 -1
- package/src/components/hiprint/view/design/mixins.js +611 -1
- package/src/components/jdPrint/index.js +44 -1
- package/src/components/jdPrint/mixins.js +208 -1
- package/src/components/jsonImport/index.js +187 -17
- package/src/components/jsonImport/mixins.js +332 -1
- package/src/components/langImport/index.js +80 -1
- package/src/components/langImport/mixins.js +484 -1
- package/src/components/langTag/mixins/addButton.js +51 -5
- package/src/components/langTag/mixins/deleteButton.js +55 -5
- package/src/components/langTag/mixins/view.js +47 -5
- package/src/components/luckysheet/export.js +591 -1
- package/src/components/luckysheet/fileUtils.js +147 -1
- package/src/components/luckysheet/index.js +72 -1
- package/src/components/obsUpload/index.js +34 -1
- package/src/components/obsUpload/mixins.js +1469 -1
- package/src/components/onlineTalk/mixins.js +852 -1
- package/src/components/oplogTable/mixins.js +80 -1
- package/src/components/pddPrint/index.js +44 -1
- package/src/components/pddPrint/mixins.js +252 -1
- package/src/components/projectTag/mixins/addButton.js +52 -1
- package/src/components/projectTag/mixins/deleteButton.js +52 -1
- package/src/components/projectTag/mixins/view.js +43 -1
- package/src/components/scriptDescription/mixins.js +30 -1
- package/src/components/scriptTest/mixins.js +90 -1
- package/src/components/statusTag/mixins.js +66 -1
- package/src/components/table/config.js +1 -1
- package/src/components/table/index.js +12 -1
- package/src/components/table/tableFormMixin.js +1 -1
- package/src/components/table/vxeFilter/index.js +1 -1
- package/src/components/table/vxeFilter/mixin.js +1 -1
- package/src/components/vipPrint/index.js +44 -1
- package/src/components/vipPrint/mixins.js +268 -1
- package/src/components/wf/mixins/addOpinionButton.js +51 -1
- package/src/components/wf/mixins/setCandidateButton.js +156 -1
- package/src/components/wf/mixins/setCandidateDialog.js +212 -1
- package/src/components/wf/mixins/setCandidateDialog2.js +247 -1
- package/src/components/wf/mixins/wfFlowEleScriptDialog.js +129 -1
- package/src/components/wf/mixins/wfTaskUserRangeDialog.js +67 -1
- package/src/components/wf/wf.js +2156 -1
- package/src/components/wf/wfUtil.js +279 -1
- package/src/components/xform/form-designer/designer.js +31 -1
- package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +3 -1
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +9 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +18 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +25 -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 +1 -2
- package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue +99 -0
- package/src/components/xform/form-designer/form-widget/indexMixin.js +5 -1
- package/src/components/xform/form-designer/indexMixin.js +25 -1
- package/src/components/xform/form-designer/refMixinDesign.js +1 -28
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +12 -1
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +24 -1
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +19 -1
- package/src/components/xform/form-render/container-item/containerItemMixin.js +12 -1
- package/src/components/xform/form-render/container-item/data-table-mixin.js +22 -1
- package/src/components/xform/form-render/dynamicDialogRender.js +5 -1
- package/src/components/xform/form-render/indexMixin.js +49 -1
- package/src/components/xform/form-render/refMixin.js +3 -1
- package/src/components/xform/mixins/defaultHandle.js +6 -1
- package/src/components/xform/mixins/scriptHttp.js +1 -172
- package/src/components/xform/utils/util.js +5 -1
- package/src/components/xform/utils/validators.js +2 -1
- package/src/components/xhsPrint/index.js +44 -1
- package/src/components/xhsPrint/mixins.js +269 -1
- package/src/directive/LimitNumber/index.js +125 -1
- package/src/directive/el-dialog-center/index.js +34 -1
- package/src/directive/el-drag-dialog/drag.js +86 -1
- package/src/directive/el-readonly/index.js +15 -1
- package/src/directive/permission/hasPermi.js +34 -1
- package/src/permission.js +135 -1
- package/src/resources/js/base/common.js +1 -110
- package/src/router/modules/customer.js +8 -142
- package/src/store/config/index.js +667 -1
- package/src/store/modules/permission.js +3 -343
- package/src/store/modules/settings.js +1 -1
- package/src/store/modules/tagsView.js +11 -1
- package/src/store/modules/user.js +23 -1
- package/src/utils/aes.js +2 -1
- package/src/utils/auth.js +1 -1
- package/src/utils/global.js +1 -1
- package/src/utils/index.js +6 -1
- package/src/utils/keepAlive.js +1 -1
- package/src/utils/pddLog.js +17 -28
- package/src/utils/request.js +1 -1
- package/src/utils/vab.js +19 -1
- package/src/utils/validate.js +1 -1
- package/src/utils/wf.js +4 -4
- package/src/views/bd/setting/bd_attach_setting/mixins/dialog.js +6 -6
- package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +4 -4
- package/src/views/bd/setting/bd_attach_setting/mixins/list.js +1 -1
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -174
- package/src/views/bd/setting/bd_company_env/edit.vue +193 -193
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +5 -5
- package/src/views/bd/setting/form_template/mixins/dialog.js +6 -6
- package/src/views/bd/setting/form_template/mixins/edit.js +10 -10
- package/src/views/bd/setting/form_template/mixins/editWfObjConfigDialog.js +1 -1
- package/src/views/bd/setting/form_template/mixins/ftHistoryDialog.js +5 -5
- package/src/views/bd/setting/form_template/mixins/itemEdit.js +1 -1
- package/src/views/bd/setting/form_template/mixins/itemList.js +1 -1
- package/src/views/bd/setting/form_template/mixins/list.js +25 -25
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +7 -7
- package/src/views/bd/setting/form_template/mixins/preformDialog.js +1 -1
- package/src/views/bd/setting/form_template/mixins/wf_list.js +12 -12
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -254
- package/src/views/bd/setting/logic_param/mixins/edit.js +3 -3
- package/src/views/bd/setting/logic_param/mixins/list.js +9 -9
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +7 -7
- package/src/views/bd/setting/menu_kind/mixins/dialog.js +1 -1
- package/src/views/bd/setting/menu_kind/mixins/list.js +10 -10
- package/src/views/bd/setting/request_async_setting/edit.vue +320 -320
- package/src/views/bd/setting/request_setting/edit.vue +300 -300
- package/src/views/bd/setting/table_model/mixins/dialog.js +5 -5
- package/src/views/bd/setting/table_model/mixins/edit copy.js +903 -0
- package/src/views/bd/setting/table_model/mixins/edit.js +14 -14
- package/src/views/bd/setting/table_model/mixins/list.js +14 -14
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +7 -7
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +5 -5
- package/src/views/bd/setting/utils/index.js +1 -1
- package/src/views/user/wf/wf_work_calendar/date.js +64 -65
- package/src/mixins/table/index.js +0 -151
- package/src/views/user/home/bears/index.vue +0 -1032
- package/src/views/user/home/taili/index.vue +0 -1034
|
@@ -1,254 +1,254 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-dialog
|
|
3
|
-
:title="'设置组织流程单据类型('+formTemplate.formName+')'"
|
|
4
|
-
:append-to-body="true"
|
|
5
|
-
:modal-append-to-body="true"
|
|
6
|
-
:close-on-click-modal="false"
|
|
7
|
-
:visible.sync="dialogVisible"
|
|
8
|
-
:modal="false"
|
|
9
|
-
custom-class="dialog-style list-dialog dialog-checkbox pd_0"
|
|
10
|
-
width="1200px"
|
|
11
|
-
@close="closeDialog"
|
|
12
|
-
v-el-drag-dialog
|
|
13
|
-
v-el-dialog-center
|
|
14
|
-
>
|
|
15
|
-
<div class="cont">
|
|
16
|
-
<div id="containt">
|
|
17
|
-
<el-form ref="editForm" :model="formData">
|
|
18
|
-
<div class="grid-height" style="height: 500px">
|
|
19
|
-
<vxe-grid
|
|
20
|
-
class="is-pointer"
|
|
21
|
-
ref="table-m1"
|
|
22
|
-
:data="formData.wfObjConfigDTOs"
|
|
23
|
-
v-bind="vxeOption"
|
|
24
|
-
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
25
|
-
@custom="$vxeTableUtil.customHandle"
|
|
26
|
-
>
|
|
27
|
-
<template #form>
|
|
28
|
-
<div class="clearfix screen-btns">
|
|
29
|
-
<div class="fl">
|
|
30
|
-
<vxe-button status="primary" class="button-sty" icon="el-icon-plus"
|
|
31
|
-
@click="openCompanyDialog">
|
|
32
|
-
新增
|
|
33
|
-
</vxe-button>
|
|
34
|
-
<span class="button-sty tips">{{ $t1('选择表单所在的组织,填写组织对应的流程单据类型数据。') }}</span>
|
|
35
|
-
</div>
|
|
36
|
-
</div>
|
|
37
|
-
</template>
|
|
38
|
-
<template #objTypeName="{row,rowIndex}">
|
|
39
|
-
<el-form-item :prop="'wfObjConfigDTOs.'+rowIndex+'.objTypeName'"
|
|
40
|
-
:rules="[{ required: true, trigger: 'blur' }]">
|
|
41
|
-
<el-input v-model="row.objTypeName" clearable></el-input>
|
|
42
|
-
</el-form-item>
|
|
43
|
-
</template>
|
|
44
|
-
<template #operate="{row}">
|
|
45
|
-
<a
|
|
46
|
-
href="javascript:void(0);"
|
|
47
|
-
class="a-link"
|
|
48
|
-
@click="openEditDialog(row.id)"
|
|
49
|
-
>
|
|
50
|
-
<el-tooltip :enterable="false" effect="dark" :content="$t2('查看','common.view')" placement="top"
|
|
51
|
-
popper-class="tooltip-skin">
|
|
52
|
-
<i class="el-icon-edit"/>
|
|
53
|
-
</el-tooltip>
|
|
54
|
-
</a>
|
|
55
|
-
</template>
|
|
56
|
-
</vxe-grid>
|
|
57
|
-
</div>
|
|
58
|
-
</el-form>
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
|
-
<span slot="footer" class="dialog-footer">
|
|
62
|
-
<el-button type="primary" plain class="button-sty" @click="closeDialog">
|
|
63
|
-
<i class="el-icon-close el-icon"></i>
|
|
64
|
-
取 消
|
|
65
|
-
</el-button>
|
|
66
|
-
<el-button type="primary" @click="saveData" class="button-sty">
|
|
67
|
-
<i class="el-icon-check el-icon"></i>
|
|
68
|
-
确 定
|
|
69
|
-
</el-button>
|
|
70
|
-
</span>
|
|
71
|
-
<companyInfoDialog v-if="showCompanyInfoDialog" :visiable.sync="showCompanyInfoDialog"
|
|
72
|
-
@confirm="confirmCompanyDialog" :multi="true" :allCompany="true"/>
|
|
73
|
-
</el-dialog>
|
|
74
|
-
</template>
|
|
75
|
-
<script>
|
|
76
|
-
import companyInfoDialog from "@base/views/user/company_info/dialog.vue";
|
|
77
|
-
import fileObjNotifyEdit from "@base/components/fileLibrary/fileObjNotifyEdit.vue";
|
|
78
|
-
|
|
79
|
-
export default {
|
|
80
|
-
components: {fileObjNotifyEdit, companyInfoDialog},
|
|
81
|
-
props: ['formTemplate'],
|
|
82
|
-
data() {
|
|
83
|
-
return {
|
|
84
|
-
dialogVisible: true,
|
|
85
|
-
formData: {
|
|
86
|
-
objTypeCode: null,
|
|
87
|
-
wfObjConfigDTOs: []
|
|
88
|
-
},
|
|
89
|
-
operateIndex: 0,
|
|
90
|
-
showCompanyInfoDialog: false,
|
|
91
|
-
vxeOption: {}
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
created() {
|
|
95
|
-
|
|
96
|
-
},
|
|
97
|
-
mounted() {
|
|
98
|
-
this.formData.objTypeCode = this.formTemplate.objTypeCode;
|
|
99
|
-
this.getListByObjTypeCode();
|
|
100
|
-
this.initTableList()
|
|
101
|
-
},
|
|
102
|
-
methods: {
|
|
103
|
-
getListByObjTypeCode(callback) {
|
|
104
|
-
let formTemplate = this.formTemplate
|
|
105
|
-
this.$http({
|
|
106
|
-
url: `/${formTemplate.serviceName}/wf_obj_config/listByObjTypeCode`,
|
|
107
|
-
method: `post`,
|
|
108
|
-
data: {
|
|
109
|
-
stringOne: formTemplate.objTypeCode
|
|
110
|
-
},
|
|
111
|
-
isLoading: true,
|
|
112
|
-
success: res => {
|
|
113
|
-
let rows = res.objx || [];
|
|
114
|
-
this.formData.wfObjConfigDTOs = rows;
|
|
115
|
-
callback && callback(rows)
|
|
116
|
-
}
|
|
117
|
-
});
|
|
118
|
-
},
|
|
119
|
-
saveData() {
|
|
120
|
-
this.$refs.editForm.$baseValidate(valid => {
|
|
121
|
-
if (valid) {
|
|
122
|
-
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
|
123
|
-
|
|
124
|
-
this.$http({
|
|
125
|
-
url: url,
|
|
126
|
-
method: `post`,
|
|
127
|
-
data: this.formData,
|
|
128
|
-
isLoading: true,
|
|
129
|
-
success: res => {
|
|
130
|
-
this.$message({
|
|
131
|
-
message: res.content,
|
|
132
|
-
type: 'success',
|
|
133
|
-
duration: 1000
|
|
134
|
-
});
|
|
135
|
-
this.getListByObjTypeCode(rows => {
|
|
136
|
-
this.$emit('confirm', rows)
|
|
137
|
-
this.closeDialog();
|
|
138
|
-
})
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
},
|
|
145
|
-
addItem() {
|
|
146
|
-
let formTemplate = this.formTemplate;
|
|
147
|
-
let row = {
|
|
148
|
-
objTypeCode: formTemplate.objTypeCode,
|
|
149
|
-
objTypeName: formTemplate.objTypeName,
|
|
150
|
-
serviceId: formTemplate.serviceName,
|
|
151
|
-
url: "form",
|
|
152
|
-
companyCode: null,
|
|
153
|
-
companyName: null
|
|
154
|
-
}
|
|
155
|
-
this.formData.wfObjConfigDTOs.push(row);
|
|
156
|
-
},
|
|
157
|
-
closeDialog() {
|
|
158
|
-
this.dialogVisible = false;
|
|
159
|
-
this.$emit("update:visiable", false);
|
|
160
|
-
},
|
|
161
|
-
openCompanyDialog() {
|
|
162
|
-
this.showCompanyInfoDialog = true;
|
|
163
|
-
},
|
|
164
|
-
confirmCompanyDialog(rows) {
|
|
165
|
-
if (rows.length) {
|
|
166
|
-
let row = rows[0];
|
|
167
|
-
let formTemplate = this.formTemplate;
|
|
168
|
-
let companyCodes = this.formData.wfObjConfigDTOs.map(item => item.companyCode)
|
|
169
|
-
let items = rows.filter(item => !companyCodes.includes(item.companyCode)).map(item => {
|
|
170
|
-
return {
|
|
171
|
-
objTypeCode: formTemplate.objTypeCode,
|
|
172
|
-
objTypeName: formTemplate.objTypeName,
|
|
173
|
-
serviceId: formTemplate.serviceName,
|
|
174
|
-
url: "form",
|
|
175
|
-
companyCode: row.companyCode,
|
|
176
|
-
companyName: row.companyName
|
|
177
|
-
}
|
|
178
|
-
})
|
|
179
|
-
this.formData.wfObjConfigDTOs.push(...items);
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
initTableList() {
|
|
183
|
-
let that = this;
|
|
184
|
-
let tableOption = {
|
|
185
|
-
vue: this,
|
|
186
|
-
tableRef: 'table-m1',
|
|
187
|
-
tableName: 'user_form_template-wfObj-list-m1',
|
|
188
|
-
config: {
|
|
189
|
-
height: "auto"
|
|
190
|
-
},
|
|
191
|
-
columns: [
|
|
192
|
-
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
193
|
-
{
|
|
194
|
-
title: this.$t1('单据类型名称'),
|
|
195
|
-
field: 'objTypeName',
|
|
196
|
-
width: 250,
|
|
197
|
-
slots: {
|
|
198
|
-
default: "objTypeName"
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
title: this.$t1('组织名称'),
|
|
203
|
-
field: 'companyName',
|
|
204
|
-
width: 200,
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
title: this.$t1('单据类型编码'),
|
|
208
|
-
field: 'objTypeCode',
|
|
209
|
-
width: 200
|
|
210
|
-
},
|
|
211
|
-
{
|
|
212
|
-
title: this.$t1('服务名'),
|
|
213
|
-
field: 'serviceId',
|
|
214
|
-
width: 150
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
width: 100,
|
|
218
|
-
fixed: 'right',
|
|
219
|
-
title: '',
|
|
220
|
-
sortable: false,
|
|
221
|
-
slots: {
|
|
222
|
-
default: ({row, rowIndex, $table}) => {
|
|
223
|
-
return [
|
|
224
|
-
<a
|
|
225
|
-
href="javascript:void(0);"
|
|
226
|
-
class="a-link"
|
|
227
|
-
onClick={() => {
|
|
228
|
-
this.formData.wfObjConfigDTOs.splice(rowIndex, 1)
|
|
229
|
-
}}
|
|
230
|
-
>
|
|
231
|
-
<el-tooltip enterable={false} effect="dark" content="删除" placement="top"
|
|
232
|
-
popper-class="tooltip-skin">
|
|
233
|
-
<i class="el-icon-delete"/>
|
|
234
|
-
</el-tooltip>
|
|
235
|
-
</a>
|
|
236
|
-
];
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
]
|
|
241
|
-
};
|
|
242
|
-
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
243
|
-
this.vxeOption = opts;
|
|
244
|
-
});
|
|
245
|
-
// this.initData();
|
|
246
|
-
},
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
</script>
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
<style scoped>
|
|
253
|
-
|
|
254
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog
|
|
3
|
+
:title="'设置组织流程单据类型('+formTemplate.formName+')'"
|
|
4
|
+
:append-to-body="true"
|
|
5
|
+
:modal-append-to-body="true"
|
|
6
|
+
:close-on-click-modal="false"
|
|
7
|
+
:visible.sync="dialogVisible"
|
|
8
|
+
:modal="false"
|
|
9
|
+
custom-class="dialog-style list-dialog dialog-checkbox pd_0"
|
|
10
|
+
width="1200px"
|
|
11
|
+
@close="closeDialog"
|
|
12
|
+
v-el-drag-dialog
|
|
13
|
+
v-el-dialog-center
|
|
14
|
+
>
|
|
15
|
+
<div class="cont">
|
|
16
|
+
<div id="containt">
|
|
17
|
+
<el-form ref="editForm" :model="formData">
|
|
18
|
+
<div class="grid-height" style="height: 500px">
|
|
19
|
+
<vxe-grid
|
|
20
|
+
class="is-pointer"
|
|
21
|
+
ref="table-m1"
|
|
22
|
+
:data="formData.wfObjConfigDTOs"
|
|
23
|
+
v-bind="vxeOption"
|
|
24
|
+
@resizable-change="$vxeTableUtil.onColumnWitchChange"
|
|
25
|
+
@custom="$vxeTableUtil.customHandle"
|
|
26
|
+
>
|
|
27
|
+
<template #form>
|
|
28
|
+
<div class="clearfix screen-btns">
|
|
29
|
+
<div class="fl">
|
|
30
|
+
<vxe-button status="primary" class="button-sty" icon="el-icon-plus"
|
|
31
|
+
@click="openCompanyDialog">
|
|
32
|
+
新增
|
|
33
|
+
</vxe-button>
|
|
34
|
+
<span class="button-sty tips">{{ $t1('选择表单所在的组织,填写组织对应的流程单据类型数据。') }}</span>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</template>
|
|
38
|
+
<template #objTypeName="{row,rowIndex}">
|
|
39
|
+
<el-form-item :prop="'wfObjConfigDTOs.'+rowIndex+'.objTypeName'"
|
|
40
|
+
:rules="[{ required: true, trigger: 'blur' }]">
|
|
41
|
+
<el-input v-model="row.objTypeName" clearable></el-input>
|
|
42
|
+
</el-form-item>
|
|
43
|
+
</template>
|
|
44
|
+
<template #operate="{row}">
|
|
45
|
+
<a
|
|
46
|
+
href="javascript:void(0);"
|
|
47
|
+
class="a-link"
|
|
48
|
+
@click="openEditDialog(row.id)"
|
|
49
|
+
>
|
|
50
|
+
<el-tooltip :enterable="false" effect="dark" :content="$t2('查看','common.view')" placement="top"
|
|
51
|
+
popper-class="tooltip-skin">
|
|
52
|
+
<i class="el-icon-edit"/>
|
|
53
|
+
</el-tooltip>
|
|
54
|
+
</a>
|
|
55
|
+
</template>
|
|
56
|
+
</vxe-grid>
|
|
57
|
+
</div>
|
|
58
|
+
</el-form>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
<span slot="footer" class="dialog-footer">
|
|
62
|
+
<el-button type="primary" plain class="button-sty" @click="closeDialog">
|
|
63
|
+
<i class="el-icon-close el-icon"></i>
|
|
64
|
+
取 消
|
|
65
|
+
</el-button>
|
|
66
|
+
<el-button type="primary" @click="saveData" class="button-sty">
|
|
67
|
+
<i class="el-icon-check el-icon"></i>
|
|
68
|
+
确 定
|
|
69
|
+
</el-button>
|
|
70
|
+
</span>
|
|
71
|
+
<companyInfoDialog v-if="showCompanyInfoDialog" :visiable.sync="showCompanyInfoDialog"
|
|
72
|
+
@confirm="confirmCompanyDialog" :multi="true" :allCompany="true"/>
|
|
73
|
+
</el-dialog>
|
|
74
|
+
</template>
|
|
75
|
+
<script>
|
|
76
|
+
import companyInfoDialog from "@base/views/user/company_info/dialog.vue";
|
|
77
|
+
import fileObjNotifyEdit from "@base/components/fileLibrary/fileObjNotifyEdit.vue";
|
|
78
|
+
|
|
79
|
+
export default {
|
|
80
|
+
components: {fileObjNotifyEdit, companyInfoDialog},
|
|
81
|
+
props: ['formTemplate'],
|
|
82
|
+
data() {
|
|
83
|
+
return {
|
|
84
|
+
dialogVisible: true,
|
|
85
|
+
formData: {
|
|
86
|
+
objTypeCode: null,
|
|
87
|
+
wfObjConfigDTOs: []
|
|
88
|
+
},
|
|
89
|
+
operateIndex: 0,
|
|
90
|
+
showCompanyInfoDialog: false,
|
|
91
|
+
vxeOption: {}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
created() {
|
|
95
|
+
|
|
96
|
+
},
|
|
97
|
+
mounted() {
|
|
98
|
+
this.formData.objTypeCode = this.formTemplate.objTypeCode;
|
|
99
|
+
this.getListByObjTypeCode();
|
|
100
|
+
this.initTableList()
|
|
101
|
+
},
|
|
102
|
+
methods: {
|
|
103
|
+
getListByObjTypeCode(callback) {
|
|
104
|
+
let formTemplate = this.formTemplate
|
|
105
|
+
this.$http({
|
|
106
|
+
url: `/${formTemplate.serviceName}/wf_obj_config/listByObjTypeCode`,
|
|
107
|
+
method: `post`,
|
|
108
|
+
data: {
|
|
109
|
+
stringOne: formTemplate.objTypeCode
|
|
110
|
+
},
|
|
111
|
+
isLoading: true,
|
|
112
|
+
success: res => {
|
|
113
|
+
let rows = res.objx || [];
|
|
114
|
+
this.formData.wfObjConfigDTOs = rows;
|
|
115
|
+
callback && callback(rows)
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
},
|
|
119
|
+
saveData() {
|
|
120
|
+
this.$refs.editForm.$baseValidate(valid => {
|
|
121
|
+
if (valid) {
|
|
122
|
+
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
|
123
|
+
var url = `/${this.formTemplate.serviceName}/wf_obj_config/saveUpdates`;
|
|
124
|
+
this.$http({
|
|
125
|
+
url: url,
|
|
126
|
+
method: `post`,
|
|
127
|
+
data: this.formData,
|
|
128
|
+
isLoading: true,
|
|
129
|
+
success: res => {
|
|
130
|
+
this.$message({
|
|
131
|
+
message: res.content,
|
|
132
|
+
type: 'success',
|
|
133
|
+
duration: 1000
|
|
134
|
+
});
|
|
135
|
+
this.getListByObjTypeCode(rows => {
|
|
136
|
+
this.$emit('confirm', rows)
|
|
137
|
+
this.closeDialog();
|
|
138
|
+
})
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
},
|
|
145
|
+
addItem() {
|
|
146
|
+
let formTemplate = this.formTemplate;
|
|
147
|
+
let row = {
|
|
148
|
+
objTypeCode: formTemplate.objTypeCode,
|
|
149
|
+
objTypeName: formTemplate.objTypeName,
|
|
150
|
+
serviceId: formTemplate.serviceName,
|
|
151
|
+
url: "form",
|
|
152
|
+
companyCode: null,
|
|
153
|
+
companyName: null
|
|
154
|
+
}
|
|
155
|
+
this.formData.wfObjConfigDTOs.push(row);
|
|
156
|
+
},
|
|
157
|
+
closeDialog() {
|
|
158
|
+
this.dialogVisible = false;
|
|
159
|
+
this.$emit("update:visiable", false);
|
|
160
|
+
},
|
|
161
|
+
openCompanyDialog() {
|
|
162
|
+
this.showCompanyInfoDialog = true;
|
|
163
|
+
},
|
|
164
|
+
confirmCompanyDialog(rows) {
|
|
165
|
+
if (rows.length) {
|
|
166
|
+
let row = rows[0];
|
|
167
|
+
let formTemplate = this.formTemplate;
|
|
168
|
+
let companyCodes = this.formData.wfObjConfigDTOs.map(item => item.companyCode)
|
|
169
|
+
let items = rows.filter(item => !companyCodes.includes(item.companyCode)).map(item => {
|
|
170
|
+
return {
|
|
171
|
+
objTypeCode: formTemplate.objTypeCode,
|
|
172
|
+
objTypeName: formTemplate.objTypeName,
|
|
173
|
+
serviceId: formTemplate.serviceName,
|
|
174
|
+
url: "form",
|
|
175
|
+
companyCode: row.companyCode,
|
|
176
|
+
companyName: row.companyName
|
|
177
|
+
}
|
|
178
|
+
})
|
|
179
|
+
this.formData.wfObjConfigDTOs.push(...items);
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
initTableList() {
|
|
183
|
+
let that = this;
|
|
184
|
+
let tableOption = {
|
|
185
|
+
vue: this,
|
|
186
|
+
tableRef: 'table-m1',
|
|
187
|
+
tableName: 'user_form_template-wfObj-list-m1',
|
|
188
|
+
config: {
|
|
189
|
+
height: "auto"
|
|
190
|
+
},
|
|
191
|
+
columns: [
|
|
192
|
+
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
|
193
|
+
{
|
|
194
|
+
title: this.$t1('单据类型名称'),
|
|
195
|
+
field: 'objTypeName',
|
|
196
|
+
width: 250,
|
|
197
|
+
slots: {
|
|
198
|
+
default: "objTypeName"
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
title: this.$t1('组织名称'),
|
|
203
|
+
field: 'companyName',
|
|
204
|
+
width: 200,
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
title: this.$t1('单据类型编码'),
|
|
208
|
+
field: 'objTypeCode',
|
|
209
|
+
width: 200
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
title: this.$t1('服务名'),
|
|
213
|
+
field: 'serviceId',
|
|
214
|
+
width: 150
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
width: 100,
|
|
218
|
+
fixed: 'right',
|
|
219
|
+
title: '',
|
|
220
|
+
sortable: false,
|
|
221
|
+
slots: {
|
|
222
|
+
default: ({row, rowIndex, $table}) => {
|
|
223
|
+
return [
|
|
224
|
+
<a
|
|
225
|
+
href="javascript:void(0);"
|
|
226
|
+
class="a-link"
|
|
227
|
+
onClick={() => {
|
|
228
|
+
this.formData.wfObjConfigDTOs.splice(rowIndex, 1)
|
|
229
|
+
}}
|
|
230
|
+
>
|
|
231
|
+
<el-tooltip enterable={false} effect="dark" content="删除" placement="top"
|
|
232
|
+
popper-class="tooltip-skin">
|
|
233
|
+
<i class="el-icon-delete"/>
|
|
234
|
+
</el-tooltip>
|
|
235
|
+
</a>
|
|
236
|
+
];
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
]
|
|
241
|
+
};
|
|
242
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
|
243
|
+
this.vxeOption = opts;
|
|
244
|
+
});
|
|
245
|
+
// this.initData();
|
|
246
|
+
},
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
</script>
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
<style scoped>
|
|
253
|
+
|
|
254
|
+
</style>
|