fangshi-detail-6.js 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146
  1. Vue.component('fangshi-detail-6', {
  2. template: '<div class="mt40">\
  3. <button class="button" @click="editBtn()">&nbsp;</button>\
  4. <p class="c-f20 mb10" style="text-align: center;">新生儿家庭访视记录表</p>\
  5. <div class="ui-grid p10 setradio">\
  6. <div class="ui-col-1">\
  7. <div class="ui-grid">\
  8. <div class="ui-col-0">姓名:</div>\
  9. <div class="ui-col-1">\
  10. <el-input :readonly="!editable" v-model="newbornData.sick_NAME" placeholder="" clearable></el-input>\
  11. </div>\
  12. </div>\
  13. </div>\
  14. <div class="ui-col-1">\
  15. <div class="ui-grid">\
  16. <div class="ui-col-0">户籍:&emsp;</div>\
  17. <div class="ui-col-1">\
  18. <el-radio-group v-model="newbornData.help_ORGANIZATION_FLAG" :disabled="!editable">\
  19. <el-radio label="1" :disabled="!editable">本市</el-radio>\
  20. <el-radio label="2" :disabled="!editable">省内</el-radio>\
  21. <el-radio label="3" :disabled="!editable">省外</el-radio>\
  22. </el-radio-group>\
  23. </div>\
  24. </div>\
  25. </div>\
  26. <div class="ui-col-1">\
  27. <div class="ui-grid">\
  28. <div class="ui-col-0">卡号:</div>\
  29. <div class="ui-col-1">\
  30. <el-input :readonly="!editable" v-model="newbornData.number_NO" placeholder="" clearable></el-input>\
  31. </div>\
  32. </div>\
  33. </div>\
  34. </div>\
  35. <table class="table table-bordered">\
  36. <tr>\
  37. <td class="col-w120 c-t-center">性别</td>\
  38. <td>\
  39. <el-radio-group v-model="newbornData.sick_SEX">\
  40. <div>\
  41. <el-radio :disabled="!editable" label="0">未知的性别</el-radio>\
  42. <el-radio :disabled="!editable" label="1">男</el-radio>\
  43. </div>\
  44. <div class="mt10">\
  45. <el-radio :disabled="!editable" label="2">女</el-radio>\
  46. <el-radio :disabled="!editable" label="9">未说明的性别</el-radio>\
  47. </div>\
  48. </el-radio-group>\
  49. </td>\
  50. <td colspan="2">\
  51. <div class="ui-grid">\
  52. <div class="ui-col-0">\
  53. 出生日期:\
  54. </div>\
  55. <div class="ui-col-1">\
  56. <el-date-picker :readonly="!editable" v-model="newbornData.birthday" type="date" placeholder="选择日期">\
  57. </el-date-picker>\
  58. </div>\
  59. </div>\
  60. </td>\
  61. <td>\
  62. <div class="ui-grid">\
  63. <div class="ui-col-0">\
  64. 户籍地址:\
  65. </div>\
  66. <div class="ui-col-1">\
  67. <el-input :readonly="!editable" v-model="newbornData.permanent_RESIDENCE_ADDRESS" placeholder="" clearable></el-input>\
  68. </div>\
  69. </div>\
  70. </td>\
  71. </tr>\
  72. <tr>\
  73. <td class="col-w120 c-t-center">母亲身份证号</td>\
  74. <td>\
  75. <el-input :readonly="!editable" v-model="newbornData.mother_IDENTITY_CARD_NO" placeholder="" clearable></el-input>\
  76. </td>\
  77. <td class="c-t-center">家庭住址</td>\
  78. <td colspan="2">\
  79. <el-input :readonly="!editable" v-model="newbornData.mother_ADDRESS" placeholder="" clearable></el-input>\
  80. </td>\
  81. </tr>\
  82. <tr>\
  83. <td class="col-w120 c-t-center">母 亲</td>\
  84. <td>\
  85. <div class="ui-grid">\
  86. <div class="ui-col-0">\
  87. 姓名\
  88. </div>\
  89. <div class="ui-col-1">\
  90. <el-input :readonly="!editable" v-model="newbornData.mother_NAME" placeholder="" clearable></el-input>\
  91. </div>\
  92. </div>\
  93. </td>\
  94. <td>\
  95. <div class="ui-grid">\
  96. <div class="ui-col-0">\
  97. 职业\
  98. </div>\
  99. <div class="ui-col-1">\
  100. <el-input :readonly="!editable" v-model="newbornData.mother_OCCUPATION" placeholder="" clearable></el-input>\
  101. </div>\
  102. </div>\
  103. </td>\
  104. <td>\
  105. <div class="ui-grid">\
  106. <div class="ui-col-0">\
  107. 联系电话\
  108. </div>\
  109. <div class="ui-col-1">\
  110. <el-input type="number" :readonly="!editable" v-model="newbornData.mother_PHONE" placeholder=""></el-input>\
  111. </div>\
  112. </div>\
  113. </td>\
  114. <td>\
  115. <div class="ui-grid">\
  116. <div class="ui-col-0">\
  117. 出生日期\
  118. </div>\
  119. <div class="ui-col-1">\
  120. <el-date-picker :readonly="!editable" v-model="newbornData.mother_BIRTHDAY" type="date" placeholder="选择日期">\
  121. </el-date-picker>\
  122. </div>\
  123. </div>\
  124. </td>\
  125. </tr>\
  126. <tr>\
  127. <td class="col-w120 c-t-center">父 亲</td>\
  128. <td>\
  129. <div class="ui-grid">\
  130. <div class="ui-col-0">\
  131. 姓名\
  132. </div>\
  133. <div class="ui-col-1">\
  134. <el-input :readonly="!editable" v-model="newbornData.father_NAME" placeholder="" clearable></el-input>\
  135. </div>\
  136. </div>\
  137. </td>\
  138. <td>\
  139. <div class="ui-grid">\
  140. <div class="ui-col-0">\
  141. 职业\
  142. </div>\
  143. <div class="ui-col-1">\
  144. <el-input :readonly="!editable" v-model="newbornData.father_OCCUPATION" placeholder="" clearable></el-input>\
  145. </div>\
  146. </div>\
  147. </td>\
  148. <td>\
  149. <div class="ui-grid">\
  150. <div class="ui-col-0">\
  151. 联系电话\
  152. </div>\
  153. <div class="ui-col-1">\
  154. <el-input type="number" :readonly="!editable" v-model="newbornData.father_PHONE"></el-input>\
  155. </div>\
  156. </div>\
  157. </td>\
  158. <td>\
  159. <div class="ui-grid">\
  160. <div class="ui-col-0">\
  161. 出生日期\
  162. </div>\
  163. <div class="ui-col-1">\
  164. <el-date-picker :readonly="!editable" v-model="newbornData.father_BIRTHDAY" type="date" placeholder="选择日期">\
  165. </el-date-picker>\
  166. </div>\
  167. </div>\
  168. </td>\
  169. </tr>\
  170. <tr>\
  171. <td colspan="2" class="setinput c-t-center">出生孕周\
  172. <el-input style="width:70px;" type="number" :readonly="!editable" v-model="newbornData.birth_PREGNANCY_WEEK"></el-input>\
  173. 周\
  174. </td>\
  175. <td colspan="3">\
  176. <div class="ui-grid">\
  177. <div class="ui-col-0">\
  178. 母亲妊娠期患病情况:\
  179. </div>\
  180. <div class="ui-col-1">\
  181. <el-radio-group v-model="newbornData.pregnancy_SICK">\
  182. <el-radio :disabled="!editable" label="1">糖尿病</el-radio>\
  183. <el-radio :disabled="!editable" label="2">妊娠期高血压</el-radio>\
  184. <el-radio :disabled="!editable" label="4" class="setinput">其他\
  185. <el-input type="text" :readonly="pregnancy_SICK_CIRCS_other||!editable" v-model="newbornData.pregnancy_SICK_CIRCS" clearable></el-input>\
  186. </el-radio>\
  187. </el-radio-group>\
  188. </div>\
  189. </div>\
  190. </td>\
  191. </tr>\
  192. <tr>\
  193. <td class="col-w120 c-t-center setinput">助产机构名称:\
  194. <el-input style="width:120px;" type="text" :readonly="!editable" v-model="newbornData.help_ORGANIZATION_NAME" clearable></el-input>\
  195. </td>\
  196. <td class="c-t-center">\
  197. 出院时间\
  198. <div class="setPicker">\
  199. <el-date-picker :readonly="!editable" v-model="newbornData.discharged_DATE" type="date" value-format="yyyy-MM-dd" placeholder="选择日期">\
  200. </el-date-picker>\
  201. </div>\
  202. </td>\
  203. <td colspan="2">\
  204. 出生情况:\
  205. <el-checkbox-group v-model="delivery_WAY_check" :disabled="!editable">\
  206. <el-checkbox style="margin-left: 30px;" label="1">顺产</el-checkbox>\
  207. <el-checkbox label="2">胎头吸引</el-checkbox>\
  208. <el-checkbox label="3">产钳</el-checkbox>\
  209. <el-checkbox label="4">剖宫</el-checkbox>\
  210. <el-checkbox label="5">双多胎</el-checkbox>\
  211. <el-checkbox label="6">臀位</el-checkbox>\
  212. <el-checkbox class="setinput" label="7">\
  213. <el-input type="text" :readonly="birth_OTHER||!editable" v-model="newbornData.birth_OTHER" placeholder="其他" clearable></el-input>\
  214. </el-checkbox>\
  215. </el-checkbox-group>\
  216. </td>\
  217. <td>\
  218. 新生儿窒息:\
  219. <el-radio-group v-model="newbornData.suffocation" :disabled="!editable">\
  220. <el-radio :disabled="!editable" label="1">无</el-radio>\
  221. <el-radio :disabled="!editable" label="2">有</el-radio>\
  222. </el-radio-group>\
  223. <div class="setinput">\
  224. (Apgar 评分:1分钟\
  225. <el-input style="width:70px;" type="number" :readonly="!editable" v-model="newbornData.apgar_O"></el-input>分,5分钟\
  226. <el-input style="width:70px;" type="number" :readonly="!editable" v-model="newbornData.apgar_F"></el-input>分,不详\
  227. <el-input style="width:70px;" type="number" :readonly="!editable" v-model="newbornData.apgar_N"></el-input>)\
  228. </div>\
  229. </td>\
  230. </tr>\
  231. <tr>\
  232. <td colspan="2" class="c-t-center">新生儿病史:\
  233. <el-input :readonly="!editable" v-model="newbornData.blessedevent_MEDICAL_HISTORY" placeholder="" clearable></el-input>\
  234. </td>\
  235. <td class="c-t-center">诊治机构:\
  236. <el-input :readonly="!editable" v-model="newbornData.help_OUT_ORGANIZATION" placeholder="" clearable></el-input>\
  237. </td>\
  238. <td colspan="2">计划免疫情况:\
  239. <el-radio-group v-model="newbornData.plan_IMMUNE">\
  240. <el-radio :disabled="!editable" label="1">卡介苗</el-radio>\
  241. <el-radio :disabled="!editable" label="2">乙肝疫苗</el-radio>\
  242. <el-radio :disabled="!editable" label="3">以上两种</el-radio>\
  243. <el-radio :disabled="!editable" label="4">未种</el-radio>\
  244. </el-radio-group>\
  245. </td>\
  246. </tr>\
  247. <tr>\
  248. <td colspan="2">\
  249. <div class="ui-grid">\
  250. <div class="ui-col-0">\
  251. 新生儿出生体重:\
  252. </div>\
  253. <div class="ui-col-1 setinput">\
  254. <el-input style="width: 70px;" type="number" :readonly="!editable" v-model="newbornData.blessedevent_BIRTH_WEIGHT" :step="0.1"></el-input>\
  255. kg\
  256. </div>\
  257. </div>\
  258. </td>\
  259. <td>\
  260. <div class="ui-grid">\
  261. <div class="ui-col-0">\
  262. 出生身长:\
  263. </div>\
  264. <div class="ui-col-1 setinput">\
  265. <el-input style="width: 70px;" type="number" :readonly="!editable" v-model="newbornData.birth_BODY_LENGTH"></el-input>cm\
  266. </div>\
  267. </div>\
  268. </td>\
  269. <td colspan="2">是否有畸形:\
  270. <el-radio-group :disabled="!editable" v-model="newbornData.deformity_NULL">\
  271. <el-radio :disabled="!editable" label="1">无</el-radio>\
  272. <el-radio :disabled="!editable" label="2">有</el-radio>\
  273. </el-radio-group>\
  274. </td>\
  275. </tr>\
  276. <tr>\
  277. <td class="c-t-center" colspan="5">\
  278. *********** 第二次访视以上八行信息不需要重复填写 ***********\
  279. </td>\
  280. </tr>\
  281. <tr>\
  282. <td colspan="5">\
  283. 新生儿疾病筛查:\
  284. <el-checkbox-group v-model="SCREENING_check" :disabled="!editable">\
  285. <el-checkbox label="1">未进行</el-checkbox>\
  286. <el-checkbox label="2">检查均阴性</el-checkbox>\
  287. <el-checkbox label="3">甲低</el-checkbox>\
  288. <el-checkbox label="4">苯丙酮尿症</el-checkbox>\
  289. <el-checkbox label="5" class="setinput">其他遗传代谢病\
  290. <el-input style="width: 100px;" type="text" :readonly="SCREENING_3_dis||!editable" v-model="newbornData.screening_ABNORMAL"\
  291. clearable></el-input>\
  292. </el-checkbox>\
  293. <el-checkbox label="6">已查无结果</el-checkbox>\
  294. </el-checkbox-group>\
  295. </td>\
  296. </tr>\
  297. <tr>\
  298. <td colspan="4">\
  299. 新生儿听力筛查:\
  300. <el-radio-group :disabled="!editable" v-model="newbornData.hearing">\
  301. <el-radio :disabled="!editable" label="1">通过</el-radio>\
  302. <el-radio :disabled="!editable" label="2">未通过</el-radio>\
  303. <el-radio :disabled="!editable" label="3">未筛查</el-radio>\
  304. <el-radio :disabled="!editable" label="4">不详</el-radio>\
  305. <el-radio :disabled="!editable" label="5">已查无结果</el-radio>\
  306. </el-radio-group>\
  307. </td>\
  308. <td colspan="1" class="setinput">\
  309. 目前体重\
  310. <el-input style="width: 70px;" type="number" :readonly="!editable" v-model="newbornData.now_WEIGHT"></el-input>\
  311. kg\
  312. </td>\
  313. </tr>\
  314. <tr>\
  315. <td colspan="3">\
  316. 喂养方式:\
  317. <el-radio-group :disabled="!editable" v-model="newbornData.feed_TYPE">\
  318. <el-radio :disabled="!editable" label="1">纯母乳</el-radio>\
  319. <el-radio :disabled="!editable" label="2">部分母乳</el-radio>\
  320. <el-radio :disabled="!editable" label="3">人工</el-radio>\
  321. </el-radio-group>\
  322. </td>\
  323. <td colspan="1" class="setinput">\
  324. 吃奶量\
  325. <el-input style="width: 70px;" type="number" :readonly="!editable" v-model="newbornData.eat_MILE_AMOUNT"></el-input> ml/次\
  326. </td>\
  327. <td colspan="1" class="setinput">\
  328. 吃奶次数\
  329. <el-input style="width: 70px;" type="number" :readonly="!editable" v-model="newbornData.eat_MILE_TIME"></el-input>次/日\
  330. </td>\
  331. </tr>\
  332. <tr>\
  333. <td colspan="3">\
  334. 呕吐:\
  335. <el-radio-group :disabled="!editable" v-model="newbornData.vomit">\
  336. <el-radio :disabled="!editable" v-model="radio" label="1">无</el-radio>\
  337. <el-radio :disabled="!editable" v-model="radio" label="2">有</el-radio>\
  338. </el-radio-group>\
  339. </td>\
  340. <td colspan="1">\
  341. 大便:\
  342. <el-radio-group :disabled="!editable" v-model="newbornData.vulnus">\
  343. <el-radio :disabled="!editable" v-model="radio" label="1">糊状</el-radio>\
  344. <el-radio :disabled="!editable" v-model="radio" label="2">稀</el-radio>\
  345. <el-radio :disabled="!editable" v-model="radio" label="3">其他</el-radio>\
  346. </el-radio-group>\
  347. </td>\
  348. <td colspan="1" class="setinput">\
  349. 大便次数\
  350. <el-input style="width: 70px;" type="number" :readonly="!editable" v-model="newbornData.vulnus_TIME"></el-input> 次/日\
  351. </td>\
  352. </tr>\
  353. <tr>\
  354. <td colspan="3" class="setinput">\
  355. 体温:\
  356. <el-input style="width: 70px;" type="number" :readonly="!editable" v-model="newbornData.body_TEMPERATURE"></el-input>\
  357. ℃\
  358. </td>\
  359. <td colspan="1" class="setinput">\
  360. 心率:\
  361. <el-input style="width: 70px;" type="number" :readonly="!editable" v-model="newbornData.pulse_FREQUENCY"></el-input>\
  362. 次/分钟\
  363. </td>\
  364. <td colspan="1" class="setinput">\
  365. 呼吸频率\
  366. <el-input style="width: 70px;" type="number" :readonly="!editable" v-model="newbornData.breath_FREQUENCY"></el-input>\
  367. 次/分钟\
  368. </td>\
  369. </tr>\
  370. <tr>\
  371. <td colspan="3">面色:\
  372. <el-radio-group :disabled="!editable" v-model="newbornData.complexion">\
  373. <el-radio :disabled="!editable" label="1">红润</el-radio>\
  374. <el-radio :disabled="!editable" label="2">黄染</el-radio>\
  375. <el-radio :disabled="!editable" label="3" class="setinput">其他\
  376. <el-input style="width: 120px;" type="text" :readonly="complexion_NULL_dis||!editable" v-model="newbornData.complexion_NULL"\
  377. clearable></el-input>\
  378. </el-radio>\
  379. </el-radio-group>\
  380. </td>\
  381. <td colspan="2">黄疸部位:\
  382. <el-radio-group :disabled="!editable" v-model="newbornData.face">\
  383. <el-radio :disabled="!editable" label="1">面部</el-radio>\
  384. <el-radio :disabled="!editable" label="2">躯干</el-radio>\
  385. <el-radio :disabled="!editable" label="3">四肢</el-radio>\
  386. <el-radio :disabled="!editable" label="4">手足</el-radio>\
  387. </el-radio-group>\
  388. </td>\
  389. </tr>\
  390. <tr>\
  391. <td colspan="5" class="setinput">\
  392. 前囟\
  393. <el-input style="width: 70px;" type="number" :readonly="!editable" v-model="newbornData.bregma_FRONT"></el-input>\
  394. &nbsp;cm&nbsp;✖\
  395. <el-input style="width: 70px;" type="number" :readonly="!editable" v-model="newbornData.bregma_BACK"></el-input> &nbsp;cm &emsp;\
  396. <el-radio-group :disabled="!editable" v-model="newbornData.bregma">\
  397. <el-radio :disabled="!editable" label="1">正常</el-radio>\
  398. <el-radio :disabled="!editable" label="2">膨隆</el-radio>\
  399. <el-radio :disabled="!editable" label="3">凹陷</el-radio>\
  400. <el-radio :disabled="!editable" label="4">其他\
  401. <el-input style="width: 120px;" type="text" :readonly="bregma_other_dis||!editable" v-model="newbornData.bregma_PERFORMANCE"\
  402. clearable></el-input>\
  403. </el-radio>\
  404. </el-radio-group>\
  405. </td>\
  406. </tr>\
  407. <tr>\
  408. <td class="table2Td" colspan="5">\
  409. <table class="table2">\
  410. <tr>\
  411. <td>眼外观:\
  412. <el-radio-group :disabled="!editable" v-model="newbornData.eye">\
  413. <el-radio :disabled="!editable" label="1">未见异常</el-radio>\
  414. <el-radio :disabled="!editable" label="2" class="setinput">异常\
  415. <el-input type="text" :readonly="eye_NULL_dis||!editable" v-model="newbornData.eye_NULL" clearable></el-input>\
  416. </el-radio>\
  417. </el-radio-group>\
  418. </td>\
  419. <td>四肢活动度:\
  420. <el-radio-group :disabled="!editable" v-model="newbornData.limbs">\
  421. <el-radio :disabled="!editable" label="1">未见异常</el-radio>\
  422. <el-radio :disabled="!editable" label="2" class="setinput">异常\
  423. <el-input type="text" :readonly="limbs_NULL_dis||!editable" v-model="newbornData.limbs_NULL" clearable></el-input>\
  424. </el-radio>\
  425. </el-radio-group>\
  426. </td>\
  427. </tr>\
  428. <tr>\
  429. <td>耳外观:\
  430. <el-radio-group :disabled="!editable" v-model="newbornData.ear">\
  431. <el-radio :disabled="!editable" label="1">未见异常</el-radio>\
  432. <el-radio :disabled="!editable" label="2" class="setinput">异常\
  433. <el-input type="text" :readonly="ear_FACE_dis||!editable" v-model="newbornData.ear_FACE" clearable></el-input>\
  434. </el-radio>\
  435. </el-radio-group>\
  436. </td>\
  437. <td>颈部包块:\
  438. <el-radio-group :disabled="!editable" v-model="newbornData.neck_PACK">\
  439. <el-radio :disabled="!editable" label="1">无</el-radio>\
  440. <el-radio :disabled="!editable" label="2" class="setinput">有\
  441. <el-input type="text" :readonly="neck_PACK_NULL_dis||!editable" v-model="newbornData.neck_PACK_NULL" clearable></el-input>\
  442. </el-radio>\
  443. </el-radio-group>\
  444. </td>\
  445. </tr>\
  446. <tr>\
  447. <td>鼻:\
  448. <el-radio-group :disabled="!editable" v-model="newbornData.nose">\
  449. <el-radio :disabled="!editable" label="1">未见异常</el-radio>\
  450. <el-radio :disabled="!editable" label="2" class="setinput">异常\
  451. <el-input type="text" :readonly="nose_PERFORMANCE_dis||!editable" v-model="newbornData.nose_PERFORMANCE" clearable></el-input>\
  452. </el-radio>\
  453. </el-radio-group>\
  454. </td>\
  455. <td>皮肤:\
  456. <el-radio-group :disabled="!editable" v-model="newbornData.skin">\
  457. <el-radio :disabled="!editable" label="1">未见异常</el-radio>\
  458. <el-radio :disabled="!editable" label="2">湿疹</el-radio>\
  459. <el-radio :disabled="!editable" label="3">糜烂</el-radio>\
  460. <el-radio :disabled="!editable" label="4" class="setinput">其他\
  461. <el-input type="text" :readonly="skin_PERFORMANCE_dis||!editable" v-model="newbornData.skin_PERFORMANCE" clearable></el-input>\
  462. </el-radio>\
  463. </el-radio-group>\
  464. </td>\
  465. </tr>\
  466. <tr>\
  467. <td>口腔:\
  468. <el-radio-group :disabled="!editable" v-model="newbornData.oral">\
  469. <el-radio :disabled="!editable" label="1">未见异常</el-radio>\
  470. <el-radio :disabled="!editable" label="2" class="setinput">异常\
  471. <el-input type="text" :readonly="oral_PERFORMANCE_dis||!editable" v-model="newbornData.oral_PERFORMANCE" clearable></el-input>\
  472. </el-radio>\
  473. </el-radio-group>\
  474. </td>\
  475. <td>肛门:\
  476. <el-radio-group :disabled="!editable" v-model="newbornData.anus">\
  477. <el-radio :disabled="!editable" label="1">未见异常</el-radio>\
  478. <el-radio :disabled="!editable" label="2" class="setinput">异常\
  479. <el-input type="text" :readonly="anus_PERFORMANCE_dis||!editable" v-model="newbornData.anus_PERFORMANCE" clearable></el-input>\
  480. </el-radio>\
  481. </el-radio-group>\
  482. </td>\
  483. </tr>\
  484. <tr>\
  485. <td>心肺听诊:\
  486. <el-radio-group :disabled="!editable" v-model="newbornData.heart">\
  487. <el-radio :disabled="!editable" label="1">未见异常</el-radio>\
  488. <el-radio :disabled="!editable" label="2" class="setinput">异常\
  489. <el-input type="text" :readonly="heart_PERFORMANCE_dis||!editable" v-model="newbornData.heart_PERFORMANCE" clearable></el-input>\
  490. </el-radio>\
  491. </el-radio-group>\
  492. </td>\
  493. <td>外生殖器:\
  494. <el-radio-group :disabled="!editable" v-model="newbornData.genitalia">\
  495. <el-radio :disabled="!editable" label="1">未见异常</el-radio>\
  496. <el-radio :disabled="!editable" label="2" class="setinput">异常\
  497. <el-input type="text" :readonly="genitalia_NULL_dis||!editable" v-model="newbornData.genitalia_NULL" clearable></el-input>\
  498. </el-radio>\
  499. </el-radio-group>\
  500. </td>\
  501. </tr>\
  502. <tr>\
  503. <td>腹部触诊:\
  504. <el-radio-group :disabled="!editable" v-model="newbornData.abdomen">\
  505. <el-radio :disabled="!editable" label="1">未见异常</el-radio>\
  506. <el-radio :disabled="!editable" label="2" class="setinput">异常\
  507. <el-input type="text" :readonly="abdomen_NULL_dis||!editable" v-model="newbornData.abdomen_NULL" clearable></el-input>\
  508. </el-radio>\
  509. </el-radio-group>\
  510. </td>\
  511. <td>脊柱:\
  512. <el-radio-group :disabled="!editable" v-model="newbornData.vertebral">\
  513. <el-radio :disabled="!editable" label="1">未见异常</el-radio>\
  514. <el-radio :disabled="!editable" label="2" class="setinput">异常\
  515. <el-input type="text" :readonly="vertebral_NULL_dis||!editable" v-model="newbornData.vertebral_NULL" clearable></el-input>\
  516. </el-radio>\
  517. </el-radio-group>\
  518. </td>\
  519. </tr>\
  520. <tr>\
  521. <td>脐带:\
  522. <el-radio-group :disabled="!editable" v-model="newbornData.umbilical">\
  523. <el-radio :disabled="!editable" v-model="radio" label="1">未脱</el-radio>\
  524. <el-radio :disabled="!editable" v-model="radio" label="2">脱落</el-radio>\
  525. <el-radio :disabled="!editable" v-model="radio" label="3">脐部有渗出</el-radio>\
  526. <el-radio :disabled="!editable" v-model="radio" label="4" class="setinput">其他\
  527. <el-input type="text" style="width:120px" :readonly="umbilical_NULL_dis||!editable" v-model="newbornData.umbilical_NULL" clearable></el-input>\
  528. </el-radio>\
  529. </el-radio-group>\
  530. </td>\
  531. <td class="setinput">\
  532. <div class="ui-grid">\
  533. <div class="ui-col-0">其他:</div>\
  534. <div class="ui-col-1">\
  535. <el-input type="text" :readonly="!editable" v-model="newbornData.other" clearable></el-input>\
  536. </div>\
  537. </div>\
  538. </td>\
  539. </tr>\
  540. </table>\
  541. </td>\
  542. </tr>\
  543. <tr>\
  544. <td colspan="5">\
  545. 转诊意见:\
  546. <el-radio-group :disabled="!editable" v-model="newbornData.referral">\
  547. <el-radio :disabled="!editable" v-model="radio" label="1">无</el-radio>\
  548. <el-radio :disabled="!editable" v-model="radio" label="2">有</el-radio>\
  549. </el-radio-group>\
  550. <div class="setinput ui-grid">\
  551. <div class="ui-col-0">\
  552. 原因:\
  553. </div>\
  554. <div class="ui-col-1">\
  555. <el-input type="text" :readonly="!editable" v-model="newbornData.referral_reason" clearable></el-input>\
  556. </div>\
  557. </div>\
  558. <div class="ui-grid">\
  559. <div class="ui-col-1 ui-grid setinput">\
  560. <div class="ui-col-0">\
  561. 机构:\
  562. </div>\
  563. <div class="ui-col-1">\
  564. <el-input type="text" :readonly="!editable" v-model="newbornData.organization_org_name" clearable></el-input>\
  565. </div>\
  566. </div>\
  567. <div class="ui-col-1 ui-grid setinput">\
  568. <div class="ui-col-0">\
  569. 科室:\
  570. </div>\
  571. <div class="ui-col-1">\
  572. <el-input type="text" :readonly="!editable" v-model="newbornData.organization" clearable></el-input>\
  573. </div>\
  574. </div>\
  575. </div>\
  576. </td>\
  577. </tr>\
  578. <tr>\
  579. <td colspan="5" class="setinput">\
  580. <div class="ui-grid">\
  581. <div class="ui-col-0">\
  582. 指导:\
  583. </div>\
  584. <div class="ui-col-1">\
  585. <el-checkbox-group v-model="guide_check" :disabled="!editable">\
  586. <el-checkbox label="1">喂养指导</el-checkbox>\
  587. <el-checkbox label="2">发育指导</el-checkbox>\
  588. <el-checkbox label="3">防病指导</el-checkbox>\
  589. <el-checkbox label="4">预防伤害指导</el-checkbox>\
  590. <el-checkbox label="5">口腔保健指导</el-checkbox>\
  591. <el-checkbox label="6">其他\
  592. <el-input type="text" :readonly="other_GUIDE_CONTENT_dis||!editable" v-model="newbornData.other_GUIDE_CONTENT" clearable></el-input>\
  593. </el-checkbox>\
  594. </el-checkbox-group>\
  595. </div>\
  596. </div>\
  597. </td>\
  598. </tr>\
  599. <tr>\
  600. <td colspan="2">\
  601. <div class="ui-grid">\
  602. <div class="ui-col-0">\
  603. 本次访视日期\
  604. </div>\
  605. <div class="ui-col-1">\
  606. <el-date-picker :readonly="!editable" v-model="newbornData.this_INTERVIEW_DATE" type="date" placeholder="选择日期">\
  607. </el-date-picker>\
  608. </div>\
  609. </div>\
  610. </td>\
  611. <td colspan="3">\
  612. <div class="ui-grid">\
  613. <div class="ui-col-0">\
  614. 下次随访地点\
  615. </div>\
  616. <div class="ui-col-1">\
  617. <el-input :readonly="!editable" v-model="newbornData.next_VISITING_ADDRESS" placeholder="" clearable></el-input>\
  618. </div>\
  619. </div>\
  620. </td>\
  621. </tr>\
  622. <tr>\
  623. <td colspan="2">\
  624. <div class="ui-grid">\
  625. <div class="ui-col-0">\
  626. 下次访视日期\
  627. </div>\
  628. <div class="ui-col-1">\
  629. <el-date-picker :readonly="!editable" v-model="newbornData.next_VISITING_DATE" type="date" placeholder="选择日期">\
  630. </el-date-picker>\
  631. </div>\
  632. </div>\
  633. </td>\
  634. <td colspan="3">\
  635. <div class="ui-grid">\
  636. <div class="ui-col-1 ui-grid setinput">\
  637. <div class="ui-col-0">\
  638. 随访医生签名:\
  639. </div>\
  640. <div class="ui-col-1">\
  641. <el-input type="text" :readonly="!editable" v-model="newbornData.visiting_DOCTOR" clearable></el-input>\
  642. </div>\
  643. </div>\
  644. <div class="ui-col-1 ui-grid setinput">\
  645. <div class="ui-col-0">\
  646. 家属确认签字:\
  647. </div>\
  648. <div class="ui-col-1">\
  649. <el-input type="text" :readonly="!editable" v-model="newbornData.family_SIGN" clearable></el-input>\
  650. </div>\
  651. </div>\
  652. </div>\
  653. </td>\
  654. </tr>\
  655. </table>\
  656. </div>',
  657. props: ['followupid', 'version'],
  658. data: function () {
  659. return {
  660. finishedStatus: null, //随访完成状态
  661. editable: false,
  662. isEditBtn: true,//是否是编辑按钮
  663. birth_OTHER: true,
  664. pregnancy_SICK_CIRCS_other: true,
  665. SCREENING_3_dis: true,
  666. bregma_other_dis: true,
  667. eye_NULL_dis: true,
  668. limbs_NULL_dis: true,
  669. complexion_NULL_dis: true,
  670. ear_FACE_dis: true,
  671. neck_PACK_NULL_dis: true,
  672. nose_PERFORMANCE_dis: true,
  673. skin_PERFORMANCE_dis: true,
  674. oral_PERFORMANCE_dis: true,
  675. anus_PERFORMANCE_dis: true,
  676. heart_PERFORMANCE_dis: true,
  677. genitalia_NULL_dis: true,
  678. abdomen_NULL_dis: true,
  679. vertebral_NULL_dis: true,
  680. umbilical_NULL_dis: true,
  681. other_GUIDE_CONTENT_dis: true,
  682. delivery_WAY_check: [],
  683. SCREENING_check: [],
  684. guide_check: [],
  685. data2: "",
  686. radio: "",
  687. input: '',
  688. name: '',
  689. number: '',
  690. newbornData: {
  691. this_INTERVIEW_DATE:'',
  692. birthday:'',
  693. sick_SEX:'',
  694. next_VISITING_DATE:"",
  695. },
  696. patientCode:'',
  697. followupClass:''
  698. }
  699. },
  700. computed: {
  701. pregnancy_SICK: function () {
  702. return this.newbornData.pregnancy_SICK
  703. },
  704. bregma: function () {
  705. return this.newbornData.bregma
  706. },
  707. complexion: function () {
  708. return this.newbornData.complexion
  709. },
  710. eye: function () {
  711. return this.newbornData.eye
  712. },
  713. limbs: function () {
  714. return this.newbornData.limbs
  715. },
  716. neck_PACK: function () {
  717. return this.newbornData.neck_PACK
  718. },
  719. ear: function () {
  720. return this.newbornData.ear
  721. },
  722. nose: function () {
  723. return this.newbornData.nose
  724. },
  725. skin: function () {
  726. return this.newbornData.skin
  727. },
  728. oral: function () {
  729. return this.newbornData.oral
  730. },
  731. anus: function () {
  732. return this.newbornData.anus
  733. },
  734. heart: function () {
  735. return this.newbornData.heart
  736. },
  737. genitalia: function () {
  738. return this.newbornData.genitalia
  739. },
  740. abdomen: function () {
  741. return this.newbornData.abdomen
  742. },
  743. vertebral: function () {
  744. return this.newbornData.vertebral
  745. },
  746. umbilical: function () {
  747. return this.newbornData.umbilical
  748. }
  749. },
  750. watch: {
  751. umbilical: function (i) {
  752. var a = i ? i.toString().indexOf('4') : ''
  753. if (a > -1) {
  754. this.umbilical_NULL_dis = false
  755. } else {
  756. this.umbilical_NULL_dis = true
  757. this.newbornData.umbilical_NULL = ''
  758. }
  759. },
  760. vertebral: function (i) {
  761. var a = i ? i.toString().indexOf('2') : ''
  762. if (a > -1) {
  763. this.vertebral_NULL_dis = false
  764. } else {
  765. this.vertebral_NULL_dis = true
  766. this.newbornData.vertebral_NULL = ''
  767. }
  768. },
  769. abdomen: function (i) {
  770. var a = i ? i.toString().indexOf('2') : ''
  771. if (a > -1) {
  772. this.abdomen_NULL_dis = false
  773. } else {
  774. this.abdomen_NULL_dis = true
  775. this.newbornData.abdomen_NULL = ''
  776. }
  777. },
  778. genitalia: function (i) {
  779. var a = i ? i.toString().indexOf('2') : ''
  780. if (a > -1) {
  781. this.genitalia_NULL_dis = false
  782. } else {
  783. this.genitalia_NULL_dis = true
  784. this.newbornData.genitalia_NULL = ''
  785. }
  786. },
  787. heart: function (i) {
  788. var a = i ? i.toString().indexOf('2') : ''
  789. if (a > -1) {
  790. this.heart_PERFORMANCE_dis = false
  791. } else {
  792. this.heart_PERFORMANCE_dis = true
  793. this.newbornData.heart_PERFORMANCE = ''
  794. }
  795. },
  796. anus: function (i) {
  797. var a = i ? i.toString().indexOf('2') : ''
  798. if (a > -1) {
  799. this.anus_PERFORMANCE_dis = false
  800. } else {
  801. this.anus_PERFORMANCE_dis = true
  802. this.newbornData.anus_PERFORMANCE = ''
  803. }
  804. },
  805. oral: function (i) {
  806. var a = i ? i.toString().indexOf('2') : ""
  807. if (a > -1) {
  808. this.oral_PERFORMANCE_dis = false
  809. } else {
  810. this.oral_PERFORMANCE_dis = true
  811. this.newbornData.oral_PERFORMANCE = ''
  812. }
  813. },
  814. skin: function (i) {
  815. var a = i ? i.toString().indexOf('4') : ''
  816. if (a > -1) {
  817. this.skin_PERFORMANCE_dis = false
  818. } else {
  819. this.skin_PERFORMANCE_dis = true
  820. this.newbornData.skin_PERFORMANCE = ''
  821. }
  822. },
  823. nose: function (i) {
  824. var a = i ? i.toString().indexOf('2') : ''
  825. if (a > -1) {
  826. this.nose_PERFORMANCE_dis = false
  827. } else {
  828. this.nose_PERFORMANCE_dis = true
  829. this.newbornData.nose_PERFORMANCE = ''
  830. }
  831. },
  832. neck_PACK: function (i) {
  833. var a = i ? i.toString().indexOf('2') : ''
  834. if (a > -1) {
  835. this.neck_PACK_NULL_dis = false
  836. } else {
  837. this.neck_PACK_NULL_dis = true
  838. this.newbornData.neck_PACK_NULL = ''
  839. }
  840. },
  841. limbs: function (i) {
  842. var a = i ? i.toString().indexOf('2') : ''
  843. if (a > -1) {
  844. this.limbs_NULL_dis = false
  845. } else {
  846. this.limbs_NULL_dis = true
  847. this.newbornData.limbs_NULL = ''
  848. }
  849. },
  850. ear: function (i) {
  851. var a = i ? i.toString().indexOf('2') : ''
  852. if (a > -1) {
  853. this.ear_FACE_dis = false
  854. } else {
  855. this.ear_FACE_dis = true
  856. this.newbornData.ear_FACE = ''
  857. }
  858. },
  859. limbs: function (i) {
  860. var a = i ? i.toString().indexOf('2') : ''
  861. if (a > -1) {
  862. this.limbs_NULL_dis = false
  863. } else {
  864. this.limbs_NULL_dis = true
  865. this.newbornData.limbs_NULL = ''
  866. }
  867. },
  868. eye: function (i) {
  869. var a = i ? i.toString().indexOf('2') : ''
  870. if (a > -1) {
  871. this.eye_NULL_dis = false
  872. } else {
  873. this.eye_NULL_dis = true
  874. this.newbornData.eye_NULL = ''
  875. }
  876. },
  877. pregnancy_SICK: function (i) {
  878. var a = i ? i.toString().indexOf('4') : ''
  879. if (a > -1) {
  880. this.pregnancy_SICK_CIRCS_other = false
  881. } else {
  882. this.pregnancy_SICK_CIRCS_other = true
  883. this.newbornData.pregnancy_SICK_CIRCS = ''
  884. }
  885. },
  886. bregma: function (i) {
  887. var a = i ? i.toString().indexOf('4') : ''
  888. if (a > -1) {
  889. this.bregma_other_dis = false
  890. } else {
  891. this.bregma_other_dis = true
  892. this.newbornData.bregma_PERFORMANCE = ''
  893. }
  894. },
  895. complexion: function (i) {
  896. var a = i ? i.toString().indexOf('3') : ''
  897. if (a > -1) {
  898. this.complexion_NULL_dis = false
  899. } else {
  900. this.complexion_NULL_dis = true
  901. this.newbornData.complexion_NULL = ''
  902. }
  903. },
  904. delivery_WAY_check: function (i) {
  905. var a = i ? i.toString().indexOf('7') : ''
  906. if (a > -1) {
  907. this.birth_OTHER = false
  908. } else {
  909. this.birth_OTHER = true
  910. this.newbornData.birth_OTHER = ''
  911. }
  912. },
  913. SCREENING_check: function (i) {
  914. var a = i ? i.toString().indexOf('5') : ''
  915. if (a > -1) {
  916. this.SCREENING_3_dis = false
  917. } else {
  918. this.SCREENING_3_dis = true
  919. this.newbornData.screening_ABNORMAL = ''
  920. }
  921. },
  922. guide_check: function (i) {
  923. var a = i.toString().indexOf('6')
  924. if (a > -1) {
  925. this.other_GUIDE_CONTENT_dis = false
  926. } else {
  927. this.other_GUIDE_CONTENT_dis = true
  928. this.other_GUIDE_CONTENT = ''
  929. }
  930. }
  931. },
  932. mounted: function () {
  933. this.getData() //获取随访状态
  934. },
  935. methods: {
  936. getData: function () {
  937. var vm = this
  938. fangshiAPI.getNewbornFamilyVisitRecord({ followupId: this.followupid || '2' }).then(function (res) {
  939. if (res.status == 200) {
  940. var data = res.data
  941. if (data != null) {
  942. vm.newbornData = data
  943. vm.dealData(data)
  944. vm.getStatus(false)
  945. }else{
  946. vm.getStatus(true)
  947. }
  948. } else {
  949. top.toastr.error(res.msg);
  950. }
  951. })
  952. },
  953. dealData:function(data){
  954. var vm=this
  955. var vmN = vm.newbornData
  956. vmN.help_ORGANIZATION_FLAG = data.help_ORGANIZATION_FLAG ? data.help_ORGANIZATION_FLAG.toString() : ''
  957. vmN.sick_SEX = data.sick_SEX ? data.sick_SEX.toString() : ''
  958. vmN.pregnancy_SICK = data.pregnancy_SICK ? data.pregnancy_SICK.toString() : ''
  959. vm.delivery_WAY_check = data.delivery_WAY ? data.delivery_WAY.split(',') : [];
  960. vmN.suffocation = data.suffocation ? data.suffocation.toString() : ''
  961. vmN.plan_IMMUNE = data.plan_IMMUNE ? data.plan_IMMUNE.toString() : ''
  962. vmN.deformity_NULL = data.deformity_NULL ? data.deformity_NULL.toString() : ''
  963. vmN.hearing = data.hearing ? data.hearing.toString() : ''
  964. vmN.feed_TYPE = data.feed_TYPE ? data.feed_TYPE.toString() : ''
  965. vmN.vomit = data.vomit ? data.vomit.toString() : ''
  966. vmN.vulnus = data.vulnus ? data.vulnus.toString() : ''
  967. vmN.vulnus_TIME = data.vulnus_TIME ? data.vulnus_TIME.toString() : ''
  968. vmN.body_TEMPERATURE = data.body_TEMPERATURE ? data.body_TEMPERATURE.toString() : ""
  969. vmN.complexion = data.complexion ? data.complexion.toString() : ""
  970. vmN.face = data.face ? data.face.toString() : ''
  971. vmN.bregma = data.bregma ? data.bregma.toString() : ''
  972. vmN.eye = data.eye ? data.eye.toString() : ''
  973. vmN.limbs = data.limbs ? data.limbs.toString() : ''
  974. vmN.ear = data.ear ? data.ear.toString() : ''
  975. vmN.nose = data.nose ? data.nose.toString() : ''
  976. vmN.neck_PACK = data.neck_PACK ? data.neck_PACK.toString() : ''
  977. vmN.skin = data.skin ? data.skin.toString() : ""
  978. vmN.oral = data.oral ? data.oral.toString() : ''
  979. vmN.anus = data.anus ? data.anus.toString() : ""
  980. vmN.heart = data.heart ? data.heart.toString() : ''
  981. vmN.genitalia = data.genitalia ? data.genitalia.toString() : ''
  982. vmN.abdomen = data.abdomen ? data.abdomen.toString() : ""
  983. vmN.vertebral = data.vertebral ? data.vertebral.toString() : ''
  984. vmN.referral = data.referral ? data.referral.toString() : ''
  985. vmN.umbilical = data.umbilical ? data.umbilical.toString() : ''
  986. if (data.screening_4 == 1) {
  987. vm.SCREENING_check.push('1')
  988. } if (data.screening_5 == 1) {
  989. vm.SCREENING_check.push('2')
  990. } if (data.screening_1 == 1) {
  991. vm.SCREENING_check.push('3')
  992. } if (data.screening_2 == 1) {
  993. vm.SCREENING_check.push('4')
  994. } if (data.screening_3 == 1) {
  995. vm.SCREENING_check.push('5')
  996. } if (data.screening_6 == 1) {
  997. vm.SCREENING_check.push('6')
  998. }
  999. if (data.feed_GUID == 1) {
  1000. vm.guide_check.push('1')
  1001. } if (data.growup_GUID == 1) {
  1002. vm.guide_check.push('2')
  1003. } if (data.prevention_DEFORMITY_GUID == 1) {
  1004. vm.guide_check.push('3')
  1005. } if (data.prevention_HURT_GUID == 1) {
  1006. vm.guide_check.push('4')
  1007. } if (data.oral_CAVITY_GUID == 1) {
  1008. vm.guide_check.push('5')
  1009. } if (data.other_GUIDE == 1) {
  1010. vm.guide_check.push('6')
  1011. }
  1012. },
  1013. getLastData:function(obj){
  1014. var vm=this
  1015. fangshiAPI.getLastVisitRecord({ followupClass: vm.followupClass,patientCode:vm.patientCode }).then(function (res) {
  1016. if (res.status == 200) {
  1017. var data = res.data.detail
  1018. // finishedStatus:true 随访完成,false 随访未完成
  1019. //默认信息
  1020. vm.newbornData.sick_NAME=obj.name
  1021. vm.newbornData.sick_SEX=obj.sex.toString()
  1022. vm.newbornData.birthday=obj.birthday
  1023. vm.newbornData.visiting_DOCTOR=obj.doctorName
  1024. // 居民存在上次历史记录,则代入默认信息
  1025. if (res.data.detail) {
  1026. vm.newbornData = res.data.detail
  1027. vm.dealData(data)
  1028. }
  1029. //默认随访时间为当前时间
  1030. vm.newbornData.this_INTERVIEW_DATE = new Date().format("yyyy-MM-dd")
  1031. vm.newbornData.next_VISITING_DATE=null
  1032. }
  1033. })
  1034. },
  1035. // 完成随访状态修改
  1036. finish: function () {
  1037. var vm = this
  1038. fangshiAPI.updateFollowStatus({ followupId: this.followupid }).then(function (res) {
  1039. if (res.status == 200) {
  1040. vm.finishedStatus=true
  1041. vm.setEditBtn()
  1042. top.toastr.info("完成随访成功")
  1043. } else {
  1044. top.toastr.error(res.msg);
  1045. }
  1046. })
  1047. },
  1048. editData: function () {
  1049. var vm = this
  1050. var vmN = this.newbornData
  1051. vmN.delivery_WAY = vm.delivery_WAY_check.join(',')
  1052. vm.SCREENING_check.map(function (i) {
  1053. if (i == '1') {
  1054. vmN.screening_4 = 1
  1055. } if (i == '2') {
  1056. vmN.screening_5 = 1
  1057. } if (i == '3') {
  1058. vmN.SCREENING_3 = 1
  1059. } if (i == '4') {
  1060. vmN.screening_2 = 1
  1061. } if (i == '5') {
  1062. vmN.screening_3 = 1
  1063. } if (i == '6') {
  1064. vmN.screening_6 = 1
  1065. }
  1066. })
  1067. vm.guide_check.map(function (i) {
  1068. if (i == '1') {
  1069. vmN.feed_GUID = 1
  1070. } if (i == '2') {
  1071. vmN.growup_GUID = 1
  1072. } if (i == '3') {
  1073. vmN.prevention_DEFORMITY_GUID = 1
  1074. } if (i == '4') {
  1075. vmN.prevention_HURT_GUID = 1
  1076. } if (i == '5') {
  1077. vmN.oral_CAVITY_GUID = 1
  1078. } if (i == '6') {
  1079. vmN.other_GUIDE = 1
  1080. }
  1081. })
  1082. vmN.create_time = null
  1083. vmN.version = this.version
  1084. fangshiAPI.saveNewbornFamilyVisitRecord({ followupId: this.followupid || '2', newbornFamilyVisitRecordData: JSON.stringify(vmN) }).then(function (res) {
  1085. if (res.status == 200) {
  1086. vm.finishedStatus ? '' : vm.finish()
  1087. vm.finishedStatus ? top.toastr.info('保存成功') : ''
  1088. } else {
  1089. top.toastr.error(res.msg);
  1090. }
  1091. })
  1092. },
  1093. setEditBtn: function () {
  1094. var btn = document.getElementsByClassName('button')[0]
  1095. if(!this.finishedStatus){
  1096. btn.innerHTML='完成随访'
  1097. this.editable = true
  1098. return
  1099. }
  1100. if (this.isEditBtn == true) {
  1101. btn.innerHTML = '编辑'
  1102. this.editable = false
  1103. } else if (this.isEditBtn == false) {
  1104. btn.innerHTML='保存'
  1105. this.editable = true
  1106. }
  1107. },
  1108. editBtn: function () {
  1109. if (this.finishedStatus) {
  1110. this.isEditBtn = !this.isEditBtn
  1111. }
  1112. this.setEditBtn()
  1113. this.isEditBtn || !this.finishedStatus?this.editData():''//保存数据
  1114. },
  1115. //获取当前随访状态信息 Request['id']||'1'
  1116. getStatus: function (getLast) {
  1117. var vm = this
  1118. fangshiAPI.getFollowupInfo({ followupId: this.followupid || '1888107' }).then(function (res) {
  1119. if (res.status == 200) {
  1120. res.data.status!=1?vm.finishedStatus=false:vm.finishedStatus=true
  1121. vm.patientCode=res.data.patientCode
  1122. vm.followupClass=res.data.followupClass
  1123. var obj={}
  1124. obj.doctorName=res.data.doctorName
  1125. obj.name=res.data.patient.name
  1126. obj.sex=res.data.patient.sex
  1127. obj.birthday=res.data.patient.birthday
  1128. if (getLast) {
  1129. vm.getLastData(obj)//获取patientCode,followupClass 获取上一次数据
  1130. }
  1131. vm.setEditBtn()
  1132. } else {
  1133. top.toastr.error(res.msg);
  1134. }
  1135. })
  1136. },
  1137. }
  1138. })