gcs-ui-lib 1.0.1

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 (231) hide show
  1. package/.env.development +5 -0
  2. package/.env.production +7 -0
  3. package/.eslintrc.js +5 -0
  4. package/README.md +97 -0
  5. package/_webpack.config.js +135 -0
  6. package/babel.config.js +16 -0
  7. package/lib/demo.html +10 -0
  8. package/lib/fonts/SIMSUN.5e0c362c.5e0c362c.ttf +0 -0
  9. package/lib/fonts/element-icons.535877f5.535877f5.woff +0 -0
  10. package/lib/fonts/element-icons.732389de.732389de.ttf +0 -0
  11. package/lib/fonts/iconfont.09d221ee.09d221ee.woff +0 -0
  12. package/lib/fonts/iconfont.1c4bfacc.1c4bfacc.ttf +0 -0
  13. package/lib/fonts/iconfont.a6f34dc7.a6f34dc7.woff2 +0 -0
  14. package/lib/fonts/iconfont.f4c32765.f4c32765.ttf +0 -0
  15. package/lib/gcs-ui-lib.common.js +106776 -0
  16. package/lib/gcs-ui-lib.css +3 -0
  17. package/lib/gcs-ui-lib.umd.js +106786 -0
  18. package/lib/gcs-ui-lib.umd.min.js +330 -0
  19. package/lib/img/bankbackground(1).e1f6e40f.jpg +0 -0
  20. package/lib/img/busibackground(2).7e09bf1f.jpg +0 -0
  21. package/lib/img/document.193a282d.svg +8 -0
  22. package/lib/img/folder.8e019792.svg +9 -0
  23. package/lib/img/icon.fc86764f.gif +0 -0
  24. package/npm +1 -0
  25. package/package.json +101 -0
  26. package/packages/AutoFillDetail/index.js +7 -0
  27. package/packages/AutoFillDetail/src/components/fillDetail.vue +188 -0
  28. package/packages/AutoFillDetail/src/demo/index.vue +18 -0
  29. package/packages/AutoFillDetail/src/main.vue +283 -0
  30. package/packages/AutoFillDetection/index.js +7 -0
  31. package/packages/AutoFillDetection/src/components/FillInfo.vue +36 -0
  32. package/packages/AutoFillDetection/src/components/HandEntred.vue +226 -0
  33. package/packages/AutoFillDetection/src/components/RuleHit.vue +105 -0
  34. package/packages/AutoFillDetection/src/components/SelectEntries.vue +192 -0
  35. package/packages/AutoFillDetection/src/components/config.js +359 -0
  36. package/packages/AutoFillDetection/src/demo/index.vue +18 -0
  37. package/packages/AutoFillDetection/src/main.vue +130 -0
  38. package/packages/AutoFillList/index.js +7 -0
  39. package/packages/AutoFillList/src/components/ImportRules.vue +407 -0
  40. package/packages/AutoFillList/src/components/ImportRulesDialog.vue +40 -0
  41. package/packages/AutoFillList/src/components/config.js +616 -0
  42. package/packages/AutoFillList/src/demo/index.vue +28 -0
  43. package/packages/AutoFillList/src/main.vue +559 -0
  44. package/packages/AutoFillRuleHistory/index.js +7 -0
  45. package/packages/AutoFillRuleHistory/src/demo/index.vue +23 -0
  46. package/packages/AutoFillRuleHistory/src/main.vue +422 -0
  47. package/packages/AutoFillService/index.js +7 -0
  48. package/packages/AutoFillService/src/components/BudgetAccountDialogForSetting.vue +588 -0
  49. package/packages/AutoFillService/src/components/BudgetAccountSettingDialog.vue +377 -0
  50. package/packages/AutoFillService/src/components/ConditionGroup.vue +413 -0
  51. package/packages/AutoFillService/src/components/CustomInput.vue +191 -0
  52. package/packages/AutoFillService/src/components/FillComponent.vue +371 -0
  53. package/packages/AutoFillService/src/components/SelectBudgetAccountDialog.vue +161 -0
  54. package/packages/AutoFillService/src/components/SelectDialog.vue +211 -0
  55. package/packages/AutoFillService/src/components/basic.vue +308 -0
  56. package/packages/AutoFillService/src/components/config.js +549 -0
  57. package/packages/AutoFillService/src/components/fillDetail.vue +145 -0
  58. package/packages/AutoFillService/src/components/fillRules.vue +787 -0
  59. package/packages/AutoFillService/src/components/paymentCategory.vue +297 -0
  60. package/packages/AutoFillService/src/components/paymentCategoryT.vue +292 -0
  61. package/packages/AutoFillService/src/customTemplate/FillBigDecimal.vue +50 -0
  62. package/packages/AutoFillService/src/customTemplate/FillDate.vue +54 -0
  63. package/packages/AutoFillService/src/customTemplate/FillInput.vue +33 -0
  64. package/packages/AutoFillService/src/customTemplate/FillMultiSelect.vue +70 -0
  65. package/packages/AutoFillService/src/customTemplate/FillSelect.vue +72 -0
  66. package/packages/AutoFillService/src/demo/index.vue +30 -0
  67. package/packages/AutoFillService/src/main.vue +432 -0
  68. package/packages/Bank/index.js +7 -0
  69. package/packages/Bank/src/demo/index.vue +18 -0
  70. package/packages/Bank/src/main.vue +70 -0
  71. package/packages/BranchBank/index.js +7 -0
  72. package/packages/BranchBank/src/demo/index.vue +18 -0
  73. package/packages/BranchBank/src/main.vue +97 -0
  74. package/packages/ConfigurableForm/index.js +7 -0
  75. package/packages/ConfigurableForm/src/components/config.js +63 -0
  76. package/packages/ConfigurableForm/src/components/detail.vue +158 -0
  77. package/packages/ConfigurableForm/src/demo/index.vue +279 -0
  78. package/packages/ConfigurableForm/src/main.vue +529 -0
  79. package/packages/DynamicForm/index.js +7 -0
  80. package/packages/DynamicForm/src/components/Amount.vue +51 -0
  81. package/packages/DynamicForm/src/components/AmountRange.vue +76 -0
  82. package/packages/DynamicForm/src/components/CheckboxGroup.vue +63 -0
  83. package/packages/DynamicForm/src/components/DMY.vue +126 -0
  84. package/packages/DynamicForm/src/components/Date.vue +51 -0
  85. package/packages/DynamicForm/src/components/DateRange.vue +51 -0
  86. package/packages/DynamicForm/src/components/Dialog.vue +247 -0
  87. package/packages/DynamicForm/src/components/Input.vue +48 -0
  88. package/packages/DynamicForm/src/components/InputNumber.vue +69 -0
  89. package/packages/DynamicForm/src/components/InputNumberRange.vue +47 -0
  90. package/packages/DynamicForm/src/components/LazySelect.vue +311 -0
  91. package/packages/DynamicForm/src/components/RadioGroup.vue +43 -0
  92. package/packages/DynamicForm/src/components/Rate.vue +57 -0
  93. package/packages/DynamicForm/src/components/Select.vue +307 -0
  94. package/packages/DynamicForm/src/components/Switch.vue +32 -0
  95. package/packages/DynamicForm/src/components/Textarea.vue +58 -0
  96. package/packages/DynamicForm/src/components/TimeSelect.vue +61 -0
  97. package/packages/DynamicForm/src/components/unitTreeSelect.vue +141 -0
  98. package/packages/DynamicForm/src/components/urlLinkInput.vue +100 -0
  99. package/packages/DynamicForm/src/demo/index.vue +486 -0
  100. package/packages/DynamicForm/src/fileUpload.js +232 -0
  101. package/packages/DynamicForm/src/formConfig.js +2910 -0
  102. package/packages/DynamicForm/src/helpers.js +18 -0
  103. package/packages/DynamicForm/src/main.vue +1095 -0
  104. package/packages/FileImport/index.js +7 -0
  105. package/packages/FileImport/src/demo/index.vue +29 -0
  106. package/packages/FileImport/src/main.vue +306 -0
  107. package/packages/MultiCurrencyStatistics/index.js +7 -0
  108. package/packages/MultiCurrencyStatistics/src/demo/index.vue +320 -0
  109. package/packages/MultiCurrencyStatistics/src/main.vue +200 -0
  110. package/packages/SelectTicket/index.js +7 -0
  111. package/packages/SelectTicket/src/Tree/index.vue +13 -0
  112. package/packages/SelectTicket/src/demo/index.vue +139 -0
  113. package/packages/SelectTicket/src/header.js +276 -0
  114. package/packages/SelectTicket/src/main.vue +581 -0
  115. package/packages/SelectTicket/src/printDialog/dialogO.vue +116 -0
  116. package/packages/SelectTicket/src/printDialog/index.vue +69 -0
  117. package/packages/SelectTicket/src/ticketDetail/billInformation/README.MD +6 -0
  118. package/packages/SelectTicket/src/ticketDetail/billInformation/mixins/index.js +35 -0
  119. package/packages/SelectTicket/src/ticketDetail/billInformation/obverse.vue +768 -0
  120. package/packages/SelectTicket/src/ticketDetail/billInformation/overview.vue +115 -0
  121. package/packages/SelectTicket/src/ticketDetail/billInformation/printList.vue +127 -0
  122. package/packages/SelectTicket/src/ticketDetail/billInformation/reverse.vue +205 -0
  123. package/packages/SelectTicket/src/ticketDetail/billInformation//351/231/204/345/212/240/344/277/235/350/257/201/344/277/241/346/201/257/345/255/227/346/256/265/345/257/271/347/205/247.md +246 -0
  124. package/packages/SelectTicket/src/ticketDetail/dialog.vue +73 -0
  125. package/packages/SelectTicket/src/ticketDetail/img/bankbackground(1).jpg +0 -0
  126. package/packages/SelectTicket/src/ticketDetail/img/busibackground(2).jpg +0 -0
  127. package/packages/SelectTicket/src/ticketDetail/img/icon.gif +0 -0
  128. package/packages/SelectTicket/src/ticketDetail/img/icon2.png +0 -0
  129. package/packages/SelectTicket/src/ticketDetail/img/noData.png +0 -0
  130. package/packages/SelectTicket/src/ticketDetail/index.vue +188 -0
  131. package/packages/SelectTreeUnit/index.js +7 -0
  132. package/packages/SelectTreeUnit/src/Tree/document.svg +8 -0
  133. package/packages/SelectTreeUnit/src/Tree/folder.svg +9 -0
  134. package/packages/SelectTreeUnit/src/Tree/index.vue +239 -0
  135. package/packages/SelectTreeUnit/src/demo/index.vue +219 -0
  136. package/packages/SelectTreeUnit/src/forEachs.js +16 -0
  137. package/packages/SelectTreeUnit/src/main.vue +1136 -0
  138. package/packages/SelectTreeUnitForm/index.js +7 -0
  139. package/packages/SelectTreeUnitForm/src/Tree/document.svg +8 -0
  140. package/packages/SelectTreeUnitForm/src/Tree/folder.svg +9 -0
  141. package/packages/SelectTreeUnitForm/src/Tree/index.vue +254 -0
  142. package/packages/SelectTreeUnitForm/src/demo/index.vue +230 -0
  143. package/packages/SelectTreeUnitForm/src/forEachs.js +16 -0
  144. package/packages/SelectTreeUnitForm/src/main.vue +1068 -0
  145. package/packages/StreamRefill/index.js +7 -0
  146. package/packages/StreamRefill/src/components/FillBigDecimal.vue +50 -0
  147. package/packages/StreamRefill/src/components/FillDate.vue +56 -0
  148. package/packages/StreamRefill/src/components/FillInput.vue +36 -0
  149. package/packages/StreamRefill/src/components/FillMultiSelect.vue +54 -0
  150. package/packages/StreamRefill/src/components/FillSelect.vue +51 -0
  151. package/packages/StreamRefill/src/demo/index.vue +254 -0
  152. package/packages/StreamRefill/src/main.vue +335 -0
  153. package/packages/Trade/index.js +7 -0
  154. package/packages/Trade/src/components/all/index.vue +913 -0
  155. package/packages/Trade/src/components/dynamicColumnMixin.js +69 -0
  156. package/packages/Trade/src/components/getDCloumn.js +15 -0
  157. package/packages/Trade/src/components/i18n.json +3337 -0
  158. package/packages/Trade/src/components/pendingEvent/index.vue +934 -0
  159. package/packages/Trade/src/components/server-config.js +60 -0
  160. package/packages/Trade/src/components/setUnitName.js +10 -0
  161. package/packages/Trade/src/components/specialHandle.js +171 -0
  162. package/packages/Trade/src/components/topendingTabs.js +21 -0
  163. package/packages/Trade/src/demo/index.vue +43 -0
  164. package/packages/Trade/src/main.vue +86 -0
  165. package/packages/ValidateQuota/index.js +58 -0
  166. package/packages/ValidateQuota/src/demo/index.vue +190 -0
  167. package/packages/ValidateQuota/src/main.vue +71 -0
  168. package/packages/ZipImport/index.js +7 -0
  169. package/packages/ZipImport/src/demo/index.vue +139 -0
  170. package/packages/ZipImport/src/main.vue +330 -0
  171. package/packages/approvel/index.js +8 -0
  172. package/packages/approvel/src/demo/index.vue +28 -0
  173. package/packages/approvel/src/main.vue +26 -0
  174. package/packages/approvel/src/progress.vue +167 -0
  175. package/packages/approvel/src/url.json +29 -0
  176. package/packages/extends/ElSelect.vue +180 -0
  177. package/packages/imgs/list-select.png +0 -0
  178. package/packages/imgs/list-unselect.png +0 -0
  179. package/packages/imgs/list.png +0 -0
  180. package/packages/imgs/tree-select.png +0 -0
  181. package/packages/imgs/tree-unselect.png +0 -0
  182. package/packages/imgs/tree.png +0 -0
  183. package/packages/inputTag/index.js +7 -0
  184. package/packages/inputTag/src/demo/index.vue +355 -0
  185. package/packages/inputTag/src/main.vue +502 -0
  186. package/public/favicon.ico +0 -0
  187. package/public/index.html +19 -0
  188. package/src/App.vue +61 -0
  189. package/src/api/aims.js +8 -0
  190. package/src/api/common.js +254 -0
  191. package/src/api/fileApi.js +33 -0
  192. package/src/api/setting.js +249 -0
  193. package/src/config/appSettings.js +12 -0
  194. package/src/config/favicon.ico +0 -0
  195. package/src/css/autoFill.scss +252 -0
  196. package/src/css/selectTreeUnit.scss +254 -0
  197. package/src/filter/filter.js +1 -0
  198. package/src/filter/index.js +274 -0
  199. package/src/fonts/demo.css +539 -0
  200. package/src/fonts/iconfont.css +21 -0
  201. package/src/fonts/iconfont.js +1 -0
  202. package/src/fonts/iconfont.json +23 -0
  203. package/src/fonts/iconfont.ttf +0 -0
  204. package/src/index.js +161 -0
  205. package/src/locale/format.js +47 -0
  206. package/src/locale/index.js +48 -0
  207. package/src/locale/lang/cn2hk.json +1270 -0
  208. package/src/locale/lang/en.js +73 -0
  209. package/src/locale/lang/es.js +7 -0
  210. package/src/locale/lang/index.js +66 -0
  211. package/src/locale/lang/ja.js +7 -0
  212. package/src/locale/lang/zh.js +74 -0
  213. package/src/locale/lang/zht.js +27 -0
  214. package/src/main.js +49 -0
  215. package/src/preview/page/Aside/index.vue +60 -0
  216. package/src/preview/router.js +107 -0
  217. package/src/utils/auth.js +12 -0
  218. package/src/utils/directive/asciiWidth.js +107 -0
  219. package/src/utils/directive/clickOutside.js +21 -0
  220. package/src/utils/directive/vtitle.js +140 -0
  221. package/src/utils/excel.js +538 -0
  222. package/src/utils/index.js +581 -0
  223. package/src/utils/request.js +157 -0
  224. package/src/utils/requestCache.js +68 -0
  225. package/src/utils/session.js +36 -0
  226. package/src/utils/thems.js +62 -0
  227. package/src/utils/token.js +26 -0
  228. package/src/utils/tools.js +317 -0
  229. package/src/utils/utils.js +513 -0
  230. package/types/favicon.ico +0 -0
  231. package/vue.config.js +49 -0
