@lm_fe/pages-mchc 0.1.201 → 0.2.2

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 (477) hide show
  1. package/README.md +11 -7
  2. package/dist/a_chunks/.root.js +266 -826
  3. package/dist/a_chunks/.root10.js +74 -113
  4. package/dist/a_chunks/.root100.js +269 -98
  5. package/dist/a_chunks/.root101.js +90 -99
  6. package/dist/a_chunks/.root102.js +204 -669
  7. package/dist/a_chunks/.root103.js +102 -53
  8. package/dist/a_chunks/.root104.js +97 -52
  9. package/dist/a_chunks/.root105.js +29 -431
  10. package/dist/a_chunks/.root106.js +44 -214
  11. package/dist/a_chunks/.root107.js +61 -106
  12. package/dist/a_chunks/.root108.js +56 -1134
  13. package/dist/a_chunks/.root109.js +137 -197
  14. package/dist/a_chunks/.root11.js +362 -79
  15. package/dist/a_chunks/.root110.js +92 -168
  16. package/dist/a_chunks/.root111.js +160 -29
  17. package/dist/a_chunks/.root112.js +232 -190
  18. package/dist/a_chunks/.root113.js +204 -19
  19. package/dist/a_chunks/.root114.js +486 -1113
  20. package/dist/a_chunks/.root115.js +77 -0
  21. package/dist/a_chunks/.root116.js +57 -0
  22. package/dist/a_chunks/.root117.js +1647 -0
  23. package/dist/a_chunks/.root118.js +159 -0
  24. package/dist/a_chunks/.root119.js +123 -0
  25. package/dist/a_chunks/.root12.js +213 -96
  26. package/dist/a_chunks/.root120.js +192 -0
  27. package/dist/a_chunks/.root121.js +544 -0
  28. package/dist/a_chunks/.root122.js +802 -0
  29. package/dist/a_chunks/.root123.js +82 -0
  30. package/dist/a_chunks/.root124.js +96 -0
  31. package/dist/a_chunks/.root125.js +150 -0
  32. package/dist/a_chunks/.root126.js +102 -0
  33. package/dist/a_chunks/.root127.js +70 -0
  34. package/dist/a_chunks/.root128.js +121 -0
  35. package/dist/a_chunks/.root129.js +120 -0
  36. package/dist/a_chunks/.root13.js +471 -128
  37. package/dist/a_chunks/.root130.js +321 -0
  38. package/dist/a_chunks/.root131.js +462 -0
  39. package/dist/a_chunks/.root132.js +107 -0
  40. package/dist/a_chunks/.root133.js +107 -0
  41. package/dist/a_chunks/.root134.js +101 -0
  42. package/dist/a_chunks/.root135.js +652 -0
  43. package/dist/a_chunks/.root136.js +153 -0
  44. package/dist/a_chunks/.root137.js +71 -0
  45. package/dist/a_chunks/.root138.js +64 -0
  46. package/dist/a_chunks/.root139.js +79 -0
  47. package/dist/a_chunks/.root14.js +174 -131
  48. package/dist/a_chunks/.root140.js +71 -0
  49. package/dist/a_chunks/.root141.js +84 -0
  50. package/dist/a_chunks/.root142.js +12 -0
  51. package/dist/a_chunks/.root143.js +560 -0
  52. package/dist/a_chunks/.root144.js +435 -0
  53. package/dist/a_chunks/.root145.js +25 -0
  54. package/dist/a_chunks/.root146.js +1237 -0
  55. package/dist/a_chunks/.root147.js +304 -0
  56. package/dist/a_chunks/.root148.js +142 -0
  57. package/dist/a_chunks/.root149.js +105 -0
  58. package/dist/a_chunks/.root15.js +341 -124
  59. package/dist/a_chunks/.root150.js +1100 -0
  60. package/dist/a_chunks/.root151.js +168 -0
  61. package/dist/a_chunks/.root152.js +157 -0
  62. package/dist/a_chunks/.root153.js +185 -0
  63. package/dist/a_chunks/.root154.js +29 -0
  64. package/dist/a_chunks/.root155.js +192 -0
  65. package/dist/a_chunks/.root156.js +20 -0
  66. package/dist/a_chunks/.root157.js +107 -0
  67. package/dist/a_chunks/.root158.js +960 -0
  68. package/dist/a_chunks/.root16.js +177 -29
  69. package/dist/a_chunks/.root17.js +113 -159
  70. package/dist/a_chunks/.root18.js +51 -229
  71. package/dist/a_chunks/.root19.js +96 -116
  72. package/dist/a_chunks/.root2.js +384 -98
  73. package/dist/a_chunks/.root20.js +68 -102
  74. package/dist/a_chunks/.root21.js +141 -127
  75. package/dist/a_chunks/.root22.js +24 -35
  76. package/dist/a_chunks/.root23.js +123 -10
  77. package/dist/a_chunks/.root24.js +123 -8
  78. package/dist/a_chunks/.root25.js +106 -10
  79. package/dist/a_chunks/.root26.js +14 -10
  80. package/dist/a_chunks/.root27.js +129 -244
  81. package/dist/a_chunks/.root28.js +219 -5
  82. package/dist/a_chunks/.root29.js +109 -8
  83. package/dist/a_chunks/.root3.js +560 -489
  84. package/dist/a_chunks/.root30.js +104 -69
  85. package/dist/a_chunks/.root31.js +98 -8
  86. package/dist/a_chunks/.root32.js +75 -1645
  87. package/dist/a_chunks/.root33.js +9 -40
  88. package/dist/a_chunks/.root34.js +7 -225
  89. package/dist/a_chunks/.root35.js +10 -141
  90. package/dist/a_chunks/.root36.js +10 -35
  91. package/dist/a_chunks/.root37.js +221 -93
  92. package/dist/a_chunks/.root38.js +4 -179
  93. package/dist/a_chunks/.root39.js +14 -27
  94. package/dist/a_chunks/.root4.js +38 -499
  95. package/dist/a_chunks/.root40.js +57 -190
  96. package/dist/a_chunks/.root41.js +15 -262
  97. package/dist/a_chunks/.root42.js +12 -454
  98. package/dist/a_chunks/.root43.js +24 -28
  99. package/dist/a_chunks/.root44.js +224 -32
  100. package/dist/a_chunks/.root45.js +123 -27
  101. package/dist/a_chunks/.root46.js +9 -26
  102. package/dist/a_chunks/.root47.js +79 -166
  103. package/dist/a_chunks/.root48.js +15 -117
  104. package/dist/a_chunks/.root49.js +10 -173
  105. package/dist/a_chunks/.root5.js +44 -204
  106. package/dist/a_chunks/.root50.js +166 -127
  107. package/dist/a_chunks/.root51.js +174 -52
  108. package/dist/a_chunks/.root52.js +59 -476
  109. package/dist/a_chunks/.root53.js +440 -10
  110. package/dist/a_chunks/.root54.js +16 -9
  111. package/dist/a_chunks/.root55.js +15 -642
  112. package/dist/a_chunks/.root56.js +16 -743
  113. package/dist/a_chunks/.root57.js +14 -197
  114. package/dist/a_chunks/.root58.js +100 -155
  115. package/dist/a_chunks/.root59.js +95 -218
  116. package/dist/a_chunks/.root6.js +36 -411
  117. package/dist/a_chunks/.root60.js +91 -184
  118. package/dist/a_chunks/.root61.js +109 -60
  119. package/dist/a_chunks/.root62.js +53 -170
  120. package/dist/a_chunks/.root63.js +81 -155
  121. package/dist/a_chunks/.root64.js +16 -479
  122. package/dist/a_chunks/.root65.js +15 -519
  123. package/dist/a_chunks/.root66.js +627 -111
  124. package/dist/a_chunks/.root67.js +396 -973
  125. package/dist/a_chunks/.root68.js +22 -5
  126. package/dist/a_chunks/.root69.js +15 -18
  127. package/dist/a_chunks/.root7.js +48 -18532
  128. package/dist/a_chunks/.root70.js +213 -12
  129. package/dist/a_chunks/.root71.js +16 -9
  130. package/dist/a_chunks/.root72.js +53 -8
  131. package/dist/a_chunks/.root73.js +67 -254
  132. package/dist/a_chunks/.root74.js +60 -259
  133. package/dist/a_chunks/.root75.js +153 -64
  134. package/dist/a_chunks/.root76.js +154 -115
  135. package/dist/a_chunks/.root77.js +451 -108
  136. package/dist/a_chunks/.root78.js +456 -508
  137. package/dist/a_chunks/.root79.js +93 -316
  138. package/dist/a_chunks/.root8.js +36 -135
  139. package/dist/a_chunks/.root80.js +108 -470
  140. package/dist/a_chunks/.root81.js +40 -123
  141. package/dist/a_chunks/.root82.js +68 -202
  142. package/dist/a_chunks/.root83.js +17 -423
  143. package/dist/a_chunks/.root84.js +68 -249
  144. package/dist/a_chunks/.root85.js +17 -207
  145. package/dist/a_chunks/.root86.js +15 -574
  146. package/dist/a_chunks/.root87.js +75 -90
  147. package/dist/a_chunks/.root88.js +238 -69
  148. package/dist/a_chunks/.root89.js +46 -1678
  149. package/dist/a_chunks/.root9.js +46 -66
  150. package/dist/a_chunks/.root90.js +247 -174
  151. package/dist/a_chunks/.root91.js +106 -190
  152. package/dist/a_chunks/.root92.js +65 -520
  153. package/dist/a_chunks/.root93.js +517 -819
  154. package/dist/a_chunks/.root94.js +303 -146
  155. package/dist/a_chunks/.root95.js +428 -94
  156. package/dist/a_chunks/.root96.js +110 -71
  157. package/dist/a_chunks/.root97.js +191 -115
  158. package/dist/a_chunks/.root98.js +416 -101
  159. package/dist/a_chunks/.root99.js +359 -483
  160. package/dist/a_chunks/DoctorEnd_FurtherPage.js +377 -511
  161. package/dist/a_chunks/HistoryTable.js +14 -13
  162. package/dist/a_chunks/OpenReferralInEdit.js +44 -0
  163. package/dist/a_chunks/base.js +132 -0
  164. package/dist/a_chunks/common.js +28 -0
  165. package/dist/a_chunks/diagnoses-week.js +20 -29
  166. package/dist/a_chunks/index.js +474 -833
  167. package/dist/a_chunks/index1.js +4 -4
  168. package/dist/a_chunks/index12.js +4 -4
  169. package/dist/a_chunks/index2.js +5 -107
  170. package/dist/a_chunks/index3.js +32 -36
  171. package/dist/a_chunks/index4.js +17 -26
  172. package/dist/a_chunks/index5.js +8 -14
  173. package/dist/a_chunks/request.js +4 -41
  174. package/dist/a_chunks/utils.js +8 -9
  175. package/dist/a_chunks/utils2.js +1 -2
  176. package/dist/a_chunks//344/270/252/344/272/272/345/217/262.js +28 -0
  177. package/dist/a_chunks//345/255/225/344/272/247/345/217/262.js +0 -1
  178. package/dist/a_chunks//351/253/230/345/215/261/347/256/241/347/220/206.js +0 -1
  179. package/dist/index.js +6 -19
  180. package/dist/pages/config-table/panel2/index.d.ts +4 -0
  181. package/dist/pages/config-table/utils.d.ts +2 -2
  182. package/dist/pages/follow-up/questionnaire3/index.d.ts +2 -1
  183. package/dist/pages/gynecological-diseases/women/list/config/table.d.ts +1 -1
  184. package/dist/pages/highrisk-management/list/form_config.d.ts +2 -1
  185. package/dist/pages/knowledge/list/form_config.d.ts +4 -0
  186. package/dist/pages/knowledge/list/index.d.ts +2 -0
  187. package/dist/pages/my-knowledge/components/query.d.ts +1 -1
  188. package/dist/pages/pregnant-school/personal-records/.list/config/table.d.ts +1 -1
  189. package/dist/pages/pregnant-school/personal-records/.list/index.d.ts +3 -3
  190. package/dist/pages/pregnant-school/personal-statistics/.list/index.d.ts +23 -2
  191. package/dist/pages/pregnant-school/statistics/.list/config/table.d.ts +1 -1
  192. package/dist/pages/pregnant-school/statistics/.list/index.d.ts +3 -3
  193. package/dist/pages/prenatal-visit/physical-sign/list/bf_default.d.ts +2 -1
  194. package/dist/pages/prenatal-visit/physical-sign/list/components/Query.d.ts +1 -1
  195. package/dist/pages/prenatal-visit/pregnancy/common.d.ts +2 -0
  196. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.api/curve.d.ts +2 -9
  197. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.api/home.d.ts +3 -3
  198. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.api/image.d.ts +1 -1
  199. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.api/index.d.ts +17 -7
  200. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.api/initial.d.ts +3 -2
  201. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.api/survey.d.ts +1 -1
  202. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.base/Inner.d.ts +0 -2
  203. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.base/husband/form_config.d.ts +3 -2
  204. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.base/pregnancy/form_config.d.ts +3 -2
  205. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.birth-plan/Inner.d.ts +3 -0
  206. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.birth-plan/index.d.ts +3 -0
  207. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.case-report/ComponentPanl.d.ts +12 -0
  208. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.case-report/Inner.d.ts +3 -0
  209. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.case-report/constant_new.d.ts +45 -0
  210. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.case-report/form_config/base.d.ts +2 -0
  211. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.case-report/form_config//344/271/231/350/202/235/346/204/237/346/237/223/345/255/225/344/272/247/345/246/207/345/217/212/346/211/200/347/224/237/346/226/260/347/224/237/345/204/277/344/270/252/346/241/210/347/231/273/350/256/260/345/215/241.d.ts +4 -0
  212. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.case-report/form_config//346/242/205/346/257/222/346/204/237/346/237/223/345/255/225/344/272/247/345/246/207/345/237/272/346/234/254/346/203/205/345/206/265.d.ts +4 -0
  213. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.case-report/form_config//350/211/276/346/273/213/347/227/205/346/204/237/346/237/223/345/246/207/345/245/263/345/237/272/346/234/254/346/203/205/345/206/265.d.ts +4 -0
  214. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.case-report/index.d.ts +3 -0
  215. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.components/Diagnoses/index.d.ts +1 -0
  216. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.components/Diagnoses/template/Inner.d.ts +2 -13
  217. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.components/Diagnoses/template/index.d.ts +3 -1
  218. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/DoctorEnd_FurtherPage.d.ts +1 -8
  219. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherForm/config.d.ts +0 -1
  220. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherForm/form_config/Form.d.ts +3 -1
  221. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherForm/index.d.ts +1 -5
  222. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherSidebar/index.d.ts +0 -5
  223. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherSidebar/management-plan/Inner.d.ts +1 -1
  224. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/components/FurtherTable/index.d.ts +2 -0
  225. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/index.d.ts +1 -1
  226. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.further/methods/request.d.ts +0 -2
  227. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.home-care/BloodGlucose/record/form_config.d.ts +4 -0
  228. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.home-care/BloodGlucose/record/index.d.ts +4 -0
  229. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.home-care/BloodGlucose/static/form_config.d.ts +4 -0
  230. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.home-care/BloodGlucose/static/index.d.ts +3 -0
  231. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.home-care/BloodPressure/record/form_config.d.ts +4 -0
  232. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.home-care/BloodPressure/record/index.d.ts +4 -0
  233. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.home-care/BloodPressure/static/form_config.d.ts +4 -0
  234. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.home-care/BloodPressure/static/index.d.ts +3 -0
  235. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.home-care/FetalMovement/record/form_config.d.ts +4 -0
  236. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.home-care/FetalMovement/record/index.d.ts +4 -0
  237. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.home-care/FetalMovement/static/form_config.d.ts +4 -0
  238. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.home-care/FetalMovement/static/index.d.ts +3 -0
  239. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.home-care/Seg.d.ts +6 -0
  240. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.home-care/index.d.ts +2 -12
  241. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/DoctorEnd_Initial.d.ts +2 -13
  242. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/components/JianYanJianCha/index.d.ts +1 -1
  243. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/components/QiTaBingshi/index.d.ts +1 -1
  244. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/components/TiGeJianCha/index.d.ts +1 -1
  245. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/components/YiBanBingShi/index.d.ts +1 -1
  246. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/components/YuChanQi/config.d.ts +4 -0
  247. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/components/YuChanQi/index.d.ts +3 -6
  248. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/components/YunChanShi/index.d.ts +1 -1
  249. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/components/ZhenDuanChuLi/config.d.ts +1 -1
  250. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/components/ZhenDuanChuLi/index.d.ts +4 -12
  251. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/components/ZhuanKeJianCha/index.d.ts +3 -6
  252. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/methods/request.d.ts +2 -4
  253. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.postpartum/DoctorEnd_Postpartum.d.ts +12 -0
  254. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.postpartum/components/FurtherForm/config.d.ts +6 -0
  255. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.postpartum/components/FurtherForm/form_config/Form.d.ts +10 -0
  256. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.postpartum/components/FurtherForm/form_config/default.d.ts +4 -0
  257. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.postpartum/components/FurtherForm/index.d.ts +16 -0
  258. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.postpartum/components/FurtherSidebar/index.d.ts +12 -0
  259. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.postpartum/components/FurtherTable/config.d.ts +3 -0
  260. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.postpartum/components/FurtherTable/index.d.ts +12 -0
  261. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.postpartum/index.d.ts +3 -0
  262. package/dist/pages/prenatal-visit/pregnancy/doctor-end/out.d.ts +11 -7
  263. package/dist/pages/prenatal-visit/pregnancy/list/config/table.d.ts +1 -1
  264. package/dist/pages/prenatal-visit/pregnancy/nurse-end/archival-information/form//344/270/252/344/272/272/345/217/262.d.ts +1 -0
  265. package/dist/pages/prenatal-visit/pregnancy/nurse-end/archival-information/form//346/227/242/345/276/200/345/217/262.d.ts +1 -71
  266. package/dist/pages/prenatal-visit/pregnancy/nurse-end/archival-information/form//346/234/254/346/254/241/345/255/225/344/272/247/344/277/241/346/201/257.d.ts +2 -1
  267. package/dist/pages/prenatal-visit/pregnancy/nurse-end/close-archives/components/Form.d.ts +1 -1
  268. package/dist/pages/prenatal-visit/pregnancy/nurse-end/close-archives/form_config.d.ts +3 -2
  269. package/dist/pages/prenatal-visit/pregnancy/nurse-end/further-visit/config/table copy.d.ts +86 -0
  270. package/dist/pages/prenatal-visit/pregnancy/nurse-end/further-visit/config/table.d.ts +4 -86
  271. package/dist/pages/prenatal-visit/pregnancy/nurse-end/further-visit/index1.d.ts +7 -114
  272. package/dist/pages/prenatal-visit/pregnancy/nurse-end/outercourt-report/components/Table.d.ts +1 -1
  273. package/dist/pages/prenatal-visit/pregnancy/nurse-end/outercourt-report/index1.d.ts +1 -1
  274. package/dist/pages/prenatal-visit/report/list/Inner.d.ts +4 -0
  275. package/dist/pages/prenatal-visit/report/list/form_config.d.ts +4 -0
  276. package/dist/pages/prenatal-visit/report/list/index copy 2.d.ts +10 -0
  277. package/dist/pages/prenatal-visit/report/list/index copy.d.ts +1 -1
  278. package/dist/pages/prenatal-visit/report/list/index.d.ts +2 -9
  279. package/dist/pages/prenatal-visit/report/list/types.d.ts +5 -0
  280. package/dist/pages/referral-management/referral-in/add/index copy.d.ts +11 -0
  281. package/dist/pages/referral-management/referral-in/add/index.d.ts +5 -11
  282. package/dist/pages/referral-management/referral-in/list/OpenReferralInEdit.d.ts +13 -0
  283. package/dist/pages/referral-management/referral-in/list/config/table.d.ts +3 -37
  284. package/dist/pages/referral-management/referral-in/list/index copy.d.ts +26 -0
  285. package/dist/pages/referral-management/referral-in/list/index.d.ts +2 -1
  286. package/dist/pages/referral-management/referral-out/list/config/table.d.ts +19 -1
  287. package/dist/pages/referral-management/referral-out/list/index copy.d.ts +99 -0
  288. package/dist/pages/referral-management/referral-out/list/index.d.ts +2 -1
  289. package/dist/pages/statistics/further-visit/detail/index.d.ts +2 -0
  290. package/dist/pages/statistics/further-visit/detail/serch_config.d.ts +4 -0
  291. package/dist/pages/statistics/further-visit/detail/table_config.d.ts +4 -0
  292. package/dist/pages/statistics/further-visit/list/index.d.ts +2 -0
  293. package/dist/pages/statistics/further-visit/list/serch_config.d.ts +4 -0
  294. package/dist/pages/statistics/further-visit/list/table_config.d.ts +4 -0
  295. package/dist/pages/system/role/components/RolesModal.d.ts +2 -2
  296. package/dist/pages/system/role/config/form.d.ts +4 -2
  297. package/dist/pages/system/role/index.d.ts +1 -1
  298. package/dist/pages/system/user/components/UsersModal.d.ts +2 -2
  299. package/dist/pages/system/user/config/adapter.d.ts +1 -1
  300. package/dist/pages/system/user/config/table.d.ts +1 -1
  301. package/dist/pages/system/user/index.d.ts +3 -3
  302. package/dist/pages/system-config/form_config.d.ts +1 -1
  303. package/dist/pages/task-logs/components/Query.d.ts +1 -1
  304. package/dist/pages/task-logs/config/form.d.ts +2 -2
  305. package/dist/pages/task-logs/config/table.d.ts +2 -2
  306. package/dist/pages/task-logs/index.d.ts +2 -2
  307. package/dist/pages/tasks/list/config/adapter.d.ts +1 -1
  308. package/dist/pages/tasks/list/config/table.d.ts +1 -1
  309. package/dist/pages/tasks/list/form_config.d.ts +4 -0
  310. package/dist/pages/tasks/list/index copy.d.ts +3 -0
  311. package/dist/pages/tasks/list/index.d.ts +2 -57
  312. package/dist/pages/tasks/list/search_config.d.ts +4 -0
  313. package/dist/pages/test/form_config.d.ts +4 -0
  314. package/dist/pages/test/index.d.ts +1 -1
  315. package/dist/pages/visit-management/telephone-followup/form_config.d.ts +4 -0
  316. package/dist/pages/visit-management/telephone-followup/index.d.ts +2 -0
  317. package/dist/routes/index.d.ts +8 -4
  318. package/dist/routes/meta.d.ts +8 -4
  319. package/package.json +30 -13
  320. package/dist/a_chunks/.root.js.map +0 -1
  321. package/dist/a_chunks/.root10.js.map +0 -1
  322. package/dist/a_chunks/.root100.js.map +0 -1
  323. package/dist/a_chunks/.root101.js.map +0 -1
  324. package/dist/a_chunks/.root102.js.map +0 -1
  325. package/dist/a_chunks/.root103.js.map +0 -1
  326. package/dist/a_chunks/.root104.js.map +0 -1
  327. package/dist/a_chunks/.root105.js.map +0 -1
  328. package/dist/a_chunks/.root106.js.map +0 -1
  329. package/dist/a_chunks/.root107.js.map +0 -1
  330. package/dist/a_chunks/.root108.js.map +0 -1
  331. package/dist/a_chunks/.root109.js.map +0 -1
  332. package/dist/a_chunks/.root11.js.map +0 -1
  333. package/dist/a_chunks/.root110.js.map +0 -1
  334. package/dist/a_chunks/.root111.js.map +0 -1
  335. package/dist/a_chunks/.root112.js.map +0 -1
  336. package/dist/a_chunks/.root113.js.map +0 -1
  337. package/dist/a_chunks/.root114.js.map +0 -1
  338. package/dist/a_chunks/.root12.js.map +0 -1
  339. package/dist/a_chunks/.root13.js.map +0 -1
  340. package/dist/a_chunks/.root14.js.map +0 -1
  341. package/dist/a_chunks/.root15.js.map +0 -1
  342. package/dist/a_chunks/.root16.js.map +0 -1
  343. package/dist/a_chunks/.root17.js.map +0 -1
  344. package/dist/a_chunks/.root18.js.map +0 -1
  345. package/dist/a_chunks/.root19.js.map +0 -1
  346. package/dist/a_chunks/.root2.js.map +0 -1
  347. package/dist/a_chunks/.root20.js.map +0 -1
  348. package/dist/a_chunks/.root21.js.map +0 -1
  349. package/dist/a_chunks/.root22.js.map +0 -1
  350. package/dist/a_chunks/.root23.js.map +0 -1
  351. package/dist/a_chunks/.root24.js.map +0 -1
  352. package/dist/a_chunks/.root25.js.map +0 -1
  353. package/dist/a_chunks/.root26.js.map +0 -1
  354. package/dist/a_chunks/.root27.js.map +0 -1
  355. package/dist/a_chunks/.root28.js.map +0 -1
  356. package/dist/a_chunks/.root29.js.map +0 -1
  357. package/dist/a_chunks/.root3.js.map +0 -1
  358. package/dist/a_chunks/.root30.js.map +0 -1
  359. package/dist/a_chunks/.root31.js.map +0 -1
  360. package/dist/a_chunks/.root32.js.map +0 -1
  361. package/dist/a_chunks/.root33.js.map +0 -1
  362. package/dist/a_chunks/.root34.js.map +0 -1
  363. package/dist/a_chunks/.root35.js.map +0 -1
  364. package/dist/a_chunks/.root36.js.map +0 -1
  365. package/dist/a_chunks/.root37.js.map +0 -1
  366. package/dist/a_chunks/.root38.js.map +0 -1
  367. package/dist/a_chunks/.root39.js.map +0 -1
  368. package/dist/a_chunks/.root4.js.map +0 -1
  369. package/dist/a_chunks/.root40.js.map +0 -1
  370. package/dist/a_chunks/.root41.js.map +0 -1
  371. package/dist/a_chunks/.root42.js.map +0 -1
  372. package/dist/a_chunks/.root43.js.map +0 -1
  373. package/dist/a_chunks/.root44.js.map +0 -1
  374. package/dist/a_chunks/.root45.js.map +0 -1
  375. package/dist/a_chunks/.root46.js.map +0 -1
  376. package/dist/a_chunks/.root47.js.map +0 -1
  377. package/dist/a_chunks/.root48.js.map +0 -1
  378. package/dist/a_chunks/.root49.js.map +0 -1
  379. package/dist/a_chunks/.root5.js.map +0 -1
  380. package/dist/a_chunks/.root50.js.map +0 -1
  381. package/dist/a_chunks/.root51.js.map +0 -1
  382. package/dist/a_chunks/.root52.js.map +0 -1
  383. package/dist/a_chunks/.root53.js.map +0 -1
  384. package/dist/a_chunks/.root54.js.map +0 -1
  385. package/dist/a_chunks/.root55.js.map +0 -1
  386. package/dist/a_chunks/.root56.js.map +0 -1
  387. package/dist/a_chunks/.root57.js.map +0 -1
  388. package/dist/a_chunks/.root58.js.map +0 -1
  389. package/dist/a_chunks/.root59.js.map +0 -1
  390. package/dist/a_chunks/.root6.js.map +0 -1
  391. package/dist/a_chunks/.root60.js.map +0 -1
  392. package/dist/a_chunks/.root61.js.map +0 -1
  393. package/dist/a_chunks/.root62.js.map +0 -1
  394. package/dist/a_chunks/.root63.js.map +0 -1
  395. package/dist/a_chunks/.root64.js.map +0 -1
  396. package/dist/a_chunks/.root65.js.map +0 -1
  397. package/dist/a_chunks/.root66.js.map +0 -1
  398. package/dist/a_chunks/.root67.js.map +0 -1
  399. package/dist/a_chunks/.root68.js.map +0 -1
  400. package/dist/a_chunks/.root69.js.map +0 -1
  401. package/dist/a_chunks/.root7.js.map +0 -1
  402. package/dist/a_chunks/.root70.js.map +0 -1
  403. package/dist/a_chunks/.root71.js.map +0 -1
  404. package/dist/a_chunks/.root72.js.map +0 -1
  405. package/dist/a_chunks/.root73.js.map +0 -1
  406. package/dist/a_chunks/.root74.js.map +0 -1
  407. package/dist/a_chunks/.root75.js.map +0 -1
  408. package/dist/a_chunks/.root76.js.map +0 -1
  409. package/dist/a_chunks/.root77.js.map +0 -1
  410. package/dist/a_chunks/.root78.js.map +0 -1
  411. package/dist/a_chunks/.root79.js.map +0 -1
  412. package/dist/a_chunks/.root8.js.map +0 -1
  413. package/dist/a_chunks/.root80.js.map +0 -1
  414. package/dist/a_chunks/.root81.js.map +0 -1
  415. package/dist/a_chunks/.root82.js.map +0 -1
  416. package/dist/a_chunks/.root83.js.map +0 -1
  417. package/dist/a_chunks/.root84.js.map +0 -1
  418. package/dist/a_chunks/.root85.js.map +0 -1
  419. package/dist/a_chunks/.root86.js.map +0 -1
  420. package/dist/a_chunks/.root87.js.map +0 -1
  421. package/dist/a_chunks/.root88.js.map +0 -1
  422. package/dist/a_chunks/.root89.js.map +0 -1
  423. package/dist/a_chunks/.root9.js.map +0 -1
  424. package/dist/a_chunks/.root90.js.map +0 -1
  425. package/dist/a_chunks/.root91.js.map +0 -1
  426. package/dist/a_chunks/.root92.js.map +0 -1
  427. package/dist/a_chunks/.root93.js.map +0 -1
  428. package/dist/a_chunks/.root94.js.map +0 -1
  429. package/dist/a_chunks/.root95.js.map +0 -1
  430. package/dist/a_chunks/.root96.js.map +0 -1
  431. package/dist/a_chunks/.root97.js.map +0 -1
  432. package/dist/a_chunks/.root98.js.map +0 -1
  433. package/dist/a_chunks/.root99.js.map +0 -1
  434. package/dist/a_chunks/DoctorEnd_FurtherPage.js.map +0 -1
  435. package/dist/a_chunks/HistoryTable.js.map +0 -1
  436. package/dist/a_chunks/bindLifecycle.js +0 -234
  437. package/dist/a_chunks/bindLifecycle.js.map +0 -1
  438. package/dist/a_chunks/diagnoses-week.js.map +0 -1
  439. package/dist/a_chunks/extends.js +0 -11
  440. package/dist/a_chunks/extends.js.map +0 -1
  441. package/dist/a_chunks/hoist-non-react-statics.cjs.js +0 -382
  442. package/dist/a_chunks/hoist-non-react-statics.cjs.js.map +0 -1
  443. package/dist/a_chunks/index.js.map +0 -1
  444. package/dist/a_chunks/index1.js.map +0 -1
  445. package/dist/a_chunks/index12.js.map +0 -1
  446. package/dist/a_chunks/index2.js.map +0 -1
  447. package/dist/a_chunks/index3.js.map +0 -1
  448. package/dist/a_chunks/index4.js.map +0 -1
  449. package/dist/a_chunks/index5.js.map +0 -1
  450. package/dist/a_chunks/index6.js +0 -754
  451. package/dist/a_chunks/index6.js.map +0 -1
  452. package/dist/a_chunks/react-router.js +0 -1890
  453. package/dist/a_chunks/react-router.js.map +0 -1
  454. package/dist/a_chunks/request.js.map +0 -1
  455. package/dist/a_chunks/utils.js.map +0 -1
  456. package/dist/a_chunks/utils2.js.map +0 -1
  457. package/dist/a_chunks//345/255/225/344/272/247/345/217/262.js.map +0 -1
  458. package/dist/a_chunks//351/253/230/345/215/261/347/256/241/347/220/206.js.map +0 -1
  459. package/dist/index.js.map +0 -1
  460. package/dist/pages/follow-up/questionnaire3/Inner.d.ts +0 -6
  461. package/dist/pages/follow-up/questionnaire3/create/Step2Right.d.ts +0 -11
  462. package/dist/pages/follow-up/questionnaire3/create/common.d.ts +0 -46
  463. package/dist/pages/follow-up/questionnaire3/create/fakeData.d.ts +0 -6
  464. package/dist/pages/follow-up/questionnaire3/create/question-item.d.ts +0 -14
  465. package/dist/pages/follow-up/questionnaire3/create/step1.d.ts +0 -9
  466. package/dist/pages/follow-up/questionnaire3/create/step2.d.ts +0 -10
  467. package/dist/pages/follow-up/questionnaire3/create/step3.d.ts +0 -8
  468. package/dist/pages/follow-up/questionnaire3/create/step4.d.ts +0 -8
  469. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.components/DiagReminder/index.d.ts +0 -13
  470. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.components/PreventPreeclampsia/index.d.ts +0 -8
  471. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.components/ResultImport/index.d.ts +0 -11
  472. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.home-care/components/BloodGlucose/index.d.ts +0 -21
  473. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.home-care/components/BloodPressure/index.d.ts +0 -21
  474. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.home-care/components/FetalMovement/index.d.ts +0 -34
  475. package/dist/pages/prenatal-visit/pregnancy/doctor-end/.initial/func.d.ts +0 -33
  476. package/dist/pages/system-config/config.d.ts +0 -12
  477. package/dist/pages/tasks/test/index.d.ts +0 -2
