rails_crm 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (316) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -23
  3. data/app/controllers/crm/admin/addresses_controller.rb +57 -0
  4. data/app/controllers/crm/admin/agencies_controller.rb +65 -0
  5. data/app/controllers/crm/admin/card_purchases_controller.rb +16 -0
  6. data/app/controllers/crm/admin/card_templates_controller.rb +49 -0
  7. data/app/controllers/crm/admin/home_controller.rb +8 -0
  8. data/app/controllers/crm/admin/maintain_logs_controller.rb +2 -20
  9. data/app/controllers/crm/admin/maintain_sources_controller.rb +2 -20
  10. data/app/controllers/crm/admin/maintain_tags_controller.rb +3 -21
  11. data/app/controllers/crm/admin/maintains_controller.rb +53 -94
  12. data/app/controllers/crm/admin/orders_controller.rb +70 -0
  13. data/app/controllers/crm/admin/payments_controller.rb +11 -0
  14. data/app/controllers/crm/admin/wallet_logs_controller.rb +25 -0
  15. data/app/controllers/crm/admin/wallet_payments_controller.rb +41 -0
  16. data/app/controllers/crm/admin/wallet_templates_controller.rb +44 -0
  17. data/app/controllers/crm/admin/wallets_controller.rb +41 -0
  18. data/app/controllers/crm/controller/me.rb +16 -0
  19. data/app/controllers/crm/me/agencies_controller.rb +69 -0
  20. data/app/controllers/crm/me/base_controller.rb +4 -0
  21. data/app/controllers/crm/me/home_controller.rb +12 -0
  22. data/app/controllers/crm/me/maintain_sources_controller.rb +38 -0
  23. data/app/controllers/crm/me/maintains_controller.rb +5 -0
  24. data/app/controllers/crm/my/agencies_controller.rb +53 -0
  25. data/app/controllers/crm/panel/base_controller.rb +5 -0
  26. data/app/controllers/crm/panel/home_controller.rb +8 -0
  27. data/app/controllers/crm/panel/qrcodes_controller.rb +29 -0
  28. data/app/controllers/crm/panel/sources_controller.rb +23 -0
  29. data/app/controllers/crm/panel/tags_controller.rb +26 -0
  30. data/app/controllers/crm/panel/texts_controller.rb +29 -0
  31. data/app/imports/crm/maintain_import.rb +11 -0
  32. data/app/jobs/crm/order_maintain_sync_job.rb +9 -0
  33. data/app/models/crm/agency.rb +5 -0
  34. data/app/models/crm/ext/address.rb +10 -0
  35. data/app/models/crm/ext/agency.rb +18 -0
  36. data/app/models/crm/ext/agent.rb +13 -0
  37. data/app/models/crm/ext/client.rb +13 -0
  38. data/app/models/crm/ext/maintainable.rb +24 -0
  39. data/app/models/crm/ext/member.rb +11 -0
  40. data/app/models/crm/{model → ext}/organ.rb +3 -3
  41. data/app/models/crm/maintain.rb +1 -1
  42. data/app/models/crm/model/agency.rb +11 -6
  43. data/app/models/crm/model/maintain.rb +54 -22
  44. data/app/models/crm/model/maintain_log.rb +2 -1
  45. data/app/models/crm/model/maintain_source.rb +5 -3
  46. data/app/models/crm/model/maintain_tag.rb +6 -5
  47. data/app/models/crm/model/qrcode.rb +54 -0
  48. data/app/models/crm/model/source.rb +55 -0
  49. data/app/models/crm/model/source_contact.rb +40 -0
  50. data/app/models/crm/model/{maintain_tag_template.rb → tag.rb} +1 -1
  51. data/app/models/crm/model/text.rb +45 -0
  52. data/app/models/crm/qrcode.rb +5 -0
  53. data/app/models/crm/source.rb +18 -0
  54. data/app/models/crm/source_contact.rb +5 -0
  55. data/app/models/crm/tag.rb +5 -0
  56. data/app/models/crm/text.rb +5 -0
  57. data/app/views/admin/_crm_nav.html.erb +9 -9
  58. data/app/views/crm/admin/addresses/_index/_breadcrumb.html.erb +6 -0
  59. data/app/views/crm/admin/addresses/_index/_top_bar.html+phone.erb +9 -0
  60. data/app/views/crm/admin/addresses/_nav.html.erb +4 -0
  61. data/app/views/crm/admin/addresses/_new/_top_bar.html.erb +12 -0
  62. data/app/views/crm/admin/addresses/_order/_weui_dialog_ft.html.erb +4 -0
  63. data/app/views/crm/admin/addresses/_order_from/_weui_dialog_ft.html.erb +4 -0
  64. data/app/views/crm/admin/addresses/index.html+phone.erb +7 -0
  65. data/app/views/crm/admin/agencies/_filter_form.html.erb +9 -0
  66. data/app/views/crm/admin/agencies/_form.html.erb +5 -0
  67. data/app/views/crm/admin/agencies/_index/_index_tbody.html.erb +38 -0
  68. data/app/views/crm/admin/agencies/_index/_index_thead.html.erb +7 -0
  69. data/app/views/crm/admin/agencies/_show_table.html.erb +33 -0
  70. data/app/views/crm/admin/agencies/edit_crowd.html.erb +6 -0
  71. data/app/views/crm/admin/base/_nav.html.erb +4 -0
  72. data/app/views/crm/admin/card_purchases/_index/_top_bar.html+phone.erb +12 -0
  73. data/app/views/crm/admin/card_templates/_index/_index_table.html+phone.erb +8 -0
  74. data/app/views/crm/admin/card_templates/_index/_index_tbody.html+phone.erb +6 -0
  75. data/app/views/crm/admin/card_templates/_index/_index_tr.html+phone.erb +6 -0
  76. data/app/views/crm/admin/card_templates/_index/_top_bar.html+phone.erb +11 -0
  77. data/app/views/crm/admin/card_templates/_show/_top_bar.html+phone.erb +12 -0
  78. data/app/views/crm/admin/home/index.html.erb +0 -0
  79. data/app/views/crm/admin/maintain_logs/_filter_form.html.erb +1 -1
  80. data/app/views/crm/admin/maintain_logs/_form.html.erb +2 -6
  81. data/app/views/crm/admin/maintain_logs/{_breadcrumb.html.erb → _index/_breadcrumb.html.erb} +1 -1
  82. data/app/views/crm/admin/maintain_logs/{_index_tbody.html.erb → _index/_index_tbody.html.erb} +1 -1
  83. data/app/views/crm/admin/maintain_logs/_index/_index_thead.html.erb +13 -0
  84. data/app/views/crm/admin/maintain_logs/_show_table.html.erb +5 -5
  85. data/app/views/crm/admin/maintain_sources/_filter_form.html.erb +1 -1
  86. data/app/views/crm/admin/maintain_sources/_form.html.erb +0 -1
  87. data/app/views/crm/admin/maintain_sources/_index/_index_tbody.html.erb +2 -0
  88. data/app/views/crm/admin/maintain_sources/_index/_index_thead.html.erb +2 -0
  89. data/app/views/crm/admin/maintain_sources/_index/_index_tr.html.erb +13 -0
  90. data/app/views/crm/admin/maintain_sources/templates.html.erb +0 -1
  91. data/app/views/crm/admin/maintain_tags/_form.html.erb +1 -2
  92. data/app/views/crm/admin/maintain_tags/{_index_tbody.html.erb → _index/_index_tbody.html.erb} +3 -1
  93. data/app/views/crm/admin/maintain_tags/_index/_index_thead.html.erb +5 -0
  94. data/app/views/crm/admin/maintain_tags/_show_table.html.erb +6 -6
  95. data/app/views/crm/admin/maintain_tags/templates.html.erb +6 -6
  96. data/app/views/crm/admin/maintains/_actions.html.erb +36 -0
  97. data/app/views/crm/admin/maintains/_agent_form.html.erb +14 -0
  98. data/app/views/crm/admin/maintains/_base/_agent_detect.html.erb +16 -0
  99. data/app/views/crm/admin/maintains/_base/_agent_show_table.html.erb +30 -0
  100. data/app/views/crm/admin/maintains/_base/_agent_tbody.html.erb +5 -0
  101. data/app/views/crm/admin/maintains/_base/_agent_thead.html.erb +5 -0
  102. data/app/views/crm/admin/maintains/_base/_filter_table.html+phone.erb +0 -0
  103. data/app/views/crm/admin/maintains/_base/_filter_table.html.erb +35 -0
  104. data/app/views/crm/admin/maintains/_base/_tabs.html.erb +7 -0
  105. data/app/views/crm/admin/maintains/_client_form.html+phone.erb +15 -0
  106. data/app/views/crm/admin/maintains/_client_form.html.erb +11 -0
  107. data/app/views/crm/admin/maintains/_create_detect.html.erb +9 -21
  108. data/app/views/crm/admin/maintains/_edit_assign.html.erb +10 -19
  109. data/app/views/crm/admin/maintains/_edit_form.html.erb +4 -2
  110. data/app/views/crm/admin/maintains/_edit_transfer.html.erb +8 -17
  111. data/app/views/crm/admin/maintains/_form.html.erb +15 -33
  112. data/app/views/crm/admin/maintains/_index/_button.html+phone.erb +4 -0
  113. data/app/views/crm/admin/maintains/_index/_button.html.erb +4 -0
  114. data/app/views/crm/admin/maintains/_index/_filter_form.html+phone.erb +14 -0
  115. data/app/views/crm/admin/maintains/{_filter_form.html.erb → _index/_filter_form.html.erb} +5 -5
  116. data/app/views/crm/admin/maintains/_index/_index_tbody.html+phone.erb +9 -0
  117. data/app/views/crm/admin/maintains/_index/_index_tbody.html.erb +49 -0
  118. data/app/views/crm/admin/maintains/_index/_index_thead.html.erb +42 -0
  119. data/app/views/crm/admin/maintains/_index/_index_tr.html+phone.erb +10 -0
  120. data/app/views/crm/admin/maintains/_index/_index_tr.html.erb +30 -0
  121. data/app/views/crm/admin/maintains/_new_batch_assign.html.erb +4 -13
  122. data/app/views/crm/admin/maintains/_new_detect/_new_detect.html+phone.erb +10 -0
  123. data/app/views/crm/admin/maintains/_new_detect/_new_detect.html.erb +4 -0
  124. data/app/views/crm/admin/maintains/_new_form.html+phone.erb +4 -0
  125. data/app/views/crm/admin/maintains/_new_form.html.erb +4 -2
  126. data/app/views/crm/admin/maintains/_public/_filter_form.html.erb +10 -0
  127. data/app/views/crm/admin/maintains/_public/_index_tbody.html.erb +33 -0
  128. data/app/views/crm/admin/maintains/_public/_index_thead.html.erb +33 -0
  129. data/app/views/crm/admin/maintains/_public/_index_tr.html.erb +24 -0
  130. data/app/views/crm/admin/maintains/_show/_external.html.erb +19 -0
  131. data/app/views/crm/admin/maintains/_show/_profile.html.erb +24 -0
  132. data/app/views/crm/admin/maintains/_show/_show_head.html+phone.erb +16 -0
  133. data/app/views/crm/admin/maintains/_show_table.html.erb +4 -49
  134. data/app/views/crm/admin/maintains/assume.turbo_stream.erb +3 -0
  135. data/app/views/crm/admin/maintains/create_detect.html.erb +3 -0
  136. data/app/views/crm/admin/maintains/detach.turbo_stream.erb +3 -0
  137. data/app/views/crm/admin/maintains/edit_assign.html.erb +3 -0
  138. data/app/views/crm/admin/maintains/edit_transfer.html.erb +3 -0
  139. data/app/views/crm/admin/maintains/index.html+phone.erb +8 -0
  140. data/app/views/crm/admin/maintains/index.html.erb +9 -26
  141. data/app/views/crm/admin/maintains/new_batch_assign.html.erb +3 -0
  142. data/app/views/crm/admin/maintains/new_detect.html.erb +7 -0
  143. data/app/views/crm/admin/maintains/public.html.erb +6 -80
  144. data/app/views/crm/admin/orders/_actions.html+phone.erb +16 -0
  145. data/app/views/crm/admin/orders/_add/_top_bar.html.erb +18 -0
  146. data/app/views/crm/admin/orders/_base/_address.html+phone.erb +25 -0
  147. data/app/views/crm/admin/orders/_base/_from_address.html+phone.erb +25 -0
  148. data/app/views/crm/admin/{maintains/_edit_order.html.erb → orders/_edit_form.html.erb} +1 -1
  149. data/app/views/crm/admin/orders/_index/_breadcrumb.html.erb +6 -0
  150. data/app/views/crm/admin/orders/_index/_button.html+phone.erb +4 -0
  151. data/app/views/crm/admin/orders/_index/_button.html.erb +4 -0
  152. data/app/views/crm/admin/orders/_index/_index_tbody.html+phone.erb +10 -0
  153. data/app/views/crm/admin/orders/_index/_index_tr.html+phone.erb +10 -0
  154. data/app/views/crm/admin/orders/_index/_index_tr.html.erb +16 -0
  155. data/app/views/crm/admin/orders/_index/_top_bar.html+phone.erb +13 -0
  156. data/app/views/crm/admin/orders/_nav.html.erb +4 -0
  157. data/app/views/crm/admin/orders/_new/_address_button.html.erb +4 -0
  158. data/app/views/crm/admin/orders/_new/_breadcrumb.html.erb +7 -0
  159. data/app/views/crm/admin/orders/_new/_head.html.erb +3 -0
  160. data/app/views/crm/admin/orders/_new/_top_bar.html.erb +12 -0
  161. data/app/views/crm/admin/orders/index.html+phone.erb +7 -0
  162. data/app/views/crm/admin/orders/index.html.erb +7 -0
  163. data/app/views/crm/admin/orders/payment_types.html+phone.erb +19 -0
  164. data/app/views/crm/admin/orders/payment_types.html.erb +17 -0
  165. data/app/views/crm/admin/payments/create.turbo_stream+phone.erb +3 -0
  166. data/app/views/crm/admin/payments/destroy.turbo_stream+phone.erb +3 -0
  167. data/app/views/crm/admin/payments/order_create.turbo_stream+phone.erb +3 -0
  168. data/app/views/crm/admin/wallet_logs/_index/_top_bar.html+phone.erb +12 -0
  169. data/app/views/crm/admin/wallet_payments/_index/_top_bar.html+phone.erb +12 -0
  170. data/app/views/crm/admin/wallet_templates/_index/_breadcrumb.html.erb +12 -0
  171. data/app/views/crm/admin/wallet_templates/_index/_filter_form.html.erb +0 -0
  172. data/app/views/crm/admin/wallet_templates/_index/_index_table.html+phone.erb +8 -0
  173. data/app/views/crm/admin/wallet_templates/_index/_index_tbody.html+phone.erb +6 -0
  174. data/app/views/crm/admin/wallet_templates/_index/_index_tbody.html.erb +13 -0
  175. data/app/views/crm/admin/wallet_templates/_index/_index_thead.html.erb +2 -0
  176. data/app/views/crm/admin/wallet_templates/_index/_index_tr.html+phone.erb +6 -0
  177. data/app/views/crm/admin/wallet_templates/_index/_top_bar.html+phone.erb +11 -0
  178. data/app/views/crm/admin/wallet_templates/_show/_top_bar.html+phone.erb +12 -0
  179. data/app/views/crm/admin/{maintain_sources → wallets/_index}/_breadcrumb.html.erb +2 -1
  180. data/app/views/crm/admin/wallets/_index/_index_table.html.erb +12 -0
  181. data/app/views/crm/admin/wallets/_index/_index_tbody.html.erb +25 -0
  182. data/app/views/crm/admin/wallets/_index/_index_thead.html.erb +5 -0
  183. data/app/views/crm/admin/wallets/_index/_index_tr.html.erb +19 -0
  184. data/app/views/crm/admin/wallets/_index/_tab_bar_footer.html.erb +4 -0
  185. data/app/views/crm/admin/wallets/_index/_template_tbody.html.erb +12 -0
  186. data/app/views/crm/admin/wallets/_index/_template_tr.html.erb +10 -0
  187. data/app/views/crm/admin/wallets/_index/_top_bar.html+phone.erb +11 -0
  188. data/app/views/crm/admin/wallets/_index/_wallet.html.erb +21 -0
  189. data/app/views/crm/admin/wallets/index.html+phone.erb +3 -0
  190. data/app/views/crm/admin/wallets/index.html.erb +6 -0
  191. data/app/views/crm/me/agencies/_client_form.html.erb +9 -0
  192. data/app/views/crm/me/agencies/_filter.html.erb +8 -0
  193. data/app/views/crm/me/agencies/_form.html.erb +7 -0
  194. data/app/views/crm/me/agencies/_show_table.html.erb +36 -0
  195. data/app/views/crm/me/agencies/index.html+phone.erb +18 -0
  196. data/app/views/crm/me/agencies/index.html.erb +40 -0
  197. data/app/views/crm/me/home/_cart_item.html.erb +15 -0
  198. data/app/views/crm/me/home/index.html+phone.erb +38 -0
  199. data/app/views/crm/me/maintain_sources/_about_item.html.erb +33 -0
  200. data/app/views/crm/me/maintain_sources/_order.html.erb +11 -0
  201. data/app/views/crm/me/maintain_sources/index.html.erb +20 -0
  202. data/app/views/crm/me/maintain_sources/list.html.erb +13 -0
  203. data/app/views/crm/me/maintain_sources/source.html.erb +33 -0
  204. data/app/views/crm/my/agencies/_client_form.html.erb +9 -0
  205. data/app/views/crm/my/agencies/_edit_form.html.erb +4 -0
  206. data/app/views/crm/{admin/maintain_source_templates → my/agencies}/_filter_form.html.erb +1 -1
  207. data/app/views/crm/my/agencies/_form.html.erb +19 -0
  208. data/app/views/crm/my/agencies/_new_form.html.erb +4 -0
  209. data/app/views/crm/my/agencies/_show_table.html.erb +36 -0
  210. data/app/views/crm/my/agencies/index.html+phone.erb +24 -0
  211. data/app/views/crm/my/agencies/index.html.erb +40 -0
  212. data/app/views/crm/panel/base/_nav.html.erb +4 -0
  213. data/app/views/crm/panel/home/index.html.erb +0 -0
  214. data/app/views/crm/panel/qrcodes/_form.html.erb +5 -0
  215. data/app/views/crm/panel/qrcodes/_index/_breadcrumb.html.erb +7 -0
  216. data/app/views/crm/panel/qrcodes/_index/_index_tbody.html.erb +13 -0
  217. data/app/views/crm/panel/qrcodes/_index/_index_thead.html.erb +11 -0
  218. data/app/views/crm/panel/qrcodes/_show_table.html.erb +4 -0
  219. data/app/views/crm/panel/qrcodes/index.html.erb +3 -0
  220. data/app/views/crm/panel/sources/_form.html.erb +4 -0
  221. data/app/views/crm/{admin/maintain_tag_templates → panel/sources/_index}/_filter_form.html.erb +1 -1
  222. data/app/views/crm/panel/sources/_index/_index_tbody.html.erb +13 -0
  223. data/app/views/crm/panel/sources/_index/_index_thead.html.erb +3 -0
  224. data/app/views/crm/panel/sources/_index/_index_tr.html.erb +25 -0
  225. data/app/views/crm/panel/sources/_show/_breadcrumb.html.erb +6 -0
  226. data/app/views/crm/panel/sources/_show/_qrcode_button.html.erb +4 -0
  227. data/app/views/crm/panel/sources/_show/_qrcode_table.html.erb +18 -0
  228. data/app/views/crm/panel/sources/_show/_qrcode_tbody.html.erb +13 -0
  229. data/app/views/crm/panel/sources/_show/_qrcode_thead.html.erb +11 -0
  230. data/app/views/crm/panel/sources/_show/_qrcode_tr.html.erb +16 -0
  231. data/app/views/crm/panel/sources/_show/_show_table.html.erb +16 -0
  232. data/app/views/crm/panel/sources/_show/_text_button.html.erb +4 -0
  233. data/app/views/crm/panel/sources/_show/_text_table.html.erb +18 -0
  234. data/app/views/crm/panel/sources/_show/_text_tbody.html.erb +9 -0
  235. data/app/views/crm/panel/sources/_show/_text_thead.html.erb +9 -0
  236. data/app/views/crm/panel/sources/_show/_text_tr.html.erb +16 -0
  237. data/app/views/crm/panel/sources/index.html.erb +8 -0
  238. data/app/views/crm/panel/sources/show.html.erb +14 -0
  239. data/app/views/crm/{admin/maintain_tag_templates → panel/tags}/_form.html.erb +0 -1
  240. data/app/views/crm/{admin/maintain_tag_templates → panel/tags/_index}/_index_tbody.html.erb +4 -2
  241. data/app/views/crm/panel/tags/_index/_index_thead.html.erb +8 -0
  242. data/app/views/crm/panel/tags/_show_table.html.erb +20 -0
  243. data/app/views/crm/panel/texts/_form.html.erb +5 -0
  244. data/app/views/crm/panel/texts/_index/_breadcrumb.html.erb +7 -0
  245. data/app/views/crm/panel/texts/_index/_index_tbody.html.erb +9 -0
  246. data/app/views/crm/panel/texts/_index/_index_thead.html.erb +9 -0
  247. data/app/views/crm/panel/texts/_show_table.html.erb +4 -0
  248. data/app/views/crm/panel/texts/index.html.erb +3 -0
  249. data/app/views/panel/_crm_nav.html.erb +11 -0
  250. data/config/locales/en.enum.yml +6 -0
  251. data/config/locales/zh.attributes.yml +16 -7
  252. data/config/locales/zh.controller.yml +82 -5
  253. data/config/locales/zh.enum.yml +40 -2
  254. data/config/routes.rb +88 -14
  255. data/lib/rails_crm/engine.rb +2 -6
  256. metadata +254 -80
  257. data/app/controllers/crm/admin/maintain_source_templates_controller.rb +0 -52
  258. data/app/controllers/crm/admin/maintain_tag_templates_controller.rb +0 -56
  259. data/app/models/crm/maintain_source_template.rb +0 -5
  260. data/app/models/crm/maintain_tag_template.rb +0 -5
  261. data/app/models/crm/model/maintain_source_template.rb +0 -12
  262. data/app/models/crm/model/member.rb +0 -11
  263. data/app/models/crm/model/order.rb +0 -10
  264. data/app/views/crm/admin/maintain_logs/_index_thead.html.erb +0 -14
  265. data/app/views/crm/admin/maintain_logs/_maintain_log.json.jbuilder +0 -11
  266. data/app/views/crm/admin/maintain_logs/_show.json.jbuilder +0 -1
  267. data/app/views/crm/admin/maintain_logs/index.json.jbuilder +0 -2
  268. data/app/views/crm/admin/maintain_source_templates/_edit_form.html.erb +0 -4
  269. data/app/views/crm/admin/maintain_source_templates/_form.html.erb +0 -2
  270. data/app/views/crm/admin/maintain_source_templates/_index_tbody.html.erb +0 -14
  271. data/app/views/crm/admin/maintain_source_templates/_index_thead.html.erb +0 -2
  272. data/app/views/crm/admin/maintain_source_templates/_maintain_source.json.jbuilder +0 -7
  273. data/app/views/crm/admin/maintain_source_templates/_new_form.html.erb +0 -4
  274. data/app/views/crm/admin/maintain_source_templates/_show.json.jbuilder +0 -1
  275. data/app/views/crm/admin/maintain_source_templates/_show_table.html.erb +0 -8
  276. data/app/views/crm/admin/maintain_source_templates/index.json.jbuilder +0 -1
  277. data/app/views/crm/admin/maintain_sources/_edit_form.html.erb +0 -4
  278. data/app/views/crm/admin/maintain_sources/_index_tbody.html.erb +0 -12
  279. data/app/views/crm/admin/maintain_sources/_index_thead.html.erb +0 -3
  280. data/app/views/crm/admin/maintain_sources/_maintain_source.json.jbuilder +0 -6
  281. data/app/views/crm/admin/maintain_sources/_show.json.jbuilder +0 -1
  282. data/app/views/crm/admin/maintain_sources/index.json.jbuilder +0 -1
  283. data/app/views/crm/admin/maintain_tag_templates/_edit_form.html.erb +0 -4
  284. data/app/views/crm/admin/maintain_tag_templates/_index_thead.html.erb +0 -7
  285. data/app/views/crm/admin/maintain_tag_templates/_maintain_tag_template.json.jbuilder +0 -11
  286. data/app/views/crm/admin/maintain_tag_templates/_new_form.html.erb +0 -4
  287. data/app/views/crm/admin/maintain_tag_templates/_show.json.jbuilder +0 -1
  288. data/app/views/crm/admin/maintain_tag_templates/_show_table.html.erb +0 -20
  289. data/app/views/crm/admin/maintain_tag_templates/index.json.jbuilder +0 -1
  290. data/app/views/crm/admin/maintain_tags/_breadcrumb.html.erb +0 -6
  291. data/app/views/crm/admin/maintain_tags/_edit_form.html.erb +0 -4
  292. data/app/views/crm/admin/maintain_tags/_filter_form.html.erb +0 -9
  293. data/app/views/crm/admin/maintain_tags/_index_thead.html.erb +0 -6
  294. data/app/views/crm/admin/maintain_tags/_maintain_tag.json.jbuilder +0 -9
  295. data/app/views/crm/admin/maintain_tags/_new_form.html.erb +0 -4
  296. data/app/views/crm/admin/maintain_tags/_show.json.jbuilder +0 -1
  297. data/app/views/crm/admin/maintain_tags/index.json.jbuilder +0 -1
  298. data/app/views/crm/admin/maintains/_button.html.erb +0 -3
  299. data/app/views/crm/admin/maintains/_filter_table.html.erb +0 -54
  300. data/app/views/crm/admin/maintains/_index_thead.html.erb +0 -40
  301. data/app/views/crm/admin/maintains/_index_tr.html.erb +0 -36
  302. data/app/views/crm/admin/maintains/_maintain.json.jbuilder +0 -24
  303. data/app/views/crm/admin/maintains/_new_detect.html.erb +0 -15
  304. data/app/views/crm/admin/maintains/_show.json.jbuilder +0 -1
  305. data/app/views/crm/admin/maintains/create_detect.js.erb +0 -3
  306. data/app/views/crm/admin/maintains/edit_assign.js +0 -8
  307. data/app/views/crm/admin/maintains/edit_assign.js.erb +0 -3
  308. data/app/views/crm/admin/maintains/edit_order.js.erb +0 -12
  309. data/app/views/crm/admin/maintains/edit_transfer.js +0 -8
  310. data/app/views/crm/admin/maintains/edit_transfer.js.erb +0 -3
  311. data/app/views/crm/admin/maintains/index.json.jbuilder +0 -2
  312. data/app/views/crm/admin/maintains/new.json.jbuilder +0 -5
  313. data/app/views/crm/admin/maintains/new_batch_assign.js.erb +0 -3
  314. data/app/views/crm/admin/maintains/new_detect.js.erb +0 -1
  315. data/app/views/crm/admin/maintains/orders.html.erb +0 -54
  316. data/app/views/crm/admin/maintains/public.json.jbuilder +0 -2
