@qqt-product/system 0.0.16 → 0.0.18
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/dist/index.es.js +9601 -9171
- package/dist/index.umd.js +34 -35
- package/dist/lib/components/QAccountList/src/QAccountCreate.vue.d.ts +16 -12
- package/dist/lib/components/QAccountList/src/QAccountDetail.vue.d.ts +14 -10
- package/dist/lib/components/QAccountList/src/QAccountEdit.vue.d.ts +17 -12
- package/dist/lib/components/QElsMsgRecordList/src/QElsMsgRecordDetail.vue.d.ts +13 -9
- package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsDetail.vue.d.ts +13 -9
- package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsEdit.vue.d.ts +16 -12
- package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsList.vue.d.ts +9 -0
- package/dist/lib/components/QPermissionDataList/src/QPermissionDataAuth.vue.d.ts +387 -3
- package/dist/lib/components/QPermissionDataList/src/QPermissionDataEdit.vue.d.ts +16 -12
- package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeDetail.vue.d.ts +13 -9
- package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeEdit.vue.d.ts +18 -14
- package/dist/lib/components/QPurchaseNoticeList/src/use-field-select-modal-hook.d.ts +1 -1
- package/dist/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateList.vue.d.ts +2 -1
- package/dist/lib/components/QRoleList/src/QRoleList.vue.d.ts +21 -1
- package/dist/lib/components/QRoleList/src/components/userAuthorization/index.d.ts +4 -4
- package/dist/lib/components/QSupplierAccountList/src/QSupplierAccountList.vue.d.ts +19 -2
- package/dist/lib/components/QSupplierAccountList/src/useConfigData.d.ts +9 -0
- package/dist/lib/components/QcustomConfigEdit/src/QcustomConfigEdit.vue.d.ts +0 -1
- package/dist/lib/components/integratedNodesList/src/QIntegratedNodesDetail.vue.d.ts +13 -9
- package/dist/lib/components/integratedNodesList/src/QIntegratedNodesEdit.vue.d.ts +16 -12
- package/dist/style.css +1 -1
- package/package.json +20 -9
- package/.eslintignore +0 -4
- package/.eslintrc.cjs +0 -22
- package/.prettierignore +0 -4
- package/.prettierrc.cjs +0 -41
- package/.vscode/extensions.json +0 -3
- package/dist/vite.svg +0 -1
- package/index.html +0 -13
- package/public/vite.svg +0 -1
- package/src/App.vue +0 -8
- package/src/lib/components/QAccountList/index.ts +0 -6
- package/src/lib/components/QAccountList/src/QAccountCreate.vue +0 -272
- package/src/lib/components/QAccountList/src/QAccountDetail.vue +0 -259
- package/src/lib/components/QAccountList/src/QAccountEdit.vue +0 -273
- package/src/lib/components/QAccountList/src/QAccountList.vue +0 -532
- package/src/lib/components/QAccountList/src/useConfigData.ts +0 -53
- package/src/lib/components/QBackgroundFileTaskList/index.ts +0 -6
- package/src/lib/components/QBackgroundFileTaskList/src/QBackgroundFileTaskList.vue +0 -143
- package/src/lib/components/QBackgroundFileTaskList/src/useConfigData.ts +0 -20
- package/src/lib/components/QElsEmailSendLogList/index.ts +0 -6
- package/src/lib/components/QElsEmailSendLogList/src/QElsEmailSendLogList.vue +0 -172
- package/src/lib/components/QElsEmailSendLogList/src/useConfigData.ts +0 -19
- package/src/lib/components/QElsMsgRecordList/index.ts +0 -6
- package/src/lib/components/QElsMsgRecordList/src/QElsMsgRecordDetail.vue +0 -148
- package/src/lib/components/QElsMsgRecordList/src/QElsMsgRecordList.vue +0 -123
- package/src/lib/components/QElsMsgRecordList/src/useConfigData.ts +0 -22
- package/src/lib/components/QElsTenantPortalNewsList/index.ts +0 -6
- package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsDetail.vue +0 -139
- package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsEdit.vue +0 -244
- package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsList.vue +0 -151
- package/src/lib/components/QElsTenantPortalNewsList/src/useConfigData.ts +0 -20
- package/src/lib/components/QI18nList/index.ts +0 -6
- package/src/lib/components/QI18nList/src/QI18nForm.vue +0 -141
- package/src/lib/components/QI18nList/src/QI18nList.vue +0 -365
- package/src/lib/components/QI18nList/src/useConfigData.ts +0 -37
- package/src/lib/components/QImChatGroupList/index.ts +0 -6
- package/src/lib/components/QImChatGroupList/src/QImChatGroupList.vue +0 -103
- package/src/lib/components/QImChatGroupList/src/useConfigData.ts +0 -17
- package/src/lib/components/QMqRecordList/index.ts +0 -6
- package/src/lib/components/QMqRecordList/src/QMqRecordList.vue +0 -109
- package/src/lib/components/QMqRecordList/src/useConfigData.ts +0 -18
- package/src/lib/components/QPasswordSecurityPolicy/index.ts +0 -6
- package/src/lib/components/QPasswordSecurityPolicy/src/QPasswordSecurityPolicy.vue +0 -266
- package/src/lib/components/QPermissionDataList/index.ts +0 -6
- package/src/lib/components/QPermissionDataList/src/QPermissionDataAuth.vue +0 -3
- package/src/lib/components/QPermissionDataList/src/QPermissionDataEdit.vue +0 -218
- package/src/lib/components/QPermissionDataList/src/QPermissionDataList.vue +0 -110
- package/src/lib/components/QPermissionDataList/src/form.vue +0 -109
- package/src/lib/components/QPurchaseNoticeList/index.ts +0 -6
- package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeDetail.vue +0 -147
- package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeEdit.vue +0 -332
- package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeList.vue +0 -189
- package/src/lib/components/QPurchaseNoticeList/src/use-field-select-modal-hook.ts +0 -84
- package/src/lib/components/QPurchaseNoticeList/src/useConfigData.ts +0 -22
- package/src/lib/components/QPurchaseNoticeTemplateList/index.ts +0 -6
- package/src/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateList.vue +0 -134
- package/src/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateModal.vue +0 -91
- package/src/lib/components/QPurchaseNoticeTemplateList/src/useConfigData.ts +0 -18
- package/src/lib/components/QQuartzJobList/index.ts +0 -6
- package/src/lib/components/QQuartzJobList/src/QQuartzJobList.vue +0 -276
- package/src/lib/components/QQuartzJobList/src/components/JCron.vue +0 -82
- package/src/lib/components/QQuartzJobList/src/components/JCronModal.vue +0 -985
- package/src/lib/components/QQuartzJobList/src/components/QuartzJobModal.vue +0 -176
- package/src/lib/components/QQuartzJobList/src/useConfigData.ts +0 -26
- package/src/lib/components/QRoleList/index.ts +0 -6
- package/src/lib/components/QRoleList/src/QRoleList.vue +0 -332
- package/src/lib/components/QRoleList/src/components/content-header/contentHeader.less +0 -31
- package/src/lib/components/QRoleList/src/components/content-header/index.tsx +0 -42
- package/src/lib/components/QRoleList/src/components/userAuthorization/index.tsx +0 -690
- package/src/lib/components/QRoleList/src/components/userAuthorization/userAuthorization.less +0 -97
- package/src/lib/components/QRoleList/src/useConfigData.ts +0 -28
- package/src/lib/components/QSupplierAccountList/index.ts +0 -6
- package/src/lib/components/QSupplierAccountList/src/QSupplierAccountForm.vue +0 -187
- package/src/lib/components/QSupplierAccountList/src/QSupplierAccountList.vue +0 -304
- package/src/lib/components/QSupplierAccountList/src/useConfigData.ts +0 -29
- package/src/lib/components/QUsageList/index.ts +0 -6
- package/src/lib/components/QUsageList/src/QUsageList.vue +0 -287
- package/src/lib/components/QUsageList/src/useConfigData.ts +0 -154
- package/src/lib/components/QcustomConfigEdit/component/AddDictCodeModal.vue +0 -140
- package/src/lib/components/QcustomConfigEdit/component/TempalePreviewModal.vue +0 -100
- package/src/lib/components/QcustomConfigEdit/component/dataFormatComponent.tsx +0 -100
- package/src/lib/components/QcustomConfigEdit/component/regexComponent.tsx +0 -71
- package/src/lib/components/QcustomConfigEdit/index.ts +0 -6
- package/src/lib/components/QcustomConfigEdit/src/QcustomConfigEdit.vue +0 -1895
- package/src/lib/components/QcustomConfigEdit/src/QcustomConfigRender.tsx +0 -242
- package/src/lib/components/QcustomConfigEdit/src/types.ts +0 -71
- package/src/lib/components/QcustomConfigEdit/src/useConfigComputed.ts +0 -75
- package/src/lib/components/QcustomConfigEdit/src/useConfigData.ts +0 -123
- package/src/lib/components/QcustomConfigEdit/src/useConfigMethods.ts +0 -117
- package/src/lib/components/QcustomConfigEdit/src/useConstant.ts +0 -301
- package/src/lib/components/QcustomConfigEdit/style/index.less +0 -41
- package/src/lib/components/QcustomConfigList/component/ImportJsonCustomConfig.vue +0 -135
- package/src/lib/components/QcustomConfigList/index.ts +0 -6
- package/src/lib/components/QcustomConfigList/src/QcustomConfigList.vue +0 -276
- package/src/lib/components/QcustomConfigList/src/types.ts +0 -1
- package/src/lib/components/QcustomConfigList/src/useConfigData.ts +0 -23
- package/src/lib/components/QcustomConfigList/src/useMethods.ts +0 -36
- package/src/lib/components/QcustomConfigList/style/index.less +0 -3
- package/src/lib/components/QsysConfigList/index.ts +0 -6
- package/src/lib/components/QsysConfigList/src/QsysConfigList.vue +0 -124
- package/src/lib/components/QsysConfigList/src/types.ts +0 -1
- package/src/lib/components/QsysConfigList/src/useConfigData.ts +0 -17
- package/src/lib/components/QsysConfigList/src/useMethods.ts +0 -11
- package/src/lib/components/QsysConfigList/style/index.less +0 -3
- package/src/lib/components/index.ts +0 -78
- package/src/lib/components/integratedNodesList/src/QIntegratedNodesDetail.vue +0 -49
- package/src/lib/components/integratedNodesList/src/QIntegratedNodesEdit.vue +0 -135
- package/src/lib/components/integratedNodesList/src/index.vue +0 -130
- package/src/lib/components/integratedReportList/src/index.vue +0 -111
- package/src/lib/components/integratedReportSearchList/src/index.vue +0 -106
- package/src/lib/components/loginAbnormalLogList/src/index.vue +0 -43
- package/src/lib/components/loginLogList/src/index.vue +0 -51
- package/src/lib/components/loginSupplierLogList/src/index.vue +0 -53
- package/src/lib/components/operateLogList/src/index.vue +0 -46
- package/src/lib/index.ts +0 -15
- package/src/lib/utils/constant.ts +0 -1
- package/src/lib/utils/global.hook.ts +0 -337
- package/src/lib/utils/global.types.ts +0 -49
- package/src/lib/utils/regexp.ts +0 -143
- package/src/main.ts +0 -11
- package/src/vite-env.d.ts +0 -13
- package/tsconfig.json +0 -24
- package/tsconfig.node.json +0 -9
- package/vite.config.ts +0 -61
- /package/dist/{index.es.d.ts → index.d.ts} +0 -0
|
@@ -1,532 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="height: 100%">
|
|
3
|
-
<q-list-layout ref="listLayoutRef" v-if="!showEditPage" :pageData="pageData" :apiUrls="apiUrls" />
|
|
4
|
-
|
|
5
|
-
<!--工作交接-->
|
|
6
|
-
<vxe-modal v-model="deliverToShow" title="工作转交" type="confirm" :showFooter="false">
|
|
7
|
-
<vxe-form title-colon title-align="right" title-width="160" :data="deliverToFrom" :rules="deliverToFromRule" @submit="deliverTosubmitEvent">
|
|
8
|
-
<vxe-form-gather span="24">
|
|
9
|
-
<vxe-form-item title="转交人" field="realname" span="24">
|
|
10
|
-
<template #default="{ data }">
|
|
11
|
-
<vxe-input :disabled="true" v-model="data.realname" type="text" placeholder="请输入转交人"></vxe-input>
|
|
12
|
-
</template>
|
|
13
|
-
</vxe-form-item>
|
|
14
|
-
|
|
15
|
-
<vxe-form-item title="接收人" field="receiveId" span="24">
|
|
16
|
-
<template #default="{ data }">
|
|
17
|
-
<a-select :placeholder="'姓名'" v-model:value="data.receiveId" :filter-option="filterOption" show-search allow-clear :options="subAccountList"> </a-select>
|
|
18
|
-
</template>
|
|
19
|
-
</vxe-form-item>
|
|
20
|
-
<vxe-form-item title="转交内容" field="businessDeliverToType" span="24">
|
|
21
|
-
<template #default="{ data }">
|
|
22
|
-
<q-select mode="multiple" style="width: 200px" v-model:value="data.businessDeliverToType" dict-code="businessDeliverToType" placeholder="请输入转交内容"></q-select>
|
|
23
|
-
</template>
|
|
24
|
-
</vxe-form-item>
|
|
25
|
-
|
|
26
|
-
<vxe-form-item align="center" span="24">
|
|
27
|
-
<template #default>
|
|
28
|
-
<vxe-button content="取消" @click="deliverToShow = false"></vxe-button>
|
|
29
|
-
<vxe-button type="submit" status="primary" content="保存"></vxe-button>
|
|
30
|
-
</template>
|
|
31
|
-
</vxe-form-item>
|
|
32
|
-
</vxe-form-gather>
|
|
33
|
-
</vxe-form>
|
|
34
|
-
</vxe-modal>
|
|
35
|
-
<!--更改密码-->
|
|
36
|
-
<vxe-modal v-model="passwordModalShow" title="重新设定密码">
|
|
37
|
-
<template #default>
|
|
38
|
-
<vxe-form ref="passwordRef" title-colon title-align="right" title-width="160" :data="passwordModalForm" :rules="passwordModalFormRule">
|
|
39
|
-
<vxe-form-gather span="24">
|
|
40
|
-
<vxe-form-item title="ELS账号" field="elsAccount" span="24">
|
|
41
|
-
<template #default="{ data }">
|
|
42
|
-
<vxe-input :disabled="true" v-model="data.elsAccount" type="text" placeholder="请输入ELS账号" clearable></vxe-input>
|
|
43
|
-
</template>
|
|
44
|
-
</vxe-form-item>
|
|
45
|
-
<vxe-form-item title="子账号" field="subAccount" span="24">
|
|
46
|
-
<template #default="{ data }">
|
|
47
|
-
<vxe-input :disabled="true" v-model="data.subAccount" type="text" placeholder="请输入子账号" clearable></vxe-input>
|
|
48
|
-
</template>
|
|
49
|
-
</vxe-form-item>
|
|
50
|
-
<vxe-form-item title="登录密码" field="password" span="24">
|
|
51
|
-
<template #default="{ data }">
|
|
52
|
-
<vxe-input v-model="data.password" type="text" placeholder="请输入登录密码" clearable></vxe-input>
|
|
53
|
-
</template>
|
|
54
|
-
</vxe-form-item>
|
|
55
|
-
<vxe-form-item title="确认密码" field="confirmpassword" span="24">
|
|
56
|
-
<template #default="{ data }">
|
|
57
|
-
<vxe-input v-model="data.confirmpassword" type="text" placeholder="请输入确认密码" clearable></vxe-input>
|
|
58
|
-
</template>
|
|
59
|
-
</vxe-form-item>
|
|
60
|
-
<vxe-form-item align="center" span="24">
|
|
61
|
-
<template #default>
|
|
62
|
-
<vxe-button content="取消" @click="passwordModalShow = false"></vxe-button>
|
|
63
|
-
<vxe-button @click="passwordModalHandle('confirm')" content="保存"></vxe-button>
|
|
64
|
-
</template>
|
|
65
|
-
</vxe-form-item>
|
|
66
|
-
</vxe-form-gather>
|
|
67
|
-
</vxe-form>
|
|
68
|
-
</template>
|
|
69
|
-
</vxe-modal>
|
|
70
|
-
</div>
|
|
71
|
-
</template>
|
|
72
|
-
|
|
73
|
-
<script lang="ts">
|
|
74
|
-
//JS
|
|
75
|
-
import { defineComponent, reactive, toRefs, inject, ref, nextTick } from 'vue'
|
|
76
|
-
//hook
|
|
77
|
-
import { useConfigData } from './useConfigData'
|
|
78
|
-
|
|
79
|
-
//ts
|
|
80
|
-
import { INJECT_HTTP, HttpClient, MapObjectNoneType } from '../../../utils/global.types'
|
|
81
|
-
import { Modal, message } from '@qqt-product/ui'
|
|
82
|
-
import type { GlobalListPageLayoutTypes } from '@qqt-product/ui'
|
|
83
|
-
|
|
84
|
-
export default defineComponent({
|
|
85
|
-
name: 'QAccountList',
|
|
86
|
-
props: {
|
|
87
|
-
userInfo: {
|
|
88
|
-
type: Object,
|
|
89
|
-
defalut: () => {
|
|
90
|
-
return {}
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
emits: ['create', 'edit', 'detail'],
|
|
95
|
-
setup(props, { emit }) {
|
|
96
|
-
//data
|
|
97
|
-
const qHttp = inject(INJECT_HTTP) as HttpClient
|
|
98
|
-
const listLayoutRef = ref()
|
|
99
|
-
const pageData = reactive({
|
|
100
|
-
statusConfig: {
|
|
101
|
-
show: false,
|
|
102
|
-
},
|
|
103
|
-
optionConfig: {
|
|
104
|
-
attrs: {},
|
|
105
|
-
extend: {},
|
|
106
|
-
options: [
|
|
107
|
-
{
|
|
108
|
-
type: 'edit',
|
|
109
|
-
title: '编辑',
|
|
110
|
-
authorityCode: 'elsSubAccount#ElsSubAccount:edit',
|
|
111
|
-
click({ row, $rowIndex, column, $columnIndex }: GlobalListPageLayoutTypes.ListOptionsEventParams) {
|
|
112
|
-
const payload = {
|
|
113
|
-
row,
|
|
114
|
-
$rowIndex,
|
|
115
|
-
column,
|
|
116
|
-
$columnIndex,
|
|
117
|
-
}
|
|
118
|
-
emit('edit', payload)
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
authorityCode: 'elsSubAccount#ElsSubAccount:view',
|
|
123
|
-
type: 'view',
|
|
124
|
-
title: '查看',
|
|
125
|
-
click({ row, $rowIndex, column, $columnIndex }: GlobalListPageLayoutTypes.ListOptionsEventParams) {
|
|
126
|
-
const payload = {
|
|
127
|
-
row,
|
|
128
|
-
$rowIndex,
|
|
129
|
-
column,
|
|
130
|
-
$columnIndex,
|
|
131
|
-
}
|
|
132
|
-
emit('detail', payload)
|
|
133
|
-
},
|
|
134
|
-
},
|
|
135
|
-
{ authorityCode: 'elsSubAccount#ElsSubAccount:deliverTo', type: 'stop', title: '工作转交', click: deliverTo },
|
|
136
|
-
{ authorityCode: 'elsSubAccount#ElsSubAccount:changPassword', type: 'change', title: '更改密码', click: handleChangePassword },
|
|
137
|
-
{ authorityCode: 'elsSubAccount#ElsSubAccount:frozenBatch', type: 'frozen', title: '冻结/解冻', click: handleFrozen },
|
|
138
|
-
],
|
|
139
|
-
},
|
|
140
|
-
buttonConfig: {
|
|
141
|
-
attrs: {},
|
|
142
|
-
extend: {},
|
|
143
|
-
buttons: [
|
|
144
|
-
{
|
|
145
|
-
authorityCode: 'elsSubAccount#ElsSubAccount:add',
|
|
146
|
-
label: '新增',
|
|
147
|
-
icon: {
|
|
148
|
-
type: 'icon-Q-add',
|
|
149
|
-
},
|
|
150
|
-
attrs: {
|
|
151
|
-
type: 'primary',
|
|
152
|
-
},
|
|
153
|
-
click({ row, $rowIndex, column, $columnIndex }: GlobalListPageLayoutTypes.ListOptionsEventParams) {
|
|
154
|
-
const payload = {
|
|
155
|
-
row,
|
|
156
|
-
$rowIndex,
|
|
157
|
-
column,
|
|
158
|
-
$columnIndex,
|
|
159
|
-
}
|
|
160
|
-
emit('create', payload)
|
|
161
|
-
},
|
|
162
|
-
},
|
|
163
|
-
{ authorityCode: 'elsSubAccount#ElsSubAccount:getDataByErp', label: '获取ERP数据', click: getDataByErp },
|
|
164
|
-
{ authorityCode: 'elsSubAccount#ElsSubAccount:pushDataToErp', label: '推送到ERP', click: pushDataToERP },
|
|
165
|
-
{ authorityCode: 'elsSubAccount#ElsSubAccount:pushDataToMall', label: '推送到商城', click: pushDataToMall },
|
|
166
|
-
{
|
|
167
|
-
label: '列自定义',
|
|
168
|
-
icon: {
|
|
169
|
-
type: 'icon-Q-setting',
|
|
170
|
-
},
|
|
171
|
-
type: 'setting',
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
authorityCode: 'elsSubAccount#ElsSubAccount:import',
|
|
175
|
-
label: '导入',
|
|
176
|
-
args: {
|
|
177
|
-
url: 'base/excelHeader/getConfig/elsSubAccountExcel', // 原来的 importExcelUrl
|
|
178
|
-
excelCode: 'elsSubAccountExcel', // excelCode
|
|
179
|
-
},
|
|
180
|
-
icon: {
|
|
181
|
-
type: 'icon-Q-import',
|
|
182
|
-
},
|
|
183
|
-
type: 'import',
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
authorityCode: 'elsSubAccount#ElsSubAccount:export',
|
|
187
|
-
label: '导出',
|
|
188
|
-
args: {
|
|
189
|
-
url: '/account/elsSubAccount/exportXls', // 原来的 exportXlsUrl
|
|
190
|
-
},
|
|
191
|
-
icon: {
|
|
192
|
-
type: 'icon-Q-export',
|
|
193
|
-
},
|
|
194
|
-
type: 'export',
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
label: '帮助说明',
|
|
198
|
-
icon: {
|
|
199
|
-
type: 'icon-Q-help-text',
|
|
200
|
-
},
|
|
201
|
-
type: 'help-text',
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
label: '附件说明',
|
|
205
|
-
icon: {
|
|
206
|
-
type: 'icon-Q-attachment-text',
|
|
207
|
-
},
|
|
208
|
-
type: 'attachment-text',
|
|
209
|
-
},
|
|
210
|
-
],
|
|
211
|
-
},
|
|
212
|
-
queryConfig: {
|
|
213
|
-
attrs: {},
|
|
214
|
-
extend: {},
|
|
215
|
-
form: [
|
|
216
|
-
{
|
|
217
|
-
type: 'input',
|
|
218
|
-
label: '姓名',
|
|
219
|
-
fieldName: 'realname',
|
|
220
|
-
placeholder: '请输入姓名',
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
type: 'input',
|
|
224
|
-
label: '子账号',
|
|
225
|
-
fieldName: 'subAccount',
|
|
226
|
-
placeholder: '请输入子账号',
|
|
227
|
-
},
|
|
228
|
-
],
|
|
229
|
-
},
|
|
230
|
-
pagerConfig: {},
|
|
231
|
-
})
|
|
232
|
-
const passwordModalFormRule = ref({
|
|
233
|
-
password: [
|
|
234
|
-
{ required: true, message: '请输入登录密码' },
|
|
235
|
-
{
|
|
236
|
-
validator: validateToNextPassword,
|
|
237
|
-
},
|
|
238
|
-
],
|
|
239
|
-
confirmpassword: [
|
|
240
|
-
{ required: true, message: '请输入确认密码' },
|
|
241
|
-
{
|
|
242
|
-
validator: compareToFirstPassword,
|
|
243
|
-
},
|
|
244
|
-
],
|
|
245
|
-
})
|
|
246
|
-
//data-hook
|
|
247
|
-
const { passwordRef, passwordModalForm, passwordModalShow, showEditPage, apiUrls, deliverToShow, deliverToFrom, subAccountList, deliverToFromRule } = useConfigData()
|
|
248
|
-
const { userInfo } = toRefs(props)
|
|
249
|
-
|
|
250
|
-
//methods
|
|
251
|
-
|
|
252
|
-
function getDataByErp() {
|
|
253
|
-
listLayoutRef.value.loading = true
|
|
254
|
-
qHttp
|
|
255
|
-
.get({
|
|
256
|
-
url: apiUrls.value.getDataByErpUrl,
|
|
257
|
-
})
|
|
258
|
-
.then((res) => {
|
|
259
|
-
listLayoutRef.value.loading = false
|
|
260
|
-
if (res.success) {
|
|
261
|
-
// this.$message.success(res.message)
|
|
262
|
-
message.success('操作成功')
|
|
263
|
-
} else {
|
|
264
|
-
// this.$message.warning(res.message)
|
|
265
|
-
message.warning('操作失败')
|
|
266
|
-
}
|
|
267
|
-
})
|
|
268
|
-
.catch(() => {
|
|
269
|
-
listLayoutRef.value.loading = false
|
|
270
|
-
})
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
function pushDataToERP() {
|
|
274
|
-
let checkRow = listLayoutRef.value.gridInstance.getCheckboxRecords() || []
|
|
275
|
-
if (!checkRow.length) {
|
|
276
|
-
message.warning('请至少选择一行')
|
|
277
|
-
return
|
|
278
|
-
}
|
|
279
|
-
let ids = checkRow.map((row: MapObjectNoneType) => row.id).join(',')
|
|
280
|
-
listLayoutRef.value.loading = true
|
|
281
|
-
qHttp
|
|
282
|
-
.get({
|
|
283
|
-
url: apiUrls.value.pushDataToERPUrl,
|
|
284
|
-
params: {
|
|
285
|
-
ids,
|
|
286
|
-
},
|
|
287
|
-
})
|
|
288
|
-
.then((res) => {
|
|
289
|
-
listLayoutRef.value.loading = false
|
|
290
|
-
if (res.success) {
|
|
291
|
-
// this.$message.success(res.message)
|
|
292
|
-
message.success('操作成功')
|
|
293
|
-
} else {
|
|
294
|
-
// this.$message.warning(res.message)
|
|
295
|
-
message.warning('操作失败')
|
|
296
|
-
}
|
|
297
|
-
})
|
|
298
|
-
.catch(() => {
|
|
299
|
-
listLayoutRef.value.loading = false
|
|
300
|
-
})
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
function pushDataToMall() {
|
|
304
|
-
let checkRow = listLayoutRef.value.gridInstance.getCheckboxRecords() || []
|
|
305
|
-
if (!checkRow.length) {
|
|
306
|
-
message.warning('请至少选择一行')
|
|
307
|
-
return
|
|
308
|
-
}
|
|
309
|
-
let ids = checkRow.map((row: MapObjectNoneType) => row.id).join(',')
|
|
310
|
-
listLayoutRef.value.loading = true
|
|
311
|
-
qHttp
|
|
312
|
-
.get({
|
|
313
|
-
url: apiUrls.value.pushDataToMallUrl,
|
|
314
|
-
params: {
|
|
315
|
-
ids,
|
|
316
|
-
},
|
|
317
|
-
})
|
|
318
|
-
.then((res) => {
|
|
319
|
-
listLayoutRef.value.loading = false
|
|
320
|
-
if (res.success) {
|
|
321
|
-
// this.$message.success(res.message)
|
|
322
|
-
message.success(res.message)
|
|
323
|
-
} else {
|
|
324
|
-
// this.$message.warning(res.message)
|
|
325
|
-
message.warning(res.message)
|
|
326
|
-
}
|
|
327
|
-
})
|
|
328
|
-
.catch(() => {
|
|
329
|
-
listLayoutRef.value.loading = false
|
|
330
|
-
})
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
function handleFrozen({ row = {} as MapObjectNoneType }) {
|
|
334
|
-
let id = row.id
|
|
335
|
-
let status = row.status
|
|
336
|
-
let subAccount = row.subAccount
|
|
337
|
-
|
|
338
|
-
let messages = '冻结'
|
|
339
|
-
if ('admin' == subAccount) {
|
|
340
|
-
const t = '管理员账号不允许此操作!'
|
|
341
|
-
message.warning(t)
|
|
342
|
-
return
|
|
343
|
-
}
|
|
344
|
-
if ('1' == status) {
|
|
345
|
-
status = '2'
|
|
346
|
-
} else {
|
|
347
|
-
status = '1'
|
|
348
|
-
messages = '解冻'
|
|
349
|
-
}
|
|
350
|
-
const c = '确认'
|
|
351
|
-
const t = '是否'
|
|
352
|
-
const d = '选中数据?'
|
|
353
|
-
Modal.confirm({
|
|
354
|
-
title: c + messages,
|
|
355
|
-
content: t + messages + d + '?',
|
|
356
|
-
onOk: function () {
|
|
357
|
-
qHttp
|
|
358
|
-
.put({
|
|
359
|
-
url: '/account/elsSubAccount/frozenBatch',
|
|
360
|
-
data: { ids: id, status: status },
|
|
361
|
-
})
|
|
362
|
-
.then((res) => {
|
|
363
|
-
if (res.success) {
|
|
364
|
-
message.success(res.message)
|
|
365
|
-
listLayoutRef.value.fetchListData()
|
|
366
|
-
} else {
|
|
367
|
-
message.warning(res.message)
|
|
368
|
-
}
|
|
369
|
-
})
|
|
370
|
-
},
|
|
371
|
-
})
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
// 获取配置项分类
|
|
375
|
-
const getConfigurationItemClassificationList = () => {
|
|
376
|
-
let postData = {
|
|
377
|
-
pageSize: '100000',
|
|
378
|
-
}
|
|
379
|
-
qHttp.get({ url: '/account/elsSubAccount/list', params: postData }).then((res) => {
|
|
380
|
-
if (res && res.success) {
|
|
381
|
-
subAccountList.value = res.result.records.map((val: MapObjectNoneType) => {
|
|
382
|
-
return { value: val.id, label: val.realname }
|
|
383
|
-
})
|
|
384
|
-
}
|
|
385
|
-
})
|
|
386
|
-
}
|
|
387
|
-
getConfigurationItemClassificationList()
|
|
388
|
-
|
|
389
|
-
function deliverTo({ row = {} as MapObjectNoneType }) {
|
|
390
|
-
deliverToFrom.value = {
|
|
391
|
-
...row,
|
|
392
|
-
}
|
|
393
|
-
nextTick(() => {
|
|
394
|
-
deliverToShow.value = true
|
|
395
|
-
})
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
function deliverToHandle() {
|
|
399
|
-
console.log(123)
|
|
400
|
-
}
|
|
401
|
-
function filterOption(input: MapObjectNoneType, option: MapObjectNoneType) {
|
|
402
|
-
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
function deliverTosubmitEvent() {
|
|
406
|
-
let params = { sourceAccountId: deliverToFrom.value.id, targetAccountId: deliverToFrom.value.receiveId, businessDeliverToType: deliverToFrom.value.businessDeliverToType }
|
|
407
|
-
|
|
408
|
-
const t = '工作转交确认'
|
|
409
|
-
const c = '确认是否进行工作转交?'
|
|
410
|
-
Modal.confirm({
|
|
411
|
-
title: t,
|
|
412
|
-
content: c,
|
|
413
|
-
onOk: function () {
|
|
414
|
-
listLayoutRef.value.loading = true
|
|
415
|
-
qHttp
|
|
416
|
-
.get({
|
|
417
|
-
url: '/account/elsSubAccount/deliverTo',
|
|
418
|
-
params,
|
|
419
|
-
})
|
|
420
|
-
.then((res) => {
|
|
421
|
-
listLayoutRef.value.loading = true
|
|
422
|
-
if (res.success) {
|
|
423
|
-
message.success(res.message)
|
|
424
|
-
deliverToFrom.value = {}
|
|
425
|
-
listLayoutRef.value.fetchListData()
|
|
426
|
-
} else {
|
|
427
|
-
message.warning(res.message)
|
|
428
|
-
}
|
|
429
|
-
})
|
|
430
|
-
.finally(() => {
|
|
431
|
-
deliverToShow.value = false
|
|
432
|
-
})
|
|
433
|
-
},
|
|
434
|
-
})
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
function handleChangePassword({ row = {} as MapObjectNoneType }) {
|
|
438
|
-
passwordModalForm.value = row
|
|
439
|
-
nextTick(() => {
|
|
440
|
-
passwordModalShow.value = true
|
|
441
|
-
})
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
function passwordModalHandle(handleType: string) {
|
|
445
|
-
if (handleType == 'confirm') {
|
|
446
|
-
nextTick(() => {
|
|
447
|
-
passwordRef.value.validate((res: MapObjectNoneType) => {
|
|
448
|
-
if (!res) {
|
|
449
|
-
if (passwordModalForm.value.confirmpassword != passwordModalForm.value.password) {
|
|
450
|
-
message.warning('两次输入的密码不一致')
|
|
451
|
-
return
|
|
452
|
-
}
|
|
453
|
-
qHttp
|
|
454
|
-
.put({
|
|
455
|
-
url: '/account/elsSubAccount/changPassword',
|
|
456
|
-
data: {
|
|
457
|
-
...passwordModalForm.value,
|
|
458
|
-
},
|
|
459
|
-
})
|
|
460
|
-
.then((res) => {
|
|
461
|
-
if (res.success) {
|
|
462
|
-
// this.$message.success(res.message)
|
|
463
|
-
listLayoutRef.value.fetchListData()
|
|
464
|
-
message.success('操作成功')
|
|
465
|
-
} else {
|
|
466
|
-
// this.$message.warning(res.message)
|
|
467
|
-
message.warning('操作失败')
|
|
468
|
-
}
|
|
469
|
-
})
|
|
470
|
-
.finally(() => {
|
|
471
|
-
passwordModalShow.value = false
|
|
472
|
-
})
|
|
473
|
-
}
|
|
474
|
-
})
|
|
475
|
-
})
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
async function validateToNextPassword(ErrMap: MapObjectNoneType) {
|
|
480
|
-
// const form = passwordModalForm.value
|
|
481
|
-
let EmessTxt = ''
|
|
482
|
-
if (ErrMap.itemValue) {
|
|
483
|
-
let params = {
|
|
484
|
-
elsAccount: userInfo.value?.userInfo?.elsAccount,
|
|
485
|
-
password: ErrMap.itemValue,
|
|
486
|
-
}
|
|
487
|
-
let curMess = await qHttp
|
|
488
|
-
.get({
|
|
489
|
-
url: '/account/noToken/pwdRuleCheck',
|
|
490
|
-
params,
|
|
491
|
-
})
|
|
492
|
-
.then((res) => {
|
|
493
|
-
EmessTxt = res.message ? res.message : ''
|
|
494
|
-
return EmessTxt
|
|
495
|
-
})
|
|
496
|
-
if (curMess) {
|
|
497
|
-
// message.error(curMess)
|
|
498
|
-
|
|
499
|
-
return Promise.reject(new Error(EmessTxt))
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
function compareToFirstPassword(ErrMap: MapObjectNoneType) {
|
|
505
|
-
const form = passwordModalForm.value
|
|
506
|
-
if (ErrMap.itemValue && ErrMap.itemValue !== form.password) {
|
|
507
|
-
return new Error(' 登录密码与确认密码不一致')
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
return {
|
|
512
|
-
passwordModalFormRule,
|
|
513
|
-
passwordModalForm,
|
|
514
|
-
passwordModalShow,
|
|
515
|
-
deliverTosubmitEvent,
|
|
516
|
-
deliverToFromRule,
|
|
517
|
-
filterOption,
|
|
518
|
-
subAccountList,
|
|
519
|
-
deliverToFrom,
|
|
520
|
-
deliverToHandle,
|
|
521
|
-
deliverToShow,
|
|
522
|
-
listLayoutRef,
|
|
523
|
-
showEditPage,
|
|
524
|
-
apiUrls,
|
|
525
|
-
pageData,
|
|
526
|
-
passwordModalHandle,
|
|
527
|
-
passwordRef,
|
|
528
|
-
}
|
|
529
|
-
},
|
|
530
|
-
})
|
|
531
|
-
</script>
|
|
532
|
-
<style scoped></style>
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { MapObjectNoneType } from '../../../utils/global.types'
|
|
2
|
-
import { shallowRef, ref } from 'vue'
|
|
3
|
-
// import type { MapObjectNoneType } from './types'
|
|
4
|
-
// import { VxeTableInstance } from 'vxe-table'
|
|
5
|
-
// import type {}
|
|
6
|
-
export function useConfigData() {
|
|
7
|
-
//响应
|
|
8
|
-
|
|
9
|
-
const apiUrls = shallowRef({
|
|
10
|
-
add: '/account/elsSubAccount/add',
|
|
11
|
-
list: '/account/elsSubAccount/list',
|
|
12
|
-
delete: '/account/elsSubAccount/delete',
|
|
13
|
-
copy: '/account/permissionData/copy',
|
|
14
|
-
columnsCode: 'ElsSubaccountInfoList',
|
|
15
|
-
exportXlsUrl: '/account/elsSubAccount/exportXls',
|
|
16
|
-
excelCode: 'elsSubAccountExcel',
|
|
17
|
-
handlerName: 'accountExportServiceImpl',
|
|
18
|
-
getDataByErpUrl: '/account/elsSubAccount/getDataByErp',
|
|
19
|
-
pushDataToERPUrl: '/account/elsSubAccount/pushDataToErp',
|
|
20
|
-
pushDataToMallUrl: '/mall/pushUserDataToMall',
|
|
21
|
-
})
|
|
22
|
-
const uploadShow = shallowRef<boolean>(false)
|
|
23
|
-
const showEditPage = shallowRef<boolean>(false)
|
|
24
|
-
const currentEditRow = ref({})
|
|
25
|
-
const listLayoutRef = ref()
|
|
26
|
-
const deliverToShow = shallowRef<boolean>(false)
|
|
27
|
-
|
|
28
|
-
const deliverToFrom = ref<MapObjectNoneType>({})
|
|
29
|
-
const deliverToFromRule = {
|
|
30
|
-
receiveId: [{ required: true, message: '当前内容为必填项' }],
|
|
31
|
-
businessDeliverToType: [{ required: true, message: '当前内容为必填项' }],
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const passwordModalShow = shallowRef<boolean>(false)
|
|
35
|
-
const passwordModalForm = ref()
|
|
36
|
-
|
|
37
|
-
const subAccountList = ref([])
|
|
38
|
-
const passwordRef = ref()
|
|
39
|
-
return {
|
|
40
|
-
passwordModalForm,
|
|
41
|
-
passwordModalShow,
|
|
42
|
-
deliverToFromRule,
|
|
43
|
-
subAccountList,
|
|
44
|
-
deliverToFrom,
|
|
45
|
-
deliverToShow,
|
|
46
|
-
apiUrls,
|
|
47
|
-
showEditPage,
|
|
48
|
-
currentEditRow,
|
|
49
|
-
listLayoutRef,
|
|
50
|
-
uploadShow,
|
|
51
|
-
passwordRef,
|
|
52
|
-
}
|
|
53
|
-
}
|