@vtx/modals2 5.0.58 → 6.0.0-beta.0

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 (373) hide show
  1. package/README.md +18 -2
  2. package/lib/_components/vm-calendar/index.js +12 -7
  3. package/lib/_components/vm-calendar/style/index.js +0 -1
  4. package/lib/_components/vm-calendar/style/index.less +1 -0
  5. package/lib/_components/vm-card-statistics/index.less +27 -27
  6. package/lib/_components/vm-custom/index.js +1 -1
  7. package/lib/_components/vm-empty/index.js +13 -11
  8. package/lib/_components/vm-factor/index.js +1 -0
  9. package/lib/_components/vm-factor/style/index.less +4 -0
  10. package/lib/_components/vm-factor-list/index.less +11 -11
  11. package/lib/_components/vm-filter/index.js +9 -12
  12. package/lib/_components/vm-info-collection/style/index.js +0 -1
  13. package/lib/_components/vm-map/index.js +18 -0
  14. package/lib/_components/vm-pie-charts/index.js +1 -1
  15. package/lib/_components/vm-popover/index.js +11 -3
  16. package/lib/_components/vm-popover/index.less +10 -7
  17. package/lib/_components/vm-repair-maintain/RmInfoSummary.js +7 -6
  18. package/lib/_components/vm-repair-maintain/RmMonthTrend.js +3 -2
  19. package/lib/_components/vm-repair-maintain/RmRecord.js +9 -8
  20. package/lib/_components/vm-repair-maintain/RmType.js +5 -4
  21. package/lib/_components/vm-repair-maintain/index.js +4 -3
  22. package/lib/_components/vm-table/index.js +31 -24
  23. package/lib/_components/vm-tabs/index.js +26 -10
  24. package/lib/_components/vm-video/index.js +21 -21
  25. package/lib/_components/vm-wrapper/index.js +8 -4
  26. package/lib/_components/vm-wrapper/resource/ICON_CONFIG.js +1 -1
  27. package/lib/_util/http.js +4 -2
  28. package/lib/_util/setupDayjs.js +16 -0
  29. package/lib/hooks/useTranslation.js +219 -0
  30. package/lib/index.js +3 -0
  31. package/lib/locales/en.json +1377 -0
  32. package/lib/locales/zh-CN.json +1377 -0
  33. package/lib/style/index.less +0 -2
  34. package/lib/vtx-area-modal/api.js +5 -4
  35. package/lib/vtx-area-modal/components/BaseInfo/Lcfx.js +2 -1
  36. package/lib/vtx-area-modal/components/BaseInfo/ListZymx.js +10 -9
  37. package/lib/vtx-area-modal/components/BaseInfo/index.js +14 -13
  38. package/lib/vtx-area-modal/index.js +1 -1
  39. package/lib/vtx-base-modal/Header/index.less +99 -98
  40. package/lib/vtx-base-modal/index.js +34 -3
  41. package/lib/vtx-base-modal/style/index.less +14 -1
  42. package/lib/vtx-car-modal/components/Info/index.js +37 -7
  43. package/lib/vtx-car-modal/components/Info/index.less +6 -6
  44. package/lib/vtx-car-modal/content/Cc/AlarmInfo/List.js +7 -6
  45. package/lib/vtx-car-modal/content/Cc/AlarmInfo/StaticInfo.js +7 -6
  46. package/lib/vtx-car-modal/content/Cc/AlarmInfo/index.js +2 -1
  47. package/lib/vtx-car-modal/content/Cc/BaseInfo/index.js +22 -21
  48. package/lib/vtx-car-modal/content/Cc/OrderInfo/Detail.js +26 -25
  49. package/lib/vtx-car-modal/content/Cc/OrderInfo/index.js +15 -14
  50. package/lib/vtx-car-modal/content/Cc/StaticInfo/index.js +22 -21
  51. package/lib/vtx-car-modal/content/Cc/WorkRecord/Detail.js +13 -12
  52. package/lib/vtx-car-modal/content/Cc/WorkRecord/Summary.js +13 -12
  53. package/lib/vtx-car-modal/content/Cc/WorkRecord/index.js +2 -1
  54. package/lib/vtx-car-modal/content/Common/AlarmInfo/List.js +16 -11
  55. package/lib/vtx-car-modal/content/Common/AlarmInfo/StaticInfo.js +7 -6
  56. package/lib/vtx-car-modal/content/Common/AlarmInfo/index.js +2 -1
  57. package/lib/vtx-car-modal/content/Common/BaseInfo/index.js +10 -7
  58. package/lib/vtx-car-modal/content/Common/DetailInfo/index.js +13 -12
  59. package/lib/vtx-car-modal/content/Common/DeviceInfo/index.js +16 -15
  60. package/lib/vtx-car-modal/content/Common/Maintenance/index.js +23 -18
  61. package/lib/vtx-car-modal/content/Common/OilConsumption/List.js +5 -4
  62. package/lib/vtx-car-modal/content/Common/OilConsumption/index.js +7 -6
  63. package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
  64. package/lib/vtx-car-modal/content/Common/StaticInfo/index.js +17 -15
  65. package/lib/vtx-car-modal/content/Common/WaterConsumption/index.js +10 -9
  66. package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
  67. package/lib/vtx-car-modal/content/JXH/AlarmInfo/List.js +8 -7
  68. package/lib/vtx-car-modal/content/JXH/AlarmInfo/StaticInfo.js +9 -8
  69. package/lib/vtx-car-modal/content/JXH/AlarmInfo/index.js +2 -1
  70. package/lib/vtx-car-modal/content/JXH/BaseInfo/index.js +11 -10
  71. package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/List.js +8 -7
  72. package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/StaticInfo.js +7 -6
  73. package/lib/vtx-car-modal/content/JXH/Hw2AlarmInfo/index.js +2 -1
  74. package/lib/vtx-car-modal/content/JXH/Hw2BaseInfo/index.js +13 -12
  75. package/lib/vtx-car-modal/content/JXH/Hw2StaticInfo/index.js +44 -41
  76. package/lib/vtx-car-modal/content/JXH/Hw2WorkRecord/index.js +26 -20
  77. package/lib/vtx-car-modal/content/JXH/StaticInfo/index.js +18 -17
  78. package/lib/vtx-car-modal/content/JXH/WorkRecord/index.js +23 -22
  79. package/lib/vtx-car-modal/content/Jzlj/Alarm/Bottom.js +41 -40
  80. package/lib/vtx-car-modal/content/Jzlj/Alarm/index.js +13 -12
  81. package/lib/vtx-car-modal/content/Jzlj/BaseInfo/index.js +21 -20
  82. package/lib/vtx-car-modal/content/Jzlj/Collection/Chart.js +8 -7
  83. package/lib/vtx-car-modal/content/Jzlj/Collection/index.js +26 -25
  84. package/lib/vtx-car-modal/content/Jzlj/Dispose/Pies.js +15 -9
  85. package/lib/vtx-car-modal/content/Jzlj/Dispose/index.js +20 -19
  86. package/lib/vtx-car-modal/content/Jzlj/RunCalendar/index.js +13 -12
  87. package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/List.js +6 -5
  88. package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/StaticInfo.js +7 -6
  89. package/lib/vtx-car-modal/content/Ljsy/AlarmInfo/index.js +2 -1
  90. package/lib/vtx-car-modal/content/Ljsy/BaseInfo/index.js +28 -27
  91. package/lib/vtx-car-modal/content/Ljsy/StaticInfo/index.js +23 -22
  92. package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Detail.js +10 -9
  93. package/lib/vtx-car-modal/content/Ljsy/WorkRecord/Summary.js +13 -12
  94. package/lib/vtx-car-modal/content/Ljsy/WorkRecord/index.js +2 -1
  95. package/lib/vtx-car-modal/content/Ljzy/BaseInfo/index.js +18 -17
  96. package/lib/vtx-car-modal/content/Ljzy/StaticInfo/index.js +15 -14
  97. package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Detail.js +8 -7
  98. package/lib/vtx-car-modal/content/Ljzy/WorkRecord/Summary.js +12 -11
  99. package/lib/vtx-car-modal/content/Ljzy/WorkRecord/index.js +2 -1
  100. package/lib/vtx-car-modal/content/Unmanned/Analysis/index.js +4 -3
  101. package/lib/vtx-car-modal/content/Unmanned/Calendar/index.js +18 -17
  102. package/lib/vtx-car-modal/content/Unmanned/Monitor/index.js +2 -1
  103. package/lib/vtx-car-modal/content/Unmanned/WorkInfo/index.js +8 -7
  104. package/lib/vtx-car-modal/index.js +25 -24
  105. package/lib/vtx-car-modal/style/index.js +1 -3
  106. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmRecord.js +28 -16
  107. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTrend.js +7 -2
  108. package/lib/vtx-cc-cp-modal/components/AlarmInfo/AlarmTypeAnalysis.js +4 -3
  109. package/lib/vtx-cc-cp-modal/components/AlarmInfo/StaticInfo.js +3 -2
  110. package/lib/vtx-cc-cp-modal/components/AlarmInfo/index.js +2 -1
  111. package/lib/vtx-cc-cp-modal/components/BaseInfo/AllWork.js +29 -34
  112. package/lib/vtx-cc-cp-modal/components/BaseInfo/Info.js +25 -19
  113. package/lib/vtx-cc-cp-modal/components/BaseInfo/Rules.js +4 -3
  114. package/lib/vtx-cc-cp-modal/components/BaseInfo/SyRecord.js +21 -17
  115. package/lib/vtx-cc-cp-modal/components/BaseInfo/index.js +8 -7
  116. package/lib/vtx-cc-cp-modal/components/BaseInfo/index.less +34 -0
  117. package/lib/vtx-cc-cp-modal/components/Calendar/index.js +4 -3
  118. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTrend.js +7 -2
  119. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExceptionTypeAnalysis.js +4 -3
  120. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/ExeceptionRecord.js +33 -35
  121. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/StaticInfo.js +3 -2
  122. package/lib/vtx-cc-cp-modal/components/ExceptionInfo/index.js +2 -1
  123. package/lib/vtx-cc-cp-modal/components/Restaurant/index.js +23 -13
  124. package/lib/vtx-cc-cp-modal/components/SyInfo/Ljcsl.js +2 -1
  125. package/lib/vtx-cc-cp-modal/components/SyInfo/SummaryInfo.js +25 -17
  126. package/lib/vtx-cc-cp-modal/components/SyInfo/index.js +3 -2
  127. package/lib/vtx-cc-cp-modal/index.js +2 -1
  128. package/lib/vtx-cc-unit-modal/components/BaseInfo/CollectRecord.js +11 -7
  129. package/lib/vtx-cc-unit-modal/components/BaseInfo/DetailList.js +3 -2
  130. package/lib/vtx-cc-unit-modal/components/BaseInfo/Factory.js +13 -9
  131. package/lib/vtx-cc-unit-modal/components/BaseInfo/Statistics.js +13 -9
  132. package/lib/vtx-cc-unit-modal/components/BaseInfo/index.js +7 -6
  133. package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -6
  134. package/lib/vtx-cc-unit-modal/components/CarList/index.js +13 -9
  135. package/lib/vtx-cc-unit-modal/components/Collection/index.js +11 -7
  136. package/lib/vtx-cc-unit-modal/components/DetailInfo/index.js +14 -13
  137. package/lib/vtx-cc-unit-modal/components/Factory/index.js +13 -9
  138. package/lib/vtx-cc-unit-modal/components/RestaurantList/index.js +15 -11
  139. package/lib/vtx-cc-unit-modal/index.js +17 -10
  140. package/lib/vtx-cp-modal/api.js +6 -5
  141. package/lib/vtx-cp-modal/components/AlarmInfo/AlarmRecord.js +11 -10
  142. package/lib/vtx-cp-modal/components/AlarmInfo/MonthTrend.js +4 -3
  143. package/lib/vtx-cp-modal/components/AlarmInfo/Summary.js +6 -5
  144. package/lib/vtx-cp-modal/components/BaseInfo/CarWork.js +9 -8
  145. package/lib/vtx-cp-modal/components/BaseInfo/Rules.js +3 -2
  146. package/lib/vtx-cp-modal/components/BaseInfo/TodayWork.js +10 -9
  147. package/lib/vtx-cp-modal/components/BaseInfo/index.js +5 -4
  148. package/lib/vtx-cp-modal/components/ExeceptionInfo/AlarmRecord.js +10 -9
  149. package/lib/vtx-cp-modal/components/ExeceptionInfo/MonthTrend.js +4 -3
  150. package/lib/vtx-cp-modal/components/ExeceptionInfo/Summary.js +6 -5
  151. package/lib/vtx-cp-modal/components/SyInfo/Ljcsl.js +5 -4
  152. package/lib/vtx-cp-modal/components/SyInfo/index.js +20 -19
  153. package/lib/vtx-cp-modal/index.js +5 -4
  154. package/lib/vtx-default-modal/components/BaseInfo/index.js +2 -1
  155. package/lib/vtx-default-modal/index.js +4 -3
  156. package/lib/vtx-default-modal/style/index.js +0 -1
  157. package/lib/vtx-device-modal/components/BaseInfo/PreviewAndDownload.js +4 -3
  158. package/lib/vtx-device-modal/components/BaseInfo/index.js +13 -12
  159. package/lib/vtx-device-modal/components/DataAnalysis/AlarmAnalysis.js +15 -14
  160. package/lib/vtx-device-modal/components/DataAnalysis/MonitorAnalysis.js +21 -20
  161. package/lib/vtx-device-modal/components/DataAnalysis/index.js +15 -0
  162. package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -66
  163. package/lib/vtx-device-modal/index.js +6 -3
  164. package/lib/vtx-device-modal/style/index.less +32 -0
  165. package/lib/vtx-df-modal/components/BaseInfo/Jcqsfx.js +5 -4
  166. package/lib/vtx-df-modal/components/BaseInfo/Jczbqs.js +6 -5
  167. package/lib/vtx-df-modal/components/BaseInfo/Qyjcl.js +4 -3
  168. package/lib/vtx-df-modal/components/BaseInfo/RealtimeMonitor.js +12 -7
  169. package/lib/vtx-df-modal/components/BaseInfo/Situation.js +5 -4
  170. package/lib/vtx-df-modal/components/BaseInfo/index.js +4 -3
  171. package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jcqsfx.js +6 -5
  172. package/lib/vtx-df-modal/components/BaseInfoZdReborn/Jczbqs.js +6 -5
  173. package/lib/vtx-df-modal/components/BaseInfoZdReborn/Qyjcl.js +4 -3
  174. package/lib/vtx-df-modal/components/BaseInfoZdReborn/RealtimeMonitor.js +12 -7
  175. package/lib/vtx-df-modal/components/BaseInfoZdReborn/Situation.js +5 -4
  176. package/lib/vtx-df-modal/components/BaseInfoZdReborn/index.js +4 -3
  177. package/lib/vtx-df-modal/components/Calendar/index.js +7 -6
  178. package/lib/vtx-df-modal/components/Calendar/zd-reborn.js +7 -6
  179. package/lib/vtx-df-modal/components/Metering/ChartJccc.js +10 -8
  180. package/lib/vtx-df-modal/components/Metering/ChartJcqs.js +6 -5
  181. package/lib/vtx-df-modal/components/Metering/List.js +12 -10
  182. package/lib/vtx-df-modal/components/Metering/index.js +11 -10
  183. package/lib/vtx-df-modal/components/MeteringZdReborn/ChartJccc.js +10 -8
  184. package/lib/vtx-df-modal/components/MeteringZdReborn/ChartJcqs.js +6 -6
  185. package/lib/vtx-df-modal/components/MeteringZdReborn/List.js +12 -10
  186. package/lib/vtx-df-modal/components/MeteringZdReborn/index.js +11 -10
  187. package/lib/vtx-df-modal/components/WorkCondition/Monitor.js +2 -1
  188. package/lib/vtx-df-modal/components/WorkCondition/Table.js +4 -3
  189. package/lib/vtx-df-modal/components/WorkCondition/index.js +9 -4
  190. package/lib/vtx-df-modal/index.js +4 -3
  191. package/lib/vtx-housing-estate-modal/components/Alarm/CYLJTF.js +7 -6
  192. package/lib/vtx-housing-estate-modal/components/Alarm/Distribute.js +3 -2
  193. package/lib/vtx-housing-estate-modal/components/Alarm/FLZL_TREND.js +3 -2
  194. package/lib/vtx-housing-estate-modal/components/Alarm/FSCSFB.js +3 -2
  195. package/lib/vtx-housing-estate-modal/components/Alarm/FSSD.js +5 -4
  196. package/lib/vtx-housing-estate-modal/components/Alarm/FSYZQS.js +4 -3
  197. package/lib/vtx-housing-estate-modal/components/Alarm/GDCLXL.js +8 -7
  198. package/lib/vtx-housing-estate-modal/components/Alarm/HTLJPH.js +6 -5
  199. package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_FB.js +9 -8
  200. package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_GD.js +4 -3
  201. package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_PIE.js +5 -4
  202. package/lib/vtx-housing-estate-modal/components/Alarm/MYFX_TREND.js +3 -2
  203. package/lib/vtx-housing-estate-modal/components/Alarm/index.js +5 -4
  204. package/lib/vtx-housing-estate-modal/components/OverView/Hot.js +13 -12
  205. package/lib/vtx-housing-estate-modal/components/OverView/Left.js +7 -5
  206. package/lib/vtx-housing-estate-modal/components/OverView/Manage.js +14 -13
  207. package/lib/vtx-housing-estate-modal/components/OverView/RightBottom.js +12 -11
  208. package/lib/vtx-housing-estate-modal/components/Sbzj/index.js +20 -17
  209. package/lib/vtx-housing-estate-modal/components/TFRD/index.js +55 -52
  210. package/lib/vtx-housing-estate-modal/components/WGGS/index.js +3 -2
  211. package/lib/vtx-housing-estate-modal/components/WGXW/Content.js +2 -1
  212. package/lib/vtx-housing-estate-modal/components/WGXW/index.js +6 -5
  213. package/lib/vtx-housing-estate-modal/config.js +10 -10
  214. package/lib/vtx-housing-estate-modal/index.js +6 -5
  215. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/Chart.js +15 -9
  216. package/lib/vtx-jzlj-df-tpd-modal/components/Collection/index.js +31 -25
  217. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/FlowMap.js +4 -3
  218. package/lib/vtx-jzlj-df-tpd-modal/components/Dispose/index.js +32 -24
  219. package/lib/vtx-jzlj-df-tpd-modal/components/FactorList.js +38 -0
  220. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTL.js +4 -3
  221. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CTYL.js +16 -10
  222. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/CZZ.js +16 -8
  223. package/lib/vtx-jzlj-df-tpd-modal/components/Overview/index.js +5 -4
  224. package/lib/vtx-jzlj-df-tpd-modal/index.js +8 -5
  225. package/lib/vtx-jzlj-df-tpd-modal/style/index.less +22 -0
  226. package/lib/vtx-jzlj-gcxm-modal/components/Alarm/Bottom.js +41 -40
  227. package/lib/vtx-jzlj-gcxm-modal/components/Alarm/index.js +16 -15
  228. package/lib/vtx-jzlj-gcxm-modal/components/Collection/Chart.js +10 -8
  229. package/lib/vtx-jzlj-gcxm-modal/components/Collection/index.js +26 -24
  230. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/FlowMap.js +4 -3
  231. package/lib/vtx-jzlj-gcxm-modal/components/Dispose/index.js +26 -24
  232. package/lib/vtx-jzlj-gcxm-modal/components/FactorList.js +41 -0
  233. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTL.js +4 -3
  234. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CTYL.js +11 -9
  235. package/lib/vtx-jzlj-gcxm-modal/components/Overview/CZZ.js +11 -9
  236. package/lib/vtx-jzlj-gcxm-modal/components/Overview/index.js +11 -9
  237. package/lib/vtx-jzlj-gcxm-modal/index.js +10 -6
  238. package/lib/vtx-jzlj-gcxm-modal/style/index.less +45 -0
  239. package/lib/vtx-jzlj-xnc-modal/components/Collection/Chart.js +11 -9
  240. package/lib/vtx-jzlj-xnc-modal/components/Collection/index.js +27 -25
  241. package/lib/vtx-jzlj-xnc-modal/components/Dispose/FlowMap.js +4 -3
  242. package/lib/vtx-jzlj-xnc-modal/components/Dispose/index.js +26 -24
  243. package/lib/vtx-jzlj-xnc-modal/components/FactorList.js +41 -0
  244. package/lib/vtx-jzlj-xnc-modal/components/Overview/CTL.js +4 -3
  245. package/lib/vtx-jzlj-xnc-modal/components/Overview/CTYL.js +12 -10
  246. package/lib/vtx-jzlj-xnc-modal/components/Overview/CZZ.js +13 -11
  247. package/lib/vtx-jzlj-xnc-modal/components/Overview/index.js +24 -13
  248. package/lib/vtx-jzlj-xnc-modal/index.js +9 -5
  249. package/lib/vtx-jzlj-xnc-modal/style/index.less +46 -0
  250. package/lib/vtx-jzlj-ysqy-modal/components/Overview/index.js +29 -12
  251. package/lib/vtx-jzlj-ysqy-modal/components/Overview/index.less +21 -0
  252. package/lib/vtx-jzlj-ysqy-modal/index.js +6 -2
  253. package/lib/vtx-kh-modal/api2.js +10 -9
  254. package/lib/vtx-kh-modal/components/BaseInfo/index.js +21 -23
  255. package/lib/vtx-kh-modal/components/Record/index.js +18 -17
  256. package/lib/vtx-kh-modal/index.js +3 -2
  257. package/lib/vtx-kh-modal/style/index.js +0 -1
  258. package/lib/vtx-qyry-modal/api.js +8 -7
  259. package/lib/vtx-qyry-modal/index.js +17 -16
  260. package/lib/vtx-restaurant-modal/components/Alarm/AlarmRecord.js +18 -9
  261. package/lib/vtx-restaurant-modal/components/Alarm/AlarmTrend.js +7 -2
  262. package/lib/vtx-restaurant-modal/components/Alarm/AlarmTypeAnalysis.js +4 -3
  263. package/lib/vtx-restaurant-modal/components/Alarm/StaticInfo.js +3 -2
  264. package/lib/vtx-restaurant-modal/components/Alarm/index.js +2 -1
  265. package/lib/vtx-restaurant-modal/components/Basic/CollectRule.js +6 -5
  266. package/lib/vtx-restaurant-modal/components/Basic/DetailList.js +11 -7
  267. package/lib/vtx-restaurant-modal/components/Basic/Info.js +4 -1
  268. package/lib/vtx-restaurant-modal/components/Basic/Summary.js +6 -5
  269. package/lib/vtx-restaurant-modal/components/Basic/SummaryStatistics.js +3 -2
  270. package/lib/vtx-restaurant-modal/components/Basic/index.js +6 -5
  271. package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -16
  272. package/lib/vtx-restaurant-modal/components/Calendar/index.js +3 -2
  273. package/lib/vtx-restaurant-modal/components/Collection/index.js +5 -4
  274. package/lib/vtx-restaurant-modal/components/SignAndContract/ContactDetail.js +24 -23
  275. package/lib/vtx-restaurant-modal/components/SignAndContract/index.js +11 -10
  276. package/lib/vtx-restaurant-modal/config.js +94 -95
  277. package/lib/vtx-restaurant-modal/index.js +16 -7
  278. package/lib/vtx-road-modal/api.js +14 -13
  279. package/lib/vtx-road-modal/components/BaseInfo/Rules.js +6 -2
  280. package/lib/vtx-road-modal/components/BaseInfo/Work.js +26 -21
  281. package/lib/vtx-road-modal/components/BaseInfo/index.js +7 -5
  282. package/lib/vtx-road-modal/components/BaseInfo/index.less +37 -0
  283. package/lib/vtx-road-modal/components/Calendar/index.js +5 -4
  284. package/lib/vtx-road-modal/components/LaneBaseInfo/Rules.js +6 -3
  285. package/lib/vtx-road-modal/components/LaneBaseInfo/Work.js +25 -20
  286. package/lib/vtx-road-modal/components/LaneBaseInfo/index.js +5 -3
  287. package/lib/vtx-road-modal/components/LaneBaseInfo/index.less +42 -0
  288. package/lib/vtx-road-modal/components/LaneCalendar/index.js +7 -6
  289. package/lib/vtx-road-modal/components/LaneStatistical/index.js +37 -24
  290. package/lib/vtx-road-modal/components/LaneStatistical/index.less +8 -0
  291. package/lib/vtx-road-modal/components/Statistical/index.js +36 -23
  292. package/lib/vtx-road-modal/components/Statistical/index.less +40 -32
  293. package/lib/vtx-road-modal/index.js +30 -21
  294. package/lib/vtx-road-modal/style/index.js +1 -3
  295. package/lib/vtx-sdyd-tfd-modal/components/Alarm/CYLJTF.js +7 -6
  296. package/lib/vtx-sdyd-tfd-modal/components/Alarm/Distribute.js +3 -2
  297. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FLZL_TREND.js +3 -2
  298. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSCSFB.js +3 -2
  299. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSSD.js +5 -4
  300. package/lib/vtx-sdyd-tfd-modal/components/Alarm/FSYZQS.js +4 -3
  301. package/lib/vtx-sdyd-tfd-modal/components/Alarm/GDCLXL.js +8 -7
  302. package/lib/vtx-sdyd-tfd-modal/components/Alarm/HTLJPH.js +6 -5
  303. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_FB.js +9 -8
  304. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_GD.js +4 -3
  305. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_PIE.js +5 -4
  306. package/lib/vtx-sdyd-tfd-modal/components/Alarm/MYFX_TREND.js +3 -2
  307. package/lib/vtx-sdyd-tfd-modal/components/Alarm/index.js +5 -4
  308. package/lib/vtx-sdyd-tfd-modal/components/OverView/Hot.js +13 -12
  309. package/lib/vtx-sdyd-tfd-modal/components/OverView/Left.js +14 -12
  310. package/lib/vtx-sdyd-tfd-modal/components/OverView/Manage.js +14 -13
  311. package/lib/vtx-sdyd-tfd-modal/components/OverView/RightBottom.js +12 -11
  312. package/lib/vtx-sdyd-tfd-modal/components/Sbzj/index.js +11 -10
  313. package/lib/vtx-sdyd-tfd-modal/components/TFRD/index.js +13 -12
  314. package/lib/vtx-sdyd-tfd-modal/components/WGGS/index.js +2 -1
  315. package/lib/vtx-sdyd-tfd-modal/components/WGXW/Content.js +2 -1
  316. package/lib/vtx-sdyd-tfd-modal/config.js +6 -6
  317. package/lib/vtx-sdyd-tfd-modal/index.js +7 -6
  318. package/lib/vtx-shxq-modal/api.js +9 -8
  319. package/lib/vtx-shxq-modal/components/AlarmRecord/List.js +8 -7
  320. package/lib/vtx-shxq-modal/components/AlarmRecord/index.js +12 -11
  321. package/lib/vtx-shxq-modal/components/BaseInfo/index.js +11 -10
  322. package/lib/vtx-shxq-modal/components/Tfd/index.js +7 -6
  323. package/lib/vtx-shxq-modal/components/ThrowCalendar/Chart.js +2 -1
  324. package/lib/vtx-shxq-modal/components/ThrowCalendar/List.js +4 -3
  325. package/lib/vtx-shxq-modal/components/ThrowCalendar/index.js +6 -5
  326. package/lib/vtx-shxq-modal/components/ThrowRecord/List.js +15 -14
  327. package/lib/vtx-shxq-modal/components/ThrowRecord/index.js +10 -9
  328. package/lib/vtx-shxq-modal/index.js +6 -5
  329. package/lib/vtx-staff-modal/api.js +8 -7
  330. package/lib/vtx-staff-modal/components/AlarmInfo/Charts.js +6 -5
  331. package/lib/vtx-staff-modal/components/AlarmInfo/List.js +8 -7
  332. package/lib/vtx-staff-modal/components/AlarmInfo/index.js +3 -2
  333. package/lib/vtx-staff-modal/components/Attendance/Exeception.js +5 -4
  334. package/lib/vtx-staff-modal/components/Attendance/Record.js +22 -20
  335. package/lib/vtx-staff-modal/components/Attendance/WorkingHours.js +8 -7
  336. package/lib/vtx-staff-modal/components/BaseInfo/ListZymx.js +13 -11
  337. package/lib/vtx-staff-modal/components/BaseInfo/WorkStatic.js +11 -10
  338. package/lib/vtx-staff-modal/components/BaseInfo/index.js +7 -6
  339. package/lib/vtx-staff-modal/components/Calendar/index.js +8 -7
  340. package/lib/vtx-staff-modal/components/Equipment/index.js +23 -22
  341. package/lib/vtx-staff-modal/index.js +6 -5
  342. package/lib/vtx-tfd-modal/api.js +7 -6
  343. package/lib/vtx-tfd-modal/components/BaseInfo/Jczbqs.js +6 -5
  344. package/lib/vtx-tfd-modal/components/BaseInfo/Qyjcl.js +4 -3
  345. package/lib/vtx-tfd-modal/components/BaseInfo/index.js +17 -17
  346. package/lib/vtx-tfd-modal/index.js +4 -4
  347. package/lib/vtx-wr-modal/components/Appraise/index.js +18 -18
  348. package/lib/vtx-wr-modal/components/Base/Jbxx.js +15 -16
  349. package/lib/vtx-wr-modal/components/Base/Ptss.js +17 -16
  350. package/lib/vtx-wr-modal/components/Base/Sjjg.js +12 -9
  351. package/lib/vtx-wr-modal/components/Base/index.js +14 -14
  352. package/lib/vtx-wr-modal/components/Build/index.js +6 -5
  353. package/lib/vtx-wr-modal/components/File/index.js +12 -15
  354. package/lib/vtx-wr-modal/components/File/index.less +8 -3
  355. package/lib/vtx-wr-modal/components/Score/index.js +20 -27
  356. package/lib/vtx-wr-modal/components/Score/index.less +49 -26
  357. package/lib/vtx-wr-modal/index.js +5 -2
  358. package/lib/vtx-wr-modal/style/index.js +0 -1
  359. package/lib/vtx-zf-modal/components/Base/index.js +37 -36
  360. package/lib/vtx-zf-modal/components/CkEditorCustom/index.js +22 -21
  361. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/CKModal.js +9 -7
  362. package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/config.js +27 -27
  363. package/lib/vtx-zf-modal/components/File/index.js +15 -14
  364. package/lib/vtx-zf-modal/components/Process/index.js +17 -17
  365. package/lib/vtx-zf-modal/components/Record/index.js +9 -8
  366. package/lib/vtx-zf-modal/components/Right/index.js +7 -7
  367. package/lib/vtx-zf-modal/style/index.js +0 -1
  368. package/lib/vtx-zg-modal/api.js +13 -12
  369. package/lib/vtx-zg-modal/components/BaseInfo/index.js +52 -35
  370. package/lib/vtx-zg-modal/components/BaseInfo/index.less +48 -1
  371. package/lib/vtx-zg-modal/index.js +2 -1
  372. package/lib/vtx-zzz-modal/index.js +2 -1
  373. package/package.json +92 -81