metadata CHANGED
@@ -1,29 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_crm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - qinmingyuan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-12 00:00:00.000000000 Z
11
+ date: 2022-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails_com
14
+ name: rails_extend
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.2'
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.2'
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rails_profile
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rails_trade
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
27
55
  description: Description of RailsCrm.
28
56
  email:
29
57
  - mingyuan0715@foxmail.com
@@ -34,117 +62,263 @@ files:
34
62
  - LICENSE
35
63
  - README.md
36
64
  - Rakefile
65
+ - app/controllers/crm/admin/addresses_controller.rb
66
+ - app/controllers/crm/admin/agencies_controller.rb
37
67
  - app/controllers/crm/admin/base_controller.rb
68
+ - app/controllers/crm/admin/card_purchases_controller.rb
69
+ - app/controllers/crm/admin/card_templates_controller.rb
70
+ - app/controllers/crm/admin/home_controller.rb
38
71
  - app/controllers/crm/admin/maintain_logs_controller.rb
39
- - app/controllers/crm/admin/maintain_source_templates_controller.rb
40
72
  - app/controllers/crm/admin/maintain_sources_controller.rb
41
- - app/controllers/crm/admin/maintain_tag_templates_controller.rb
42
73
  - app/controllers/crm/admin/maintain_tags_controller.rb
