cloud-web-corejs 1.0.28 → 1.0.29

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.
Files changed (199) hide show
  1. package/package.json +1 -1
  2. package/src/components/formOplog/mixins.js +1 -1
  3. package/src/components/projectTag/addButton.vue +3 -50
  4. package/src/components/projectTag/deleteButton.vue +3 -50
  5. package/src/components/projectTag/mixins/addButton.js +5 -0
  6. package/src/components/projectTag/mixins/deleteButton.js +5 -0
  7. package/src/components/projectTag/mixins/view.js +5 -0
  8. package/src/components/projectTag/view.vue +33 -72
  9. package/src/components/xform/mixins/scriptHttp.js +1 -1
  10. package/src/index.js +0 -2
  11. package/src/layout/components/Sidebar/default.vue +3 -4
  12. package/src/router/modules/system.js +1 -1
  13. package/src/store/config/index.js +1 -1
  14. package/src/store/getters.js +2 -0
  15. package/src/store/modules/permission.js +1 -1
  16. package/src/store/modules/user.js +2 -1
  17. package/src/utils/request.js +28 -29
  18. package/src/utils/vab.js +27 -27
  19. package/src/views/bd/setting/bd_attach_setting/dialog.vue +4 -87
  20. package/src/views/bd/setting/bd_attach_setting/edit.vue +3 -92
  21. package/src/views/bd/setting/bd_attach_setting/list.vue +4 -214
  22. package/src/views/bd/setting/bd_attach_setting/mixins/dialog.js +89 -0
  23. package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +96 -0
  24. package/src/views/bd/setting/bd_attach_setting/mixins/list.js +219 -0
  25. package/src/views/bd/setting/form_script/dialog.vue +3 -137
  26. package/src/views/bd/setting/form_script/edit.vue +3 -127
  27. package/src/views/bd/setting/form_script/edit1.vue +3 -142
  28. package/src/views/bd/setting/form_script/form_list.vue +4 -259
  29. package/src/views/bd/setting/form_script/list.vue +6 -174
  30. package/src/views/bd/setting/form_script/list1.vue +6 -333
  31. package/src/views/bd/setting/form_script/list2.vue +3 -4
  32. package/src/views/bd/setting/form_script/mixins/dialog.js +142 -0
  33. package/src/views/bd/setting/form_script/mixins/edit.js +134 -0
  34. package/src/views/bd/setting/form_script/mixins/edit1.js +149 -0
  35. package/src/views/bd/setting/form_script/mixins/form_list.js +264 -0
  36. package/src/views/bd/setting/form_script/mixins/list.js +176 -0
  37. package/src/views/bd/setting/form_script/mixins/list1.js +336 -0
  38. package/src/views/bd/setting/form_script/mixins/list2.js +14 -0
  39. package/src/views/bd/setting/form_template/dialog.vue +104 -212
  40. package/src/views/bd/setting/form_template/edit.vue +183 -329
  41. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +46 -131
  42. package/src/views/bd/setting/form_template/ftHistoryDialog.vue +88 -175
  43. package/src/views/bd/setting/form_template/itemEdit.vue +174 -270
  44. package/src/views/bd/setting/form_template/itemList.vue +56 -300
  45. package/src/views/bd/setting/form_template/list.vue +7 -562
  46. package/src/views/bd/setting/form_template/mixins/dialog.js +114 -0
  47. package/src/views/bd/setting/form_template/mixins/edit.js +155 -0
  48. package/src/views/bd/setting/form_template/mixins/editWfObjConfigDialog.js +94 -0
  49. package/src/views/bd/setting/form_template/mixins/ftHistoryDialog.js +95 -0
  50. package/src/views/bd/setting/form_template/mixins/itemEdit.js +106 -0
  51. package/src/views/bd/setting/form_template/mixins/itemList.js +254 -0
  52. package/src/views/bd/setting/form_template/mixins/list.js +562 -0
  53. package/src/views/bd/setting/form_template/mixins/preformDialog.js +28 -0
  54. package/src/views/bd/setting/form_template/preformDialog.vue +57 -77
  55. package/src/views/bd/setting/menu_kind/authDialog.vue +84 -308
  56. package/src/views/bd/setting/menu_kind/dialog.vue +89 -226
  57. package/src/views/bd/setting/menu_kind/list.vue +6 -186
  58. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +232 -0
  59. package/src/views/bd/setting/menu_kind/mixins/dialog.js +144 -0
  60. package/src/views/bd/setting/menu_kind/mixins/list.js +187 -0
  61. package/src/views/bd/setting/table_model/dialog.vue +95 -161
  62. package/src/views/bd/setting/table_model/edit.vue +5 -767
  63. package/src/views/bd/setting/table_model/list.vue +8 -369
  64. package/src/views/bd/setting/table_model/mixins/dialog.js +74 -0
  65. package/src/views/bd/setting/table_model/mixins/edit.js +778 -0
  66. package/src/views/bd/setting/table_model/mixins/list.js +367 -0
  67. package/src/views/bd/setting/table_model/mixins/zdDialog.js +114 -0
  68. package/src/views/bd/setting/table_model/zdDialog.vue +95 -201
  69. package/src/views/support/export_template/edit.vue +40 -36
  70. package/src/views/support/export_template/list.vue +40 -52
  71. package/src/views/user/access_log/edit.vue +18 -17
  72. package/src/views/user/access_log/list.vue +27 -26
  73. package/src/views/user/access_log/statistics_list.vue +19 -17
  74. package/src/views/user/api_request/edit.vue +14 -11
  75. package/src/views/user/api_request/list.vue +13 -11
  76. package/src/views/user/area/dialog.vue +14 -27
  77. package/src/views/user/area_attribute/configDialog.vue +11 -13
  78. package/src/views/user/area_attribute/edit.vue +8 -6
  79. package/src/views/user/area_attribute/list.vue +1 -1
  80. package/src/views/user/attachment/uploadDialog.vue +1 -1
  81. package/src/views/user/bill_setting/button/previewButton.vue +2 -2
  82. package/src/views/user/bill_setting/compareView.vue +1 -1
  83. package/src/views/user/bill_setting/edit.vue +24 -17
  84. package/src/views/user/bill_setting/h5_ModifyDialog.vue +1 -1
  85. package/src/views/user/bill_setting/itemViewDialog.vue +3 -66
  86. package/src/views/user/bill_setting/list.vue +28 -26
  87. package/src/views/user/bill_setting/mixins/wf.js +8 -8
  88. package/src/views/user/bill_setting/previewDialog.vue +1 -1
  89. package/src/views/user/bill_setting/render.vue +29 -29
  90. package/src/views/user/bill_setting/userDialog.vue +7 -5
  91. package/src/views/user/code_rules/edit.vue +21 -18
  92. package/src/views/user/code_rules/list.vue +27 -19
  93. package/src/views/user/commMenu/index.vue +3 -3
  94. package/src/views/user/common_attribute/edit.vue +7 -5
  95. package/src/views/user/common_attribute/itemEdit.vue +22 -22
  96. package/src/views/user/common_attribute/list.vue +25 -24
  97. package/src/views/user/common_script/edit.vue +12 -12
  98. package/src/views/user/common_script/list.vue +30 -32
  99. package/src/views/user/company_info/dialog.vue +9 -9
  100. package/src/views/user/company_info/edit.vue +11 -8
  101. package/src/views/user/country/dialog.vue +11 -9
  102. package/src/views/user/country/edit.vue +12 -9
  103. package/src/views/user/country/list.vue +12 -12
  104. package/src/views/user/data_type_setting/dialog.vue +10 -10
  105. package/src/views/user/data_type_setting/editDialog.vue +6 -6
  106. package/src/views/user/ea/eagroup/eaobj_list.vue +25 -25
  107. package/src/views/user/ea/eagroup/edit.vue +48 -42
  108. package/src/views/user/ea/eaobj/edit.vue +6 -5
  109. package/src/views/user/ea/eaobj/list.vue +9 -8
  110. package/src/views/user/extend_datasource/dialog.vue +19 -24
  111. package/src/views/user/extend_datasource/edit.vue +20 -16
  112. package/src/views/user/extend_datasource/list.vue +23 -24
  113. package/src/views/user/fieldTranslation/editDialog.vue +28 -28
  114. package/src/views/user/fieldTranslation/list.vue +59 -57
  115. package/src/views/user/field_values_invisible/edit.vue +15 -14
  116. package/src/views/user/field_values_invisible/list.vue +23 -22
  117. package/src/views/user/file_type/edit.vue +12 -21
  118. package/src/views/user/file_type/list.vue +21 -36
  119. package/src/views/user/file_type/userEdit.vue +14 -9
  120. package/src/views/user/file_view_area/edit.vue +3 -3
  121. package/src/views/user/file_view_area/itemEdit.vue +11 -9
  122. package/src/views/user/file_view_area/list.vue +17 -16
  123. package/src/views/user/file_view_ins/list.vue +29 -28
  124. package/src/views/user/file_view_ins/propertiesDialog.vue +15 -15
  125. package/src/views/user/form/form_template/edit.vue +1 -1
  126. package/src/views/user/form/form_template/itemEdit.vue +1 -1
  127. package/src/views/user/form/form_template/itemList.vue +2 -2
  128. package/src/views/user/form/form_template/list.vue +3 -3
  129. package/src/views/user/form/form_type/edit.vue +1 -1
  130. package/src/views/user/form/form_type/list.vue +1 -1
  131. package/src/views/user/form/report_requestaccess/edit.vue +1 -1
  132. package/src/views/user/form/report_requestaccess/list.vue +1 -1
  133. package/src/views/user/form/vform/designer.vue +2 -0
  134. package/src/views/user/form/vform/out_render.vue +1 -0
  135. package/src/views/user/form/vform/render.vue +1 -0
  136. package/src/views/user/form/view/list.vue +2 -1
  137. package/src/views/user/groups/dialog.vue +159 -0
  138. package/src/views/user/groups/edit.vue +131 -0
  139. package/src/views/user/groups/list.vue +167 -0
  140. package/src/views/user/home/index.vue +1 -2
  141. package/src/views/user/lang_tag/dialog.vue +185 -0
  142. package/src/views/user/lang_tag/edit.vue +138 -0
  143. package/src/views/user/lang_tag/list.vue +170 -0
  144. package/src/views/user/language_setting/edit.vue +11 -9
  145. package/src/views/user/language_setting/list.vue +20 -18
  146. package/src/views/user/login/default.vue +129 -0
  147. package/src/views/user/login/index.vue +3 -117
  148. package/src/views/user/menu/list.vue +39 -55
  149. package/src/views/user/mobile_menu/list.vue +18 -54
  150. package/src/views/user/notify_message/dialog.vue +1 -1
  151. package/src/views/user/notify_message/infoDialog.vue +1 -1
  152. package/src/views/user/notify_message/list.vue +24 -23
  153. package/src/views/user/notify_template/edit.vue +13 -11
  154. package/src/views/user/notify_template/list.vue +19 -16
  155. package/src/views/user/oplog/edit.vue +12 -12
  156. package/src/views/user/oplog/list.vue +20 -18
  157. package/src/views/user/position/dialog.vue +6 -6
  158. package/src/views/user/position/edit.vue +11 -8
  159. package/src/views/user/position/list.vue +11 -11
  160. package/src/views/user/project_tag/dialog.vue +11 -9
  161. package/src/views/user/project_tag/edit.vue +8 -6
  162. package/src/views/user/project_tag/list.vue +15 -12
  163. package/src/views/user/push_setting/edit.vue +20 -17
  164. package/src/views/user/push_setting/list.vue +1 -1
  165. package/src/views/user/role/dialog.vue +11 -11
  166. package/src/views/user/role/edit.vue +14 -12
  167. package/src/views/user/role/list.vue +14 -12
  168. package/src/views/user/sale_org/dialog.vue +12 -12
  169. package/src/views/user/sale_org/list.vue +43 -48
  170. package/src/views/user/system_notice/edit.vue +13 -11
  171. package/src/views/user/system_notice/infoDialog.vue +2 -2
  172. package/src/views/user/system_notice/list.vue +19 -17
  173. package/src/views/user/system_parameter/edit.vue +7 -6
  174. package/src/views/user/system_parameter/list.vue +12 -10
  175. package/src/views/user/user/edit.vue +1 -1
  176. package/src/views/user/user/form_edit.vue +50 -7
  177. package/src/views/user/user/form_list.vue +34 -132
  178. package/src/views/user/user/info.vue +20 -19
  179. package/src/views/user/user/infoEdit.vue +18 -18
  180. package/src/views/user/user/infoIframeDialog.vue +1 -1
  181. package/src/views/user/user/modifyPasswordDialog.vue +9 -9
  182. package/src/views/user/wf/iframe/dialog.vue +1 -1
  183. package/src/views/user/wf/wf_auto_submit_data/edit.vue +11 -10
  184. package/src/views/user/wf/wf_auto_submit_data/edith.vue +14 -13
  185. package/src/views/user/wf/wf_auto_submit_data/list.vue +43 -41
  186. package/src/views/user/wf/wf_diy_attribute/edit.vue +11 -8
  187. package/src/views/user/wf/wf_manage/list.vue +66 -61
  188. package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
  189. package/src/views/user/wf/wf_obj_config/dialog.vue +11 -11
  190. package/src/views/user/wf/wf_obj_config/edit.vue +12 -9
  191. package/src/views/user/wf/wf_obj_config/edit_form.vue +11 -9
  192. package/src/views/user/wf/wf_obj_config/itemEdit.vue +31 -27
  193. package/src/views/user/wf/wf_obj_config/itemEdit_form.vue +8 -6
  194. package/src/views/user/wf/wf_obj_config/list.vue +42 -41
  195. package/src/views/user/wf/wf_obj_config/list_form.vue +14 -12
  196. package/src/views/user/wf/wf_param/edit.vue +7 -5
  197. package/src/views/user/wf/wf_work_calendar/configDialog.vue +9 -24
  198. package/src/views/user/wf/wf_work_calendar/list.vue +6 -3
  199. package/src/views/user/home/distributor.vue +0 -849