@@ -11,6 +11,7 @@ import { VmInfoCollection, VmTable, VmTitle, VmWrapper } from "../../../_compone
11
11
  import VtxBaseModal from "../../../vtx-base-modal";
12
12
  import { BasicService } from "../../api";
13
13
  import { RestaurantContext } from "../../index";
14
+ import { translateLocaleText } from "./../../../hooks/useTranslation.js";
14
15
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
15
16
  var Content = function Content(_ref) {
16
17
  var id = _ref.id;
@@ -22,28 +23,28 @@ var Content = function Content(_ref) {
22
23
  value: data.contractNumber,
23
24
  key: 'contractNumber'
24
25
  }, {
25
- label: '垃圾类型',
26
+ label: translateLocaleText("t('vtxtfdmodal.type2')"),
26
27
  value: data.garbageTypeStr,
27
28
  key: 'garbageTypeStr'
28
29
  }, {
29
- label: '甲方名称',
30
+ label: translateLocaleText("t('vtxrestaurantmodal.name')"),
30
31
  value: data.firstParty,
31
32
  key: 'firstParty'
32
33
  }, {
33
- label: '乙方名称',
34
+ label: translateLocaleText("t('vtxrestaurantmodal.name2')"),
34
35
  value: data.secondParty,
35
36
  key: 'secondParty'
36
37
  }, {
37
- label: '运输地址',
38
+ label: translateLocaleText("t('vtxrestaurantmodal.address')"),
38
39
  value: data.transportAddress,
39
40
  key: 'transportAddress',
40
41
  isAddress: true
41
42
  }].concat(_toConsumableArray(data.garbageType === 'ccfqw' ? [{
42
- label: '运输频次',
43
+ label: translateLocaleText("t('vtxrestaurantmodal.times')"),
43
44
  value: data.frequencyStr,
44
45
  key: 'frequencyStr'
45
46
  }, {
46
- label: '运输时间',
47
+ label: translateLocaleText("t('vtxrestaurantmodal.hours3')"),
47
48
  value: data.time,
48
49
  key: 'time'
49
50
  }] : []), [{
@@ -51,11 +52,11 @@ var Content = function Content(_ref) {
51
52
  value: data.garbageType === 'fqyz' ? "".concat(data.trafficWeek || '-', "\u516C\u65A4/\u5468\uFF0C").concat(data.trafficMonth || '-') : "".concat(data.trafficDay || '-', "\u516C\u65A4/\u5929"),
52
53
  key: 'trafficDay'
53
54
  }], _toConsumableArray(data.garbageType === 'fqyz' ? [{
54
- label: '收运频次',
55
+ label: translateLocaleText("t('vtxrestaurantmodal.times2')"),
55
56
  value: data.frequencyStr,
56
57
  key: 'frequencyStr'
57
58
  }, {
58
- label: '收运时间',
59
+ label: translateLocaleText("t('vtxrestaurantmodal.hours')"),
59
60
  value: data.time,
60
61
  key: 'time'
61
62
  }, {
@@ -75,7 +76,7 @@ var Content = function Content(_ref) {
75
76
  value: "".concat(data.terminationPeriod || '-', "\u5929"),
76
77
  key: 'terminationPeriod'
77
78
  }] : [{
78
- label: '甲方转交其他单位个人收运违约金',
79
+ label: translateLocaleText("t('vtxrestaurantmodal.otherUnitItems')"),
79
80
  value: "".concat(data.transferOtherPenalty || '-', "\u5143/\u6B21"),
80
81
  key: 'terminationPeriod'
81
82
  }]));
@@ -98,10 +99,10 @@ var Content = function Content(_ref) {
98
99
  if (data.contractId) {
99
100
  downloadFile("/cloudFile/common/downloadFile?id=".concat(data.contractId, "&token=").concat(token), {}, 'form');
100
101
  } else {
101
- message.warning('还没有合同生成');
102
+ message.warning(translateLocaleText("t('vtxrestaurantmodal.yes')"));
102
103
  }
103
104
  },
104
- children: "\u4E0B\u8F7D\u5408\u540C(word)"
105
+ children: translateLocaleText("t('vtxrestaurantmodal.word')")
105
106
  }), /*#__PURE__*/_jsx(Button, {
106
107
  type: "primary",
107
108
  onClick: function onClick() {
@@ -111,10 +112,10 @@ var Content = function Content(_ref) {
111
112
  if (data.contractPdfId) {
112
113
  downloadFile("/cloudFile/common/downloadFile?id=".concat(data.contractPdfId, "&token=").concat(token), {}, 'form');
113
114
  } else {
114
- message.warning('还没有合同生成');
115
+ message.warning(translateLocaleText("t('vtxrestaurantmodal.yes')"));
115
116
  }
116
117
  },
117
- children: "\u4E0B\u8F7D\u5408\u540C(pdf)"
118
+ children: translateLocaleText("t('vtxrestaurantmodal.pdf')")
118
119
  })]