43
74
  - app/controllers/crm/admin/maintains_controller.rb
75
+ - app/controllers/crm/admin/orders_controller.rb
76
+ - app/controllers/crm/admin/payments_controller.rb
77
+ - app/controllers/crm/admin/wallet_logs_controller.rb
78
+ - app/controllers/crm/admin/wallet_payments_controller.rb
79
+ - app/controllers/crm/admin/wallet_templates_controller.rb
80
+ - app/controllers/crm/admin/wallets_controller.rb
81
+ - app/controllers/crm/controller/me.rb
82
+ - app/controllers/crm/me/agencies_controller.rb
83
+ - app/controllers/crm/me/base_controller.rb
84
+ - app/controllers/crm/me/home_controller.rb
85
+ - app/controllers/crm/me/maintain_sources_controller.rb
86
+ - app/controllers/crm/me/maintains_controller.rb
87
+ - app/controllers/crm/my/agencies_controller.rb
44
88
  - app/controllers/crm/my/base_controller.rb
89
+ - app/controllers/crm/panel/base_controller.rb
90
+ - app/controllers/crm/panel/home_controller.rb
91
+ - app/controllers/crm/panel/qrcodes_controller.rb
92
+ - app/controllers/crm/panel/sources_controller.rb
93
+ - app/controllers/crm/panel/tags_controller.rb
94
+ - app/controllers/crm/panel/texts_controller.rb
95
+ - app/imports/crm/maintain_import.rb
96
+ - app/jobs/crm/order_maintain_sync_job.rb
45
97
  - app/models/crm.rb