@@ -1,1661 +1,91 @@
1
- import _typeof from "@babel/runtime/helpers/typeof";
2
- import 'antd/es/steps/style';
3
- import _Steps from 'antd/es/steps';
4
- import 'antd/es/message/style';
5
- import _message from 'antd/es/message';
6
- import { s as styleInject, a as __spreadArray, d as __assign, b as __awaiter, c as __generator } from './index.js';
7
- import React__default, { useRef, useState, Fragment, useEffect } from 'react';
8
- import 'antd/es/list/style';
9
- import _List from 'antd/es/list';
10
- import 'antd/es/card/style';
11
- import _Card from 'antd/es/card';
12
- import { EditOutlined, CopyOutlined, DeleteOutlined, PieChartOutlined, CloseCircleOutlined, StarOutlined, CheckCircleOutlined, BorderOutlined, CaretDownOutlined, MobileOutlined, DesktopOutlined, TabletOutlined } from '@ant-design/icons';
13
- import { mchcEnv } from '@lm_fe/env';
14
- import 'antd/es/row/style';
15
- import _Row from 'antd/es/row';
16
- import 'antd/es/button/style';
17
- import _Button from 'antd/es/button';
18
- import 'antd/es/tabs/style';
19
- import _Tabs from 'antd/es/tabs';
20
- import 'antd/es/form/style';
21
- import _Form from 'antd/es/form';
22
- import 'antd/es/input/style';
23
- import _Input from 'antd/es/input';
24
- import 'antd/es/col/style';
25
- import _Col from 'antd/es/col';
26
- import { mchcEnums, SMchc_Questionnaire } from '@lm_fe/service';
27
- import 'antd/es/input-number/style';
28
- import _InputNumber from 'antd/es/input-number';
29
- import { LazyAntd, SimpleForm } from '@lm_fe/components';
30
- import 'antd/es/checkbox/style';
31
- import _Checkbox from 'antd/es/checkbox';
32
- import 'antd/es/rate/style';
33
- import _Rate from 'antd/es/rate';
34
- import 'antd/es/radio/style';
35
- import _Radio from 'antd/es/radio';
36
- import 'antd/es/space/style';
37
- import _Space from 'antd/es/space';
38
- import 'lodash/size';
39
- import 'lodash/get';
40
- import '@lm_fe/utils';
41
- import 'lodash/orderBy';
42
- import 'lodash/map';
43
- import 'antd/es/collapse/style';
44
- import 'antd/es/collapse';
45
- import 'antd/es/badge/style';
46
- import 'antd/es/badge';
47
- import 'lodash/assign';
1
+ import { _ as __awaiter, a as __generator } from './index.js';
2
+ import { MyBaseList } from '@lm_fe/pages';
3
+ import { getMomentRange, formatDate, request } from '@lm_fe/utils';
4
+ import { Button } from 'antd';
5
+ import React from 'react';
6
+ import '@lm_fe/env';
48
7
  import '@lm_fe/components_m';