119
120
  }),
120
121
  children: /*#__PURE__*/_jsxs(_Fragment, {
@@ -160,7 +161,7 @@ var Content = function Content(_ref) {
160
161
  return /*#__PURE__*/_jsx(Image, {
161
162
  src: "/vortex/rest/cloud/np/file/downloadFileThumbnail?outputQuality=0.5&scale=0.2&id=".concat(data === null || data === void 0 ? void 0 : data.firstSign, "&token=").concat(token),
162
163
  preview: {
163
- destroyOnClose: true,
164
+ destroyOnHidden: true,
164
165
  src: "/cloudFile/common/downloadFile?id=".concat(data === null || data === void 0 ? void 0 : data.firstSign, "&token=").concat(token),
165
166
  maskClassName: 'maskClass'
166
167
  },
@@ -185,7 +186,7 @@ var Content = function Content(_ref) {
185
186
  value: data.firstProxy,
186
187
  key: 'firstProxy'
187
188
  }, {
188
- label: '通讯地址',
189
+ label: translateLocaleText("t('vtxrestaurantmodal.address2')"),
189
190
  value: data.firstMailingAddress,
190
191
  key: 'firstMailingAddress',
191
192
  isAddress: true
@@ -209,7 +210,7 @@ var Content = function Content(_ref) {
209
210
  return /*#__PURE__*/_jsx(Image, {
210
211
  src: "/vortex/rest/cloud/np/file/downloadFileThumbnail?outputQuality=0.5&scale=0.2&id=".concat(data === null || data === void 0 ? void 0 : data.secondSign, "&token=").concat(token),
211
212
  preview: {
212
- destroyOnClose: true,
213
+ destroyOnHidden: true,
213
214
  src: "/cloudFile/common/downloadFile?id=".concat(data === null || data === void 0 ? void 0 : data.secondSign, "&token=").concat(token),
214
215
  maskClassName: 'maskClass'
215
216
  },
@@ -234,7 +235,7 @@ var Content = function Content(_ref) {
234
235
  value: data.secondProxy,
235
236
  key: 'secondProxy'
236
237
  }, {
237
- label: '通讯地址',
238
+ label: translateLocaleText("t('vtxrestaurantmodal.address2')"),
238
239
  value: data.secondMailingAddress,
239
240
  key: 'secondMailingAddress',
240
241
  isAddress: true
@@ -248,22 +249,22 @@ var Content = function Content(_ref) {
248
249
  width: "50%",
249
250
  ellipsis: true
250
251
  }), /*#__PURE__*/_jsx(VmTitle, {
251
- title: '时效信息'
252
+ title: translateLocaleText("t('vtxrestaurantmodal.hours2')")
252
253
  }), /*#__PURE__*/_jsx(VmInfoCollection, {
253
254
  data: [{
254
- label: '生效日期',
255
+ label: translateLocaleText("t('vtxrestaurantmodal.date')"),
255
256
  value: data.effectiveTime,
256
257
  key: 'effectiveTime'
257
258
  }, {
258
- label: '终止日期',
259
+ label: translateLocaleText("t('vtxrestaurantmodal.date2')"),
259
260
  value: data.terminationTime,
260
261
  key: 'terminationTime'
261
262
  }, {
262
- label: '签约日期',
263
+ label: translateLocaleText("t('vtxrestaurantmodal.date3')"),
263
264
  value: data.signTime,
264
265
  key: 'signTime'
265
266
  }, {
266
- label: '纸质合同附件',
267
+ label: translateLocaleText("t('vtxrestaurantmodal.attachment')"),
267
268
  value: data.paperContractAttachments,
268
269
  key: 'paperContractAttachments',
269
270
  componentType: 'ATTACHS'
@@ -282,7 +283,7 @@ var ContactDetail = function ContactDetail(_ref2) {
282
283
  var _useContext = useContext(RestaurantContext),
283
284
  theme = _useContext.theme;
284
285
  return /*#__PURE__*/_jsx(VtxBaseModal, {
285
- title: '合同管理 > 查看',
286
+ title: translateLocaleText("t('vtxrestaurantmodal.view')"),
286
287
  tabs: [{
287
288
  key: 'info'
288
289
  }],
@@ -21,6 +21,7 @@ import { getContactList } from "../../api";
21
21
  import { signColorMap } from "../../config";
22
22
  import { RestaurantContext } from "../../index";
23
23
  import ContactDetail from "./ContactDetail";
24
+ import { translateLocaleText } from "./../../../hooks/useTranslation.js";
24
25
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
25
26
  var SignAndContract = function SignAndContract() {
26
27
  var _info$contract;
@@ -34,7 +35,7 @@ var SignAndContract = function SignAndContract() {
34
35
  var contractItem = (info === null || info === void 0 || (_info$contract = info.contract) === null || _info$contract === void 0 ? void 0 : _info$contract[0]) || {};
35
36
  var dataSource = [{
36
37
  key: '',
37
- label: '服务状态',
38
+ label: translateLocaleText("t('vtxrestaurantmodal.status')"),
38
39
  value: /*#__PURE__*/_jsxs(Space, {
39
40
  children: [contractItem.status && /*#__PURE__*/_jsx(Badge, {
40
41
  color: signColorMap[contractItem.status]
@@ -42,7 +43,7 @@ var SignAndContract = function SignAndContract() {
42
43
  })
43
44
  }, {
44
45
  key: '',
45
- label: '签约企业',
46
+ label: translateLocaleText("t('vtxrestaurantmodal.enterprise')"),
46
47
  value: contractItem.signTransUnitName,
47
48
  render: function render() {
48
49
  return /*#__PURE__*/_jsx("a", {
@@ -57,11 +58,11 @@ var SignAndContract = function SignAndContract() {
57
58
  }
58
59
  }, {
59
60
  key: '',
60
- label: '收集类型',
61
+ label: translateLocaleText("t('vtxrestaurantmodal.type')"),
61
62
  value: collectStatusValue
62
63
  }, {
63
64
  key: '',
64
- label: '收集点',
65
+ label: translateLocaleText("t('vtxrestaurantmodal.point')"),
65
66
  value: syPointName,
66
67
  render: function render() {
67
68
  return /*#__PURE__*/_jsx("a", {
@@ -114,11 +115,11 @@ var SignAndContract = function SignAndContract() {
114
115
  modalInfo = _useSetState2[0],
115
116
  setModalInfo = _useSetState2[1];
116
117
  var columns = [{
117
- title: '合同时间',
118
+ title: translateLocaleText("t('vtxrestaurantmodal.hours4')"),
118
119
  dataIndex: 'contractTime',
119
120
  width: 160
120
121
  }, {
121
- title: '签约日期',
122
+ title: translateLocaleText("t('vtxrestaurantmodal.date3')"),
122
123
  dataIndex: 'signTime',
123
124
  width: 120
124
125
  }, {
@@ -127,11 +128,11 @@ var SignAndContract = function SignAndContract() {
127
128
  align: 'right',
128
129
  width: 120
129
130
  }, {
130
- title: '签约企业',
131
+ title: translateLocaleText("t('vtxrestaurantmodal.enterprise')"),
131
132
  dataIndex: 'secondParty',
132
133
  width: 200
133
134
  }, {
134
- title: '服务状态',
135
+ title: translateLocaleText("t('vtxrestaurantmodal.status')"),
135
136
  dataIndex: 'statusStr',
136
137
  width: 120,
137
138
  render: function render(text, record) {
@@ -143,7 +144,7 @@ var SignAndContract = function SignAndContract() {
143
144
  });
144
145
  }
145
146
  }, {
146
- title: '操作',
147
+ title: translateLocaleText("t('common.action')"),
147
148
  dadaIndex: 'action',
148
149
  width: 80,
149
150
  render: function render(_un, record) {
@@ -155,7 +156,7 @@ var SignAndContract = function SignAndContract() {
155
156
  id: record.id
156
157
  });
157
158
  },
158
- children: "\u67E5\u770B"
159
+ children: translateLocaleText("t('vtxrestaurantmodal.view2')")
159
160
  })
160
161
  });
161
162
  }
@@ -10,158 +10,158 @@ export var signColorMap = {
10
10
  };
11
11
  export var QD_BASIC_FIELDS = [{
12
12
  key: 'code',
13
- label: '餐厨废弃物产生单位编号'
13
+ label: "t('vtxrestaurantmodal.unit')"
14
14
  }, {
15
15
  key: 'name',
16
- label: '餐厨废弃物产生名称'
16
+ label: "t('vtxrestaurantmodal.name3')"
17
17
  }, {
18
18
  key: 'contactPerson',
19
- label: '联系人'
19
+ label: "t('vtxjzljysqymodal.contactPerson')"
20
20
  }, {
21
21
  key: 'contactPhone',
22
- label: '联系方式'
22
+ label: "t('vtxdevicemodal.contactInformation')"
23
23
  }, {
24
24
  key: 'classesName',
25
- label: '产生单位类型'
25
+ label: "t('vtxrestaurantmodal.unitType')"
26
26
  }, {
27
27
  key: 'divisionName',
28
- label: '行政区划'
28
+ label: "t('vtxqyrymodal.administrativeDivision')"
29
29
  }, {
30
30
  key: 'wasteGrease',
31
- label: '是否产生废弃油脂'
31
+ label: "t('vtxrestaurantmodal.wasteGrease')"
32
32
  }, {
33
33
  key: 'address',
34
- label: '商户地址',
34
+ label: "t('vtxcccpmodal.address')",
35
35
  isAddress: true
36
36
  }];
37
37
  export var QD_DETAIL_FIELDS = [{
38
38
  key: 'establishedTime',
39
- label: '产生单位起始经营时间'
39
+ label: "t('vtxrestaurantmodal.unitHours')"
40
40
  }, {
41
41
  key: 'signedStatusValue',
42
- label: '产生单位状态'
42
+ label: "t('vtxrestaurantmodal.unitStatus')"
43
43
  }, {
44
44
  key: 'scaleCount',
45
- label: '企业规模(餐位数量)'
45
+ label: "t('vtxrestaurantmodal.enterpriseQuantity')"
46
46
  }, {
47
47
  key: 'paperFileIds',
48
- label: '食品经营许可证',
48
+ label: "t('vtxrestaurantmodal.license')",
49
49
  componentType: 'image'
50
50
  }, {
51
51
  key: 'photoIds',
52
- label: '产生单位图片',
52
+ label: "t('vtxrestaurantmodal.unitImage')",
53
53
  componentType: 'image'
54
54
  }, {
55
55
  key: 'trashBinLocationPhoto',
56
- label: '垃圾桶摆放位置',
56
+ label: "t('vtxrestaurantmodal.trashBinLocation')",
57
57
  componentType: 'image'
58
58
  }, {
59
59
  key: 'qrcode',
60
- label: '二维码'
60
+ label: "t('vtxrestaurantmodal.qrCode')"
61
61
  }];
62
62
  export var RestaurantConfigureEnum = {
63
- /**
64
- * 编号
63
+ /**
64
+ * 编号
65
65
  */
66
66
  CODE: 'code',
67
- /**
68
- * 产生单位名称
67
+ /**
68
+ * 产生单位名称
69
69
  */
70
70
  NAME: 'name',
71
- /**
72
- * 店铺名称
71
+ /**
72
+ * 店铺名称
73
73
  */
74
74
  SHORT_NAME: 'shortName',
75
- /**
76
- * 行政区划名称
75
+ /**
76
+ * 行政区划名称
77
77
  */
78
78
  DIVISION_NAME: 'divisionId',
79
- /**
80
- * 联系人
79
+ /**
80
+ * 联系人
81
81
  */
82
82
  CONTACT_PERSON: 'contactPerson',
83
- /**
84
- * 联系方式
83
+ /**
84
+ * 联系方式
85
85
  */
86
86
  CONTACT_PHONE: 'contactPhone',
87
- /**
88
- * 身份证号
87
+ /**
88
+ * 身份证号
89
89
  */
90
90
  CARD_ID: 'cardId',
91
- /**
92
- * 商户地址
91
+ /**
92
+ * 商户地址
93
93
  */
94
94
  ADDRESS: 'address',
95
- /**
96
- * 经纬度
95
+ /**
96
+ * 经纬度
97
97
  */
98
98
  LOCATION: 'location',
99
- /**
100
- * 产生单位状态
99
+ /**
100
+ * 产生单位状态
101
101
  */
102
102
  SIGNED_STATUS: 'signedStatus',
103
- /**
104
- * 签约状态
103
+ /**
104
+ * 签约状态
105
105
  */
106
106
  IS_SIGN: 'isSign',
107
- /**
108
- * 收集类型
107
+ /**
108
+ * 收集类型
109
109
  */
110
110
  COLLECT_STATUS: 'collectStatus',
111
- /**
112
- * 收集点
111
+ /**
112
+ * 收集点
113
113
  */
114
114
  SY_POINT_NAME: 'syPointId',
115
- /**
116
- * 商户类型名称
115
+ /**
116
+ * 商户类型名称
117
117
  */
118
118
  CLASSES_NAME: 'classesId',
119
- /**
120
- * 规模名称
119
+ /**
120
+ * 规模名称
121
121
  */
122
122
  SCALE_NAME: 'scaleId',
123
- /**
124
- * 垃圾桶个数
123
+ /**
124
+ * 垃圾桶个数
125
125
  */
126
126
  TRASH_CAN_NUM: 'trashCanNum',
127
- /**
128
- * 统一社会信用代码
127
+ /**
128
+ * 统一社会信用代码
129
129
  */
130
130
  CREDIT_CODE: 'creditCode',
131
- /**
132
- * 行业名称
131
+ /**
132
+ * 行业名称
133
133
  */
134
134
  INDUSTRY_NAME: 'industryId',
135
- /**
136
- * 经营范围
135
+ /**
136
+ * 经营范围
137
137
  */
138
138
  BUSINESS_SCOPE: 'businessScope',
139
- /**
140
- * 注册资金
139
+ /**
140
+ * 注册资金
141
141
  */
142
142
  REGISTER_MONEY: 'registerMoney',
143
- /**
144
- * 企业成立时间
143
+ /**
144
+ * 企业成立时间
145
145
  */
146
146
  ESTABLISHED_TIME: 'establishedTime',
147
- /**
148
- * 建议收集时间
147
+ /**
148
+ * 建议收集时间
149
149
  */
150
150
  SUGGEST_COLLECT_TIME: 'suggestCollectTime',
151
- /**
152
- * 营业时间段
151
+ /**
152
+ * 营业时间段
153
153
  */
154
154
  BUSINESS_TIME: 'businessTime',
155
- /**
156
- * 垃圾桶摆放位置图片
155
+ /**
156
+ * 垃圾桶摆放位置图片
157
157
  */
158
158
  TRASH_BIN_LOCATION_PHOTO: 'trashBinLocationPhoto',
159
- /**
160
- * 商户图片
159
+ /**
160
+ * 商户图片
161
161
  */
162
162
  PHOTO_IDS: 'photoIds',
163
- /**
164
- * 证件图片
163
+ /**
164
+ * 证件图片
165
165
  */
166
166
  PAPER_FILE_IDS: 'paperFileIds'
167
167
  };
@@ -193,89 +193,88 @@ export var getFormItem = function getFormItem(item, data) {
193
193
  trashBinLocationPhoto = data.trashBinLocationPhoto,
194
194
  signedStatusValue = data.signedStatusValue,
195
195
  suggestCollectTime = data.suggestCollectTime;
196
- var dataKey = item.dataKey,
197
- displayName = item.displayName;
196
+ var dataKey = item.dataKey;
198
197
  var formItemMap = (_formItemMap = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_formItemMap, RestaurantConfigureEnum.CODE, {
199
- label: displayName,
198
+ label: "t('vtxrestaurantmodal.unit')",
200
199
  value: code
201
200
  }), RestaurantConfigureEnum.NAME, {
202
- label: displayName,
201
+ label: "t('vtxrestaurantmodal.name3')",
203
202
  value: name
204
203
  }), RestaurantConfigureEnum.SHORT_NAME, {
205
- label: displayName,
204
+ label: "t('vtxrestaurantmodal.shortName')",
206
205
  value: shortName
207
206
  }), RestaurantConfigureEnum.DIVISION_NAME, {
208
- label: '行政区划',
207
+ label: "t('vtxqyrymodal.administrativeDivision')",
209
208
  value: divisionName,
210
209
  isAddress: true
211
210
  }), RestaurantConfigureEnum.CONTACT_PERSON, {
212
- label: '联系人',
211
+ label: "t('vtxjzljysqymodal.contactPerson')",
213
212
  value: contactPerson
214
213
  }), RestaurantConfigureEnum.CONTACT_PHONE, {
215
- label: '联系方式',
214
+ label: "t('vtxdevicemodal.contactInformation')",
216
215
  value: contactPhone
217
216
  }), RestaurantConfigureEnum.CARD_ID, {
218
- label: '身份证号',
217
+ label: "t('vtxrestaurantmodal.idCard')",
219
218
  value: cardId
220
219
  }), RestaurantConfigureEnum.ADDRESS, {
221
- label: '产生单位地址',
220
+ label: "t('vtxrestaurantmodal.unitAddress')",
222
221
  value: address,
223
222
  isAddress: true
224
223
  }), RestaurantConfigureEnum.LOCATION, {
225
- label: '经纬度',
224
+ label: "t('vtxrestaurantmodal.latitude')",
226
225
  value: location
227
226
  }), RestaurantConfigureEnum.SIGNED_STATUS, {
228
- label: '产生单位状态',
227
+ label: "t('vtxrestaurantmodal.unitStatus')",
229
228
  value: signedStatusValue
230
229
  }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_formItemMap, RestaurantConfigureEnum.IS_SIGN, {
231
- label: '签约状态',
230
+ label: "t('vtxccunitmodal.status')",
232
231
  value: isSignValue
233
232
  }), RestaurantConfigureEnum.COLLECT_STATUS, {
234
- label: '收集类型',
233
+ label: "t('vtxrestaurantmodal.type')",
235
234
  value: collectStatusValue
236
235
  }), RestaurantConfigureEnum.SY_POINT_NAME, {
237
- label: '收集点',
236
+ label: "t('vtxrestaurantmodal.point')",
238
237
  value: syPointName
239
238
  }), RestaurantConfigureEnum.CLASSES_NAME, {
240
- label: '产生单位类型',
239
+ label: "t('vtxrestaurantmodal.unitType')",
241
240
  value: classesName
242
241
  }), RestaurantConfigureEnum.SCALE_NAME, {
243
- label: '产生单位规模',
242
+ label: "t('vtxrestaurantmodal.unit2')",
244
243
  value: scaleName
245
244
  }), RestaurantConfigureEnum.TRASH_CAN_NUM, {
246
- label: '垃圾桶个数',
245
+ label: "t('vtxrestaurantmodal.items')",
247
246
  value: trashCanNum
248
247
  }), RestaurantConfigureEnum.CREDIT_CODE, {
249
- label: '统一社会信用代码',
248
+ label: "t('vtxrestaurantmodal.unifiedSocialCreditCode')",
250
249
  value: creditCode
251
250
  }), RestaurantConfigureEnum.INDUSTRY_NAME, {
252
- label: '行业',
251
+ label: "t('vtxrestaurantmodal.industry')",
253
252
  value: industryName
254
253
  }), RestaurantConfigureEnum.BUSINESS_SCOPE, {
255
- label: '经营范围',
254
+ label: "t('vtxrestaurantmodal.businessScope')",
256
255
  value: businessScope
257
256
  }), RestaurantConfigureEnum.REGISTER_MONEY, {
258
- label: '注册资金(元)',
257
+ label: "t('vtxrestaurantmodal.registerMoney')",
259
258
  value: registerMoney
260
259
  }), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_formItemMap, RestaurantConfigureEnum.ESTABLISHED_TIME, {
261
- label: '企业成立时间',
260
+ label: "t('vtxrestaurantmodal.enterpriseHours')",
262
261
  value: establishedTime
263
262
  }), RestaurantConfigureEnum.SUGGEST_COLLECT_TIME, {
264
- label: '建议收运时间',
263
+ label: "t('vtxrestaurantmodal.hours5')",
265
264
  value: suggestCollectTime
266
265
  }), RestaurantConfigureEnum.BUSINESS_TIME, {
267
- label: '营业时间',
266
+ label: "t('vtxrestaurantmodal.hours6')",
268
267
  value: businessTime
269
268
  }), RestaurantConfigureEnum.TRASH_BIN_LOCATION_PHOTO, {
270
- label: '垃圾桶摆放位置图片',
269
+ label: "t('vtxrestaurantmodal.image')",
271
270
  value: trashBinLocationPhoto,
272
271
  type: 'img'
273
272
  }), RestaurantConfigureEnum.PHOTO_IDS, {
274
- label: '产生单位图片',
273
+ label: "t('vtxrestaurantmodal.unitImage')",
275
274
  value: photoIds,
276
275
  type: 'img'
277
276
  }), RestaurantConfigureEnum.PAPER_FILE_IDS, {
278
- label: '证件图片',
277
+ label: "t('vtxrestaurantmodal.image2')",
279
278
  value: paperFileIds,
280
279
  type: 'img'
281
280
  }));
@@ -1,15 +1,15 @@
1
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
2
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
3
  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
4
  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
5
  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
6
  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
7
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
8
+ 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; }
9
+ 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; }
10
+ 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; }
11
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
12
+ 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); }
13
13
  import { useMemoizedFn } from 'ahooks';