98
+ - app/models/crm/agency.rb
46
99
  - app/models/crm/application_record.rb
100
+ - app/models/crm/ext/address.rb
101
+ - app/models/crm/ext/agency.rb
102
+ - app/models/crm/ext/agent.rb
103
+ - app/models/crm/ext/client.rb
104
+ - app/models/crm/ext/maintainable.rb
105
+ - app/models/crm/ext/member.rb
106
+ - app/models/crm/ext/organ.rb
47
107
  - app/models/crm/maintain.rb
48
108
  - app/models/crm/maintain_log.rb
49
109
  - app/models/crm/maintain_source.rb
50
- - app/models/crm/maintain_source_template.rb
51
110
  - app/models/crm/maintain_tag.rb
52
- - app/models/crm/maintain_tag_template.rb
53
111
  - app/models/crm/model/agency.rb
54
112
  - app/models/crm/model/maintain.rb
55
113
  - app/models/crm/model/maintain_log.rb
56
114
  - app/models/crm/model/maintain_source.rb
57
- - app/models/crm/model/maintain_source_template.rb
58
115
  - app/models/crm/model/maintain_tag.rb
59
- - app/models/crm/model/maintain_tag_template.rb
60
- - app/models/crm/model/member.rb
61
- - app/models/crm/model/order.rb
62
- - app/models/crm/model/organ.rb
116
+ - app/models/crm/model/qrcode.rb
117
+ - app/models/crm/model/source.rb
118
+ - app/models/crm/model/source_contact.rb
119
+ - app/models/crm/model/tag.rb
120
+ - app/models/crm/model/text.rb
121
+ - app/models/crm/qrcode.rb
122
+ - app/models/crm/source.rb
123
+ - app/models/crm/source_contact.rb
124
+ - app/models/crm/tag.rb
125
+ - app/models/crm/text.rb
63
126
  - app/views/admin/_crm_nav.html.erb