49
- import '@lm_fe/pages';
50
- var css_248z$3 = ".step1-module_questionnaire-steps__tVCBT {\n background-color: white;\n height: 70px;\n display: flex;\n align-items: center;\n padding: 0 15% !important;\n margin-bottom: 8px;\n}\n.step1-module_questionnaire-steps-content__eFPGF {\n padding: 16px;\n background-color: white;\n}\n.step1-module_follow-up-step1__xlcv7 .ant-col {\n height: 100% !important;\n}\n.step1-module_follow-up-step1__xlcv7 .ant-list-item {\n height: 100%;\n border-radius: 4px;\n}\n.step1-module_follow-up-step1__xlcv7 .ant-list-item .step1-module_ant-card-meta-detail__ZT-VV .step1-module_ant-card-meta-description__cX5KE,\n.step1-module_follow-up-step1__xlcv7 .ant-list-item .step1-module_ant-card-meta-detail__ZT-VV .step1-module_ant-card-actions__-RQUA,\n.step1-module_follow-up-step1__xlcv7 .ant-list-item .step1-module_ant-card-meta-detail__ZT-VV .step1-module_ant-card-meta-title__K1g1r {\n color: #333;\n}\n.step1-module_follow-up-step1__xlcv7 .ant-list-item .step1-module_ant-card-actions__-RQUA > li {\n color: #333;\n}\n.step1-module_follow-up-step1__xlcv7 .step1-module_item-top__ai1OV {\n text-align: center;\n}\n.step1-module_follow-up-step1__xlcv7 .step1-module_item-top-img__t15PZ {\n height: 100px;\n width: auto;\n margin: 10px 0;\n}\n.step1-module_follow-up-new-item__69jcy {\n width: 100%;\n height: 94%;\n padding-top: 20px;\n color: #5050e8;\n background-color: #fff;\n border-color: red;\n border-radius: 2px;\n display: flex;\n align-items: center;\n flex-direction: column;\n background-image: url('/lm_imgs/qn/questionnaire-item-bg.png');\n background-repeat: no-repeat;\n background-size: cover;\n background-position: center;\n cursor: pointer;\n}\n.step1-module_follow-up-new-item__69jcy:hover {\n border-color: transparent;\n box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);\n}\n.step1-module_follow-up-new-item__69jcy span {\n display: block;\n font-weight: bold;\n font-size: 18px;\n}\n.step1-module_follow-up-new-item__69jcy .step1-module_anticon__sOqE7 {\n font-size: 56px;\n}\n";
51
- var styles$3 = {
52
- "questionnaire-steps": "step1-module_questionnaire-steps__tVCBT",
53
- "questionnaire-steps-content": "step1-module_questionnaire-steps-content__eFPGF",
54
- "follow-up-step1": "step1-module_follow-up-step1__xlcv7",
55
- "ant-card-meta-detail": "step1-module_ant-card-meta-detail__ZT-VV",
56
- "ant-card-meta-description": "step1-module_ant-card-meta-description__cX5KE",
57
- "ant-card-actions": "step1-module_ant-card-actions__-RQUA",
58
- "ant-card-meta-title": "step1-module_ant-card-meta-title__K1g1r",
59
- "item-top": "step1-module_item-top__ai1OV",
60
- "item-top-img": "step1-module_item-top-img__t15PZ",
61
- "follow-up-new-item": "step1-module_follow-up-new-item__69jcy",
62
- "anticon": "step1-module_anticon__sOqE7"
63
- };
64
- styleInject(css_248z$3);
65
- var itemBgColors = ['#FFEFDD', '#FBDDDD', '#DDF3FB', '#DDFBE4', '#E8DDFB'];
66
- function Step1(props) {
67
- var handleInitQuestions = props.handleInitQuestions,
68
- templateList = props.templateList,
69
- onDeleteTemplate = props.onDeleteTemplate;
70
- function handleNewTemplate() {
71
- handleInitQuestions({});
72
- }
73
- return /*#__PURE__*/React__default.createElement("div", {
74
- className: styles$3["follow-up-step1"]
75
- }, /*#__PURE__*/React__default.createElement(_List, {
76
- rowKey: function rowKey(item) {
77
- return (item === null || item === void 0 ? void 0 : item.id) || -1;
8
+ import '@lm_fe/service';
9
+ import 'lodash';
10
+ import '@lm_fe/components';
11
+ function BreastCancerDataReport(prop) {
12
+ var _this = this;
13
+ return /*#__PURE__*/React.createElement(MyBaseList, {
14
+ name: "/api/two/cancer/screening/findAllTwoCancerReportedLog",
15
+ searchParams: {},
16
+ needChecked: true,
17
+ useListSourceCount: true,
18
+ initialSearchValue: {
19
+ validateDate: getMomentRange().近一周.map(formatDate)
78
20
  },
79
- grid: {
80
- gutter: 24,
81
- column: 4
82
- },
83
- dataSource: __spreadArray([null], templateList, true),
84
- renderItem: function renderItem(item) {
85
- return item ? /*#__PURE__*/React__default.createElement(_List.Item, {
86
- key: item.id
87
- }, /*#__PURE__*/React__default.createElement(_Card, {
88
- hoverable: true,
89
- bodyStyle: {
90
- paddingBottom: 20
91
- },
21
+ searchConfig: [{
22
+ label: '登记日期',
23
+ name: 'registerDate',
24
+ inputType: 'rangeDate'
25
+ }, {
26
+ label: '就诊卡号',
27
+ name: 'outpatientNO',
28
+ inputType: 'Input'
29
+ }, {
30
+ label: '姓名',
31
+ name: 'name',
32
+ inputType: 'Input'
33
+ }, {
34
+ label: '上报状态',
35
+ name: 'uploadState',
36
+ inputType: 'MS',
37
+ inputProps: {
38
+ uniqueKey: '上报状态'
39
+ }
40
+ }],
41
+ showAction: false,
42
+ showAdd: false,
43
+ RenderBtns: function RenderBtns(ctx) {
44
+ var selectRows = ctx.getCheckRows();
45
+ return /*#__PURE__*/React.createElement(Button, {
46
+ disabled: !selectRows.length,
92
47
  onClick: function onClick() {
93
- handleInitQuestions(item);
94
- },
95
- cover: /*#__PURE__*/React__default.createElement("div", {
96
- className: styles$3["item-top"],
97
- style: {
98
- backgroundColor: itemBgColors[Math.round(Math.random() * 5)] || '#FFEFDD'
99
- }
100
- }, /*#__PURE__*/React__default.createElement("img", {
101
- className: styles$3["item-top-img"],
102
- src: mchcEnv.gs(function (_) {
103
- return _.lm_imgs.qn['questionnaire-item-top.png'];
104
- }),
105
- alt: ""
106
- })),
107
- actions: [/*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(EditOutlined, {
108
- key: "edit"
109
- }), "\u7F16\u8F91"), /*#__PURE__*/React__default.createElement("div", {
110
- onClick: function onClick(e) {
111
- e.stopPropagation();
112
- handleInitQuestions(item, true);
113
- }
114
- }, /*#__PURE__*/React__default.createElement(CopyOutlined, {
115
- key: "copy"
116
- }), "\u590D\u5236"), /*#__PURE__*/React__default.createElement("div", {
117
- onClick: function onClick(e) {
118
- e.stopPropagation();
119
- onDeleteTemplate(item);
120
- }
121
- }, /*#__PURE__*/React__default.createElement(DeleteOutlined, {
122
- key: "delete"
123
- }), "\u5220\u9664"), /*#__PURE__*/React__default.createElement("div", {
124
- onClick: function onClick(e) {
125
- e.stopPropagation();
126
- handleInitQuestions(item, false, 3);
127
- }
128
- }, /*#__PURE__*/React__default.createElement(PieChartOutlined, {
129
- key: "delete"
130
- }), "\u7EDF\u8BA1")]
131
- }, /*#__PURE__*/React__default.createElement(_Card.Meta, {
132
- style: {
133
- cursor: 'pointer'
134
- },
135
- title: item.questionnaireTitle,
136
- description: /*#__PURE__*/React__default.createElement("div", {
137
- title: item.description,
138
- style: {
139
- overflow: 'hidden',
140
- textOverflow: 'ellipsis',
141
- whiteSpace: 'nowrap'
142
- }
143
- }, item.description)
144
- }))) : /*#__PURE__*/React__default.createElement(_List.Item, null, /*#__PURE__*/React__default.createElement("div", {
145
- className: styles$3["follow-up-new-item"],
146
- onClick: handleNewTemplate
147
- }, /*#__PURE__*/React__default.createElement("span", null, "\u65B0\u5EFA\u8C03\u67E5\u95EE\u5377")));
148
- }
149
- }));
150
- }
151
- var QuestionTypeEnums = mchcEnums.Questionnaire.type;
152
- var chooseArray = [{
153
- title: '单选题',
154
- iconImg: mchcEnv.gs(function (_) {
155
- return _.lm_imgs.qn['radio.png'];
156
- })
157
- }, {
158
- title: '多选题',
159
- iconImg: mchcEnv.gs(function (_) {
160
- return _.lm_imgs.qn['checkbox.png'];
161
- })
162
- }, {
163
- title: '下拉题',
164
- iconImg: mchcEnv.gs(function (_) {
165
- return _.lm_imgs.qn['select.png'];
166
- })
167
- }, {
168
- title: '填空题',
169
- iconImg: mchcEnv.gs(function (_) {
170
- return _.lm_imgs.qn['vacancy.png'];
171
- })
172
- }];
173
- var starArray = [{
174
- title: '打分题',
175
- iconImg: mchcEnv.gs(function (_) {
176
- return _.lm_imgs.qn['stars.png'];
177
- })
178
- }];
179
- var descArray = [{
180
- title: '段落说明',
181
- iconImg: mchcEnv.gs(function (_) {
182
- return _.lm_imgs.qn['description.png'];
183
- })
184
- }];
185
- var labelsArray = __spreadArray(__spreadArray(__spreadArray([], chooseArray, true), starArray, true), descArray, true);
186
- var labelsArrayMapping = labelsArray.reduce(function (a, b) {
187
- var _a;
188
- return Object.assign(a, (_a = {}, _a[b.title] = b, _a));
189
- }, {});
190
- var defaultSelectOptions = [{
191
- optionIndex: 1000,
192
- optionScore: 0,
193
- optionTitle: '选项1'
194
- }, {
195
- optionIndex: 1001,
196
- optionScore: 0,
197
- optionTitle: '选项2'
198
- }];
199
- var defaultOtherOptions = [{
200
- optionIndex: 1000,
201
- optionScore: 0,
202
- optionTitle: 'contain'
203
- }];
204
- var initQuestionMap = {
205
- '单选题': {
206
- questionOptionList: defaultSelectOptions,
207
- questionTitle: '',
208
- questionType: QuestionTypeEnums.getValue('单选题')
209
- },
210
- '多选题': {
211
- questionOptionList: defaultSelectOptions,
212
- questionTitle: '',
213
- questionType: QuestionTypeEnums.getValue('多选题')
214
- },
215
- '下拉题': {
216
- questionOptionList: defaultSelectOptions,
217
- questionTitle: '',
218
- questionType: QuestionTypeEnums.getValue('下拉题')
219
- },
220
- '填空题': {
221
- questionOptionList: defaultOtherOptions,
222
- questionTitle: '',
223
- questionType: QuestionTypeEnums.getValue('填空题')
224
- },
225
- '打分题': {
226
- questionOptionList: defaultOtherOptions,
227
- questionTitle: '',
228
- questionType: QuestionTypeEnums.getValue('打分题')
229
- },
230
- '段落说明': {
231
- questionOptionList: defaultOtherOptions,
232
- questionTitle: '',
233
- questionType: QuestionTypeEnums.getValue('段落说明')
234
- }
235
- };
236
- function getTargetQuestionInGroup(allQuestions, groupIndex, group) {
237
- if (typeof groupIndex !== 'number' || !group) return undefined;
238
- var allIdx = allQuestions.map(function (_) {
239
- return _.questionIndex;
240
- });
241
- var list = group.questionIndexList.filter(function (_) {
242
- return allIdx.includes(_);
243
- });
244
- var realQuestionIndex = list[groupIndex];
245
- var activeQuestion = typeof realQuestionIndex === 'number' ? allQuestions.find(function (_) {
246
- return _.questionIndex === realQuestionIndex;
247
- }) : undefined;
248
- return activeQuestion;
249
- }
250
- function getQuestionsInGroup(allQuestions, groups) {
251
- var _a;
252
- var data = ((_a = groups === null || groups === void 0 ? void 0 : groups.questionIndexList) === null || _a === void 0 ? void 0 : _a.map(function (_) {
253
- return allQuestions.find(function (q) {
254
- return q.questionIndex === _;
255
- });
256
- }).filter(function (_) {
257
- return !!_;
258
- })) || [];
259
- return data;
260
- }
261
- var css_248z$2 = ".step2-module_questionnaire-steps__2fRCr {\n background-color: white;\n height: 70px;\n display: flex;\n align-items: center;\n padding: 0 15% !important;\n margin-bottom: 8px;\n}\n.step2-module_questionnaire-steps-content__uzsSb {\n padding: 16px;\n background-color: white;\n}\n.step2-module_question-step-two__panel-question__Oydc6 {\n height: auto;\n position: fixed;\n width: 15%;\n}\n.step2-module_question-step-two__panel-question-card__KXAYi {\n font-size: 16px;\n}\n.step2-module_question-step-two__panel-question-card-item__ZHOVW {\n display: flex;\n border-bottom: 1px solid #edeef5;\n margin: 16px 0;\n}\n.step2-module_question-step-two__panel-question-card-item__title__lBYEW {\n display: block;\n font-weight: 400;\n flex: 1;\n}\n.step2-module_question-step-two__panel-question-card-item__btns__HSN3o {\n display: flex;\n flex: 2;\n flex-flow: column wrap;\n justify-content: space-between;\n margin-left: 8px;\n}\n.step2-module_question-step-two__panel-question-card-item__btns-btn__Mg2vz {\n margin: 8px 0;\n display: flex;\n cursor: pointer;\n}\n.step2-module_question-step-two__panel-question-card-item__btns-btn__Mg2vz img {\n width: 24px;\n height: 24px;\n margin-right: 8px;\n}\n.step2-module_question-step-two__panel-question-card-item__btns-btn__Mg2vz:first-child {\n margin-top: 0;\n}\n.step2-module_question-step-two__panel-preview__Cm3Hv {\n border: 1px solid #d9d9d9;\n}\n.step2-module_question-step-two__panel-preview-top__nd9Qh {\n background-color: white;\n padding: 24px 8px;\n margin-bottom: 12px;\n}\n.step2-module_question-step-two__panel-preview-top__desc__X8iJG {\n margin-top: 8px;\n}\n.step2-module_question-step-two__panel-preview-middle__start__TUt0d {\n height: 250px;\n line-height: 250px;\n border: 1px dotted skyblue;\n text-align: center;\n}\n.step2-module_question-step-two__panel-preview-middle__question__ELZqX {\n background-color: white;\n padding: 16px 8px;\n margin-bottom: 8px;\n border-top: 4px solid transparent;\n border-bottom: 4px solid transparent;\n border-bottom: 1px solid #d9d9d9;\n}\n.step2-module_question-step-two__panel-preview-middle__question__ELZqX:hover {\n background-color: #eee;\n}\n.step2-module_question-step-two__panel-preview-middle__question-tip__6jWsd {\n font-size: 12px;\n color: #5050e8;\n}\n.step2-module_question-step-two__panel-preview-middle__question-title__l1gIU {\n margin-bottom: 4px;\n display: flex;\n flex-flow: row wrap;\n justify-content: space-between;\n}\n.step2-module_question-step-two__panel-preview-middle__question-title-icon-delete__YHSIy {\n display: none;\n cursor: pointer;\n}\n.step2-module_question-step-two__panel-preview-middle__question-title-icon-delete__YHSIy:hover {\n color: red;\n}\n.step2-module_question-step-two__panel-preview-middle__question-options__MIHIk {\n margin: 4px 0;\n display: flex;\n flex-flow: row nowrap;\n align-items: center;\n}\n.step2-module_question-step-two__panel-preview-middle__question-options-input__LLOjS {\n width: 100% !important;\n}\n.step2-module_question-step-two__panel-preview-middle__question-options-delete__4SiWC {\n display: none;\n width: 10%;\n cursor: pointer;\n}\n.step2-module_question-step-two__panel-preview-middle__question-options-delete__4SiWC:hover {\n color: red;\n}\n.step2-module_question-step-two__panel-preview-middle__question-options__MIHIk:hover .step2-module_question-step-two__panel-preview-middle__question-options-delete__4SiWC {\n display: block;\n}\n.step2-module_question-step-two__panel-preview-middle__question__ELZqX:hover .step2-module_question-step-two__panel-preview-middle__question-title-icon-delete__YHSIy {\n display: block;\n}\n.step2-module_question-step-two__panel-preview-middle__question-border-top__hrodO {\n border-top: 2px solid red;\n}\n.step2-module_question-step-two__panel-preview-middle__question-border-bottom__YEiln {\n border-bottom: 2px solid red;\n}\n.step2-module_question-step-two__panel-preview-bottom__GKkv2 {\n background-color: white;\n padding: 16px 8px;\n margin-top: 8px;\n}\n.step2-module_question-step-two__panel-preview-bottom__title__KiD9q {\n text-align: center;\n padding-bottom: 8px;\n}\n.step2-module_question-step-two__panel-preview-bottom__btns__VzVPE {\n display: flex;\n justify-content: center;\n flex-flow: row nowrap;\n margin-top: 16px;\n}\n.step2-module_question-step-two__panel-preview-bottom__btns-btn__f8m28 {\n margin: 0 8px;\n}\n.step2-module_question-step-two__panel-func__oTmv1 {\n background-color: white;\n padding: 24px 14px;\n height: auto;\n width: 20%;\n position: fixed;\n}\n.step2-module_question-step-two__panel-func__title__Qlx59 {\n padding: 2px 4px;\n background-color: black;\n color: white;\n border-radius: 2px;\n display: inline-block;\n}\n.step2-module_question-step-two__panel-func__item__lcayS {\n display: flex;\n flex-flow: row nowrap;\n justify-content: space-between;\n margin: 16px 0;\n}\n.step2-module_question-step-two__panel-func__item__lcayS span,\n.step2-module_question-step-two__panel-func__item__lcayS a {\n display: block;\n}\n.step2-module_question-step-two__panel-func__item-btn__YOh8s {\n width: 40% !important;\n}\n";
262
- var styles$2 = {
263
- "questionnaire-steps": "step2-module_questionnaire-steps__2fRCr",
264
- "questionnaire-steps-content": "step2-module_questionnaire-steps-content__uzsSb",
265
- "question-step-two__panel-question": "step2-module_question-step-two__panel-question__Oydc6",
266
- "question-step-two__panel-question-card": "step2-module_question-step-two__panel-question-card__KXAYi",
267
- "question-step-two__panel-question-card-item": "step2-module_question-step-two__panel-question-card-item__ZHOVW",
268
- "question-step-two__panel-question-card-item__title": "step2-module_question-step-two__panel-question-card-item__title__lBYEW",
269
- "question-step-two__panel-question-card-item__btns": "step2-module_question-step-two__panel-question-card-item__btns__HSN3o",
270
- "question-step-two__panel-question-card-item__btns-btn": "step2-module_question-step-two__panel-question-card-item__btns-btn__Mg2vz",
271
- "question-step-two__panel-preview": "step2-module_question-step-two__panel-preview__Cm3Hv",
272
- "question-step-two__panel-preview-top": "step2-module_question-step-two__panel-preview-top__nd9Qh",
273
- "question-step-two__panel-preview-top__desc": "step2-module_question-step-two__panel-preview-top__desc__X8iJG",
274
- "question-step-two__panel-preview-middle__start": "step2-module_question-step-two__panel-preview-middle__start__TUt0d",
275
- "question-step-two__panel-preview-middle__question": "step2-module_question-step-two__panel-preview-middle__question__ELZqX",
276
- "question-step-two__panel-preview-middle__question-tip": "step2-module_question-step-two__panel-preview-middle__question-tip__6jWsd",
277
- "question-step-two__panel-preview-middle__question-title": "step2-module_question-step-two__panel-preview-middle__question-title__l1gIU",
278
- "question-step-two__panel-preview-middle__question-title-icon-delete": "step2-module_question-step-two__panel-preview-middle__question-title-icon-delete__YHSIy",
279
- "question-step-two__panel-preview-middle__question-options": "step2-module_question-step-two__panel-preview-middle__question-options__MIHIk",
280
- "question-step-two__panel-preview-middle__question-options-input": "step2-module_question-step-two__panel-preview-middle__question-options-input__LLOjS",
281
- "question-step-two__panel-preview-middle__question-options-delete": "step2-module_question-step-two__panel-preview-middle__question-options-delete__4SiWC",
282
- "question-step-two__panel-preview-middle__question-border-top": "step2-module_question-step-two__panel-preview-middle__question-border-top__hrodO",
283
- "question-step-two__panel-preview-middle__question-border-bottom": "step2-module_question-step-two__panel-preview-middle__question-border-bottom__YEiln",
284
- "question-step-two__panel-preview-bottom": "step2-module_question-step-two__panel-preview-bottom__GKkv2",
285
- "question-step-two__panel-preview-bottom__title": "step2-module_question-step-two__panel-preview-bottom__title__KiD9q",
286
- "question-step-two__panel-preview-bottom__btns": "step2-module_question-step-two__panel-preview-bottom__btns__VzVPE",
287
- "question-step-two__panel-preview-bottom__btns-btn": "step2-module_question-step-two__panel-preview-bottom__btns-btn__f8m28",
288
- "question-step-two__panel-func": "step2-module_question-step-two__panel-func__oTmv1",
289
- "question-step-two__panel-func__title": "step2-module_question-step-two__panel-func__title__Qlx59",
290
- "question-step-two__panel-func__item": "step2-module_question-step-two__panel-func__item__lcayS",
291
- "question-step-two__panel-func__item-btn": "step2-module_question-step-two__panel-func__item-btn__YOh8s"
292
- };
293
- styleInject(css_248z$2);
294
- LazyAntd.Tree;
295
- LazyAntd.TreeSelect;
296
- var Select$3 = LazyAntd.Select;
297
- LazyAntd.Table;
298
- LazyAntd.Dropdown;
299
- LazyAntd.Pagination;
300
- function QuestionItem(props) {
301
- var _a;
302
- var _b, _c;
303
- var index = props.index,
304
- question = props.question,
305
- onChangeIndex = props.onChangeIndex,
306
- onQuestionClick = props.onQuestionClick,
307
- onQuestionItemDelete = props.onQuestionItemDelete,
308
- onQuesionChange = props.onQuesionChange,
309
- groupQuestions = props.groupQuestions;
310
- var questionType = question.questionType,
311
- _d = question.questionOptionList,
312
- questionOptionList = _d === void 0 ? [] : _d;
313
- var ref = useRef(null);
314
- var _e = useState(''),
315
- hoverTargetQuestionPlace = _e[0],
316
- setHoverTargetQuestionPlace = _e[1];
317
- var bind = (_b = question.logic) === null || _b === void 0 ? void 0 : _b.bind;
318
- var handleQuestionDragOver = function handleQuestionDragOver(e) {
319
- var _a = ref.current.getBoundingClientRect(),
320
- y = _a.y,
321
- height = _a.height;
322
- var normalClientY = y + height / 2;
323
- var clientY = e.clientY;
324
- if (clientY) {
325
- var hoverTargetQuestionPlace_1 = 'Bottom';
326
- var newQuestionIndex = index + 1;
327
- if (clientY < normalClientY) {
328
- hoverTargetQuestionPlace_1 = 'Top';
329
- newQuestionIndex = index;
330
- }
331
- setHoverTargetQuestionPlace(hoverTargetQuestionPlace_1);
332
- onChangeIndex(newQuestionIndex);
333
- }
334
- };
335
- var handleQuestionDragLeave = function handleQuestionDragLeave() {
336
- setHoverTargetQuestionPlace('');
337
- };
338
- var renderQuestionInput = function renderQuestionInput() {
339
- var typeLabel = QuestionTypeEnums.getLabel(questionType);
340
- if (typeLabel === '单选题' || typeLabel === '多选题' || typeLabel === '下拉题') {
341
- var icons_1 = {
342
- '单选题': /*#__PURE__*/React__default.createElement(CheckCircleOutlined, null),
343
- '多选题': /*#__PURE__*/React__default.createElement(BorderOutlined, null),
344
- '下拉题': /*#__PURE__*/React__default.createElement(CaretDownOutlined, null)
345
- };
346
- return questionOptionList.map(function (option, optionIndex) {
347
- return /*#__PURE__*/React__default.createElement(_Row, {
348
- key: optionIndex,
349
- className: styles$2["question-step-two__panel-preview-middle__question-options"]
350
- }, /*#__PURE__*/React__default.createElement(_Col, {
351
- span: 14
352
- }, /*#__PURE__*/React__default.createElement(_Input, {
353
- className: styles$2["question-step-two__panel-preview-middle__question-options-input"],
354
- addonBefore: icons_1[typeLabel],
355
- value: option.optionTitle,
356
- onChange: function onChange(e) {
357
- questionOptionList.splice(optionIndex, 1, __assign(__assign({}, option), {
358
- optionTitle: e.target.value
359
- }));
360
- onQuesionChange(__assign(__assign({}, question), {
361
- questionOptionList: __spreadArray([], questionOptionList, true)
362
- }));
363
- },
364
- size: "small"
365
- })), /*#__PURE__*/React__default.createElement(_Col, {
366
- span: 7,
367
- offset: 1,
368
- style: {
369
- display: 'flex'
370
- }
371
- }, /*#__PURE__*/React__default.createElement("div", {
372
- style: {
373
- width: 80
374
- }
375
- }, "\u5206\u503C\uFF1A"), /*#__PURE__*/React__default.createElement(_InputNumber, {
376
- className: styles$2["question-step-two__panel-preview-middle__question-options-input"],
377
- value: option.optionScore,
378
- onChange: function onChange(score) {
379
- questionOptionList.splice(optionIndex, 1, __assign(__assign({}, option), {
380
- optionScore: score
381
- }));
382
- onQuesionChange(__assign(__assign({}, question), {
383
- questionOptionList: __spreadArray([], questionOptionList, true)
384
- }));
385
- },
386
- size: "small"
387
- })), /*#__PURE__*/React__default.createElement(_Col, {
388
- span: 1,
389
- offset: 1
390
- }, /*#__PURE__*/React__default.createElement(CloseCircleOutlined, {
391
- onClick: function onClick(e) {
392
- e.stopPropagation();
393
- questionOptionList.splice(optionIndex, 1);
394
- onQuesionChange(__assign(__assign({}, question), {
395
- questionOptionList: __spreadArray([], questionOptionList, true)
396
- }));
397
- },
398
- className: styles$2["question-step-two__panel-preview-middle__question-options-delete"]
399
- })));
400
- });
401
- }
402
- if (typeLabel === '填空题') {
403
- return /*#__PURE__*/React__default.createElement("div", {
404
- className: styles$2["question-step-two__panel-preview-middle__question-completion"]
405
- }, /*#__PURE__*/React__default.createElement(_Input, {
406
- className: styles$2["question-step-two__panel-preview-middle__question-completion-input"],
407
- size: "small",
408
- style: {
409
- marginTop: 4
410
- }
411
- }), questionOptionList.map(function (option, optionIndex) {
412
- return /*#__PURE__*/React__default.createElement(_Row, {
413
- key: optionIndex,
414
- className: styles$2["question-step-two__panel-preview-middle__question-options"]
415
- }, /*#__PURE__*/React__default.createElement(_Col, {
416
- span: 6,
417
- style: {
418
- display: 'flex'
419
- }
420
- }, /*#__PURE__*/React__default.createElement("div", {
421
- style: {
422
- width: '100%'
423
- }
424
- }, "\u8BA1\u5206\u89C4\u5219\uFF1A"), /*#__PURE__*/React__default.createElement(Select$3, {
425
- className: styles$2["question-step-two__panel-preview-middle__question-options-input"],
426
- value: option.optionTitle,
427
- onSelect: function onSelect(value) {
428
- questionOptionList.splice(optionIndex, 1, __assign(__assign({}, option), {
429
- optionTitle: value
430
- }));
431
- onQuesionChange(__assign(__assign({}, question), {
432
- questionOptionList: __spreadArray([], questionOptionList, true)
433
- }));
434
- },
435
- dropdownMatchSelectWidth: true,
436
- size: "small"
437
- }, /*#__PURE__*/React__default.createElement(Select$3.Option, {
438
- value: "equal"
439
- }, "\u76F8\u7B49"), /*#__PURE__*/React__default.createElement(Select$3.Option, {
440
- value: "contain"
441
- }, "\u5305\u542B"))), /*#__PURE__*/React__default.createElement(_Col, {
442
- span: 7,
443
- offset: 1,
444
- style: {
445
- display: 'flex'
446
- }
447
- }, /*#__PURE__*/React__default.createElement("div", {
448
- style: {
449
- width: '100%'
450
- }
451
- }, "\u6807\u51C6\u7B54\u6848\uFF1A"), /*#__PURE__*/React__default.createElement(_Input, {
452
- className: styles$2["question-step-two__panel-preview-middle__question-options-input"],
453
- value: option.fillTemplate,
454
- onChange: function onChange(e) {
455
- questionOptionList.splice(optionIndex, 1, __assign(__assign({}, option), {
456
- fillTemplate: e.target.value
457
- }));
458
- onQuesionChange(__assign(__assign({}, question), {
459
- questionOptionList: __spreadArray([], questionOptionList, true)
460
- }));
461
- },
462
- size: "small"
463
- })), /*#__PURE__*/React__default.createElement(_Col, {
464
- span: 7,
465
- offset: 1,
466
- style: {
467
- display: 'flex'
468
- }
469
- }, /*#__PURE__*/React__default.createElement("div", {
470
- style: {
471
- width: 80
472
- }
473
- }, "\u5206\u503C\uFF1A"), /*#__PURE__*/React__default.createElement(_InputNumber, {
474
- className: styles$2["question-step-two__panel-preview-middle__question-options-input"],
475
- value: option.optionScore,
476
- onChange: function onChange(score) {
477
- questionOptionList.splice(optionIndex, 1, __assign(__assign({}, option), {
478
- optionScore: score
479
- }));
480
- onQuesionChange(__assign(__assign({}, question), {
481
- questionOptionList: __spreadArray([], questionOptionList, true)
482
- }));
483
- },
484
- size: "small"
485
- })));
486
- }));
487
- }
488
- if (typeLabel === '段落说明') {
489
- return /*#__PURE__*/React__default.createElement("div", {
490
- className: styles$2["question-step-two__panel-preview-middle__question-options"]
491
- });
492
- }
493
- if (typeLabel === '打分题') {
494
- return /*#__PURE__*/React__default.createElement("div", {
495
- className: styles$2["question-step-two__panel-preview-middle__question-options"]
496
- }, /*#__PURE__*/React__default.createElement(StarOutlined, null), /*#__PURE__*/React__default.createElement(StarOutlined, null), /*#__PURE__*/React__default.createElement(StarOutlined, null), /*#__PURE__*/React__default.createElement(StarOutlined, null), /*#__PURE__*/React__default.createElement(StarOutlined, null));
497
- }
498
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
499
- };
500
- var renderBottomBtns = function renderBottomBtns() {
501
- if (QuestionTypeEnums.getValues(['单选题', '多选题', '下拉题']).includes(question.questionType)) {
502
- return /*#__PURE__*/React__default.createElement("div", {
503
- style: {
504
- marginTop: 20
505
- }
506
- }, /*#__PURE__*/React__default.createElement(_Button, {
507
- size: "small",
508
- onClick: function onClick(e) {
509
- onQuesionChange(__assign(__assign({}, question), {
510
- questionOptionList: __spreadArray(__spreadArray([], questionOptionList, true), [{
511
- optionTitle: '新增选项',
512
- optionIndex: questionOptionList.reduce(function (a, b) {
513
- return Math.max(a, b.optionIndex);
514
- }, 1000) + 1,
515
- optionScore: 0,
516
- questionType: question.questionType
517
- }], false)
518
- }));
519
- }
520
- }, "\u6DFB\u52A0\u9009\u9879"));
521
- }
522
- };
523
- return /*#__PURE__*/React__default.createElement("div", {
524
- style: hoverTargetQuestionPlace ? (_a = {}, _a["border".concat(hoverTargetQuestionPlace)] = '4px solid #ff0000', _a) : {},
525
- ref: ref,
526
- className: styles$2["question-step-two__panel-preview-middle__question"],
527
- onDragOver: handleQuestionDragOver,
528
- onDragLeave: handleQuestionDragLeave,
529
- onClick: function onClick() {
530
- onQuestionClick(__assign(__assign({}, question), {
531
- questionIndex: index
532
- }));
533
- }
534
- }, /*#__PURE__*/React__default.createElement("div", {
535
- className: styles$2["question-step-two__panel-preview-middle__question-title"]
536
- }, /*#__PURE__*/React__default.createElement("h4", null, index + 1, ".", labelsArrayMapping[QuestionTypeEnums.getLabel(question.questionType)].title), /*#__PURE__*/React__default.createElement(DeleteOutlined, {
537
- onClick: function onClick(e) {
538
- e.stopPropagation();
539
- onQuestionItemDelete();
540
- },
541
- className: styles$2["question-step-two__panel-preview-middle__question-title-icon-delete"]
542
- })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(_Input, {
543
- className: styles$2["question-step-two__panel-preview-middle__question-options-input"],
544
- value: question.questionTitle,
545
- size: "small",
546
- placeholder: "\u8BF7\u8F93\u5165\u6807\u9898",
547
- onChange: function onChange(e) {
548
- onQuesionChange(__assign(__assign({}, question), {
549
- questionTitle: e.target.value
550
- }));
551
- }
552
- }), renderQuestionInput()), !!((_c = question.logic) === null || _c === void 0 ? void 0 : _c.selectOption.length) && groupQuestions.findIndex(function (_) {
553
- return _.questionIndex === bind;
554
- }) > -1 && /*#__PURE__*/React__default.createElement("div", {
555
- className: styles$2["question-step-two__panel-preview-middle__question-tip"]
556
- }, "\u4F9D\u8D56\u4E8E\u7B2C", groupQuestions.findIndex(function (_) {
557
- var _a;
558
- return _.questionIndex === ((_a = question.logic) === null || _a === void 0 ? void 0 : _a.bind);
559
- }) + 1, "\u9898\u7684\u7B2C", question.logic.selectOption.map(function (value) {
560
- return value + 1;
561
- }).join('、'), "\u9009\u9879"), renderBottomBtns());
562
- }
563
- LazyAntd.Tree;
564
- LazyAntd.TreeSelect;
565
- var Select$2 = LazyAntd.Select;
566
- LazyAntd.Table;
567
- LazyAntd.Dropdown;
568
- LazyAntd.Pagination;
569
- function Step2Right(props) {
570
- var _a, _b, _c;
571
- var groupQuestions = props.groupQuestions,
572
- activeQuestion = props.activeQuestion,
573
- onQuesionChange = props.onQuesionChange;
574
- props.activeGroup;
575
- props.index;
576
- var bind = (_a = activeQuestion.logic) === null || _a === void 0 ? void 0 : _a.bind;
577
- var realIndex = groupQuestions.findIndex(function (_) {
578
- return _.questionIndex === activeQuestion.questionIndex;
579
- });
580
- var selectQuestions = groupQuestions.filter(function (q, idx) {
581
- return idx < realIndex;
582
- });
583
- var targetBind = groupQuestions.find(function (_) {
584
- return _.questionIndex === bind;
585
- });
586
- console.log('aax', bind, targetBind);
587
- var boxOptions = (targetBind === null || targetBind === void 0 ? void 0 : targetBind.questionOptionList) || [];
588
- function _onChange(selectOption, bind) {
589
- var _a;
590
- if (bind === void 0) {
591
- bind = (_a = activeQuestion.logic) === null || _a === void 0 ? void 0 : _a.bind;
592
- }
593
- onQuesionChange(__assign(__assign({}, activeQuestion), {
594
- logic: {
595
- selectOption: selectOption,
596
- bind: bind
597
- }
598
- }));
599
- }
600
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("span", null, "\u5F53\u524D\u9898\u76EE\uFF1A"), /*#__PURE__*/React__default.createElement("span", null, activeQuestion.questionTitle)), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(_Form.Item, {
601
- label: "\u5173\u8054\u9898\u76EE\uFF1A"
602
- }, /*#__PURE__*/React__default.createElement(Select$2, {
603
- style: {
604
- width: 300
605
- },
606
- dropdownMatchSelectWidth: 300,
607
- allowClear: true,
608
- placeholder: "\u8BF7\u9009\u62E9",
609
- value: (_b = activeQuestion.logic) === null || _b === void 0 ? void 0 : _b.bind,
610
- onChange: function onChange(value) {
611
- _onChange([], value);
612
- },
613
- options: selectQuestions.map(function (_, index) {
614
- return {
615
- label: "".concat(index + 1, ".").concat(_.questionTitle),
616
- value: _.questionIndex,
617
- disabled: !QuestionTypeEnums.getValues(['多选题', '单选题', '下拉题']).includes(_.questionType)
618
- };
619
- })
620
- })), targetBind && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", null, "\u5F53\u201C\u5173\u8054\u9898\u76EE\u201D\u9009\u62E9\u4E0B\u9762\u7684\u9009\u9879\uFF1A"), /*#__PURE__*/React__default.createElement(_Checkbox.Group, {
621
- value: ((_c = activeQuestion.logic) === null || _c === void 0 ? void 0 : _c.selectOption) || [],
622
- onChange: function onChange(value) {
623
- return _onChange(value);
624
- }
625
- }, boxOptions.map(function (option, index) {
626
- return /*#__PURE__*/React__default.createElement(Fragment, {
627
- key: index
628
- }, /*#__PURE__*/React__default.createElement(_Checkbox, {
629
- key: index,
630
- value: index
631
- }, option.optionTitle), /*#__PURE__*/React__default.createElement("br", null));
632
- })), /*#__PURE__*/React__default.createElement("div", null, "\u4E2D\u7684\u4EFB\u610F\u4E00\u4E2A\u65F6\uFF0C\u201C\u5F53\u524D\u9898\u76EE\u201D\u624D\u51FA\u73B0"))), /*#__PURE__*/React__default.createElement(_Form.Item, {
633
- label: "\u662F\u5426\u5168\u5C4F\u663E\u793A"
634
- }, /*#__PURE__*/React__default.createElement(_Checkbox, {
635
- checked: activeQuestion.fullscreen,
636
- onChange: function onChange(e) {
637
- onQuesionChange(__assign(__assign({}, activeQuestion), {
638
- fullscreen: e.target.checked
639
- }));
640
- }
641
- })));
642
- }
643
- var btns = [{
644
- id: 1,
645
- title: '选择填空',
646
- value: chooseArray
647
- }, {
648
- id: 2,
649
- title: '评分题',
650
- value: starArray
651
- }, {
652
- id: 3,
653
- title: '文字说明',
654
- value: descArray
655
- }];
656
- function Step2(props) {
657
- var _a;
658
- var data = props.data,
659
- onPreview = props.onPreview,
660
- onChangeStep = props.onChangeStep;
661
- props.onEditorUpload;
662
- var _b = useState(data.questionnaireTitle),
663
- questionnaireTitle = _b[0],
664
- setQuestionnaireTitle = _b[1];
665
- var _c = useState(data.questionList || []),
666
- questions = _c[0],
667
- setQuestions = _c[1];
668
- var _d = useState(data.description),
669
- description = _d[0],
670
- setDescription = _d[1];
671
- var _e = useState(),
672
- dragItemType = _e[0],
673
- setDragItemType = _e[1];
674
- var _f = useState(data.groupVOList || [{
675
- groupIndex: 0,
676
- groupDescription: '',
677
- code: '',
678
- groupTitle: '第一组',
679
- questionIndexList: ((_a = data.questionList) === null || _a === void 0 ? void 0 : _a.map(function (_) {
680
- return _.questionIndex;
681
- })) || []
682
- }]),
683
- groups = _f[0],
684
- setGroups = _f[1];
685
- var _g = useState(0),
686
- activeGroupIdx = _g[0],
687
- setActiveGroupIdx = _g[1];
688
- var _h = useState(-1),
689
- activeQuestionIndexInGroup = _h[0],
690
- setActiveQuestionIndexInGroup = _h[1];
691
- var activeGroup = groups.find(function (_) {
692
- return _.groupIndex === activeGroupIdx;
693
- });
694
- var activeQuestion = getTargetQuestionInGroup(questions, activeQuestionIndexInGroup, activeGroup);
695
- var groupQuestions = getQuestionsInGroup(questions, activeGroup);
696
- console.log('idx', activeQuestionIndexInGroup, activeQuestion);
697
- var indexRef = useRef(0);
698
- function generateQuestionByType(type) {
699
- return initQuestionMap[type];
700
- }
701
- function handleBtnClick(type) {
702
- return function () {
703
- addQuesion(type, questions.length);
704
- };
705
- }
706
- function handleChangeIndex(idx) {
707
- indexRef.current = idx;
708
- }
709
- function addQuesion(t, idx) {
710
- var maxIndex = questions.reduce(function (a, b) {
711
- return Math.max(a, b.questionIndex);
712
- }, 1000) + 1;
713
- var newQuestions = JSON.parse(JSON.stringify(questions));
714
- var newItem = generateQuestionByType(t);
715
- newItem.questionIndex = maxIndex;
716
- var targetGroup = groups.find(function (_) {
717
- return _.groupIndex === activeGroupIdx;
718
- });
719
- if (targetGroup === null || targetGroup === void 0 ? void 0 : targetGroup.questionIndexList) {
720
- targetGroup.questionIndexList.splice(idx, 0, maxIndex);
721
- }
722
- newQuestions.push(newItem);
723
- setQuestions(newQuestions);
724
- setGroups(__spreadArray([], groups, true));
725
- }
726
- function handleDragEnd() {
727
- if (!dragItemType) return;
728
- addQuesion(dragItemType, indexRef.current);
729
- }
730
- function modifyQuestion(item) {
731
- var idx = questions.findIndex(function (_) {
732
- return _.questionIndex === item.questionIndex;
733
- });
734
- questions[idx] = item;
735
- setQuestions(__spreadArray([], questions, true));
736
- }
737
- function renderQuestions(q) {
738
- return q.map(function (question, index) {
739
- var lastQuestion = questions[questions.length - 1];
740
- return /*#__PURE__*/React__default.createElement(QuestionItem, {
741
- groupQuestions: groupQuestions,
742
- key: index,
743
- index: index,
744
- question: question,
745
- lastQuestion: lastQuestion,
746
- onChangeIndex: handleChangeIndex,
747
- onQuestionClick: function onQuestionClick() {
748
- return setActiveQuestionIndexInGroup(index);
749
- },
750
- onQuesionChange: modifyQuestion,
751
- onQuestionItemDelete: function onQuestionItemDelete() {
752
- var _a, _b;
753
- if (!activeGroup) return;
754
- var logicBindIds = [];
755
- questions.forEach(function (question) {
756
- var _a;
757
- typeof ((_a = question.logic) === null || _a === void 0 ? void 0 : _a.bind) === 'number' && logicBindIds.push(question.logic.bind);
758
- });
759
- if (logicBindIds.indexOf(question.questionIndex) > -1) {
760
- _message.error('该题有逻辑关联,无法删除');
761
- return;
762
- }
763
- var realIndex = questions.findIndex(function (_) {
764
- return _.questionIndex === question.questionIndex;
48
+ return __awaiter(_this, void 0, void 0, function () {
49
+ return __generator(this, function (_a) {
50
+ request.post('/api/dataReport/reportBasicInspectionInfo', {
51
+ ids: selectRows.map(function (_) {
52
+ return _.id;
53
+ })
54
+ });
55
+ ctx.handleSearch();
56
+ return [2];
57
+ });
765
58
  });
766
- questions.splice(realIndex, 1);
767
- var indexOfGroup = (_a = activeGroup.questionIndexList) === null || _a === void 0 ? void 0 : _a.indexOf(question.questionIndex);
768
- if (typeof indexOfGroup === 'number' && indexOfGroup > -1) {
769
- (_b = activeGroup.questionIndexList) === null || _b === void 0 ? void 0 : _b.splice(indexOfGroup, 1);
770
- groups.splice(activeGroupIdx, 1, __assign({}, activeGroup));
771
- }
772
- setQuestions(__spreadArray([], questions, true));
773
- }
774
- });
775
- });
776
- }
777
- function renderBtns() {
778
- return /*#__PURE__*/React__default.createElement("div", {
779
- className: styles$2["question-step-two__panel-question"]
780
- }, /*#__PURE__*/React__default.createElement("div", {
781
- className: styles$2["question-step-two__panel-question-card"]
782
- }, btns.map(function (btn, index) {
783
- return /*#__PURE__*/React__default.createElement("div", {
784
- key: index,
785
- className: styles$2["question-step-two__panel-question-card-item"]
786
- }, /*#__PURE__*/React__default.createElement("span", {
787
- className: styles$2["question-step-two__panel-question-card-item__title"]
788
- }, btn.title), /*#__PURE__*/React__default.createElement("div", {
789
- className: styles$2["question-step-two__panel-question-card-item__btns"]
790
- }, btn.value.map(function (item) {
791
- return /*#__PURE__*/React__default.createElement("div", {
792
- key: item.title,
793
- className: styles$2["question-step-two__panel-question-card-item__btns-btn"],
794
- draggable: true,
795
- onDragStart: function onDragStart() {
796
- setDragItemType(item.title);
797
- },
798
- onDragEnd: handleDragEnd,
799
- onClick: handleBtnClick(item.title)
800
- }, /*#__PURE__*/React__default.createElement("img", {
801
- src: item.iconImg,
802
- alt: ""
803
- }), /*#__PURE__*/React__default.createElement("div", null, item.title));
804
- })));
805
- })));
806
- }
807
- function renderLogicEdit() {
808
- return activeQuestion && /*#__PURE__*/React__default.createElement("div", {
809
- className: styles$2["question-step-two__panel-func"]
810
- }, /*#__PURE__*/React__default.createElement("div", {
811
- className: styles$2["question-step-two__panel-func__title"]
812
- }, "\u9898\u76EE", activeQuestionIndexInGroup + 1, "\u8BBE\u7F6E"), activeGroup && activeQuestion && /*#__PURE__*/React__default.createElement(Step2Right, {
813
- activeGroup: activeGroup,
814
- onQuesionChange: modifyQuestion,
815
- index: activeQuestionIndexInGroup,
816
- groupQuestions: groupQuestions,
817
- activeQuestion: activeQuestion
818
- }));
819
- }
820
- function setCurrentGroup(key, value) {
821
- if (activeGroup) {
822
- activeGroup[key] = value;
823
- groups.splice(activeGroupIdx, 1, __assign({}, activeGroup));
824
- setGroups(__spreadArray([], groups, true));
825
- }
826
- }
827
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(_Row, {
828
- className: styles$2["question-step-two__panel"]
829
- }, /*#__PURE__*/React__default.createElement(_Col, {
830
- span: 4
831
- }, renderBtns()), /*#__PURE__*/React__default.createElement(_Col, {
832
- span: 12,
833
- offset: 1,
834
- className: styles$2["question-step-two__panel-preview"]
835
- }, /*#__PURE__*/React__default.createElement("div", {
836
- className: styles$2["question-step-two__panel-preview-top"]
837
- }, /*#__PURE__*/React__default.createElement(_Input, {
838
- className: styles$2["question-step-two__panel-preview-top__title"],
839
- value: questionnaireTitle,
840
- placeholder: "\u8BF7\u8F93\u5165\u6807\u9898",
841
- onChange: function onChange(e) {
842
- setQuestionnaireTitle(e.target.value);
843
- }
844
- }), /*#__PURE__*/React__default.createElement(_Input.TextArea, {
845
- className: styles$2["question-step-two__panel-preview-top__title"],
846
- value: description,
847
- style: {
848
- marginTop: 12
849
- },
850
- placeholder: "\u8BF7\u8F93\u5165\u63CF\u8FF0",
851
- onChange: function onChange(e) {
852
- setDescription(e.target.value);
853
- }
854
- })), /*#__PURE__*/React__default.createElement(_Tabs, {
855
- type: "editable-card",
856
- activeKey: activeGroupIdx.toString(),
857
- onChange: function onChange(e) {
858
- return setActiveGroupIdx(+e);
859
- },
860
- onEdit: function onEdit(key, action) {
861
- if (action === 'add') {
862
- groups.push({
863
- groupIndex: groups.length,
864
- groupTitle: "\u7B2C".concat(groups.length + 1, "\u7EC4"),
865
- questionIndexList: [],
866
- groupDescription: '',
867
- code: ''
868
- });
869
- } else {
870
- groups.splice(+key, 1);
871
- }
872
- setGroups(__spreadArray([], groups, true));
873
- }
874
- }, groups.map(function (_, idx) {
875
- var active = _.groupIndex === activeGroupIdx;
876
- var q = getQuestionsInGroup(questions, _);
877
- return /*#__PURE__*/React__default.createElement(_Tabs.TabPane, {
878
- tab: _.groupTitle,
879
- key: _.groupIndex
880
- }, /*#__PURE__*/React__default.createElement(_Form.Item, {
881
- label: "\u6807\u9898",
882
- wrapperCol: {
883
- span: 17
884
- },
885
- style: {
886
- padding: '0 8px'
887
- }
888
- }, /*#__PURE__*/React__default.createElement(_Input, {
889
- size: "small",
890
- value: activeGroup === null || activeGroup === void 0 ? void 0 : activeGroup.groupTitle,
891
- onChange: function onChange(e) {
892
- setCurrentGroup('groupTitle', e.target.value);
893
- }
894
- })), /*#__PURE__*/React__default.createElement(_Form.Item, {
895
- label: "\u63CF\u8FF0",
896
- wrapperCol: {
897
- span: 17
898
- },
899
- style: {
900
- padding: '0 8px'
901
- }
902
- }, /*#__PURE__*/React__default.createElement(_Input, {
903
- size: "small",
904
- value: activeGroup === null || activeGroup === void 0 ? void 0 : activeGroup.groupDescription,
905
- onChange: function onChange(e) {
906
- setCurrentGroup('groupDescription', e.target.value);
907
- }
908
- })), /*#__PURE__*/React__default.createElement(_Form.Item, {
909
- label: "\u89C4\u5219",
910
- wrapperCol: {
911
- span: 17
912
- },
913
- style: {
914
- padding: '0 8px'
915
- }
916
- }, /*#__PURE__*/React__default.createElement(_Input.TextArea, {
917
- size: "small",
918
- placeholder: "\u4F8B\u5982\uFF1A".concat(JSON.stringify([["[9,13)", "轻度"], ["[13,~)", "中重度"]])),
919
- value: activeGroup === null || activeGroup === void 0 ? void 0 : activeGroup.code,
920
- onChange: function onChange(e) {
921
- setCurrentGroup('code', e.target.value);
922
- }
923
- })), /*#__PURE__*/React__default.createElement("div", {
924
- className: styles$2["question-step-two__panel-preview-middle"]
925
- }, !q.length ? /*#__PURE__*/React__default.createElement("div", {
926
- className: styles$2["question-step-two__panel-preview-middle__start"]
927
- }, "\u70B9\u51FB\u9898\u578B \u6216\u8005 \u5C06\u9898\u578B\u62D6\u5165\u6B64\u533A\u57DF") : active && renderQuestions(q)));
928
- })), /*#__PURE__*/React__default.createElement("div", {
929
- className: styles$2["question-step-two__panel-preview-bottom"]
930
- }, /*#__PURE__*/React__default.createElement("div", {
931
- className: styles$2["question-step-two__panel-preview-bottom__btns"]
932
- }, /*#__PURE__*/React__default.createElement(_Button, {
933
- className: styles$2["question-step-two__panel-preview-bottom__btns-btn"],
934
- onClick: function onClick() {
935
- onChangeStep(0);
936
- }
937
- }, "\u4E0A\u4E00\u6B65"), /*#__PURE__*/React__default.createElement(_Button, {
938
- type: "primary",
939
- className: styles$2["question-step-two__panel-preview-bottom__btns-btn"],
940
- onClick: function onClick() {
941
- onPreview(__assign(__assign({}, data), {
942
- groupVOList: groups,
943
- questionnaireTitle: questionnaireTitle,
944
- description: description,
945
- questionList: questions
946
- }));
947
- }
948
- }, "\u4E0B\u4E00\u6B65")))), /*#__PURE__*/React__default.createElement(_Col, {
949
- span: 6,
950
- offset: 1
951
- }, !!questions.length && renderLogicEdit())));
952
- }
953
- var css_248z$1 = ".step3-module_questionnaire-steps__hnLCy {\n background-color: white;\n height: 70px;\n display: flex;\n align-items: center;\n padding: 0 15% !important;\n margin-bottom: 8px;\n}\n.step3-module_questionnaire-steps-content__gsy1y {\n padding: 16px;\n background-color: white;\n}\n.step3-module_question-step-three__panel__a5-8F {\n width: 100%;\n padding: 16px 8px;\n}\n.step3-module_question-step-three__panel-bottom__-9TeF {\n width: 100%;\n display: flex;\n justify-content: center;\n margin-top: 50px;\n}\n.step3-module_question-step-three__panel-radio__RVwTz {\n text-align: center;\n}\n.step3-module_question-step-three__panel-mobile__-2KHO {\n display: flex;\n margin-top: 16px;\n justify-content: center;\n}\n.step3-module_question-step-three__panel-mobile-preview__RP20Y {\n height: 640px;\n width: 360px;\n background-size: contain;\n background-image: url('/lm_imgs/qn/phone.jpg');\n background-repeat: no-repeat;\n background-position: center;\n}\n.step3-module_question-step-three__panel-mobile-preview_content__HP1rl {\n height: 100%;\n padding: 72px 44px 74px 45px;\n}\n.step3-module_question-step-three__panel-mobile-preview_content__HP1rl .ant-form {\n padding: 8px;\n overflow-y: scroll;\n height: 100%;\n}\n.step3-module_question-step-three__panel-mobile-preview_content__HP1rl .ant-form .step3-module_questions-title__z76Ew {\n text-align: center;\n}\n.step3-module_question-step-three__panel-mobile-preview_content__HP1rl .ant-form .step3-module_questions-desc__NkpDu {\n margin: 8px 0;\n}\n.step3-module_question-step-three__panel-mobile-preview_content__HP1rl .ant-form .ant-form-item {\n padding: 8px;\n border: 1px solid #d9d9d9;\n}\n.step3-module_question-step-three__panel-mobile-preview_content__HP1rl .ant-form .ant-form-item:last-child {\n width: 100%;\n border: none;\n}\n.step3-module_question-step-three__panel-mobile-preview_content__HP1rl .ant-form .ant-form-item:last-child button {\n width: 100%;\n}\n.step3-module_question-step-three__panel-compute__peaG8 {\n margin: 10px auto;\n background-image: url('/lm_imgs/qn/mackbook.png');\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center;\n display: flex;\n justify-content: center;\n padding: 70px 0 100px 0;\n height: 600px;\n width: 1000px;\n}\n.step3-module_question-step-three__panel-compute__peaG8 .step3-module_questions-title__z76Ew {\n text-align: center;\n font-size: 20px;\n}\n.step3-module_question-step-three__panel-compute__peaG8 .step3-module_questions-desc__NkpDu {\n margin: 10px;\n}\n.step3-module_question-step-three__panel-compute__peaG8 .ant-form {\n padding: 8px;\n overflow-y: scroll;\n height: 100%;\n width: 60%;\n}\n.step3-module_question-step-three__panel-compute__peaG8 .ant-form .step3-module_questions-title__z76Ew {\n text-align: center;\n}\n.step3-module_question-step-three__panel-compute__peaG8 .ant-form .step3-module_questions-desc__NkpDu {\n margin: 8px 0;\n}\n.step3-module_question-step-three__panel-compute__peaG8 .ant-form .ant-form-item {\n padding: 8px;\n border: 1px solid #d9d9d9;\n}\n.step3-module_question-step-three__panel-compute__peaG8 .ant-form .ant-form-item:last-child {\n width: 100%;\n border: none;\n}\n.step3-module_question-step-three__panel-compute__peaG8 .ant-form .ant-form-item:last-child button {\n width: 100%;\n}\n.step3-module_question-step-three__panel-tablet__bztKK {\n margin: 10px auto;\n background-image: url('/lm_imgs/qn/tablet.png');\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center;\n display: flex;\n justify-content: center;\n padding: 70px 0 100px 0;\n height: 500px;\n width: 800px;\n}\n.step3-module_question-step-three__panel-tablet__bztKK .step3-module_questions-title__z76Ew {\n text-align: center;\n font-size: 20px;\n}\n.step3-module_question-step-three__panel-tablet__bztKK .step3-module_questions-desc__NkpDu {\n margin: 10px;\n}\n.step3-module_question-step-three__panel-tablet__bztKK .ant-form {\n padding: 8px;\n overflow-y: scroll;\n height: 100%;\n width: 60%;\n}\n.step3-module_question-step-three__panel-tablet__bztKK .ant-form .step3-module_questions-title__z76Ew {\n text-align: center;\n}\n.step3-module_question-step-three__panel-tablet__bztKK .ant-form .step3-module_questions-desc__NkpDu {\n margin: 8px 0;\n}\n.step3-module_question-step-three__panel-tablet__bztKK .ant-form .ant-form-item {\n padding: 8px;\n border: 1px solid #d9d9d9;\n}\n.step3-module_question-step-three__panel-tablet__bztKK .ant-form .ant-form-item:last-child {\n width: 100%;\n border: none;\n}\n.step3-module_question-step-three__panel-tablet__bztKK .ant-form .ant-form-item:last-child button {\n width: 100%;\n}\n";
954
- var styles$1 = {
955
- "questionnaire-steps": "step3-module_questionnaire-steps__hnLCy",
956
- "questionnaire-steps-content": "step3-module_questionnaire-steps-content__gsy1y",
957
- "question-step-three__panel": "step3-module_question-step-three__panel__a5-8F",
958
- "question-step-three__panel-bottom": "step3-module_question-step-three__panel-bottom__-9TeF",
959
- "question-step-three__panel-radio": "step3-module_question-step-three__panel-radio__RVwTz",
960
- "question-step-three__panel-mobile": "step3-module_question-step-three__panel-mobile__-2KHO",
961
- "question-step-three__panel-mobile-preview": "step3-module_question-step-three__panel-mobile-preview__RP20Y",
962
- "question-step-three__panel-mobile-preview_content": "step3-module_question-step-three__panel-mobile-preview_content__HP1rl",
963
- "questions-title": "step3-module_questions-title__z76Ew",
964
- "questions-desc": "step3-module_questions-desc__NkpDu",
965
- "question-step-three__panel-compute": "step3-module_question-step-three__panel-compute__peaG8",
966
- "question-step-three__panel-tablet": "step3-module_question-step-three__panel-tablet__bztKK"
967
- };
968
- styleInject(css_248z$1);
969
- LazyAntd.Tree;
970
- LazyAntd.TreeSelect;
971
- var Select$1 = LazyAntd.Select;
972
- LazyAntd.Table;
973
- LazyAntd.Dropdown;
974
- LazyAntd.Pagination;
975
- var Step3 = function Step3(props) {
976
- var _a = useState('mobile'),
977
- device = _a[0],
978
- setDevice = _a[1];
979
- var _b = useState([]),
980
- globalLogic = _b[0],
981
- setGlobalLogic = _b[1];
982
- var data = props.data,
983
- onChangeStep = props.onChangeStep;
984
- console.log('data', data);
985
- var _c = data.questionList,
986
- questionList = _c === void 0 ? [] : _c;
987
- data.questionnaireTitle;
988
- data.description;
989
- var _d = data.groupVOList,
990
- groupVOList = _d === void 0 ? [] : _d;
991
- var form = _Form.useForm()[0];
992
- function handleSave() {
993
- return __awaiter(this, void 0, void 0, function () {
994
- var method;
995
- return __generator(this, function (_a) {
996
- switch (_a.label) {
997
- case 0:
998
- method = 'post';
999
- if (typeof data.id === 'number') {
1000
- method = 'put';
1001
- }
1002
- return [4, SMchc_Questionnaire[method](data)];
1003
- case 1:
1004
- _a.sent();
1005
- _message.success('保存问卷成功');
1006
- onChangeStep(0);
1007
- return [2];
1008
59
  }
1009
- });
1010
- });
1011
- }
1012
- useEffect(function () {
1013
- var newGlobalLogic = __spreadArray([], globalLogic, true);
1014
- questionList.map(function (question, index) {
1015
- var logic = question.logic;
1016
- if (logic) {
1017
- newGlobalLogic.push({
1018
- bindIndex: logic.bind,
1019
- index: index
1020
- });
1021
- }
1022
- });
1023
- setGlobalLogic(newGlobalLogic);
1024
- }, []);
1025
- var handleValuesChange = function handleValuesChange(values, allValues) {
1026
- var changedKey = Object.keys(values)[0];
1027
- globalLogic.map(function (_a) {
1028
- var _b;
1029
- var bindIndex = _a.bindIndex,
1030
- index = _a.index;
1031
- if (changedKey == bindIndex) {
1032
- form.setFieldsValue((_b = {}, _b[index] = undefined, _b));
1033
- }
1034
- });
1035
- };
1036
- var renderFormItem = function renderFormItem(question, index) {
1037
- var logic = question.logic,
1038
- _a = question.questionOptionList,
1039
- questionOptionList = _a === void 0 ? [] : _a,
1040
- questionTitle = question.questionTitle,
1041
- questionType = question.questionType;
1042
- var itemStyle = {};
1043
- var Component = /*#__PURE__*/React__default.createElement(Fragment, null);
1044
- var bindIndex = logic === null || logic === void 0 ? void 0 : logic.bind;
1045
- var bindIndexSelectOption = (logic === null || logic === void 0 ? void 0 : logic.selectOption) || [];
1046
- var formItemValue = form.getFieldValue(bindIndex);
1047
- if (logic) {
1048
- itemStyle = {
1049
- display: 'none'
1050
- };
1051
- if (Array.isArray(formItemValue)) {
1052
- formItemValue.map(function (itemOption) {
1053
- if ((bindIndexSelectOption === null || bindIndexSelectOption === void 0 ? void 0 : bindIndexSelectOption.indexOf(itemOption)) > -1) {
1054
- itemStyle = {};
1055
- }
1056
- });
1057
- } else {
1058
- if ((bindIndexSelectOption === null || bindIndexSelectOption === void 0 ? void 0 : bindIndexSelectOption.indexOf(formItemValue)) > -1) {
1059
- itemStyle = {};
1060
- }
1061
- }
1062
- }
1063
- switch (QuestionTypeEnums.getLabel(questionType)) {
1064
- case '单选题':
1065
- Component = /*#__PURE__*/React__default.createElement(_Radio.Group, null, questionOptionList.map(function (option, key) {
1066
- return /*#__PURE__*/React__default.createElement(_Radio, {
1067
- style: {
1068
- display: 'block'
1069
- },
1070
- key: key,
1071
- value: key
1072
- }, option.optionTitle);
1073
- }));
1074
- break;
1075
- case '多选题':
1076
- Component = /*#__PURE__*/React__default.createElement(_Checkbox.Group, null, questionOptionList.map(function (option, key) {
1077
- return /*#__PURE__*/React__default.createElement(_Checkbox, {
1078
- style: {
1079
- display: 'block',
1080
- margin: 0
1081
- },
1082
- key: key,
1083
- value: key
1084
- }, option.optionTitle);
1085
- }));
1086
- break;
1087
- case '下拉题':
1088
- Component = /*#__PURE__*/React__default.createElement(Select$1, null, questionOptionList.map(function (option, key) {
1089
- return /*#__PURE__*/React__default.createElement(Select$1.Option, {
1090
- key: key,
1091
- value: key
1092
- }, option.optionTitle);
1093
- }));
1094
- break;
1095
- case '打分题':
1096
- Component = /*#__PURE__*/React__default.createElement(_Rate, null);
1097
- break;
1098
- case '段落说明':
1099
- break;
1100
- default:
1101
- Component = /*#__PURE__*/React__default.createElement(_Input, null);
1102
- break;
1103
- }
1104
- return /*#__PURE__*/React__default.createElement(_Form.Item, {
1105
- style: itemStyle,
1106
- name: index,
1107
- label: "".concat(index + 1, ".").concat(questionTitle)
1108
- }, Component);
1109
- };
1110
- var renderMobileShow = function renderMobileShow() {
1111
- return /*#__PURE__*/React__default.createElement(_Form, {
1112
- autoComplete: "off",
1113
- form: form,
1114
- layout: "vertical",
1115
- onValuesChange: handleValuesChange
1116
- }, groupVOList.map(function (g) {
1117
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
1118
- className: styles$1["questions-title"]
1119
- }, g.groupTitle), /*#__PURE__*/React__default.createElement("div", {
1120
- className: styles$1["questions-desc"],
1121
- dangerouslySetInnerHTML: {
1122
- __html: g.groupDescription
1123
- }
1124
- }), getQuestionsInGroup(questionList, g).map(function (question, index) {
1125
- return /*#__PURE__*/React__default.createElement(Fragment, {
1126
- key: index
1127
- }, renderFormItem(question, index));
1128
- }));
1129
- }));
1130
- };
1131
- var renderComputeShow = function renderComputeShow() {
1132
- return /*#__PURE__*/React__default.createElement(_Form, {
1133
- autoComplete: "off",
1134
- form: form,
1135
- layout: "vertical",
1136
- onValuesChange: handleValuesChange
1137
- }, groupVOList.map(function (g) {
1138
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
1139
- className: styles$1["questions-title"]
1140
- }, g.groupTitle), /*#__PURE__*/React__default.createElement("div", {
1141
- className: styles$1["questions-desc"],
1142
- dangerouslySetInnerHTML: {
1143
- __html: g.groupTitle
1144
- }
1145
- }), getQuestionsInGroup(questionList, g).map(function (question, index) {
1146
- return /*#__PURE__*/React__default.createElement(Fragment, {
1147
- key: index
1148
- }, renderFormItem(question, index));
1149
- }));
1150
- }));
1151
- };
1152
- return /*#__PURE__*/React__default.createElement("div", {
1153
- className: styles$1["question-step-three__panel"]
1154
- }, /*#__PURE__*/React__default.createElement("div", {
1155
- className: styles$1["question-step-three__panel-radio"]
1156
- }, /*#__PURE__*/React__default.createElement(_Radio.Group, {
1157
- onChange: function onChange(e) {
1158
- return setDevice(e.target.value);
1159
- },
1160
- value: device
1161
- }, /*#__PURE__*/React__default.createElement(_Radio.Button, {
1162
- value: "mobile"
1163
- }, /*#__PURE__*/React__default.createElement(MobileOutlined, {
1164
- style: {
1165
- marginRight: 5
1166
- }
1167
- }), "\u624B\u673A"), /*#__PURE__*/React__default.createElement(_Radio.Button, {
1168
- value: "compute"
1169
- }, /*#__PURE__*/React__default.createElement(DesktopOutlined, {
1170
- style: {
1171
- marginRight: 5
1172
- }
1173
- }), "\u7535\u8111"), /*#__PURE__*/React__default.createElement(_Radio.Button, {
1174
- value: "tablet"
1175
- }, /*#__PURE__*/React__default.createElement(TabletOutlined, {
1176
- style: {
1177
- marginRight: 5
1178
- },
1179
- rotate: 270
1180
- }), "\u5E8A\u5934\u5C4F"))), device === 'mobile' && /*#__PURE__*/React__default.createElement("div", {
1181
- className: styles$1["question-step-three__panel-mobile"]
1182
- }, /*#__PURE__*/React__default.createElement("div", {
1183
- className: styles$1["question-step-three__panel-mobile-preview"]
1184
- }, /*#__PURE__*/React__default.createElement("div", {
1185
- className: styles$1["question-step-three__panel-mobile-preview_content"]
1186
- }, renderMobileShow()))), device === 'tablet' && /*#__PURE__*/React__default.createElement("div", {
1187
- className: styles$1["question-step-three__panel-tablet"]
1188
- }, renderComputeShow()), device === 'compute' && /*#__PURE__*/React__default.createElement("div", {
1189
- className: styles$1["question-step-three__panel-compute"]
1190
- }, renderComputeShow()), /*#__PURE__*/React__default.createElement("div", {
1191
- className: styles$1["question-step-three__panel-bottom"]
1192
- }, /*#__PURE__*/React__default.createElement(_Button, {
1193
- style: {
1194
- marginRight: 8
1195
- },
1196
- onClick: function onClick() {
1197
- onChangeStep(1);
1198
- }
1199
- }, "\u4E0A\u4E00\u6B65"), /*#__PURE__*/React__default.createElement(_Button, {
1200
- type: "primary",
1201
- style: {
1202
- marginRight: 8
1203
- },
1204
- onClick: handleSave
1205
- }, "\u63D0\u4EA4")));
1206
- };
1207
- var fakeData = {
1208
- id: 2,
1209
- questionnaireTitle: "测试问卷2------",
1210
- questionList: [],
1211
- groupVOList: []
1212
- };
1213
- LazyAntd.Tree;
1214
- LazyAntd.TreeSelect;
1215
- var Select = LazyAntd.Select,
1216
- Table = LazyAntd.Table;
1217
- LazyAntd.Dropdown;
1218
- LazyAntd.Pagination;
1219
- function download(content, filename) {
1220
- if (filename === void 0) {
1221
- filename = '问卷答题情况.xlsx';
1222
- }
1223
- var eleLink = document.createElement('a');
1224
- eleLink.download = filename;
1225
- eleLink.style.display = 'none';
1226
- var blob = typeof content === 'string' ? new Blob([content]) : content;
1227
- console.log(_typeof(content), blob);
1228
- eleLink.href = URL.createObjectURL(blob);
1229
- document.body.appendChild(eleLink);
1230
- eleLink.click();
1231
- document.body.removeChild(eleLink);
1232
- }
1233
- var d = fakeData;
1234
- var L = function L(props) {
1235
- var _a = props.value,
1236
- value = _a === void 0 ? [] : _a,
1237
- _onChange2 = props.onChange,
1238
- questions = props.questions;
1239
- return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(_Button, {
1240
- block: true,
1241
- onClick: function onClick(e) {
1242
- return _onChange2 === null || _onChange2 === void 0 ? void 0 : _onChange2(__spreadArray(__spreadArray([], value, true), [{}], false));
1243
- }
1244
- }, "\u65B0\u589E"), value === null || value === void 0 ? void 0 : value.map(function (_, idx) {
1245
- var _a, _b, _c;
1246
- var target = questions.find(function (q) {
1247
- return q.id === _.questionId;
1248
- });
1249
- return /*#__PURE__*/React__default.createElement(_Row, {
1250
- key: idx,
1251
- style: {
1252
- marginTop: 6
1253
- },
1254
- gutter: 8
1255
- }, /*#__PURE__*/React__default.createElement(_Col, {
1256
- span: 6
1257
- }, /*#__PURE__*/React__default.createElement(Select, {
1258
- value: _.questionId,
1259
- options: questions === null || questions === void 0 ? void 0 : questions.map(function (q) {
1260
- return {
1261
- label: q.questionTitle,
1262
- value: q.id,
1263
- disabled: value.some(function (v) {
1264
- return v.questionId === q.id;
1265
- })
1266
- };
1267
- }),
1268
- onChange: function onChange(id) {
1269
- var selectTarget = questions.find(function (_) {
1270
- return _.id === id;
1271
- });
1272
- value.splice(idx, 1, __assign(__assign({}, _), {
1273
- questionId: id,
1274
- questionType: selectTarget === null || selectTarget === void 0 ? void 0 : selectTarget.questionType,
1275
- optionIndex: ''
1276
- }));
1277
- _onChange2 === null || _onChange2 === void 0 ? void 0 : _onChange2(__spreadArray([], value, true));
1278
- }
1279
- })), /*#__PURE__*/React__default.createElement(_Col, {
1280
- span: 16
1281
- }, /*#__PURE__*/React__default.createElement(Select, {
1282
- value: (_b = (_a = _.optionIndex) === null || _a === void 0 ? void 0 : _a.split(',')) === null || _b === void 0 ? void 0 : _b.filter(function (_) {
1283
- return !!_;
1284
- }),
1285
- mode: "multiple",
1286
- options: (_c = target === null || target === void 0 ? void 0 : target.questionOptionList) === null || _c === void 0 ? void 0 : _c.map(function (q) {
1287
- var _a;
1288
- return {
1289
- label: q.optionTitle,
1290
- value: (_a = q.optionIndex) === null || _a === void 0 ? void 0 : _a.toString()
1291
- };
1292
- }),
1293
- onChange: function onChange(id) {
1294
- value.splice(idx, 1, __assign(__assign({}, _), {
1295
- optionIndex: id === null || id === void 0 ? void 0 : id.toString()
1296
- }));
1297
- _onChange2 === null || _onChange2 === void 0 ? void 0 : _onChange2(__spreadArray([], value, true));
1298
- }
1299
- })), /*#__PURE__*/React__default.createElement(_Col, {
1300
- span: 2
1301
- }, /*#__PURE__*/React__default.createElement(_Button, {
1302
- block: true,
1303
- style: {
1304
- marginLeft: 0
1305
- },
1306
- danger: true,
1307
- onClick: function onClick(e) {
1308
- value.splice(idx, 1);
1309
- _onChange2 === null || _onChange2 === void 0 ? void 0 : _onChange2(__spreadArray([], value, true));
1310
- }
1311
- }, "\u5220\u9664")));
1312
- }));
1313
- };
1314
- var Step4 = function Step4(_a) {
1315
- var _b;
1316
- var onChangeStep = _a.onChangeStep,
1317
- _c = _a.data,
1318
- data = _c === void 0 ? d : _c;
1319
- var form = _Form.useForm()[0];
1320
- var _d = useState([]),
1321
- list = _d[0],
1322
- setList = _d[1];
1323
- function getReqData() {
1324
- return __assign({
1325
- questionnaireId: data.id
1326
- }, form.getFieldsValue());
1327
- }
1328
- return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
1329
- style: {
1330
- display: 'flex',
1331
- justifyContent: 'space-between',
1332
- alignItems: 'center',
1333
- padding: '0 12px',
1334
- marginBottom: 12
1335
- }
1336
- }, /*#__PURE__*/React__default.createElement("span", {
1337
- style: {
1338
- fontSize: 20,
1339
- fontWeight: 'bold'
1340
- }
1341
- }, data.questionnaireTitle), /*#__PURE__*/React__default.createElement(_Space, null, /*#__PURE__*/React__default.createElement(_Button, {
1342
- type: "primary",
1343
- onClick: function onClick() {
1344
- return SMchc_Questionnaire.fk_downloadResult(getReqData()).then(download);
1345
- }
1346
- }, "\u5BFC\u51FA"), /*#__PURE__*/React__default.createElement(_Button, {
1347
- type: "primary",
1348
- onClick: function onClick() {
1349
- return onChangeStep(0);
1350
- }
1351
- }, "\u8FD4\u56DE"))), /*#__PURE__*/React__default.createElement(SimpleForm, {
1352
- onValuesChange: function onValuesChange(v) {
1353
- return console.log('xxd', v);
1354
- },
1355
- form: form,
1356
- blocks: [{
1357
- title: '搜索条件',
1358
- rows: [{
1359
- itemsInRow: [{
1360
- type: 'Input',
1361
- outerOptions: {
1362
- name: 'outpatientNo',
1363
- label: '就诊卡号'
1364
- }
1365
- }, {
1366
- type: 'RangePicker',
1367
- outerOptions: {
1368
- name: 'fillDate',
1369
- label: '提交日期'
1370
- },
1371
- innerOptions: {
1372
- placeholder: ['请选择', '请选择']
1373
- }
1374
- }, {
1375
- type: 'InputNumber',
1376
- outerOptions: {
1377
- name: 'beginTotalScore',
1378
- label: '最小分数'
1379
- },
1380
- innerOptions: {}
1381
- }, {
1382
- type: 'InputNumber',
1383
- outerOptions: {
1384
- name: 'endTotalScore',
1385
- label: '最大分数'
1386
- },
1387
- innerOptions: {}
1388
- }],
1389
- layoutType: 6
1390
- }, {
1391
- itemsInRow: [{
1392
- type: 'Custom',
1393
- layoutType: 24,
1394
- innerOptions: {
1395
- CustomedComponent: L,
1396
- questions: data.questionList
1397
- },
1398
- outerOptions: {
1399
- name: 'questionOptionList',
1400
- label: '题目'
1401
- }
1402
- }]
1403
- }, {
1404
- itemsInRow: [{
1405
- customNode: /*#__PURE__*/React__default.createElement(_Button, {
1406
- type: "primary",
1407
- block: true,
1408
- style: {
1409
- marginLeft: 0
1410
- },
1411
- onClick: function onClick(e) {
1412
- SMchc_Questionnaire.fk_getResult(getReqData()).then(setList);
1413
- }
1414
- }, "\u641C\u7D22")
1415
- }],
1416
- layoutType: 24
1417
- }]
1418
- }]
1419
- }), /*#__PURE__*/React__default.createElement(Table, {
1420
- sticky: true,
1421
- scroll: {
1422
- x: 1500
1423
- },
1424
- bordered: true,
1425
- dataSource: list,
1426
- style: {
1427
- marginTop: 24
60
+ }, "\u4E0A\u62A5");
1428
61
  },