@@ -1,849 +0,0 @@
1
- <template>
2
- <div class="dealer-home">
3
- <el-row>
4
- <el-col :span="7">
5
- <div class="user-info">
6
- <div class="head-img"><img src="~@/resources/images/default-header.png"/></div>
7
- <div class="id">ID:{{ userInfo.id }}</div>
8
- <div class="txt">
9
- <p class="name">{{ userInfo.loginAccount }}<i class="w iconfont icon-nv"></i><i
10
- class="m iconfont icon-nan"></i></p>
11
- <p>电话:{{ userInfo.mobile }}</p>
12
- <p>机构:{{ userInfo.companyName }}</p>
13
- </div>
14
- </div>
15
- <el-card class="box-card" shadow="never">
16
- <div slot="header" class="clearfix head">
17
- <span>待办事项</span>
18
- <!-- <el-button class="more" type="text">更多+</el-button>-->
19
- <el-button type="text" @click="$router.push('/basic/wf/wf_manage/list')" class="more">
20
- <i class="el-icon-news"></i>
21
- <span>更多+</span>
22
- </el-button>
23
- </div>
24
- <div class="need-to">
25
- <div class="item" v-for="(unDoWfRow,index) in unDoWfRows" :key="index" @click="openWfDialog(unDoWfRow)">
26
- <!-- <a-->
27
- <!-- href="javascript:void(0);"-->
28
- <!-- class="a-link"-->
29
- <!-- -->
30
- <!-- >-->
31
- <i class="ico"></i>
32
- <div class="status">
33
- <el-tag>审核中</el-tag>
34
- </div>
35
- <p class="name">{{ unDoWfRow.name }}</p>
36
- <p>当前任务:{{ unDoWfRow.taskName }}</p>
37
- <p>申请人:{{ unDoWfRow.createBy }} {{ unDoWfRow.createDate }}</p>
38
- <!-- </a>-->
39
- </div>
40
- </div>
41
- </el-card>
42
- </el-col>
43
- <el-col :span="17">
44
- <el-row>
45
- <el-col :span="24">
46
- <div class="banner"><img src="~@/resources/images/banner-test.png"/></div>
47
- </el-col>
48
- <el-col :span="24" class="real-time">
49
- <!-- <div class="item" v-for="index in 8" :key="index"><p>补差金额(元)</p><b>4800</b></div>-->
50
- <div class="item"><p>可发货余额(元)</p><b>{{ balances.balance }}</b></div>
51
- <div class="item"><p>使用金额(元)</p><b>{{ balances.usageAmount }}</b></div>
52
- <div class="item"><p>回款总额(元)</p><b>{{ balances.depositAmount }}</b></div>
53
- <div class="item"><p>退货总额(元)</p><b>{{ balances.returnAmount }}</b></div>
54
- <div class="item"><p>返利余额(元)</p><b>{{ balances.policyBalance }}</b></div>
55
- <div class="item"><p>返利上账(元)</p><b>{{ balances.policyAmount }}</b></div>
56
- <div class="item"><p>返利使用(元)</p><b>{{ balances.policyUsage }}</b></div>
57
- <div class="item"><p>授信总额(元)</p><b>{{ balances.creditAmount }}</b></div>
58
- </el-col>
59
- <el-col :span="7">
60
- <el-card class="box-card" shadow="never">
61
- <div slot="header" class="clearfix head">
62
- <span>快捷通道</span>
63
- <el-button type="text" class="more f-blue" @click="showCommMenuDialog = true">
64
- <i class="iconfont icon-guanli"></i>管理
65
- </el-button>
66
- </div>
67
- <div class="fast-box">
68
- <div class="item" v-for="commMenu in commMenus" :key="commMenu.id">
69
- <a href="javascript:void(0);" @click="rourteTo(commMenu)">
70
- <p>{{ commMenu.menuName }}</p>
71
- </a>
72
- </div>
73
- </div>
74
- </el-card>
75
- </el-col>
76
- <el-col :span="8">
77
- <div class="order-status_box">
78
- <div class="item">
79
- <i><img src="~@/resources/images/ico-os-1.png"/></i>
80
- <span>待审核</span>
81
- <span class="count">{{ quantity }}</span>
82
- </div>
83
- <!-- <div class="item">-->
84
- <!-- <i><img src="~@/resources/images/ico-os-2.png"/></i>-->
85
- <!-- <span>待发货</span>-->
86
- <!-- <span class="count">16</span>-->
87
- <!-- </div>-->
88
- <!-- <div class="item">-->
89
- <!-- <i><img src="~@/resources/images/ico-os-3.png"/></i>-->
90
- <!-- <span>待签收</span>-->
91
- <!-- <span class="count">16</span>-->
92
- <!-- </div>-->
93
- <!-- <div class="item">-->
94
- <!-- <i><img src="~@/resources/images/ico-os-4.png"/></i>-->
95
- <!-- <span>已签收</span>-->
96
- <!-- <span class="count">16</span>-->
97
- <!-- </div>-->
98
- <!-- <div class="item">-->
99
- <!-- <i><img src="~@/resources/images/ico-os-5.png"/></i>-->
100
- <!-- <span>已退货</span>-->
101
- <!-- <span class="count">16</span>-->
102
- <!-- </div>-->
103
- <!-- <div class="item">-->
104
- <!-- <i><img src="~@/resources/images/ico-os-6.png"/></i>-->
105
- <!-- <span>待入库</span>-->
106
- <!-- <span class="count">16</span>-->
107
- <!-- </div>-->
108
- </div>
109
- </el-col>
110
- <el-col :span="9">
111
- <el-card class="box-card" shadow="never">
112
- <div slot="header" class="clearfix head">
113
- <span>通知公告</span>
114
- <el-button type="text" @click="openSystemNoticeDialog()"><span class="more">更多</span></el-button>
115
- </div>
116
- <div class="news-box">
117
- <div class="item" v-for="(systemNotice,index) in systemNotices" :key="index"
118
- @click="openSystemNoticeDialog(systemNotice)">
119
- <div class="date">
120
- <p class="year">{{ systemNotice.createDate.substring(0, 4) }}</p>
121
- <p>{{ systemNotice.createDate.substring(5, 10) }}</p>
122
- </div>
123
- <!-- <div class="status">已读</div>-->
124
- <p class="name">{{ systemNotice.title }}</p>
125
- <p>{{ systemNotice.content }}</p>
126
- </div>
127
- </div>
128
- </el-card>
129
- </el-col>
130
- </el-row>
131
-
132
-
133
- </el-col>
134
- </el-row>
135
- <systemNoticeInfoDialog v-if="showSystemNoticeInfoDialog" :visiable.sync="showSystemNoticeInfoDialog"
136
- :param="csnRow" :appendToTop="true"></systemNoticeInfoDialog>
137
- <commMenuDialog v-if="showCommMenuDialog" :visiable.sync="showCommMenuDialog"
138
- @confirm="commMenuCallBack"></commMenuDialog>
139
- <notifyMessageDialog ref="notifyMessageDialog"></notifyMessageDialog>
140
- <notifyMessageInfoDialog v-if="showNoticeDialog" :visiable.sync="showNoticeDialog"
141
- :dataId.sync="notifyMessageInfoId"
142
- @readHanlde="notifyMessageReadHanlde"></notifyMessageInfoDialog>
143
- <el-dialog
144
- title="查看单据流程"
145
- :append-to-body="true"
146
- :modal-append-to-body="true"
147
- :close-on-click-modal="false"
148
- v-if="showWfDialog"
149
- :visible.sync="showWfDialog"
150
- :modal="false"
151
- custom-class="el-dialog dialog-style designer-dialog indexUse"
152
- width="100%"
153
- height="100%"
154
- top="0px"
155
- bottom="0px"
156
- :destroy-on-close="true"
157
- >
158
- <div id="containt">
159
- <component
160
- v-if="showWfContent && wfContent"
161
- :is="wfContent"
162
- visible-key="showWfContent"
163
- :_dataId.sync="wfDataId"
164
- :parent-target="_self"
165
- :defaultShowWfContent="true"
166
- :_viewType="1"
167
- @reload="$reloadHandle"
168
- ></component>
169
- </div>
170
- </el-dialog>
171
- </div>
172
- </template>
173
-
174
- <script>
175
- import {getToken} from "@base/utils/auth";
176
- import systemNoticeInfoDialog from '../../../views/user/system_notice/infoDialog.vue';
177
- import commMenuDialog from '../../../views/user/commMenu/index.vue';
178
- import notifyMessageDialog from '../../../views/user/notify_message/dialog.vue';
179
- import notifyMessageInfoDialog from '../../../views/user/notify_message/infoDialog';
180
-
181
- export default {
182
- name: 'test1',
183
- props: {
184
- _dataId: [String, Number]
185
- },
186
- components: {
187
- systemNoticeInfoDialog,
188
- commMenuDialog,
189
- notifyMessageDialog,
190
- notifyMessageInfoDialog
191
- },
192
- data() {
193
- return {
194
- showNoticeDialog: false,
195
- showGroupDialog: false,
196
- notifyTemplates: [],
197
- userInfo: {},
198
- companyInfo: {},
199
- balances: {},
200
- quantity: 0,
201
- systemNotices: [],
202
- showSystemNoticeInfoDialog: false,
203
- csnRow: null,
204
- headPhotoUrl: '',
205
- dialogVisible: true,
206
- unDoWfRows: [],
207
- wfOption: {},
208
- showWfDialog: false,
209
- showWfContent: true,
210
- wfContent: null,
211
- wfDataId: '',
212
- showCommMenuDialog: false,
213
- commMenus: [],
214
- notifyMessages: [],
215
- notifyMessageInfoIndex: null,
216
- notifyMessageInfoId: null,
217
- unreadMessageNum: 0
218
- };
219
- },
220
- created() {
221
- this.getUserInfo();
222
- this.initSystemNotice();
223
- this.initCommMenu();
224
- this.initNotifyMessage();
225
- this.initWfParam();
226
- this.getUnreadMessageNum();
227
- this.initBalance();
228
- this.initQuantity();
229
- },
230
- methods: {
231
- getUserInfo() {
232
- this.$http({
233
- url: USER_PREFIX + '/user/currentUser',
234
- method: 'post',
235
- success: res => {
236
- let userInfo = res.objx;
237
- this.headPhotoUrl = userInfo.headPhotoUrl ? userInfo.headPhotoUrl : require('@/resources/images' + '/default-header.png');
238
-
239
- this.userInfo = userInfo;
240
- }
241
- });
242
- this.$http({
243
- url: USER_PREFIX + '/company_info/getCurrent',
244
- method: `post`,
245
- success: res => {
246
- this.companyInfo = res.objx || {};
247
- }
248
- });
249
- },
250
- initBalance() {
251
- this.$http({
252
- url: YX_PREFIX + '/balance/listPage',
253
- data: {"size": "200", "current": "1"},
254
- method: 'post',
255
- success: res => {
256
- var balancesArr = res.objx && res.objx.records ? res.objx.records : [];
257
- this.balances = balancesArr[0];
258
- }
259
- });
260
- },
261
- initQuantity() {
262
- this.$http({
263
- url: YX_PREFIX + '/orderAgreement/listPage',
264
- data: {"orderType": "orderAgreement", "statuses": [1], "size": "200", "current": "1"},
265
- method: 'post',
266
- success: res => {
267
- var balancesArr = res.objx && res.objx.records ? res.objx.records : [];
268
- this.quantity = balancesArr.length;
269
- }
270
- });
271
- },
272
- initSystemNotice() {
273
- this.$http({
274
- url: USER_PREFIX + '/system_notice/listPage',
275
- data: {publish: true},
276
- method: 'post',
277
- success: res => {
278
- this.systemNotices = res.objx && res.objx.records ? res.objx.records : [];
279
- }
280
- });
281
- },
282
- openSystemNoticeDialog(row) {
283
- this.csnRow = row || null;
284
- this.showSystemNoticeInfoDialog = true;
285
- },
286
- initUnDoWfInfo() {
287
- this.$http({
288
- url: AGILEBPM_PREFIX + '/wf_manage/listPage',
289
- data: {type: 0},
290
- method: 'post',
291
- success: res => {
292
- this.unDoWfRows = res.objx.records || [];
293
- }
294
- });
295
- },
296
- initWfTableList() {
297
- let that = this;
298
- let paramColumns = this.wfParamDTOs.map(item => {
299
- return {
300
- title: item.paramName,
301
- field: item.paramKey,
302
- width: 150
303
- };
304
- })
305
- var statuses = {running: '审核中', back: '已驳回', end: '已完成'};
306
- let tableOption = {
307
- vue: this,
308
- tableRef: 'table-wf',
309
- tableName: 'home-table-wf',
310
- config: {
311
- height: 'auto'
312
- },
313
- columns: [
314
- {type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
315
- {
316
- title: '单据类型',
317
- field: 'objTypeName',
318
- width: 150,
319
- fixed: 'left'
320
- },
321
- {
322
- title: '流程主题',
323
- field: 'name',
324
- width: 150
325
- },
326
- {
327
- title: '启动人',
328
- field: 'starterName',
329
- width: 150
330
- },
331
- {
332
- title: '当前任务',
333
- field: 'taskName',
334
- width: 150
335
- },
336
- {
337
- title: '当前任务用户',
338
- field: 'candidateNames',
339
- width: 150
340
- },
341
- {
342
- title: '启动时间',
343
- field: 'createDate',
344
- width: 150
345
- },
346
- ...paramColumns,
347
- {
348
- width: 47,
349
- fixed: 'right',
350
- title: '',
351
- sortable: false,
352
- slots: {
353
- default: ({row}) => {
354
- return [
355
- <a
356
- href="javascript:void(0);"
357
- class="a-link"
358
- onclick={() => {
359
- this.openWfDialog(row);
360
- }}
361
- >
362
- <el-tooltip enterable={false} effect="dark" content={ this.$t1('查看') } placement="top"
363
- popper-class="tooltip-skin">
364
- <i class="el-icon-edit"/>
365
- </el-tooltip>
366
- </a>
367
- ];
368
- }
369
- }
370
- }
371
- ]
372
- };
373
- this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
374
- this.wfOption = opts;
375
- });
376
- this.getWfInfoList(false);
377
- },
378
- getWfInfoList(isLoading) {
379
- this.$http({
380
- url: USER_PREFIX + '/wf_info/listPage',
381
- data: {type: 0},
382
- method: 'post',
383
- isLoading: isLoading,
384
- success: res => {
385
- this.unDoWfRows = res.objx && res.objx.records ? res.objx.records : [];
386
- }
387
- });
388
- },
389
- openWfDialog(row) {
390
- let url = row.url + '.vue';
391
- let id = row.objId;
392
- console.log("url==" + url);
393
- this.wfDataId = !id || typeof id == 'object' ? 0 : id;
394
- this.showWfDialog = true;
395
- this.showWfContent = true;
396
- this.wfContent = require('@/views' + url).default;
397
- },
398
- commMenuCallBack(datas) {
399
- this.commMenus = datas || [];
400
- },
401
- initCommMenu() {
402
- this.$http({
403
- url: USER_PREFIX + '/comm_menu/currentList',
404
- data: {longOne: 0},
405
- method: 'POST'
406
- }).then(resultMsg => {
407
- this.commMenus = resultMsg.objx || [];
408
- });
409
- },
410
- initNotifyMessage() {
411
- this.$http({
412
- url: USER_PREFIX + '/notify_message/listPage',
413
- data: {},
414
- method: 'post',
415
- success: res => {
416
- this.notifyMessages = res.objx && res.objx.records ? res.objx.records : [];
417
- }
418
- });
419
- },
420
- openNotifyMessageDialog(row) {
421
- if (row.jumpContent) {
422
- this.$refs.notifyMessageDialog.open(row, () => {
423
- row.readed = 1;
424
- });
425
- }
426
- },
427
- openMoreNotifyMessage(notifyType) {
428
- let data = {notifyType: (notifyType || '')};
429
- let view = {
430
- name: 'notify_message:list',
431
- query: data
432
- };
433
- this.$store.dispatch('tagsView/delCachedView', view).then(() => {
434
- this.$router.replace(view);
435
- });
436
-
437
- if (notifyType) {
438
- this.showGroupDialog = false;
439
- }
440
- },
441
- checkNotifyMessage(row, index) {
442
- this.showNoticeDialog = true;
443
- this.notifyMessageInfoIndex = index;
444
- this.notifyMessageInfoId = row.id;
445
- },
446
- notifyMessageReadHanlde() {
447
- this.notifyMessages[this.notifyMessageInfoIndex].readed = 1;
448
- },
449
- openNotifyTemplateGroupDialog() {
450
- this.$http({
451
- url: USER_PREFIX + `/notify_template/listPage`,
452
- method: `post`,
453
- data: {},
454
- isLoading: true,
455
- success: res => {
456
- this.notifyTemplates = res.objx && res.objx.records ? res.objx.records : [];
457
- this.showGroupDialog = true;
458
- }
459
- });
460
- },
461
- rourteTo(route) {
462
- if (route.type == 4) {
463
- this.jumpOutLink(route)
464
- } else if (route.type == 3) {
465
- let menuCode = route.menuCode;
466
- let path = "/user/outLink/index/" + menuCode;
467
- this.$router.push({path: path, query: {url: route.url}});
468
- } else {
469
- this.$router.push(route.url);
470
- }
471
- },
472
- jumpOutLink(route) {
473
- let path = route.url;
474
- if (route.type == 4 && path) {
475
- if (path.indexOf('token={token}') >= 0) {
476
- path = path.replace('token={token}', 'token=' + getToken())
477
- }
478
- window.open(path);
479
- }
480
- },
481
- initWfParam() {
482
- return this.$http({
483
- url: USER_PREFIX + '/wf_param/list',
484
- method: `post`,
485
- data: {},
486
- isLoading: true,
487
- modalStrictly: true,
488
- success: res => {
489
- this.wfParamDTOs = res.objx || [];
490
- this.initWfTableList();
491
- }
492
- });
493
- },
494
- getUnreadMessageNum() {
495
- return this.$http({
496
- url: USER_PREFIX + '/notify_message/countMessage',
497
- method: `post`,
498
- data: {},
499
- isLoading: true,
500
- success: res => {
501
- this.unreadMessageNum = res.objx || 0;
502
- }
503
- });
504
- }
505
- }
506
- };
507
- </script>
508
- <style scoped lang="scss">
509
- .el-card {
510
- margin: 0 8px;
511
- border: none;
512
- border-radius: 8px;
513
-
514
- .head {
515
- padding: 4px;
516
-
517
- > span {
518
- color: #000;
519
- font-weight: 600;
520
- }
521
-
522
- .more i {
523
- font-size: 12px;
524
- vertical-align: middle;
525
- margin-right: 3px;
526
- }
527
- }
528
- }
529
-
530
- .dealer-home {
531
- padding: 10px 2px 0;
532
-
533
- .user-info {
534
- background-color: #FFF;
535
- position: relative;
536
- border-radius: 8px;
537
- margin: 0 8px 12px;
538
- overflow: hidden;
539
- padding: 16px 12px 16px 146px;
540
- color: #B3B3B3;
541
- height: 140px;
542
- font-size: 13px;
543
-
544
- .head-img {
545
- width: 100px;
546
- height: 100px;
547
- border-radius: 50%;
548
- position: absolute;
549
- left: 24px;
550
- top: 50%;
551
- margin-top: -50px;
552
-
553
- img {
554
- width: 100%;
555
- height: 100%;
556
- }
557
- }
558
-
559
- .id {
560
- position: absolute;
561
- background-color: #608DEB;
562
- color: #FFF;
563
- height: 24px;
564
- position: absolute;
565
- right: 12px;
566
- top: 12px;
567
- border-radius: 26px;
568
- line-height: 24px;
569
- padding: 0 12px;
570
- }
571
-
572
- .name {
573
- color: #212121;
574
- font-weight: 600;
575
- font-size: 24px;
576
- margin-top: 10px;
577
-
578
- i {
579
- width: 22px;
580
- height: 22px;
581
- color: #FFF;
582
- border-radius: 12px;
583
- margin-left: 6px;
584
- display: inline-block;
585
- text-align: center;
586
- font-size: 12px;
587
- line-height: 22px;
588
- vertical-align: middle;
589
- margin-bottom: 4px;
590
- font-weight: 400;
591
-
592
- &.w {
593
- background-color: #FF9CC7;
594
- }
595
-
596
- &.m {
597
- background-color: #80c4ff;
598
- }
599
- }
600
- }
601
-
602
- p {
603
- margin-bottom: 8px;
604
- }
605
- }
606
-
607
- .need-to {
608
- height: calc(100vh - 262px);
609
- overflow: auto;
610
-
611
- .item {
612
- position: relative;
613
- padding: 0 24px 0 64px;
614
- font-size: 12px;
615
- color: #999999;
616
- margin: 12.5px 0;
617
- cursor: pointer;
618
-
619
- p {
620
- margin-bottom: 3px;
621
- }
622
-
623
- &:hover {
624
- color: #225076;
625
-
626
- .name {
627
- color: #225076
628
- }
629
- }
630
-
631
- .ico {
632
- width: 52px;
633
- height: 52px;
634
- display: inline-block;
635
- background: url(~@/resources/images/ico-1.png) no-repeat center;
636
- background-size: cover;
637
- left: 0;
638
- top: 50%;
639
- margin-top: -30px;
640
- position: absolute;
641
- }
642
-
643
- .name {
644
- font-size: 14px;
645
- color: #212121;
646
- margin-bottom: 5px;
647
- overflow: hidden;
648
- text-overflow: ellipsis;
649
- white-space: nowrap;
650
- }
651
-
652
- .status {
653
- position: absolute;
654
- right: 12px;
655
- bottom: 0;
656
- zoom: 0.9;
657
- }
658
- }
659
-
660
- }
661
-
662
- .banner {
663
- border-radius: 8px;
664
- overflow: hidden;
665
- height: 140px;
666
- margin: 0 8px 12px;
667
-
668
- img {
669
- width: 100%;
670
- height: 100%;
671
- }
672
- }
673
-
674
- .real-time {
675
- .item {
676
- margin: 0 8px 12px;
677
- background-color: #FFF;
678
- border-radius: 8px;
679
- padding: 16px 16px 12px;
680
- width: calc(25% - 16px);
681
- float: left;
682
- line-height: 1.2;
683
-
684
- b {
685
- font-size: 24px;
686
- color: #1472FF
687
- }
688
- }
689
- }
690
-
691
- .order-status_box {
692
- margin: 0 8px;
693
- background-color: #FFF;
694
- border-radius: 8px;
695
- padding: 18px 8px 0;
696
- overflow: hidden;
697
- height: calc(100vh - 395px);
698
-
699
- .item {
700
- background-color: #F6F9FF;
701
- border-radius: 8px;
702
- float: left;
703
- width: calc(50% - 16px);
704
- margin: 8px;
705
- display: inline-block;
706
- height: 78px;
707
- line-height: 78px;
708
- padding: 0 14px;
709
- cursor: pointer;
710
- overflow: hidden;
711
-
712
- .count {
713
- float: right;
714
- font-size: 18px;
715
- font-weight: 600;
716
- }
717
-
718
- i {
719
- width: 17px;
720
- height: auto;
721
- display: inline-block;
722
- background-size: cover;
723
- vertical-align: middle;
724
- margin-right: 4px;
725
- line-height: 1;
726
-
727
- img {
728
- width: 100%;
729
- height: 100%;
730
- }
731
- }
732
- }
733
- }
734
-
735
- .news-box, .fast-box {
736
- height: calc(100vh - 455px);
737
- overflow: auto;
738
- }
739
-
740
- .fast-box {
741
- .item {
742
- width: 33.3%;
743
- text-align: center;
744
- float: left;
745
- margin: 15px 0;
746
- cursor: pointer;
747
-
748
- p {
749
- margin-bottom: 0;
750
- }
751
-
752
- i {
753
- width: 62px;
754
- height: 62px;
755
- background-size: cover;
756
- background-repeat: no-repeat;
757
- margin: 0 auto 12px;
758
- display: block;
759
- line-height: 1;
760
-
761
- img {
762
- width: 100%;
763
- height: 100%;
764
- }
765
- }
766
- }
767
- }
768
-
769
- .news-box {
770
- .item {
771
- padding: 0 60px;
772
- position: relative;
773
- font-size: 12px;
774
- color: #808080;
775
- margin: 3px 0 11px;
776
- cursor: pointer;
777
-
778
- p {
779
- margin-bottom: 0;
780
- overflow: hidden;
781
- text-overflow: ellipsis;
782
- white-space: nowrap;
783
- }
784
-
785
- &:hover {
786
- color: #225076;
787
-
788
- .name {
789
- color: #225076
790
- }
791
- }
792
-
793
- &:after {
794
- content: "\e612";
795
- position: absolute;
796
- right: 0;
797
- top: 2px;
798
- font-family: "iconfont";
799
- }
800
-
801
- .date {
802
- background-color: #F6F9FF;
803
- color: #7BB2F2;
804
- display: inline-block;
805
- border-radius: 8px;
806
- padding: 4px 6px;
807
- position: absolute;
808
- left: 0;
809
- top: 0;
810
- line-height: 1.2;
811
- text-align: center;
812
-
813
- .year {
814
- color: #3088EB;
815
- font-size: 16px;
816
- }
817
-
818
- p {
819
- color: #7BB2F2
820
- }
821
- }
822
-
823
- .status {
824
- position: absolute;
825
- right: 0;
826
- bottom: -2px;
827
- background-color: #E8F3FF;
828
- color: #4FA8FF;
829
- border-radius: 4px;
830
- padding: 2px 8px;
831
- }
832
-
833
- .name {
834
- color: #424242;
835
- font-size: 13px;
836
- margin-bottom: 6px;
837
- display: block;
838
- }
839
-
840
- &.no-read {
841
- .status {
842
- background-color: #fef0f0;
843
- color: #f56c6c;
844
- }
845
- }
846
- }
847
- }
848
- }
849
- </style>