64
- - app/views/crm/admin/maintain_logs/_breadcrumb.html.erb
127
+ - app/views/crm/admin/addresses/_index/_breadcrumb.html.erb
128
+ - app/views/crm/admin/addresses/_index/_top_bar.html+phone.erb
129
+ - app/views/crm/admin/addresses/_nav.html.erb
130
+ - app/views/crm/admin/addresses/_new/_top_bar.html.erb
131
+ - app/views/crm/admin/addresses/_order/_weui_dialog_ft.html.erb
132
+ - app/views/crm/admin/addresses/_order_from/_weui_dialog_ft.html.erb
133
+ - app/views/crm/admin/addresses/index.html+phone.erb
134
+ - app/views/crm/admin/agencies/_filter_form.html.erb
135
+ - app/views/crm/admin/agencies/_form.html.erb
136
+ - app/views/crm/admin/agencies/_index/_index_tbody.html.erb
137
+ - app/views/crm/admin/agencies/_index/_index_thead.html.erb
138
+ - app/views/crm/admin/agencies/_show_table.html.erb
139
+ - app/views/crm/admin/agencies/edit_crowd.html.erb
140
+ - app/views/crm/admin/base/_nav.html.erb
141
+ - app/views/crm/admin/card_purchases/_index/_top_bar.html+phone.erb
142
+ - app/views/crm/admin/card_templates/_index/_index_table.html+phone.erb
143
+ - app/views/crm/admin/card_templates/_index/_index_tbody.html+phone.erb
144
+ - app/views/crm/admin/card_templates/_index/_index_tr.html+phone.erb
145
+ - app/views/crm/admin/card_templates/_index/_top_bar.html+phone.erb
146
+ - app/views/crm/admin/card_templates/_show/_top_bar.html+phone.erb
147
+ - app/views/crm/admin/home/index.html.erb
65
148
  - app/views/crm/admin/maintain_logs/_filter_form.html.erb
66
149
  - app/views/crm/admin/maintain_logs/_form.html.erb
67
- - app/views/crm/admin/maintain_logs/_index_tbody.html.erb
68
- - app/views/crm/admin/maintain_logs/_index_thead.html.erb
69
- - app/views/crm/admin/maintain_logs/_maintain_log.json.jbuilder
70
- - app/views/crm/admin/maintain_logs/_show.json.jbuilder
150
+ - app/views/crm/admin/maintain_logs/_index/_breadcrumb.html.erb
151
+ - app/views/crm/admin/maintain_logs/_index/_index_tbody.html.erb
152
+ - app/views/crm/admin/maintain_logs/_index/_index_thead.html.erb
71
153
  - app/views/crm/admin/maintain_logs/_show_table.html.erb
72
- - app/views/crm/admin/maintain_logs/index.json.jbuilder
73
- - app/views/crm/admin/maintain_source_templates/_edit_form.html.erb
74
- - app/views/crm/admin/maintain_source_templates/_filter_form.html.erb
75
- - app/views/crm/admin/maintain_source_templates/_form.html.erb
76
- - app/views/crm/admin/maintain_source_templates/_index_tbody.html.erb
77
- - app/views/crm/admin/maintain_source_templates/_index_thead.html.erb
78
- - app/views/crm/admin/maintain_source_templates/_maintain_source.json.jbuilder
79
- - app/views/crm/admin/maintain_source_templates/_new_form.html.erb
80
- - app/views/crm/admin/maintain_source_templates/_show.json.jbuilder
81
- - app/views/crm/admin/maintain_source_templates/_show_table.html.erb
82
- - app/views/crm/admin/maintain_source_templates/index.json.jbuilder
83
- - app/views/crm/admin/maintain_sources/_breadcrumb.html.erb
84
- - app/views/crm/admin/maintain_sources/_edit_form.html.erb
85
154
  - app/views/crm/admin/maintain_sources/_filter_form.html.erb
86
155
  - app/views/crm/admin/maintain_sources/_form.html.erb
87
- - app/views/crm/admin/maintain_sources/_index_tbody.html.erb
88
- - app/views/crm/admin/maintain_sources/_index_thead.html.erb
89
- - app/views/crm/admin/maintain_sources/_maintain_source.json.jbuilder
156
+ - app/views/crm/admin/maintain_sources/_index/_index_tbody.html.erb
157
+ - app/views/crm/admin/maintain_sources/_index/_index_thead.html.erb
158
+ - app/views/crm/admin/maintain_sources/_index/_index_tr.html.erb
90
159
  - app/views/crm/admin/maintain_sources/_new_form.html.erb
91
- - app/views/crm/admin/maintain_sources/_show.json.jbuilder
92
160
  - app/views/crm/admin/maintain_sources/_show_table.html.erb
93
- - app/views/crm/admin/maintain_sources/index.json.jbuilder
94
161
  - app/views/crm/admin/maintain_sources/templates.html.erb
95
- - app/views/crm/admin/maintain_tag_templates/_edit_form.html.erb
96
- - app/views/crm/admin/maintain_tag_templates/_filter_form.html.erb
97
- - app/views/crm/admin/maintain_tag_templates/_form.html.erb
98
- - app/views/crm/admin/maintain_tag_templates/_index_tbody.html.erb
99
- - app/views/crm/admin/maintain_tag_templates/_index_thead.html.erb
100
- - app/views/crm/admin/maintain_tag_templates/_maintain_tag_template.json.jbuilder
101
- - app/views/crm/admin/maintain_tag_templates/_new_form.html.erb
102
- - app/views/crm/admin/maintain_tag_templates/_show.json.jbuilder
103
- - app/views/crm/admin/maintain_tag_templates/_show_table.html.erb
104
- - app/views/crm/admin/maintain_tag_templates/index.json.jbuilder
105
- - app/views/crm/admin/maintain_tags/_breadcrumb.html.erb
106
- - app/views/crm/admin/maintain_tags/_edit_form.html.erb
107
- - app/views/crm/admin/maintain_tags/_filter_form.html.erb
108
162
  - app/views/crm/admin/maintain_tags/_form.html.erb