14
14
  import dayjs from 'dayjs';
15
15
  import { createContext, useMemo, useState } from 'react';
@@ -22,6 +22,7 @@ import { BasicService } from "./api";
22
22
  import { Alarm, Basic, Calendar, Collection, DetailInfo, SignAndContract } from "./components";
23
23
  import "./style";
24
24
  import { VmCustom } from "../_components";
25
+ import { translateLocaleText } from "./../hooks/useTranslation.js";
25
26
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
26
27
  var TABS_BASE = 'base';
27
28
  var TABS_DETAIL = 'detail';
@@ -40,6 +41,7 @@ export var RestaurantContext = /*#__PURE__*/createContext({
40
41
  date: dayjs().format('YYYY-MM-DD')
41
42
  });
42
43
  var Provider = RestaurantContext.Provider;
44
+ var TAB_TITLE_MAP = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, TABS_BASE, "t('vtxrestaurantmodal.overviewInformation')"), TABS_DETAIL, "t('vtxrestaurantmodal.detailInformation')"), TABS_SIGN, "t('vtxrestaurantmodal.signInformation')"), TABS_CALENDAR, "t('vtxrestaurantmodal.calendarInformation')"), TABS_COLLECTION, "t('vtxrestaurantmodal.collectionInformation')"), TABS_ALARM, "t('vtxrestaurantmodal.alarmInformation')");
43
45
  var VtxRestaurantModal = function VtxRestaurantModal(props) {
44
46
  var _props$visible = props.visible,
45
47
  visible = _props$visible === void 0 ? false : _props$visible,
@@ -59,10 +61,17 @@ var VtxRestaurantModal = function VtxRestaurantModal(props) {
59
61
  date = _props$date === void 0 ? dayjs().format('YYYY-MM-DD') : _props$date;
60
62
  var tabs = [{
61
63
  key: TABS_BASE,
62
- title: '总览信息'
64
+ title: translateLocaleText(TAB_TITLE_MAP[TABS_BASE])
63
65
  }];
64
66
  var _useGetConfig = useGetConfig('restaurant', tabs),
65
67
  tabsData = _useGetConfig.tabsData;
68
+ var translatedTabsData = useMemo(function () {
69
+ return tabsData.map(function (item) {
70
+ return _objectSpread(_objectSpread({}, item), {}, {
71
+ title: TAB_TITLE_MAP[item.key] ? translateLocaleText(TAB_TITLE_MAP[item.key]) : item.title
72
+ });
73
+ });
74
+ }, [tabsData]);
66
75
  var _useState = useState({
67
76
  visible: false,
68
77
  id: '',
@@ -159,7 +168,7 @@ var VtxRestaurantModal = function VtxRestaurantModal(props) {
159
168
  children: /*#__PURE__*/_jsx(VtxBaseModal, {
160
169
  title: title,
161
170
  theme: theme,
162
- tabs: tabsData,
171
+ tabs: translatedTabsData,
163
172
  tabChose: tabChose,
164
173
  visible: visible,
165
174
  onCancel: onCancel,