index.js 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. var template = ''
  2. function isStrEmpty(str) {
  3. if (str instanceof Array) {
  4. return str.length === 0
  5. }
  6. return typeof str === 'undefined' || str === null || str === ''
  7. }
  8. $.ajax('../../../component/statistics/LascBreastCduInspectEntityList/index.html', {
  9. data: {},
  10. dataType: 'html',
  11. cache: false,
  12. timeout: 60000,
  13. async: false,
  14. error: function (res) {},
  15. success: function (res) {
  16. template = res
  17. }
  18. })
  19. Vue.component('lasc-breast-cduInspect-entity-list', {
  20. template: template,
  21. props: [],
  22. data: function () {
  23. return {
  24. readonly: true,
  25. isShowPicker: false,
  26. columns: ['非对称性腺体增厚', '乳头凹陷', '腋窝淋巴结肿大', '副乳腺', '乳腺切除术后'],
  27. pickType: '',
  28. curItem: '',
  29. isShowDatePicker: false,
  30. activeDateField: '',
  31. date: '',
  32. form: {
  33. screenId: '', //两癌筛查id
  34. receiveBreastUltrasoundInspect: '2', //是否接收乳腺临床检查1拒绝2接收
  35. list: []
  36. },
  37. active: '',
  38. cytoTubeNum: '',
  39. data: {
  40. value: [
  41. {
  42. id: 212,
  43. screenId: '808080f683c9e2570183c9f84cac0000',
  44. name: null,
  45. receiveBreastUltrasoundInspect: '2',
  46. rightCduCyst: '1',
  47. rightCduSolidMassSituation: '2',
  48. rightCduSolidMassPosition: '6',
  49. rightCduSolidMassShape: '1',
  50. rightCduSolidMassDirection: '1',
  51. rightCduSolidMassMargin: '1',
  52. rightCduSolidMassEcho: '3',
  53. rightCduSolidMassPosteriorEcho: '1',
  54. rightCduIrregularHypoechoic: '1',
  55. rightCduIrregularHypoechoicPosition: '',
  56. rightCduDuctDilatation: '1',
  57. rightCduAxillaryLymphNode: '1',
  58. rightCduOtherAbnormal: '1',
  59. rightCduOtherAbnormalDesc: '',
  60. rightCduBiRads: '2',
  61. leftCduCyst: '1',
  62. leftCduSolidMassSituation: '1',
  63. leftCduSolidMassPosition: '',
  64. leftCduSolidMassShape: '',
  65. leftCduSolidMassDirection: '1',
  66. leftCduSolidMassMargin: '1',
  67. leftCduSolidMassEcho: '3',
  68. leftCduSolidMassPosteriorEcho: '1',
  69. leftCduIrregularHypoechoic: '1',
  70. leftCduIrregularHypoechoicPosition: '',
  71. leftCduDuctDilatation: '1',
  72. leftCduAxillaryLymphNode: '1',
  73. leftCduOtherAbnormal: '1',
  74. leftCduOtherAbnormalDesc: '',
  75. leftCduBiRads: '2',
  76. biRadsResult: null,
  77. breastUltrasoundInspectOrg: '集美区集美街道社区卫生服务中心',
  78. breastUltrasoundInspectOrgCode: '3502110100',
  79. breastUltrasoundInspectUser: '黄琴',
  80. breastUltrasoundInspectUserCode: '361aef4891de492cb0e6a47cf9fe31f3',
  81. breastUltrasoundInspectTime: '2022-10-12',
  82. doctor: '361aef4891de492cb0e6a47cf9fe31f3',
  83. cduTubeNum: null,
  84. pdfUrl: 'https://www.xmtyw.cn/twocancerpdf/null.pdf',
  85. rightCduSolidMassMaxSize: '5*7',
  86. leftCduSolidMassMaxSize: '',
  87. breastUltrasoundCheckRecord: null,
  88. rightCduCystType: null,
  89. rightCduCystTypeOtherContent: null,
  90. rightCystLocation: null,
  91. rightCystSize: null,
  92. rightCduSolidMassBloodSignal: null,
  93. rightCduSolidMassBloodLevel: null,
  94. rightCduSolidMassBloodDistribution: null,
  95. rightCduIrregularHypoechoicSize: null,
  96. rightDuctLowHyperechoicIn: null,
  97. rightDuctDilationLocation: null,
  98. rightDuctDilationLocationOtherContent: null,
  99. leftCduCystType: null,
  100. leftCduCystTypeOtherContent: null,
  101. leftCystLocation: null,
  102. leftCystSize: null,
  103. leftCduSolidMassBloodSignal: null,
  104. leftCduSolidMassBloodLevel: null,
  105. leftCduSolidMassBloodDistribution: null,
  106. leftDuctLowHyperechoicIn: null,
  107. leftDuctDilationLocation: null,
  108. leftDuctDilationLocationOtherContent: null
  109. }
  110. ]
  111. }
  112. }
  113. },
  114. methods: {},
  115. mounted() {
  116. if (this.data.value && this.data.value.length) {
  117. var first = this.data.value[0]
  118. this.form.screenId = first.screenId
  119. this.form.receiveBreastUltrasoundInspect = first.receiveBreastUltrasoundInspect
  120. var formData = JSON.parse(JSON.stringify(this.data.value))
  121. formData.forEach(function (v) {
  122. var left = { boxShow: false, name: '左乳' },
  123. right = { boxShow: false, name: '右乳' }
  124. for (var k in v) {
  125. if (k.indexOf('right') === 0) {
  126. right[k] = v[k]
  127. if (k == 'rightCduSolidMassMaxSize') {
  128. if (!isStrEmpty(v[k])) {
  129. var m = v[k].split('*')
  130. right['minSize'] = isStrEmpty(m[0]) ? '' : Number(m[0])
  131. right['middleSize'] = isStrEmpty(m[1]) ? '' : Number(m[1])
  132. right['maxSize'] = isStrEmpty(m[2]) ? '' : Number(m[2])
  133. } else {
  134. right['minSize'] = ''
  135. right['middleSize'] = ''
  136. right['maxSize'] = ''
  137. }
  138. }
  139. if (k == 'rightCystSize') {
  140. if (!isStrEmpty(v[k])) {
  141. var m = v[k].split('*')
  142. right['rightCystMinSize'] = isStrEmpty(m[0]) ? '' : Number(m[0])
  143. right['rightCystMiddleSize'] = isStrEmpty(m[1]) ? '' : Number(m[1])
  144. right['rightCystMaxSize'] = isStrEmpty(m[2]) ? '' : Number(m[2])
  145. } else {
  146. right['rightCystMinSize'] = ''
  147. right['rightCystMiddleSize'] = ''
  148. right['rightCystMaxSize'] = ''
  149. }
  150. }
  151. if (k == 'rightCduIrregularHypoechoicSize') {
  152. if (!isStrEmpty(v[k])) {
  153. var m = v[k].split('*')
  154. right['rightCduIrregularMinSize'] = isStrEmpty(m[0]) ? '' : Number(m[0])
  155. right['rightCduIrregularMiddleSize'] = isStrEmpty(m[1]) ? '' : Number(m[1])
  156. right['rightCduIrregularMaxSize'] = isStrEmpty(m[2]) ? '' : Number(m[2])
  157. } else {
  158. right['rightCduIrregularMinSize'] = ''
  159. right['rightCduIrregularMiddleSize'] = ''
  160. right['rightCduIrregularMaxSize'] = ''
  161. }
  162. }
  163. if (k == 'rightCduIrregularHypoechoicPosition') {
  164. right[k] = right[k] ? right[k].split(',') : []
  165. }
  166. if (k == 'rightCduSolidMassBloodDistribution') {
  167. right[k] = right[k] ? right[k].split(',') : []
  168. }
  169. if (k == 'rightCduCystType') {
  170. right[k] = right[k] ? right[k].split(',') : []
  171. }
  172. if (k == 'rightCduCyst') {
  173. right[k] = right[k] ? right[k].split(',') : []
  174. }
  175. if (k == 'rightCduOtherAbnormal') {
  176. right[k] = right[k] ? right[k].split(',') : []
  177. }
  178. if (k == 'rightDuctDilationLocation') {
  179. right[k] = right[k] ? right[k].split(',') : []
  180. }
  181. } else if (k.indexOf('left') === 0) {
  182. left['right' + k.substring(4)] = v[k]
  183. if (k == 'leftCduSolidMassMaxSize') {
  184. if (!isStrEmpty(v[k])) {
  185. var m = v[k].split('*')
  186. left['minSize'] = isStrEmpty(m[0]) ? '' : Number(m[0])
  187. left['middleSize'] = isStrEmpty(m[1]) ? '' : Number(m[1])
  188. left['maxSize'] = isStrEmpty(m[2]) ? '' : Number(m[2])
  189. } else {
  190. left['minSize'] = ''
  191. left['middleSize'] = ''
  192. left['maxSize'] = ''
  193. }
  194. }
  195. if (k == 'leftCystSize') {
  196. if (!isStrEmpty(v[k])) {
  197. var m = v[k].split('*')
  198. left['rightCystMinSize'] = isStrEmpty(m[0]) ? '' : Number(m[0])
  199. left['rightCystMiddleSize'] = isStrEmpty(m[1]) ? '' : Number(m[1])
  200. left['rightCystMaxSize'] = isStrEmpty(m[2]) ? '' : Number(m[2])
  201. } else {
  202. left['rightCystMinSize'] = ''
  203. left['rightCystMiddleSize'] = ''
  204. left['rightCystMaxSize'] = ''
  205. }
  206. }
  207. if (k == 'leftCduIrregularHypoechoicSize') {
  208. if (!isStrEmpty(v[k])) {
  209. var m = v[k].split('*')
  210. left['rightCduIrregularMinSize'] = isStrEmpty(m[0]) ? '' : Number(m[0])
  211. left['rightCduIrregularMiddleSize'] = isStrEmpty(m[1]) ? '' : Number(m[1])
  212. left['rightCduIrregularMaxSize'] = isStrEmpty(m[2]) ? '' : Number(m[2])
  213. } else {
  214. left['rightCduIrregularMinSize'] = ''
  215. left['rightCduIrregularMiddleSize'] = ''
  216. left['rightCduIrregularMaxSize'] = ''
  217. }
  218. }
  219. if (k == 'leftCduIrregularHypoechoicPosition') {
  220. left['right' + k.substring(4)] = left['right' + k.substring(4)] ? left['right' + k.substring(4)].split(',') : []
  221. }
  222. if (k == 'leftCduSolidMassBloodDistribution') {
  223. left['right' + k.substring(4)] = left['right' + k.substring(4)] ? left['right' + k.substring(4)].split(',') : []
  224. }
  225. if (k == 'leftCduOtherAbnormal') {
  226. left['right' + k.substring(4)] = left['right' + k.substring(4)] ? left['right' + k.substring(4)].split(',') : []
  227. }
  228. if (k == 'leftCduCystType') {
  229. left['right' + k.substring(4)] = left['right' + k.substring(4)] ? left['right' + k.substring(4)].split(',') : []
  230. }
  231. if (k == 'leftCduCyst') {
  232. left['right' + k.substring(4)] = left['right' + k.substring(4)] ? left['right' + k.substring(4)].split(',') : []
  233. }
  234. if (k == 'leftDuctDilationLocation') {
  235. left['right' + k.substring(4)] = left['right' + k.substring(4)] ? left['right' + k.substring(4)].split(',') : []
  236. }
  237. // if(k=="leftCduSolidMassMaxSize") {
  238. // left["right"+ k.substring(4)] = left["right"+ k.substring(4)].split(',')
  239. // }
  240. }
  241. }
  242. v.breastList = [right, left]
  243. })
  244. this.form.list = formData
  245. this.cytoTubeNum = first.cytoTubeNum ? first.cytoTubeNum : ''
  246. console.log(this.form, 'lkkkkkkkkkkkkkkkkkkkkkkkkkkkk')
  247. }
  248. }
  249. })