109
- - app/views/crm/admin/maintain_tags/_index_tbody.html.erb
110
- - app/views/crm/admin/maintain_tags/_index_thead.html.erb
111
- - app/views/crm/admin/maintain_tags/_maintain_tag.json.jbuilder
112
- - app/views/crm/admin/maintain_tags/_new_form.html.erb
113
- - app/views/crm/admin/maintain_tags/_show.json.jbuilder
163
+ - app/views/crm/admin/maintain_tags/_index/_index_tbody.html.erb
164
+ - app/views/crm/admin/maintain_tags/_index/_index_thead.html.erb
114
165
  - app/views/crm/admin/maintain_tags/_show_table.html.erb
115
- - app/views/crm/admin/maintain_tags/index.json.jbuilder
116
166
  - app/views/crm/admin/maintain_tags/templates.html.erb
117
- - app/views/crm/admin/maintains/_button.html.erb
167
+ - app/views/crm/admin/maintains/_actions.html.erb
168
+ - app/views/crm/admin/maintains/_agent_form.html.erb
169
+ - app/views/crm/admin/maintains/_base/_agent_detect.html.erb
170
+ - app/views/crm/admin/maintains/_base/_agent_show_table.html.erb
171
+ - app/views/crm/admin/maintains/_base/_agent_tbody.html.erb
172
+ - app/views/crm/admin/maintains/_base/_agent_thead.html.erb
173
+ - app/views/crm/admin/maintains/_base/_filter_table.html+phone.erb
174
+ - app/views/crm/admin/maintains/_base/_filter_table.html.erb
175
+ - app/views/crm/admin/maintains/_base/_tabs.html.erb
176
+ - app/views/crm/admin/maintains/_client_form.html+phone.erb
177
+ - app/views/crm/admin/maintains/_client_form.html.erb
118
178
  - app/views/crm/admin/maintains/_create_detect.html.erb
119
179
  - app/views/crm/admin/maintains/_edit_assign.html.erb
120
180
  - app/views/crm/admin/maintains/_edit_form.html.erb
121
- - app/views/crm/admin/maintains/_edit_order.html.erb
122
181
  - app/views/crm/admin/maintains/_edit_transfer.html.erb
123
- - app/views/crm/admin/maintains/_filter_form.html.erb
124
- - app/views/crm/admin/maintains/_filter_table.html.erb
125
182
  - app/views/crm/admin/maintains/_form.html.erb
126
- - app/views/crm/admin/maintains/_index_thead.html.erb
127
- - app/views/crm/admin/maintains/_index_tr.html.erb
128
- - app/views/crm/admin/maintains/_maintain.json.jbuilder
183
+ - app/views/crm/admin/maintains/_index/_button.html+phone.erb
184
+ - app/views/crm/admin/maintains/_index/_button.html.erb
185
+ - app/views/crm/admin/maintains/_index/_filter_form.html+phone.erb
186
+ - app/views/crm/admin/maintains/_index/_filter_form.html.erb
187
+ - app/views/crm/admin/maintains/_index/_index_tbody.html+phone.erb
188
+ - app/views/crm/admin/maintains/_index/_index_tbody.html.erb
189
+ - app/views/crm/admin/maintains/_index/_index_thead.html.erb
190
+ - app/views/crm/admin/maintains/_index/_index_tr.html+phone.erb
191
+ - app/views/crm/admin/maintains/_index/_index_tr.html.erb
129
192
  - app/views/crm/admin/maintains/_new_batch_assign.html.erb
130
- - app/views/crm/admin/maintains/_new_detect.html.erb
193
+ - app/views/crm/admin/maintains/_new_detect/_new_detect.html+phone.erb
194
+ - app/views/crm/admin/maintains/_new_detect/_new_detect.html.erb
195
+ - app/views/crm/admin/maintains/_new_form.html+phone.erb
131
196
  - app/views/crm/admin/maintains/_new_form.html.erb
132
- - app/views/crm/admin/maintains/_show.json.jbuilder
197
+ - app/views/crm/admin/maintains/_public/_filter_form.html.erb
198
+ - app/views/crm/admin/maintains/_public/_index_tbody.html.erb
199
+ - app/views/crm/admin/maintains/_public/_index_thead.html.erb
200
+ - app/views/crm/admin/maintains/_public/_index_tr.html.erb
201
+ - app/views/crm/admin/maintains/_show/_external.html.erb
202
+ - app/views/crm/admin/maintains/_show/_profile.html.erb
203
+ - app/views/crm/admin/maintains/_show/_show_head.html+phone.erb
133
204
  - app/views/crm/admin/maintains/_show_table.html.erb
134
- - app/views/crm/admin/maintains/create_detect.js.erb
135
- - app/views/crm/admin/maintains/edit_assign.js
136
- - app/views/crm/admin/maintains/edit_assign.js.erb
137
- - app/views/crm/admin/maintains/edit_order.js.erb
138
- - app/views/crm/admin/maintains/edit_transfer.js
139
- - app/views/crm/admin/maintains/edit_transfer.js.erb
205
+ - app/views/crm/admin/maintains/assume.turbo_stream.erb
206
+ - app/views/crm/admin/maintains/create_detect.html.erb
207
+ - app/views/crm/admin/maintains/detach.turbo_stream.erb
208
+ - app/views/crm/admin/maintains/edit_assign.html.erb
209
+ - app/views/crm/admin/maintains/edit_transfer.html.erb
210
+ - app/views/crm/admin/maintains/index.html+phone.erb
140
211
  - app/views/crm/admin/maintains/index.html.erb
141
- - app/views/crm/admin/maintains/index.json.jbuilder
142
- - app/views/crm/admin/maintains/new.json.jbuilder
143
- - app/views/crm/admin/maintains/new_batch_assign.js.erb
144
- - app/views/crm/admin/maintains/new_detect.js.erb
145
- - app/views/crm/admin/maintains/orders.html.erb
212
+ - app/views/crm/admin/maintains/new_batch_assign.html.erb
213
+ - app/views/crm/admin/maintains/new_detect.html.erb
146
214
  - app/views/crm/admin/maintains/public.html.erb
