@vtx/modals2 5.0.3 → 5.0.4

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 (206) hide show
  1. package/lib/_components/index.js +4 -3
  2. package/lib/_components/vm-bar-charts/index.js +1 -1
  3. package/lib/_components/vm-calendar/style/index.less +4 -7
  4. package/lib/_components/vm-card-statistics/index.less +27 -27
  5. package/lib/_components/vm-factor/index.js +10 -5
  6. package/lib/_components/vm-factor/style/index.less +5 -1
  7. package/lib/_components/vm-factor-list/index.less +11 -11
  8. package/lib/_components/vm-filter/style/index.less +2 -1
  9. package/lib/_components/vm-info-collection/index.js +2 -2
  10. package/lib/_components/vm-line-charts/index.js +1 -1
  11. package/lib/_components/vm-map/index.js +5 -5
  12. package/lib/_components/vm-pie-charts/index.js +7 -5
  13. package/lib/_components/vm-repair-maintain/RmInfoSummary.js +46 -0
  14. package/lib/_components/vm-repair-maintain/RmMonthTrend.js +44 -0
  15. package/lib/_components/vm-repair-maintain/RmRecord.js +157 -0
  16. package/lib/_components/vm-repair-maintain/RmType.js +32 -0
  17. package/lib/_components/vm-repair-maintain/api.js +92 -0
  18. package/lib/_components/vm-repair-maintain/imgs/amount.png +0 -0
  19. package/lib/_components/vm-repair-maintain/imgs/amount_light.png +0 -0
  20. package/lib/_components/vm-repair-maintain/imgs/count.png +0 -0
  21. package/lib/_components/vm-repair-maintain/imgs/count_light.png +0 -0
  22. package/lib/_components/vm-repair-maintain/index.js +56 -0
  23. package/lib/_components/vm-repair-maintain/style/index.js +1 -0
  24. package/lib/_components/vm-repair-maintain/style/index.less +25 -0
  25. package/lib/_components/vm-table/index.js +7 -4
  26. package/lib/_components/vm-table/style/index.less +3 -2
  27. package/lib/_components/vm-tag/style/index.less +9 -0
  28. package/lib/_components/vm-title/index.js +3 -2
  29. package/lib/_components/vm-wrapper/index.js +32 -10
  30. package/lib/_components/vm-wrapper/style/index.less +28 -0
  31. package/lib/index.js +7 -2
  32. package/lib/style/index.less +2 -6
  33. package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +2 -1
  34. package/lib/vtx-base-modal/Header/index.less +98 -98
  35. package/lib/vtx-base-modal/Tabs/index.less +31 -31
  36. package/lib/vtx-base-modal/index.js +5 -2
  37. package/lib/vtx-car-modal/api.js +4 -3
  38. package/lib/vtx-car-modal/components/Info/index.less +6 -6
  39. package/lib/vtx-car-modal/content/Cc/BaseInfo/index.js +3 -0
  40. package/lib/vtx-car-modal/content/Cc/WorkRecord/Summary.js +1 -0
  41. package/lib/vtx-car-modal/content/Common/BaseInfo/index.js +5 -1
  42. package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
  43. package/lib/vtx-car-modal/content/Common/StaticInfo/index.js +1 -0
  44. package/lib/vtx-car-modal/content/Common/WaterConsumption/index.js +1 -0
  45. package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
  46. package/lib/vtx-car-modal/content/JXH/AlarmInfo/List.js +9 -3
  47. package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +5 -1
  48. package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +7 -6
  49. package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +20 -12
  50. package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +3 -0
  51. package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Summary.js +1 -0
  52. package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.js +3 -0
  53. package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Summary.js +1 -0
  54. package/lib/vtx-car-modal/index.js +16 -2
  55. package/lib/vtx-cc-cp-modal/api.js +381 -0
  56. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js +120 -0
  57. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTrend.js +27 -0
  58. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTypeAnalysis.js +32 -0
  59. package/lib/vtx-cc-cp-modal/components/AlarmInfo/StaticInfo.js +41 -0
  60. package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.js +69 -0
  61. package/lib/vtx-cc-cp-modal/components/BaseInfo/AllWork.js +103 -0
  62. package/lib/vtx-cc-cp-modal/components/BaseInfo/Info.js +75 -0
  63. package/lib/vtx-cc-cp-modal/components/BaseInfo/Rules.js +58 -0
  64. package/lib/vtx-cc-cp-modal/components/BaseInfo/SyRecord.js +142 -0
  65. package/lib/vtx-cc-cp-modal/components/BaseInfo/index.js +63 -0
  66. package/lib/vtx-cc-cp-modal/components/BaseInfo/index.less +16 -0
  67. package/lib/vtx-cc-cp-modal/components/Calendar/index.js +168 -0
  68. package/lib/vtx-cc-cp-modal/components/Calendar/index.less +93 -0
  69. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTrend.js +27 -0
  70. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTypeAnalysis.js +32 -0
  71. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExeceptionRecord.js +118 -0
  72. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/StaticInfo.js +41 -0
  73. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.js +69 -0
  74. package/lib/vtx-cc-cp-modal/components/Restaurant/index.js +111 -0
  75. package/lib/vtx-cc-cp-modal/components/Restaurant/index.less +3 -0
  76. package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js +46 -0
  77. package/lib/vtx-cc-cp-modal/components/SyInfo/SummaryInfo.js +81 -0
  78. package/lib/vtx-cc-cp-modal/components/SyInfo/index.js +78 -0
  79. package/lib/vtx-cc-cp-modal/components/index.js +7 -0
  80. package/lib/vtx-cc-cp-modal/imgs/rwnsjts.png +0 -0
  81. package/lib/vtx-cc-cp-modal/imgs/rwnsjts_dark.png +0 -0
  82. package/lib/vtx-cc-cp-modal/imgs/rwnsjzl.png +0 -0
  83. package/lib/vtx-cc-cp-modal/imgs/rwnsjzl_dark.png +0 -0
  84. package/lib/vtx-cc-cp-modal/imgs/rwnsscs.png +0 -0
  85. package/lib/vtx-cc-cp-modal/imgs/rwnsscs_dark.png +0 -0
  86. package/lib/vtx-cc-cp-modal/imgs/zsjts.png +0 -0
  87. package/lib/vtx-cc-cp-modal/imgs/zsjts_dark.png +0 -0
  88. package/lib/vtx-cc-cp-modal/imgs/zsjzl.png +0 -0
  89. package/lib/vtx-cc-cp-modal/imgs/zsjzl_dark.png +0 -0
  90. package/lib/vtx-cc-cp-modal/imgs/zsscs.png +0 -0
  91. package/lib/vtx-cc-cp-modal/imgs/zsscs_dark.png +0 -0
  92. package/lib/vtx-cc-cp-modal/index.js +119 -0
  93. package/lib/vtx-cc-cp-modal/style/index.js +1 -0
  94. package/lib/vtx-cc-cp-modal/style/index.less +13 -0
  95. package/lib/vtx-cc-unit-modal/api.js +361 -0
  96. package/lib/vtx-cc-unit-modal/components/BaseInfo/CollectRecord.js +69 -0
  97. package/lib/vtx-cc-unit-modal/components/BaseInfo/DetailList.js +66 -0
  98. package/lib/vtx-cc-unit-modal/components/BaseInfo/Factory.js +60 -0
  99. package/lib/vtx-cc-unit-modal/components/BaseInfo/Statistics.js +91 -0
  100. package/lib/vtx-cc-unit-modal/components/BaseInfo/index.js +118 -0
  101. package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -0
  102. package/lib/vtx-cc-unit-modal/components/CarList/index.js +129 -0
  103. package/lib/vtx-cc-unit-modal/components/Collection/index.js +95 -0
  104. package/lib/vtx-cc-unit-modal/components/DetailInfo/index.js +126 -0
  105. package/lib/vtx-cc-unit-modal/components/Factory/index.js +149 -0
  106. package/lib/vtx-cc-unit-modal/components/RestaurantList/index.js +127 -0
  107. package/lib/vtx-cc-unit-modal/components/index.js +7 -0
  108. package/lib/vtx-cc-unit-modal/imgs/jccc.png +0 -0
  109. package/lib/vtx-cc-unit-modal/imgs/jccc_dark.png +0 -0
  110. package/lib/vtx-cc-unit-modal/imgs/jcl.png +0 -0
  111. package/lib/vtx-cc-unit-modal/imgs/jcl_dark.png +0 -0
  112. package/lib/vtx-cc-unit-modal/imgs/syts.png +0 -0
  113. package/lib/vtx-cc-unit-modal/imgs/syts_dark.png +0 -0
  114. package/lib/vtx-cc-unit-modal/imgs/syzl.png +0 -0
  115. package/lib/vtx-cc-unit-modal/imgs/syzl_dark.png +0 -0
  116. package/lib/vtx-cc-unit-modal/index.js +137 -0
  117. package/lib/vtx-cc-unit-modal/style/index.js +1 -0
  118. package/lib/vtx-cc-unit-modal/style/index.less +14 -0
  119. package/lib/vtx-cp-modal/api.js +3 -3
  120. package/lib/vtx-cp-modal/index.js +4 -1
  121. package/lib/vtx-default-modal/index.js +10 -7
  122. package/lib/vtx-device-modal/api.js +531 -0
  123. package/lib/vtx-device-modal/components/BaseInfo/index.js +140 -0
  124. package/lib/vtx-device-modal/components/DataAnalysis/AlarmAnalysis.js +279 -0
  125. package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +611 -0
  126. package/lib/vtx-device-modal/components/DataAnalysis/TabsList.js +23 -0
  127. package/lib/vtx-device-modal/components/DataAnalysis/index.js +24 -0
  128. package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -0
  129. package/lib/vtx-device-modal/components/index.js +3 -0
  130. package/lib/vtx-device-modal/config.js +21 -0
  131. package/lib/vtx-device-modal/imgs/current.png +0 -0
  132. package/lib/vtx-device-modal/imgs/current_dark.png +0 -0
  133. package/lib/vtx-device-modal/imgs/history.png +0 -0
  134. package/lib/vtx-device-modal/imgs/history_dark.png +0 -0
  135. package/lib/vtx-device-modal/index.js +96 -0
  136. package/lib/vtx-device-modal/style/index.js +1 -0
  137. package/lib/vtx-device-modal/style/index.less +1 -0
  138. package/lib/vtx-df-modal/index.js +11 -9
  139. package/lib/vtx-kh-modal/api2.js +178 -0
  140. package/lib/vtx-kh-modal/components/BaseInfo/index.js +197 -0
  141. package/lib/vtx-kh-modal/components/BaseInfo/index.less +101 -0
  142. package/lib/vtx-kh-modal/components/Record/index.js +204 -0
  143. package/lib/vtx-kh-modal/components/Record/index.less +7 -0
  144. package/lib/vtx-kh-modal/components/index.js +3 -0
  145. package/lib/vtx-kh-modal/imgs/count.png +0 -0
  146. package/lib/vtx-kh-modal/imgs/count_light.png +0 -0
  147. package/lib/vtx-kh-modal/imgs/question_bg.png +0 -0
  148. package/lib/vtx-kh-modal/imgs/question_bg_light.png +0 -0
  149. package/lib/vtx-kh-modal/imgs/score.png +0 -0
  150. package/lib/vtx-kh-modal/imgs/score_light.png +0 -0
  151. package/lib/vtx-kh-modal/imgs/subtract.png +0 -0
  152. package/lib/vtx-kh-modal/imgs/subtract_light.png +0 -0
  153. package/lib/vtx-kh-modal/index.js +46 -0
  154. package/lib/vtx-kh-modal/style/index.js +4 -0
  155. package/lib/vtx-kh-modal/style/index.less +1 -0
  156. package/lib/vtx-restaurant-modal/api.js +297 -0
  157. package/lib/vtx-restaurant-modal/components/Alarm/AlarmRecord.js +47 -0
  158. package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js +31 -0
  159. package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js +36 -0
  160. package/lib/vtx-restaurant-modal/components/Alarm/StaticInfo.js +41 -0
  161. package/lib/vtx-restaurant-modal/components/Alarm/index.js +69 -0
  162. package/lib/vtx-restaurant-modal/components/Basic/CollectRule.js +64 -0
  163. package/lib/vtx-restaurant-modal/components/Basic/DetailList.js +68 -0
  164. package/lib/vtx-restaurant-modal/components/Basic/Info.js +87 -0
  165. package/lib/vtx-restaurant-modal/components/Basic/Summary.js +61 -0
  166. package/lib/vtx-restaurant-modal/components/Basic/SummaryStatistics.js +60 -0
  167. package/lib/vtx-restaurant-modal/components/Basic/index.js +74 -0
  168. package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -0
  169. package/lib/vtx-restaurant-modal/components/Calendar/index.js +171 -0
  170. package/lib/vtx-restaurant-modal/components/Calendar/index.less +93 -0
  171. package/lib/vtx-restaurant-modal/components/Collection/index.js +86 -0
  172. package/lib/vtx-restaurant-modal/components/DetailInfo/index.js +111 -0
  173. package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +299 -0
  174. package/lib/vtx-restaurant-modal/components/SignAndContract/index.js +198 -0
  175. package/lib/vtx-restaurant-modal/components/index.js +7 -0
  176. package/lib/vtx-restaurant-modal/config.js +283 -0
  177. package/lib/vtx-restaurant-modal/imgs/csl.png +0 -0
  178. package/lib/vtx-restaurant-modal/imgs/csl_dark.png +0 -0
  179. package/lib/vtx-restaurant-modal/imgs/sycs.png +0 -0
  180. package/lib/vtx-restaurant-modal/imgs/sycs_dark.png +0 -0
  181. package/lib/vtx-restaurant-modal/imgs/syts.png +0 -0
  182. package/lib/vtx-restaurant-modal/imgs/syts_dark.png +0 -0
  183. package/lib/vtx-restaurant-modal/index.js +168 -0
  184. package/lib/vtx-restaurant-modal/style/index.js +1 -0
  185. package/lib/vtx-restaurant-modal/style/index.less +13 -0
  186. package/lib/vtx-road-modal/components/BaseInfo/index.less +218 -218
  187. package/lib/vtx-road-modal/components/Statistical/index.less +32 -32
  188. package/lib/vtx-shxq-modal/components/AlarmRecord/index.js +4 -1
  189. package/lib/vtx-shxq-modal/components/Tfd/index.js +0 -1
  190. package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +4 -1
  191. package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +6 -2
  192. package/lib/vtx-tfd-modal/api.js +22 -27
  193. package/lib/vtx-tfd-modal/components/BaseInfo/index.js +107 -59
  194. package/lib/vtx-tfd-modal/components/BaseInfo/index.less +5 -0
  195. package/lib/vtx-zg-modal/api.js +107 -0
  196. package/lib/vtx-zg-modal/components/BaseInfo/index.js +287 -0
  197. package/lib/vtx-zg-modal/components/BaseInfo/index.less +124 -0
  198. package/lib/vtx-zg-modal/components/index.js +1 -0
  199. package/lib/vtx-zg-modal/imgs/dot.png +0 -0
  200. package/lib/vtx-zg-modal/imgs/dot_done.png +0 -0
  201. package/lib/vtx-zg-modal/index.js +42 -0
  202. package/lib/vtx-zg-modal/style/index.js +3 -0
  203. package/lib/vtx-zg-modal/style/index.less +1 -0
  204. package/lib/vtx-zzz-modal/index.js +10 -10
  205. package/package.json +1 -1
  206. package/lib/vtx-car-modal/imgs/calendar/fsdf/durationqq.png +0 -0