1429
- columns: __spreadArray(__spreadArray([{
1430
- dataIndex: 'outpatientNo',
62
+ tableColumns: [{
1431
63
  title: '就诊卡号',
1432
- ellipsis: true,
1433
- fixed: true,
1434
- width: 160
64
+ dataIndex: 'outpatientNO'
1435
65
  }, {
1436
66
  title: '姓名',
1437
- width: 160,
1438
- render: function render(a, b) {
1439
- return b.name;
1440
- }
67
+ dataIndex: 'name'
1441
68
  }, {
1442
- title: '年龄',
1443
- width: 160,
1444
- render: function render(a, b) {
1445
- return b.age;
1446
- }
69
+ title: '电话',
70
+ dataIndex: 'telephone'
1447
71
  }, {
1448
- title: '孕周',
1449
- width: 160,
1450
- render: function render(a, b) {
1451
- return b.expandField1;
1452
- }
72
+ title: '登记日期',
73
+ dataIndex: 'registerDate'
1453
74
  }, {
1454
- title: '预产期',
1455
- width: 160,
1456
- render: function render(a, b) {
1457
- return b.expandField2;
1458
- }
75
+ title: '上报时间',
76
+ dataIndex: 'uploadDate'
1459
77
  }, {
1460
- title: '手机号',
1461
- width: 160,
1462
- render: function render(a, b) {
1463
- return b.telephone;
78
+ title: '上报状态',
79
+ dataIndex: 'uploadState',
80
+ inputType: 'MS',
81
+ inputProps: {
82
+ uniqueKey: '上报状态',
83
+ marshal: 0
1464
84
  }
1465
85
  }, {
1466
- title: '居住地址',
1467
- width: 160,
1468
- render: function render(a, b) {
1469
- return b.residenceAddress;
1470
- }
1471
- }, {
1472
- title: '提交日期',
1473
- width: 160,
1474
- render: function render(a, b) {
1475
- return b.fillDate;
1476
- }
1477
- }], ((_b = data.groupVOList) === null || _b === void 0 ? void 0 : _b.map(function (g) {
1478
- var _a;
1479
- var questionList = (_a = data.questionList) === null || _a === void 0 ? void 0 : _a.filter(function (q) {
1480
- var _a;
1481
- return (_a = g.questionIndexList) === null || _a === void 0 ? void 0 : _a.includes(q.questionIndex);
1482
- });
1483
- return {
1484
- title: g.groupTitle,
1485
- children: questionListMapColumn(questionList)
1486
- };
1487
- })) || [], true), [{
1488
- title: '总分',
1489
- width: 160,
1490
- render: function render(a, b) {
1491
- return b.totalScore;
1492
- }
1493
- }], false)
1494
- }));
1495
- };
1496
- function questionListMapColumn(list) {
1497
- if (list === void 0) {
1498
- list = [];
1499
- }
1500
- return list.map(function (q) {
1501
- return {
1502
- title: q.questionTitle,
1503
- align: 'center',
1504
- width: 140,
1505
- ellipsis: true,
1506
- render: function render(a, b) {
1507
- var _a, _b, _c, _d;
1508
- var target = b.writeDetailList.find(function (_) {
1509
- return _.questionId === q.id;
1510
- });
1511
- var optionIdxArr = ((_b = (_a = target === null || target === void 0 ? void 0 : target.optionIndex) === null || _a === void 0 ? void 0 : _a.split(',')) === null || _b === void 0 ? void 0 : _b.filter(function (_) {
1512
- return !!_;
1513
- })) || [];
1514
- var displayStr = (_c = q.questionOptionList) === null || _c === void 0 ? void 0 : _c.filter(function (_) {
1515
- var _a;
1516
- return optionIdxArr.includes((_a = _.optionIndex) === null || _a === void 0 ? void 0 : _a.toString());
1517
- });
1518
- return /*#__PURE__*/React__default.createElement("div", null, ((_d = displayStr === null || displayStr === void 0 ? void 0 : displayStr.map(function (_) {
1519
- return _.optionTitle;
1520
- })) === null || _d === void 0 ? void 0 : _d.join('、')) || (target === null || target === void 0 ? void 0 : target.questionResult));
1521
- }
1522
- };
1523
- }) || [];
1524
- }
1525
- var css_248z = ".index-module_questionnaire-steps__o68A9 {\n background-color: white;\n height: 70px;\n display: flex;\n align-items: center;\n padding: 0 15% !important;\n margin-bottom: 8px;\n}\n.index-module_questionnaire-steps-content__rcPcJ {\n padding: 16px;\n background-color: white;\n}\n";
1526
- var styles = {
1527
- "questionnaire-steps": "index-module_questionnaire-steps__o68A9",
1528
- "questionnaire-steps-content": "index-module_questionnaire-steps-content__rcPcJ"
1529
- };
1530
- styleInject(css_248z);
1531
- var Questionnaire = function Questionnaire(props) {
1532
- var onEditorUpload = props.onEditorUpload;
1533
- var _a = useState(0),
1534
- current = _a[0],
1535
- setCurrent = _a[1];
1536
- var _b = useState(),
1537
- data = _b[0],
1538
- setData = _b[1];
1539
- var _c = useState([]),
1540
- templateList = _c[0],
1541
- setTemplateList = _c[1];
1542
- function fetchTemplateList() {
1543
- SMchc_Questionnaire.fk_list().then(setTemplateList);
1544
- }
1545
- function onDeleteTemplate(data) {
1546
- return __awaiter(this, void 0, void 0, function () {
1547
- return __generator(this, function (_a) {
1548
- switch (_a.label) {
1549
- case 0:
1550
- return [4, SMchc_Questionnaire.del(data.id)];
1551
- case 1:
1552
- _a.sent();
1553
- _message.success('删除问卷成功');
1554
- fetchTemplateList();
1555
- return [2];
1556
- }
1557
- });
1558
- });
1559
- }
1560
- useEffect(function () {
1561
- current || fetchTemplateList();
1562
- }, [current]);
1563
- var handleChangeStep = function handleChangeStep(target) {
1564
- setCurrent(target);
1565
- };
1566
- var handlePreview = function handlePreview(data) {
1567
- setData(data);
1568
- handleChangeStep(2);
1569
- };
1570
- var handleInitQuestions = function handleInitQuestions(data_1) {
1571
- var args_1 = [];
1572
- for (var _i = 1; _i < arguments.length; _i++) {
1573
- args_1[_i - 1] = arguments[_i];
1574
- }
1575
- return __awaiter(void 0, __spreadArray([data_1], args_1, true), void 0, function (data, isCopy, step) {
1576
- var _data;
1577
- var _a;
1578
- if (isCopy === void 0) {
1579
- isCopy = false;
1580
- }
1581
- if (step === void 0) {
1582
- step = 1;
1583
- }
1584
- return __generator(this, function (_b) {
1585
- switch (_b.label) {
1586
- case 0:
1587
- if (!(typeof data.id === 'number')) return [3, 2];
1588
- return [4, SMchc_Questionnaire.fk_byId(data.id)];
1589
- case 1:
1590
- _data = _b.sent();
1591
- if (isCopy && _data) {
1592
- delete _data.id;
1593
- _data.questionList = (_a = _data.questionList) === null || _a === void 0 ? void 0 : _a.map(function (q) {
1594
- var _a;
1595
- delete q.id;
1596
- q.questionOptionList = (_a = q.questionOptionList) === null || _a === void 0 ? void 0 : _a.map(function (o) {
1597
- delete o.id;
1598
- return o;
1599
- });
1600
- return q;
1601
- });
1602
- }
1603
- return [3, 3];
1604
- case 2:
1605
- _data = data;
1606
- _b.label = 3;
1607
- case 3:
1608
- console.log('qqq', {
1609
- _data: _data,
1610
- data: data,
1611
- isCopy: isCopy
1612
- });
1613
- setData(_data);
1614
- handleChangeStep(step);
1615
- return [2];
1616
- }
1617
- });
1618
- });
1619
- };
1620
- return /*#__PURE__*/React__default.createElement("div", {
1621
- className: styles["questionnaire"]
1622
- }, /*#__PURE__*/React__default.createElement(_Steps, {
1623
- current: current,
1624
- className: styles["questionnaire-steps"]
1625
- }, /*#__PURE__*/React__default.createElement(_Steps.Step, {
1626
- title: "\u9009\u62E9\u95EE\u53771"
1627
- }), /*#__PURE__*/React__default.createElement(_Steps.Step, {
1628
- title: "\u7F16\u8F91\u95EE\u5377"
1629
- }), /*#__PURE__*/React__default.createElement(_Steps.Step, {
1630
- title: "\u9884\u89C8\u95EE\u5377"
1631
- }), /*#__PURE__*/React__default.createElement(_Steps.Step, {
1632
- title: "\u7EDF\u8BA1\u95EE\u5377"
1633
- })), /*#__PURE__*/React__default.createElement("div", {
1634
- className: styles["questionnaire-steps-content"]
1635
- }, current === 0 && /*#__PURE__*/React__default.createElement(Step1, {
1636
- handleInitQuestions: handleInitQuestions,
1637
- templateList: templateList,
1638
- onDeleteTemplate: onDeleteTemplate
1639
- }), current === 1 && data && /*#__PURE__*/React__default.createElement(Step2, {
1640
- onChangeStep: handleChangeStep,
1641
- onPreview: handlePreview,
1642
- data: data,
1643
- onEditorUpload: onEditorUpload
1644
- }), current === 2 && data && /*#__PURE__*/React__default.createElement(Step3, {
1645
- onChangeStep: handleChangeStep,
1646
- data: data
1647
- }), current === 3 && data && /*#__PURE__*/React__default.createElement(Step4, {
1648
- onChangeStep: handleChangeStep,
1649
- data: data
1650
- })));
1651
- };
1652
- function questionnaire2() {
1653
- return /*#__PURE__*/React__default.createElement("div", {
1654
- style: {
1655
- overflow: 'auto',
1656
- height: '100%'
1657
- }
1658
- }, /*#__PURE__*/React__default.createElement(Questionnaire, null));
86
+ title: '上报说明',
87
+ dataIndex: 'uploadMsg'
88
+ }]
89
+ });
1659
90
  }
1660
- export { questionnaire2 as default };
1661
- //# sourceMappingURL=.root32.js.map
91
+ export { BreastCancerDataReport as default };