@@ -0,0 +1,200 @@
1
+ <template>
2
+ <div class="footer-static flex-box">
3
+ <StatisPopover v-if="!onlyAll" class="m-r-s" :lists="selectStatistics" :countLabel="[$l('条数')]"/>
4
+ <StatisPopover v-if="!onlySelected" :lists="allStatistics" :countLabel="[$l('条数')]"/>
5
+ </div>
6
+ </template>
7
+ <script>
8
+ import {StatisPopover, N} from 'n20-common-lib'
9
+
10
+ export default {
11
+ name: 'MultiCurrencyStatistics',
12
+ components: {
13
+ StatisPopover
14
+ },
15
+ props: {
16
+ // Array<{
17
+ // "currencyNo": "CNY",
18
+ // "currencyName": "人民币",
19
+ // "totalNumber": 1,
20
+ // "totalAmount": null,
21
+ // "totalColumn1": "100.00",
22
+ // "totalColumn2": "0.00"
23
+ // }>
24
+ views: {
25
+ type: Array,
26
+ default: () => []
27
+ },
28
+ // Array<{label: '笔数', code: 'totalNumber'}>
29
+ config: {
30
+ type: Array,
31
+ default: () => []
32
+ },
33
+ // 选中的数据
34
+ selected: {
35
+ type: Array,
36
+ default: () => []
37
+ },
38
+ // 数据是否是在币种列表中
39
+ isMultiple: {
40
+ type: Boolean,
41
+ default: false
42
+ },
43
+ multipleKey: {
44
+ type: String,
45
+ default: 'curreyNoList'
46
+ },
47
+ onlyAll: {
48
+ type: Boolean,
49
+ default: false
50
+ },
51
+ onlySelected: {
52
+ type: Boolean,
53
+ default: false
54
+ },
55
+ },
56
+ data() {
57
+ return {
58
+ allStatistics: [],
59
+ selectStatistics: [],
60
+ selectStatisticsTpl: []
61
+ }
62
+ },
63
+ watch: {
64
+ selected: {
65
+ deep: true,
66
+ immediate: true,
67
+ handler() {
68
+ this.calculationSelected()
69
+ }
70
+ },
71
+ views: {
72
+ deep: true,
73
+ immediate: true,
74
+ handler() {
75
+ this.generateStatistics()
76
+ }
77
+ }
78
+ },
79
+ methods: {
80
+ /**
81
+ * 计算已选数据
82
+ */
83
+ calculationSelected() {
84
+ if (!this.selected.length) {
85
+ this.selectStatistics = [this.selectStatisticsTpl[0]]
86
+ return
87
+ }
88
+ let selectedList = []
89
+ this.selectStatistics = []
90
+ if (this.isMultiple) {
91
+ this.selected.forEach(item => {
92
+ if (item[this.multipleKey]) {
93
+ item[this.multipleKey].forEach(currency => {
94
+ selectedList.push({...item, ...currency, [this.multipleKey]: undefined})
95
+ })
96
+ }
97
+ })
98
+ } else {
99
+ selectedList = this.selected
100
+ }
101
+ this.selectStatisticsTpl.forEach((statistic) => {
102
+ const coins = selectedList.filter(item => {
103
+ return item.currencyName === statistic.title
104
+ })
105
+ if (coins.length) {
106
+ const statis = [
107
+ {
108
+ type: this.$l('已选合计'), //已选合计
109
+ list: this.config.map(c => ({
110
+ label: c.label,
111
+ value: (() => {
112
+ if (c.label === this.$l('条数') || c.label === this.$l('笔数')) {
113
+ //笔|条 数
114
+ return coins.length
115
+ }
116
+ return coins.reduce((amount, item) => N.add(amount,item[c.key],2), 0)
117
+ })()
118
+ }))
119
+ }
120
+ ]
121
+ this.selectStatistics.push({...statistic, statis})
122
+ }
123
+ })
124
+ },
125
+ /**
126
+ * 构造底部统计数据
127
+ */
128
+ generateStatistics() {
129
+ if (!this.views.length) {
130
+ this.allStatistics = [{
131
+ title: this.$l('人民币'), //人民币
132
+ statis: [
133
+ {
134
+ type: this.$l('全部合计'), //'全部合计',
135
+ list: this.config.map(c => ({label: c.label, value: 0}))
136
+ }
137
+ ]
138
+ }]
139
+ this.selectStatistics = [{
140
+ title: this.$l('人民币'), //人民币
141
+ statis: [
142
+ {
143
+ type: this.$l('已选合计'), //'已选合计',
144
+ list: this.config.map(c => ({label: c.label, value: 0}))
145
+ }
146
+ ]
147
+ }]
148
+ this.selectStatisticsTpl = [{
149
+ title: this.$l('人民币'), //人民币
150
+ statis: [
151
+ {
152
+ type: this.$l('已选合计'), //'已选合计',
153
+ list: this.config.map(c => ({label: c.label, value: 0}))
154
+ }
155
+ ]
156
+ }]
157
+ return
158
+ }
159
+ const allStatistics = []
160
+ const selectedStatistics = []
161
+ this.views.forEach(item => {
162
+ allStatistics.push({
163
+ title: item.currencyName,
164
+ currencyNo: item.currencyNo,
165
+ statis: [
166
+ {
167
+ type: this.$l('全部合计'), //全部合计
168
+ list: this.config.map(c => ({label: c.label, value: item[c.code] || '0.00'}))
169
+ }
170
+ ]
171
+ })
172
+ selectedStatistics.push({
173
+ title: item.currencyName,
174
+ currencyNo: item.currencyNo,
175
+ statis: [
176
+ {
177
+ type: this.$l('已选合计'), //已选合计
178
+ list: this.config.map(c => ({label: c.label, value: 0}))
179
+ }
180
+ ]
181
+ })
182
+ })
183
+ this.allStatistics = allStatistics
184
+ this.selectStatisticsTpl = selectedStatistics
185
+ this.selectStatistics = [selectedStatistics[0]]
186
+ // 回调一次计算已选合计的过程,处理一个接口导致的全部合计再次刷新的问题
187
+ this.$nextTick(() => {
188
+ this.calculationSelected()
189
+ })
190
+ }
191
+ }
192
+ }
193
+ </script>
194
+
195
+ <style scoped lang="scss">
196
+ .footer-static {
197
+ flex: 1;
198
+ flex-wrap: wrap;
199
+ }
200
+ </style>
@@ -0,0 +1,7 @@
1
+ import NstcSelectTicket from './src/main'
2
+
3
+ NstcSelectTicket.install = function(Vue) {
4
+ Vue.component(NstcSelectTicket.name, NstcSelectTicket)
5
+ }
6
+
7
+ export default NstcSelectTicket
@@ -0,0 +1,13 @@
1
+
2
+
3
+ <template>
4
+ <div>
5
+
6
+ </div>
7
+ </template>
8
+ <script>
9
+
10
+ </script>
11
+ <style scoped lang="scss">
12
+
13
+ </style>
@@ -0,0 +1,139 @@
1
+
2
+ <template>
3
+ <div>
4
+ <h2>选票多选</h2>
5
+ <el-button @click="dialogVisible=true">选票多选</el-button>
6
+
7
+ <SelectTicket
8
+ :visible="dialogVisible"
9
+ :title="$l('选择票据')"
10
+ @update:visible="dialogVisible = $event"
11
+ :searchObj="searchObj"
12
+ @openBillDetails="openBillDetails"
13
+ @getBillData="getBillData"
14
+ @cancel="dialogVisible = false"
15
+ filterId="selectBillDialogFilterList"
16
+ v-if="dialogVisible"
17
+ :single="false">
18
+ {{row.billNos}}
19
+ </SelectTicket>
20
+ <h2>选票单选</h2>
21
+ <el-button @click="dialogVisible2=true">选票单选</el-button>
22
+ <SelectTicket
23
+ :visible="dialogVisible2"
24
+ :title="$l('选择票据')"
25
+ filterId="selectBillDialogFilterList"
26
+ @update:visible="dialogVisible2 = $event"
27
+ :searchObj="searchObj"
28
+ @openBillDetails="openBillDetails"
29
+ @getBillData="getBillData"
30
+ @cancel="dialogVisible2 = false"
31
+ v-if="dialogVisible2"
32
+ :single="true">
33
+ </SelectTicket>
34
+ {{row.billNo}}
35
+ </div>
36
+ </template>
37
+ <script>
38
+ import SelectTicket from "./../main.vue";
39
+ export default {
40
+ name: "SelectTicketDom",
41
+ components: {
42
+ SelectTicket,
43
+ },
44
+ data() {
45
+ return {
46
+ dialogVisible:false,
47
+ dialogVisible2:false,
48
+ searchObj: {
49
+ "detailId": 1109576,
50
+ "validResult": null,
51
+ "aimsChannelId": null,
52
+ "payCltNo": "1011001",
53
+ "payCltName": "山子高科技股份有限公司",
54
+ "payBankNo": "01",
55
+ "payBankName": "中国工商银行",
56
+ "payBranchBankName": "中国工商银行股份有限公司北京通州支行新华分理处",
57
+ "payAccountNo": "sh-0603001",
58
+ "payAccountName": "test",
59
+ "payDate": "",
60
+ "currencyNo": "CNY",
61
+ "currencyName": "人民币",
62
+ "amount": 2724,
63
+ "recCltNo": null,
64
+ "recCltName": null,
65
+ "recAccountNo": null,
66
+ "recAccountName": null,
67
+ "recBankNo": null,
68
+ "recBankName": null,
69
+ "recBranchBankName": null,
70
+ "memo": "批量补填1045",
71
+ "explain": "批量补填1045",
72
+ "remark": null,
73
+ "createTime": "2024-09-04 21:42:52",
74
+ "channelNo": "NSTC-AIMS",
75
+ "channelId": "1109576",
76
+ "refillId": null,
77
+ "refillStateNo": "UN_REFILL",
78
+ "refillStateName": "待补填",
79
+ "payId": null,
80
+ "relateOrderTypeNo": null,
81
+ "relateOrderTypeName": null,
82
+ "refillTypeNo": null,
83
+ "refillTypeName": null,
84
+ "exchangeRate": 1,
85
+ "flowCaseId": null,
86
+ "detailFlowCaseId": null,
87
+ "customerReference": null,
88
+ "title": null,
89
+ "typeCode": null,
90
+ "receiptBillIds": null,
91
+ "receiptBillIdStr": null,
92
+ "attachIds": null,
93
+ "attachIdStr": null,
94
+ "autoFillResultCode": null,
95
+ "autoFillResult": null,
96
+ "autoFillDate": null,
97
+ "lastUpdateTime": null,
98
+ "refillUserNo": null,
99
+ "refillUserName": null,
100
+ "applyId": null,
101
+ "erpNo": null,
102
+ "recRecordId": null,
103
+ "cashFlowNo": null,
104
+ "cashFlowName": null,
105
+ "paymentCategoryNo": null,
106
+ "paymentCategoryName": null,
107
+ "receiptIds": null,
108
+ "receiptList": null,
109
+ "printTimes": null,
110
+ "refundDetailId": null,
111
+ "returnStatus": null,
112
+ "returnReason": null,
113
+ "receiptIdArr": [],
114
+ "refundDetailIdArr": []
115
+ },
116
+ row:{
117
+ billNo:'',
118
+ billNos:''
119
+ }
120
+ }
121
+ },
122
+ methods:{
123
+ getBillData(row, index) {
124
+ console.log(row)
125
+ if(row.length>1){
126
+ this.row.billNos = row.map(item => item.billNo)
127
+ return
128
+ }
129
+ this.row.billNo = row.billNo
130
+ },
131
+ openBillDetails(row) {
132
+ this.$refs.tickViewDialog.setView(row)
133
+ },
134
+ }
135
+ }
136
+ </script>
137
+ <style scoped lang="scss">
138
+
139
+ </style>
@@ -0,0 +1,276 @@
1
+ /*
2
+ * @Author: maoliqiong maoliqiong@nstc.com.cn
3
+ * @Date: 2022-11-21 15:24:52
4
+ * @LastEditors: yanshuang yanshuang@nstc.com.cn
5
+ * @LastEditTime: 2024-02-23 15:47:26
6
+ * @FilePath: \portal-webe:\nstc\新一代票据\gts-bill_web\src\views\sign\waitSignIn\tableHeader.js
7
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
+ */
9
+ // import i18n from '@/lang/index'
10
+ import { numerify } from 'n20-common-lib'
11
+ let formatCellValue = function(val) {
12
+ return [null, , undefined].includes(val) ? '--' : val
13
+ }
14
+ export function billListHeader(vm, showSelection = true) {
15
+
16
+ const columns = [
17
+ {
18
+ type: 'index',
19
+ label: vm.$l('序号'),
20
+ width: '62',
21
+ align: 'center',
22
+ fixed: 'left',
23
+ isDefault: true,
24
+ static: 'pre'
25
+ },
26
+ // 票据(包)号
27
+ {
28
+ label: vm.$l('票据(包)号'),
29
+ prop: 'billNo',
30
+ minWidth: 300,
31
+
32
+ align: 'center',
33
+ isDefault: true,
34
+ checked: true,
35
+ slotName: 'billNo',
36
+ 'show-overflow-tooltip': true
37
+ },
38
+ {
39
+ label: vm.$l('子票区间'),
40
+ prop: 'cdRange',
41
+ minWidth: 200,
42
+ align: 'center',
43
+ isDefault: true,
44
+ 'show-overflow-tooltip': true,
45
+ formatter: (row, column, cellValue, index) => {
46
+ if (formatCellValue(cellValue) == '--') {
47
+ return '--'
48
+ } else {
49
+ if (cellValue.indexOf(',') > -1) {
50
+ const [min, max] = cellValue.split(',')
51
+ return parseFloat(min) + '-' + parseFloat(max)
52
+ } else {
53
+ return cellValue
54
+ }
55
+ }
56
+ }
57
+ },
58
+ // 票据金额
59
+ {
60
+ label: vm.$l('票据金额'),
61
+ prop: 'billAmount',
62
+ align: 'right',
63
+ 'show-overflow-tooltip': true,
64
+ isDefault: true,
65
+ formatter: (row, column, cellValue, index) => {
66
+ let returnValue = formatCellValue(cellValue)
67
+ if (returnValue != '--') {
68
+ returnValue = numerify(cellValue, '0,0.00')
69
+ }
70
+ return returnValue
71
+ },
72
+ minWidth: 190
73
+ },
74
+ // 出票日期
75
+ {
76
+ label: vm.$l('出票日期'),
77
+ prop: 'issuedDate',
78
+ align: 'center',
79
+ 'show-overflow-tooltip': true,
80
+ isDefault: true,
81
+ formatter: (row, column, cellValue, index) => formatCellValue(cellValue),
82
+ minWidth: 130
83
+ },
84
+ // 到期日期
85
+ {
86
+ label: vm.$l('到期日期'),
87
+ prop: 'dueDate',
88
+ align: 'center',
89
+ 'show-overflow-tooltip': true,
90
+ isDefault: true,
91
+ formatter: (row, column, cellValue, index) => formatCellValue(cellValue),
92
+ minWidth: 130
93
+ },
94
+ // 票据种类
95
+ {
96
+ label: vm.$l('种类'),
97
+ prop: 'draftTypeName',
98
+ align: 'center',
99
+ filterMultiple: true,
100
+ filters: 'typeList',
101
+ columnKey: 'typeName',
102
+ isDefault: true,
103
+ 'show-overflow-tooltip': true,
104
+ formatter: (row, column, cellValue, index) => formatCellValue(cellValue),
105
+ minWidth: 88,
106
+ filteredValue: []
107
+ },
108
+ // 出票人账号
109
+ {
110
+ label: vm.$l('出票人账号'),
111
+ prop: 'payAccountNo',
112
+ align: 'center',
113
+ 'show-overflow-tooltip': true,
114
+ formatter: (row, column, cellValue, index) => formatCellValue(cellValue),
115
+ minWidth: 240,
116
+ isDefault: true
117
+ },
118
+
119
+ {
120
+ label: vm.$l('出票人'),
121
+ prop: 'payName',
122
+ align: 'left',
123
+ 'show-overflow-tooltip': true,
124
+ formatter: (row, column, cellValue, index) => formatCellValue(cellValue),
125
+ minWidth: 240,
126
+ isDefault: true
127
+ },
128
+ {
129
+ label: vm.$l('出票人开户行'),
130
+ prop: "payOpenOrgName",
131
+ align: "left",
132
+ formatter: (row, column, cellValue, index) => formatCellValue(cellValue),
133
+ "show-overflow-tooltip": true,
134
+ minWidth: 268,
135
+ },
136
+ {
137
+ label: vm.$l('承兑人户名'),
138
+ prop: "acceptAccountName",
139
+ align: "left",
140
+ formatter: (row, column, cellValue, index) => formatCellValue(cellValue),
141
+ "show-overflow-tooltip": true,
142
+ minWidth: 240,
143
+ },
144
+ {
145
+ label: vm.$l('承兑人开户行'),
146
+ prop: "acceptBankName",
147
+ align: "left",
148
+ formatter: (row, column, cellValue, index) => formatCellValue(cellValue),
149
+ "show-overflow-tooltip": true,
150
+ minWidth: 268,
151
+ },
152
+ {
153
+ label: vm.$l('收票人户名'),
154
+ prop: "recAccountName",
155
+ align: "left",
156
+ formatter: (row, column, cellValue, index) => formatCellValue(cellValue),
157
+ "show-overflow-tooltip": true,
158
+ minWidth: 240,
159
+ },
160
+ {
161
+ label: vm.$l('收票人开户行'),
162
+ prop: "recBankName",
163
+ align: "left",
164
+ formatter: (row, column, cellValue, index) => formatCellValue(cellValue),
165
+ "show-overflow-tooltip": true,
166
+ minWidth: 268,
167
+ },
168
+ {
169
+ slotName: 'operate',
170
+ label: vm.$l('operate'),
171
+ static: 'next' // 静态不被"显示列"显示的,且最终会被拼接到"显示列"排序后的表格的"后面"
172
+ }
173
+ ]
174
+
175
+ // 如果需要显示多选列,并且满足条件,则添加多选列
176
+ if (!showSelection) {
177
+ columns.unshift({
178
+ type: 'selection',
179
+ width: '46',
180
+ fixed: 'left',
181
+ align: 'center',
182
+ 'reserve-selection': true,
183
+ static: 'pre'
184
+ });
185
+ }
186
+ return columns;
187
+ }
188
+
189
+ export function selectBillFilter(vm) {
190
+ return [
191
+ {
192
+ label: vm.$l("出票人"),
193
+ value: "unitNo",
194
+ id: "unitNo",
195
+ type: "text",
196
+ isDefault: true,
197
+ static: true,
198
+ isNotClose: true,
199
+ props: {
200
+ clearable: true,
201
+ disabled: false
202
+ },
203
+ slotName: "unitNo",
204
+ },
205
+ {
206
+ label: vm.$l('出票人账号'),
207
+ type: 'text',
208
+ value: 'payAccountNo',
209
+ id: 'payAccountNo',
210
+ slotName: 'payAccountNo',
211
+ isDefault: true,
212
+ static: true,
213
+ isNotClose: true,
214
+ props: {
215
+ clearable: true,
216
+ disabled: vm.isFee
217
+ }
218
+ },
219
+ {
220
+ label: vm.$l('到期日'),
221
+ type: 'daterange',
222
+ startDate: 'dueDateStart',
223
+ id: 'dueDateStart',
224
+ endDate: 'dueDateEnd',
225
+ isDefault: true,
226
+ static: true,
227
+ isNotClose: true,
228
+ maxNow: true
229
+ },
230
+
231
+ {
232
+ label: vm.$l('票据(包)号'),
233
+ type: 'text',
234
+ value: 'billNoLike',
235
+ id: 'billNoLike',
236
+ isDefault: true,
237
+ props: {
238
+ clearable: true
239
+ }
240
+ },
241
+ {
242
+ label: vm.$l('承兑人户名'),
243
+ type: 'text',
244
+ value: 'acceptNameLike',
245
+ id: 'acceptNameLike',
246
+ isDefault: true,
247
+ props: {
248
+ clearable: true
249
+ }
250
+ },
251
+ {
252
+ label: vm.$l('承兑人开户行'),
253
+ type: 'text',
254
+ value: 'acceptOpenOrgNameLike',
255
+ id: 'acceptOpenOrgNameLike',
256
+ isDefault: true,
257
+ props: {
258
+ clearable: true
259
+ }
260
+ },
261
+ {
262
+ label: vm.$l('票据金额'),
263
+ type: 'numberrange',
264
+ startValue: 'minBillAmount',
265
+ id: 'minBillAmount',
266
+ endValue: 'maxBillAmount',
267
+ isDefault: true,
268
+ props: {
269
+ min: 0,
270
+ max: 999999999999.99,
271
+ isClearable: true,
272
+ placeholder: vm.$l('请输入')
273
+ }
274
+ }
275
+ ]
276
+ }