147
- - app/views/crm/admin/maintains/public.json.jbuilder
215
+ - app/views/crm/admin/orders/_actions.html+phone.erb
216
+ - app/views/crm/admin/orders/_add/_top_bar.html.erb
217
+ - app/views/crm/admin/orders/_base/_address.html+phone.erb
218
+ - app/views/crm/admin/orders/_base/_from_address.html+phone.erb
219
+ - app/views/crm/admin/orders/_edit_form.html.erb
220
+ - app/views/crm/admin/orders/_index/_breadcrumb.html.erb
221
+ - app/views/crm/admin/orders/_index/_button.html+phone.erb
222
+ - app/views/crm/admin/orders/_index/_button.html.erb
223
+ - app/views/crm/admin/orders/_index/_index_tbody.html+phone.erb
224
+ - app/views/crm/admin/orders/_index/_index_tr.html+phone.erb
225
+ - app/views/crm/admin/orders/_index/_index_tr.html.erb
226
+ - app/views/crm/admin/orders/_index/_top_bar.html+phone.erb
227
+ - app/views/crm/admin/orders/_nav.html.erb
228
+ - app/views/crm/admin/orders/_new/_address_button.html.erb
229
+ - app/views/crm/admin/orders/_new/_breadcrumb.html.erb
230
+ - app/views/crm/admin/orders/_new/_head.html.erb
231
+ - app/views/crm/admin/orders/_new/_top_bar.html.erb
232
+ - app/views/crm/admin/orders/index.html+phone.erb
233
+ - app/views/crm/admin/orders/index.html.erb
234
+ - app/views/crm/admin/orders/payment_types.html+phone.erb
235
+ - app/views/crm/admin/orders/payment_types.html.erb
236
+ - app/views/crm/admin/payments/create.turbo_stream+phone.erb
237
+ - app/views/crm/admin/payments/destroy.turbo_stream+phone.erb
238
+ - app/views/crm/admin/payments/order_create.turbo_stream+phone.erb
239
+ - app/views/crm/admin/wallet_logs/_index/_top_bar.html+phone.erb
240
+ - app/views/crm/admin/wallet_payments/_index/_top_bar.html+phone.erb
241
+ - app/views/crm/admin/wallet_templates/_index/_breadcrumb.html.erb
242
+ - app/views/crm/admin/wallet_templates/_index/_filter_form.html.erb
243
+ - app/views/crm/admin/wallet_templates/_index/_index_table.html+phone.erb
244
+ - app/views/crm/admin/wallet_templates/_index/_index_tbody.html+phone.erb
245
+ - app/views/crm/admin/wallet_templates/_index/_index_tbody.html.erb
246
+ - app/views/crm/admin/wallet_templates/_index/_index_thead.html.erb
247
+ - app/views/crm/admin/wallet_templates/_index/_index_tr.html+phone.erb
248
+ - app/views/crm/admin/wallet_templates/_index/_top_bar.html+phone.erb
249
+ - app/views/crm/admin/wallet_templates/_show/_top_bar.html+phone.erb
250
+ - app/views/crm/admin/wallets/_index/_breadcrumb.html.erb
251
+ - app/views/crm/admin/wallets/_index/_index_table.html.erb
252
+ - app/views/crm/admin/wallets/_index/_index_tbody.html.erb
253
+ - app/views/crm/admin/wallets/_index/_index_thead.html.erb
254
+ - app/views/crm/admin/wallets/_index/_index_tr.html.erb
255
+ - app/views/crm/admin/wallets/_index/_tab_bar_footer.html.erb
256
+ - app/views/crm/admin/wallets/_index/_template_tbody.html.erb
257
+ - app/views/crm/admin/wallets/_index/_template_tr.html.erb
258
+ - app/views/crm/admin/wallets/_index/_top_bar.html+phone.erb
259
+ - app/views/crm/admin/wallets/_index/_wallet.html.erb
260
+ - app/views/crm/admin/wallets/index.html+phone.erb
261
+ - app/views/crm/admin/wallets/index.html.erb
262
+ - app/views/crm/me/agencies/_client_form.html.erb
263
+ - app/views/crm/me/agencies/_filter.html.erb
264
+ - app/views/crm/me/agencies/_form.html.erb
265
+ - app/views/crm/me/agencies/_show_table.html.erb
266
+ - app/views/crm/me/agencies/index.html+phone.erb
267
+ - app/views/crm/me/agencies/index.html.erb
268
+ - app/views/crm/me/home/_cart_item.html.erb
269
+ - app/views/crm/me/home/index.html+phone.erb
270
+ - app/views/crm/me/maintain_sources/_about_item.html.erb
271
+ - app/views/crm/me/maintain_sources/_order.html.erb
272
+ - app/views/crm/me/maintain_sources/index.html.erb
273
+ - app/views/crm/me/maintain_sources/list.html.erb
274
+ - app/views/crm/me/maintain_sources/source.html.erb
275
+ - app/views/crm/my/agencies/_client_form.html.erb
276
+ - app/views/crm/my/agencies/_edit_form.html.erb
277
+ - app/views/crm/my/agencies/_filter_form.html.erb
278
+ - app/views/crm/my/agencies/_form.html.erb
279
+ - app/views/crm/my/agencies/_new_form.html.erb
280
+ - app/views/crm/my/agencies/_show_table.html.erb
281
+ - app/views/crm/my/agencies/index.html+phone.erb
282
+ - app/views/crm/my/agencies/index.html.erb
283
+ - app/views/crm/panel/base/_nav.html.erb
284
+ - app/views/crm/panel/home/index.html.erb
285
+ - app/views/crm/panel/qrcodes/_form.html.erb
286
+ - app/views/crm/panel/qrcodes/_index/_breadcrumb.html.erb
287
+ - app/views/crm/panel/qrcodes/_index/_index_tbody.html.erb
288
+ - app/views/crm/panel/qrcodes/_index/_index_thead.html.erb
289
+ - app/views/crm/panel/qrcodes/_show_table.html.erb
290
+ - app/views/crm/panel/qrcodes/index.html.erb
291
+ - app/views/crm/panel/sources/_form.html.erb
292
+ - app/views/crm/panel/sources/_index/_filter_form.html.erb
293
+ - app/views/crm/panel/sources/_index/_index_tbody.html.erb
294
+ - app/views/crm/panel/sources/_index/_index_thead.html.erb
295
+ - app/views/crm/panel/sources/_index/_index_tr.html.erb
296
+ - app/views/crm/panel/sources/_show/_breadcrumb.html.erb
297
+ - app/views/crm/panel/sources/_show/_qrcode_button.html.erb
298
+ - app/views/crm/panel/sources/_show/_qrcode_table.html.erb
299
+ - app/views/crm/panel/sources/_show/_qrcode_tbody.html.erb
300
+ - app/views/crm/panel/sources/_show/_qrcode_thead.html.erb
301
+ - app/views/crm/panel/sources/_show/_qrcode_tr.html.erb
302
+ - app/views/crm/panel/sources/_show/_show_table.html.erb
303
+ - app/views/crm/panel/sources/_show/_text_button.html.erb
304
+ - app/views/crm/panel/sources/_show/_text_table.html.erb
305
+ - app/views/crm/panel/sources/_show/_text_tbody.html.erb
306
+ - app/views/crm/panel/sources/_show/_text_thead.html.erb
307
+ - app/views/crm/panel/sources/_show/_text_tr.html.erb
308
+ - app/views/crm/panel/sources/index.html.erb
309
+ - app/views/crm/panel/sources/show.html.erb
310
+ - app/views/crm/panel/tags/_form.html.erb
311
+ - app/views/crm/panel/tags/_index/_index_tbody.html.erb
312
+ - app/views/crm/panel/tags/_index/_index_thead.html.erb
313
+ - app/views/crm/panel/tags/_show_table.html.erb
314
+ - app/views/crm/panel/texts/_form.html.erb
315
+ - app/views/crm/panel/texts/_index/_breadcrumb.html.erb
316
+ - app/views/crm/panel/texts/_index/_index_tbody.html.erb
317
+ - app/views/crm/panel/texts/_index/_index_thead.html.erb
318
+ - app/views/crm/panel/texts/_show_table.html.erb
319
+ - app/views/crm/panel/texts/index.html.erb
320
+ - app/views/panel/_crm_nav.html.erb
321
+ - config/locales/en.enum.yml
148
322
  - config/locales/zh.attributes.yml
149
323
  - config/locales/zh.controller.yml
150
324
  - config/locales/zh.enum.yml
@@ -171,7 +345,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
345
  - !ruby/object:Gem::Version
172
346
  version: '0'
173
347
  requirements: []
174
- rubygems_version: 3.2.22
348
+ rubygems_version: 3.3.7
175
349
  signing_key:
176
350
  specification_version: 4
177
351
  summary: Summary of RailsCrm.