@@ -0,0 +1,283 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
4
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
+ // 基础信息字段
6
+ export var signColorMap = {
7
+ fwz: 'green',
8
+ wkq: 'blue',
9
+ ydq: 'yellow'
10
+ };
11
+ export var QD_BASIC_FIELDS = [{
12
+ key: 'code',
13
+ label: '餐厨废弃物产生单位编号'
14
+ }, {
15
+ key: 'name',
16
+ label: '餐厨废弃物产生名称'
17
+ }, {
18
+ key: 'contactPerson',
19
+ label: '联系人'
20
+ }, {
21
+ key: 'contactPhone',
22
+ label: '联系方式'
23
+ }, {
24
+ key: 'classesName',
25
+ label: '产生单位类型'
26
+ }, {
27
+ key: 'divisionName',
28
+ label: '行政区划'
29
+ }, {
30
+ key: 'wasteGrease',
31
+ label: '是否产生废弃油脂'
32
+ }, {
33
+ key: 'address',
34
+ label: '商户地址',
35
+ isAddress: true
36
+ }];
37
+ export var QD_DETAIL_FIELDS = [{
38
+ key: 'establishedTime',
39
+ label: '产生单位起始经营时间'
40
+ }, {
41
+ key: 'signedStatusValue',
42
+ label: '产生单位状态'
43
+ }, {
44
+ key: 'scaleCount',
45
+ label: '企业规模(餐位数量)'
46
+ }, {
47
+ key: 'paperFileIds',
48
+ label: '食品经营许可证',
49
+ componentType: 'image'
50
+ }, {
51
+ key: 'photoIds',
52
+ label: '产生单位图片',
53
+ componentType: 'image'
54
+ }, {
55
+ key: 'trashBinLocationPhoto',
56
+ label: '垃圾桶摆放位置',
57
+ componentType: 'image'
58
+ }, {
59
+ key: 'qrcode',
60
+ label: '二维码'
61
+ }];
62
+ export var RestaurantConfigureEnum = {
63
+ /**
64
+ * 编号
65
+ */
66
+ CODE: 'code',
67
+ /**
68
+ * 产生单位名称
69
+ */
70
+ NAME: 'name',
71
+ /**
72
+ * 店铺名称
73
+ */
74
+ SHORT_NAME: 'shortName',
75
+ /**
76
+ * 行政区划名称
77
+ */
78
+ DIVISION_NAME: 'divisionId',
79
+ /**
80
+ * 联系人
81
+ */
82
+ CONTACT_PERSON: 'contactPerson',
83
+ /**
84
+ * 联系方式
85
+ */
86
+ CONTACT_PHONE: 'contactPhone',
87
+ /**
88
+ * 身份证号
89
+ */
90
+ CARD_ID: 'cardId',
91
+ /**
92
+ * 商户地址
93
+ */
94
+ ADDRESS: 'address',
95
+ /**
96
+ * 经纬度
97
+ */
98
+ LOCATION: 'location',
99
+ /**
100
+ * 产生单位状态
101
+ */
102
+ SIGNED_STATUS: 'signedStatus',
103
+ /**
104
+ * 签约状态
105
+ */
106
+ IS_SIGN: 'isSign',
107
+ /**
108
+ * 收集类型
109
+ */
110
+ COLLECT_STATUS: 'collectStatus',
111
+ /**
112
+ * 收集点
113
+ */
114
+ SY_POINT_NAME: 'syPointId',
115
+ /**
116
+ * 商户类型名称
117
+ */
118
+ CLASSES_NAME: 'classesId',
119
+ /**
120
+ * 规模名称
121
+ */
122
+ SCALE_NAME: 'scaleId',
123
+ /**
124
+ * 垃圾桶个数
125
+ */
126
+ TRASH_CAN_NUM: 'trashCanNum',
127
+ /**
128
+ * 统一社会信用代码
129
+ */
130
+ CREDIT_CODE: 'creditCode',
131
+ /**
132
+ * 行业名称
133
+ */
134
+ INDUSTRY_NAME: 'industryId',
135
+ /**
136
+ * 经营范围
137
+ */
138
+ BUSINESS_SCOPE: 'businessScope',
139
+ /**
140
+ * 注册资金
141
+ */
142
+ REGISTER_MONEY: 'registerMoney',
143
+ /**
144
+ * 企业成立时间
145
+ */
146
+ ESTABLISHED_TIME: 'establishedTime',
147
+ /**
148
+ * 建议收集时间
149
+ */
150
+ SUGGEST_COLLECT_TIME: 'suggestCollectTime',
151
+ /**
152
+ * 营业时间段
153
+ */
154
+ BUSINESS_TIME: 'businessTime',
155
+ /**
156
+ * 垃圾桶摆放位置图片
157
+ */
158
+ TRASH_BIN_LOCATION_PHOTO: 'trashBinLocationPhoto',
159
+ /**
160
+ * 商户图片
161
+ */
162
+ PHOTO_IDS: 'photoIds',
163
+ /**
164
+ * 证件图片
165
+ */
166
+ PAPER_FILE_IDS: 'paperFileIds'
167
+ };
168
+ export var getFormItem = function getFormItem(item, data) {
169
+ var _formItemMap;
170
+ var code = data.code,
171
+ divisionName = data.divisionName,
172
+ shortName = data.shortName,
173
+ name = data.name,
174
+ address = data.address,
175
+ contactPerson = data.contactPerson,
176
+ contactPhone = data.contactPhone,
177
+ cardId = data.cardId,
178
+ collectStatusValue = data.collectStatusValue,
179
+ syPointName = data.syPointName,
180
+ classesName = data.classesName,
181
+ scaleName = data.scaleName,
182
+ creditCode = data.creditCode,
183
+ isSignValue = data.isSignValue,
184
+ trashCanNum = data.trashCanNum,
185
+ industryName = data.industryName,
186
+ businessScope = data.businessScope,
187
+ registerMoney = data.registerMoney,
188
+ establishedTime = data.establishedTime,
189
+ photoIds = data.photoIds,
190
+ paperFileIds = data.paperFileIds,
191
+ location = data.location,
192
+ businessTime = data.businessTime,
193
+ trashBinLocationPhoto = data.trashBinLocationPhoto,
194
+ signedStatusValue = data.signedStatusValue,
195
+ suggestCollectTime = data.suggestCollectTime;
196
+ var dataKey = item.dataKey,
197
+ displayName = item.displayName;
198
+ var formItemMap = (_formItemMap = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_formItemMap, RestaurantConfigureEnum.CODE, {
199
+ label: displayName,
200
+ value: code
201
+ }), RestaurantConfigureEnum.NAME, {
202
+ label: displayName,
203
+ value: name
204
+ }), RestaurantConfigureEnum.SHORT_NAME, {
205
+ label: displayName,
206
+ value: shortName
207
+ }), RestaurantConfigureEnum.DIVISION_NAME, {
208
+ label: '行政区划',
209
+ value: divisionName,
210
+ isAddress: true
211
+ }), RestaurantConfigureEnum.CONTACT_PERSON, {
212
+ label: '联系人',
213
+ value: contactPerson
214
+ }), RestaurantConfigureEnum.CONTACT_PHONE, {
215
+ label: '联系方式',
216
+ value: contactPhone
217
+ }), RestaurantConfigureEnum.CARD_ID, {
218
+ label: '身份证号',
219
+ value: cardId
220
+ }), RestaurantConfigureEnum.ADDRESS, {
221
+ label: '产生单位地址',
222
+ value: address,
223
+ isAddress: true
224
+ }), RestaurantConfigureEnum.LOCATION, {
225
+ label: '经纬度',
226
+ value: location
227
+ }), RestaurantConfigureEnum.SIGNED_STATUS, {
228
+ label: '产生单位状态',
229
+ value: signedStatusValue
230
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_formItemMap, RestaurantConfigureEnum.IS_SIGN, {
231
+ label: '签约状态',
232
+ value: isSignValue
233
+ }), RestaurantConfigureEnum.COLLECT_STATUS, {
234
+ label: '收集类型',
235
+ value: collectStatusValue
236
+ }), RestaurantConfigureEnum.SY_POINT_NAME, {
237
+ label: '收集点',
238
+ value: syPointName
239
+ }), RestaurantConfigureEnum.CLASSES_NAME, {
240
+ label: '产生单位类型',
241
+ value: classesName
242
+ }), RestaurantConfigureEnum.SCALE_NAME, {
243
+ label: '产生单位规模',
244
+ value: scaleName
245
+ }), RestaurantConfigureEnum.TRASH_CAN_NUM, {
246
+ label: '垃圾桶个数',
247
+ value: trashCanNum
248
+ }), RestaurantConfigureEnum.CREDIT_CODE, {
249
+ label: '统一社会信用代码',
250
+ value: creditCode
251
+ }), RestaurantConfigureEnum.INDUSTRY_NAME, {
252
+ label: '行业',
253
+ value: industryName
254
+ }), RestaurantConfigureEnum.BUSINESS_SCOPE, {
255
+ label: '经营范围',
256
+ value: businessScope
257
+ }), RestaurantConfigureEnum.REGISTER_MONEY, {
258
+ label: '注册资金(元)',
259
+ value: registerMoney
260
+ }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_formItemMap, RestaurantConfigureEnum.ESTABLISHED_TIME, {
261
+ label: '企业成立时间',
262
+ value: establishedTime
263
+ }), RestaurantConfigureEnum.SUGGEST_COLLECT_TIME, {
264
+ label: '建议收运时间',
265
+ value: suggestCollectTime
266
+ }), RestaurantConfigureEnum.BUSINESS_TIME, {
267
+ label: '营业时间',
268
+ value: businessTime
269
+ }), RestaurantConfigureEnum.TRASH_BIN_LOCATION_PHOTO, {
270
+ label: '垃圾桶摆放位置图片',
271
+ value: trashBinLocationPhoto,
272
+ type: 'img'
273
+ }), RestaurantConfigureEnum.PHOTO_IDS, {
274
+ label: '产生单位图片',
275
+ value: photoIds,
276
+ type: 'img'
277
+ }), RestaurantConfigureEnum.PAPER_FILE_IDS, {
278
+ label: '证件图片',
279
+ value: paperFileIds,
280
+ type: 'img'
281
+ }));
282
+ return formItemMap[dataKey];
283
+ };
@@ -0,0 +1,168 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
9
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
10
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
11
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ import { useMemoizedFn } from 'ahooks';
14
+ import dayjs from 'dayjs';
15
+ import { createContext, useMemo, useState } from 'react';
16
+ import useGetConfig from "../_hooks/useGetConfig";
17
+ import VtxBaseModal from "../vtx-base-modal";
18
+ import VtxCarModal from "../vtx-car-modal";
19
+ import VtxCcCpModal from "../vtx-cc-cp-modal";
20
+ import VtxCcUnitModal from "../vtx-cc-unit-modal";
21
+ import { BasicService } from "./api";
22
+ import { Alarm, Basic, Calendar, Collection, DetailInfo, SignAndContract } from "./components";
23
+ import "./style";
24
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
25
+ var TABS_BASE = 'restaurant-base';
26
+ var TABS_DETAIL = 'restaurant-detail';
27
+ var TABS_CALENDAR = 'restaurant-calendar';
28
+ var TABS_SIGN = 'restaurant-sign';
29
+ var TABS_ALARM = 'restaurant-alarm';
30
+ var TABS_COLLECTION = 'restaurant-collection';
31
+ export var RestaurantContext = /*#__PURE__*/createContext({
32
+ prefix: '',
33
+ id: '',
34
+ name: '',
35
+ garbageType: '',
36
+ showCharts: false,
37
+ info: {},
38
+ theme: 'blue',
39
+ date: dayjs().format('YYYY-MM-DD')
40
+ });
41
+ var Provider = RestaurantContext.Provider;
42
+ var VtxRestaurantModal = function VtxRestaurantModal(props) {
43
+ var _props$visible = props.visible,
44
+ visible = _props$visible === void 0 ? false : _props$visible,
45
+ onCancel = props.onCancel,
46
+ _props$tabChose = props.tabChose,
47
+ tabChose = _props$tabChose === void 0 ? '' : _props$tabChose,
48
+ _props$theme = props.theme,
49
+ theme = _props$theme === void 0 ? 'blue' : _props$theme,
50
+ id = props.id,
51
+ _props$title = props.title,
52
+ title = _props$title === void 0 ? '' : _props$title,
53
+ _props$garbageType = props.garbageType,
54
+ garbageType = _props$garbageType === void 0 ? '' : _props$garbageType,
55
+ _props$showCharts = props.showCharts,
56
+ showCharts = _props$showCharts === void 0 ? false : _props$showCharts,
57
+ _props$date = props.date,
58
+ date = _props$date === void 0 ? dayjs().format('YYYY-MM-DD') : _props$date;
59
+ var tabs = [{
60
+ key: TABS_BASE,
61
+ title: '总览信息'
62
+ }];
63
+ var _useGetConfig = useGetConfig('restaurant', tabs),
64
+ tabsData = _useGetConfig.tabsData;
65
+ var _useState = useState({
66
+ visible: false,
67
+ id: '',
68
+ title: ''
69
+ }),
70
+ _useState2 = _slicedToArray(_useState, 2),
71
+ unitModal = _useState2[0],
72
+ setUnitModal = _useState2[1];
73
+ var _useState3 = useState({
74
+ visible: false,
75
+ id: '',
76
+ title: ''
77
+ }),
78
+ _useState4 = _slicedToArray(_useState3, 2),
79
+ carModal = _useState4[0],
80
+ setCarModal = _useState4[1];
81
+ var _useState5 = useState({
82
+ visible: false,
83
+ id: '',
84
+ title: ''
85
+ }),
86
+ _useState6 = _slicedToArray(_useState5, 2),
87
+ syPointModal = _useState6[0],
88
+ setSyPointModal = _useState6[1];
89
+ var _BasicService$useInfo = BasicService.useInfo({
90
+ id: id
91
+ }),
92
+ basicInfo = _BasicService$useInfo.basicInfo;
93
+ var openUnit = useMemoizedFn(function (info) {
94
+ setUnitModal(_objectSpread({
95
+ visible: true
96
+ }, info));
97
+ });
98
+ var closeUnit = useMemoizedFn(function () {
99
+ setUnitModal({
100
+ visible: false,
101
+ id: '',
102
+ title: ''
103
+ });
104
+ });
105
+ var openCar = useMemoizedFn(function (info) {
106
+ setCarModal(_objectSpread({
107
+ visible: true
108
+ }, info));
109
+ });
110
+ var closeCar = useMemoizedFn(function () {
111
+ setCarModal({
112
+ visible: false,
113
+ id: '',
114
+ title: ''
115
+ });
116
+ });
117
+ var openSyPoint = useMemoizedFn(function (info) {
118
+ setSyPointModal(_objectSpread({
119
+ visible: true
120
+ }, info));
121
+ });
122
+ var closeSypoint = useMemoizedFn(function () {
123
+ setSyPointModal({
124
+ visible: false,
125
+ id: '',
126
+ title: ''
127
+ });
128
+ });
129
+ var value = useMemo(function () {
130
+ return {
131
+ id: id,
132
+ name: basicInfo.name,
133
+ garbageType: garbageType,
134
+ showCharts: showCharts,
135
+ info: basicInfo,
136
+ theme: theme,
137
+ date: date,
138
+ openUnit: openUnit,
139
+ openCar: openCar,
140
+ openSyPoint: openSyPoint
141
+ };
142
+ }, [id, basicInfo, garbageType, showCharts, date]);
143
+ var tabContents = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, /*#__PURE__*/_jsx(Basic, {})), TABS_DETAIL, /*#__PURE__*/_jsx(DetailInfo, {})), TABS_SIGN, /*#__PURE__*/_jsx(SignAndContract, {})), TABS_CALENDAR, /*#__PURE__*/_jsx(Calendar, {})), TABS_COLLECTION, /*#__PURE__*/_jsx(Collection, {})), TABS_ALARM, /*#__PURE__*/_jsx(Alarm, {}));
144
+ return /*#__PURE__*/_jsxs(_Fragment, {
145
+ children: [/*#__PURE__*/_jsx(Provider, {
146
+ value: value,
147
+ children: /*#__PURE__*/_jsx(VtxBaseModal, {
148
+ title: title,
149
+ theme: theme,
150
+ tabs: tabsData,
151
+ tabChose: tabChose,
152
+ visible: visible,
153
+ onCancel: onCancel,
154
+ contents: tabContents
155
+ })
156
+ }), unitModal.visible && /*#__PURE__*/_jsx(VtxCcUnitModal, _objectSpread(_objectSpread({}, unitModal), {}, {
157
+ theme: theme,
158
+ onCancel: closeUnit
159
+ })), carModal.visible && /*#__PURE__*/_jsx(VtxCarModal, _objectSpread(_objectSpread({}, carModal), {}, {
160
+ theme: theme,
161
+ onCancel: closeCar
162
+ })), syPointModal.visible && /*#__PURE__*/_jsx(VtxCcCpModal, _objectSpread(_objectSpread({}, syPointModal), {}, {
163
+ theme: theme,
164
+ onCancel: closeSypoint
165
+ }))]
166
+ });
167
+ };
168
+ export default VtxRestaurantModal;
@@ -0,0 +1 @@
1
+ import "./index.less";
@@ -0,0 +1,13 @@
1
+ @import '../../style/index';
2
+ .vtx-restaurant-info-right-wrap {
3
+ width: 100%;
4
+ height: 100%;
5
+ display: flex;
6
+ flex-direction: column;
7
+ gap: 16px;
8
+ &-bottom {
9
+ width: 100%;
10
+ flex: 1;
11
+ min-height: 0;
12
+ }
13
+ }