@@ -1,52 +0,0 @@
1
- module Crm
2
- class Admin::MaintainSourceTemplatesController < Admin::BaseController
3
- before_action :set_maintain_source_template, only: [:show, :edit, :update, :destroy]
4
-
5
- def index
6
- @maintain_source_templates = MaintainSourceTemplate.page(params[:page])
7
- end
8
-
9
- def new
10
- @maintain_source_template = MaintainSourceTemplate.new
11
- end
12
-
13
- def create
14
- @maintain_source_template = MaintainSourceTemplate.new(maintain_source_template_params)
15
-
16
- unless @maintain_source_template.save
17
- render :new, locals: { model: @maintain_source_template }, status: :unprocessable_entity
18
- end
19
- end
20
-
21
- def show
22
- end
23
-
24
- def edit
25
- end
26
-
27
- def update
28
- @maintain_source_template.assign_attributes(maintain_source_template_params)
29
-
30
- unless @maintain_source_template.save
31
- render :edit, locals: { model: @maintain_source_template }, status: :unprocessable_entity
32
- end
33
- end
34
-
35
- def destroy
36
- @maintain_source_template.destroy
37
- end
38
-
39
- private
40
- def set_maintain_source_template
41
- @maintain_source_template = MaintainSourceTemplate.find(params[:id])
42
- end
43
-
44
- def maintain_source_template_params
45
- params.fetch(:maintain_source_template, {}).permit(
46
- :name,
47
- :maintains_count
48
- )
49
- end
50
-
51
- end
52
- end
@@ -1,56 +0,0 @@
1
- module Crm
2
- class Admin::MaintainTagTemplatesController < Admin::BaseController
3
- before_action :set_maintain_tag_template, only: [:show, :edit, :update, :destroy]
4
-
5
- def index
6
- @maintain_tag_templates = MaintainTagTemplate.order(sequence: :asc).page(params[:page])
7
- end
8
-
9
- def new
10
- @maintain_tag_template = MaintainTagTemplate.new
11
- end
12
-
13
- def create
14
- @maintain_tag_template = MaintainTagTemplate.new(maintain_tag_template_params)
15
-
16
- unless @maintain_tag_template.save
17
- render :new, locals: { model: @maintain_tag_template }, status: :unprocessable_entity
18
- end
19
- end
20
-
21
- def show
22
- end
23
-
24
- def edit
25
- end
26
-
27
- def update
28
- @maintain_tag_template.assign_attributes(maintain_tag_template_params)
29
-
30
- unless @maintain_tag_template.save
31
- render :edit, locals: { model: @maintain_tag_template }, status: :unprocessable_entity
32
- end
33
- end
34
-
35
- def destroy
36
- @maintain_tag_template.destroy
37
- end
38
-
39
- private
40
- def set_maintain_tag_template
41
- @maintain_tag_template = MaintainTagTemplate.find(params[:id])
42
- end
43
-
44
- def maintain_tag_template_params
45
- params.fetch(:maintain_tag_template, {}).permit(
46
- :name,
47
- :logged_type,
48
- :entity_column,
49
- :entity_value,
50
- :sequence,
51
- :color
52
- )
53
- end
54
-
55
- end
56
- end
@@ -1,5 +0,0 @@
1
- module Crm
2
- class MaintainSourceTemplate < ApplicationRecord
3
- include Model::MaintainSourceTemplate
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- module Crm
2
- class MaintainTagTemplate < ApplicationRecord
3
- include Model::MaintainTagTemplate
4
- end
5
- end
@@ -1,12 +0,0 @@
1
- module Crm
2
- module Model::MaintainSourceTemplate
3
- extend ActiveSupport::Concern
4
-
5
- included do
6
- attribute :name, :string
7
-
8
- has_many :maintain_sources
9
- end
10
-
11
- end
12
- end
@@ -1,11 +0,0 @@
1
- module Crm
2
- module Model::Member
3
- extend ActiveSupport::Concern
4
-
5
- included do
6
- has_many :maintains
7
- has_many :pupils, through: :maintains
8
- end
9
-
10
- end
11
- end
@@ -1,10 +0,0 @@
1
- module Crm
2
- module Model::Order
3
- extend ActiveSupport::Concern
4
-
5
- included do
6
- belongs_to :maintain, optional: true
7
- end
8
-
9
- end
10
- end
@@ -1,14 +0,0 @@
1
- <th>
2
- <%= MaintainLog.human_attribute_name(:maintain_tag_id) %>
3
- <%= link_to({ controller: 'maintain_tags' }, aria: { label: '标签设置' }, target: '_blank') do %>
4
- <i class="fas fa-cog"></i>
5
- <% end %>
6
- </th>
7
- <th><%= MaintainLog.human_attribute_name(:note) %></th>
8
- <th>
9
- <p><%= MaintainLog.human_attribute_name(:logged_type) %></p>
10
- <p><%= MaintainLog.human_attribute_name(:logged_id) %></p>
11
- </th>
12
- <th><%= MaintainLog.human_attribute_name(:extra) %></th>
13
- <th><%= MaintainLog.human_attribute_name(:created_at) %></th>
14
- <th></th>
@@ -1,11 +0,0 @@
1
- json.extract!(
2
- maintain_log,
3
- :id,
4
- :note,
5
- :logged_type,
6
- :logged_id,
7
- :created_at
8
- )
9
- if maintain_log.maintain_tag
10
- json.maintain_tag maintain_log.maintain_tag, :id, :name, :color
11
- end
@@ -1 +0,0 @@
1
- json.maintain_log @maintain_log, partial: 'maintain_log', as: :maintain_log
@@ -1,2 +0,0 @@
1
- json.maintain_logs @maintain_logs, partial: 'maintain_log', as: :maintain_log
2
- json.partial! 'shared/pagination', items: @maintain_logs
@@ -1,4 +0,0 @@
1
- <%= form_with model: @maintain_source_template, url: { action: 'update' } do |f| %>
2
- <%= render partial: 'form', locals: { f: f } %>
3
- <%= f.submit %>
4
- <% end %>
@@ -1,2 +0,0 @@
1
- <%= render 'shared/error_messages', target: f.object %>
2
- <%= f.text_field :name %>
@@ -1,14 +0,0 @@
1
- <tr>
2
- <td><%= maintain_source_template.name %></td>
3
- <td>
4
- <%= link_to({ action: 'show', id: maintain_source_template.id }, aria: { label: t('.show') }, class: 'button is-small is-rounded is-light') do %>
5
- <i class="fas fa-info"></i>
6
- <% end %>
7
- <%= link_to({ action: 'edit', id: maintain_source_template.id }, aria: { label: t('.edit') }, class: 'button is-small is-rounded is-light') do %>
8
- <i class="fas fa-pencil-alt"></i>
9
- <% end %>
10
- <%= link_to({ action: 'destroy', id: maintain_source_template.id }, method: :delete, aria: { label: t('.destroy') }, data: { confirm: t('.confirm') }, class: 'button is-small is-rounded is-light') do %>
11
- <i class="fas fa-trash-alt"></i>
12
- <% end %>
13
- </td>
14
- </tr>
@@ -1,2 +0,0 @@
1
- <th><%= MaintainSourceTemplate.human_attribute_name(:name) %></th>
2
- <th></th>
@@ -1,7 +0,0 @@
1
- json.extract!(
2
- maintain_source,
3
- :id,
4
- :name,
5
- :maintains_count,
6
- :created_at
7
- )
@@ -1,4 +0,0 @@
1
- <%= form_with model: @maintain_source_template, url: { action: 'create' } do |f| %>
2
- <%= render partial: 'form', locals: { f: f } %>
3
- <%= f.submit %>
4
- <% end %>