fangshi-detail-5,6.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>产后访视+新生儿记录表</title>
  6. <meta name="author" content="yihu.com" />
  7. <meta name="format-detection" content="telephone=no" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"
  9. />
  10. <meta name="apple-mobile-web-app-capable" content="yes" />
  11. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  12. <link rel="shortcut icon" href="../../../favicon.ico">
  13. <link rel="stylesheet" type="text/css" href="../../../css/element-ui.css" />
  14. <link rel="stylesheet" type="text/css" href="../../../css/cross.css" />
  15. <link rel="stylesheet" type="text/css" href="../../../css/bootstrap.min.css" />
  16. <link href="../../../plugins/toastr/toastr.min.css" rel="stylesheet">
  17. <link href="../css/fangshi-detail.css" rel="stylesheet">
  18. </head>
  19. <style>
  20. </style>
  21. <body>
  22. <div id="app">
  23. <button class="button" @click="editBtn()">编辑</button>
  24. <div class="ui-grid p10">
  25. <div class="ui-col-1">
  26. <div class="ui-grid">
  27. <div class="ui-col-0">姓名:</div>
  28. <div class="ui-col-1">
  29. <el-input :readonly="!editable" v-model="postpartumVisitDetails.name" placeholder="" clearable></el-input>
  30. </div>
  31. </div>
  32. </div>
  33. <div class="ui-col-1">
  34. <div class="ui-grid">
  35. <div class="ui-col-0">编号:</div>
  36. <div class="ui-col-1">
  37. <el-input :readonly="!editable" v-model="postpartumVisitDetails.number" placeholder="" clearable></el-input>
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. <table class="table table-bordered">
  43. <tr>
  44. <td class="col-w120 c-t-center">随访日期</td>
  45. <td colspan="3">
  46. <el-date-picker :readonly="!editable" v-model="postpartumVisitDetails.followup_date" type="date" value-format="yyyy-MM-dd"
  47. placeholder="选择日期">
  48. </el-date-picker>
  49. </td>
  50. </tr>
  51. <tr>
  52. <td class="col-w120 c-t-center">分娩日期</td>
  53. <td>
  54. <el-date-picker type="date" :readonly="!editable" v-model="postpartumVisitDetails.parturition_date" value-format="yyyy-MM-dd"
  55. placeholder="选择日期">
  56. </el-date-picker>
  57. </td>
  58. <td class="col-w120 c-t-center">出院日期</td>
  59. <td>
  60. <el-date-picker :readonly="!editable" v-model="postpartumVisitDetails.discharged_date" value-format="yyyy-MM-dd" type="date"
  61. placeholder="选择日期">
  62. </el-date-picker>
  63. </td>
  64. </tr>
  65. <tr>
  66. <td class="col-w120 c-t-center">体 温(℃)</td>
  67. <td colspan="3">
  68. <el-input type="number" :readonly="!editable" v-model="postpartumVisitDetails.body_temperature" placeholder=""></el-input>
  69. </td>
  70. </tr>
  71. <tr>
  72. <td class="col-w120 c-t-center">一般健康情况</td>
  73. <td colspan="3">
  74. <el-input type="textarea" :readonly="!editable" v-model="postpartumVisitDetails.healthy_condition" placeholder="" clearable></el-input>
  75. </td>
  76. </tr>
  77. <tr>
  78. <td class="col-w120 c-t-center">一般心理状况</td>
  79. <td colspan="3">
  80. <el-input :readonly="!editable" v-model="postpartumVisitDetails.psychologic_status" placeholder="" clearable></el-input>
  81. </td>
  82. </tr>
  83. <tr>
  84. <td class="col-w120 c-t-center">血 压(mmHg)</td>
  85. <td colspan="3">
  86. <div class="setinput">
  87. <el-input type="number" class="col-w80" :readonly="!editable" v-model="postpartumVisitDetails.blood_pressure_low" placeholder=""
  88. ></el-input>mmHg /
  89. <el-input type="number" class="col-w80" :readonly="!editable" v-model="postpartumVisitDetails.blood_pressure_high" placeholder=""
  90. ></el-input>mmHg
  91. </div>
  92. </td>
  93. </tr>
  94. <tr>
  95. <td class="col-w120 c-t-center">乳 房</td>
  96. <td colspan="3">
  97. <el-radio-group v-model="postpartumVisitDetails.breast_status">
  98. <el-radio :disabled="!editable" label="1">未见异常</el-radio>
  99. <el-radio :disabled="!editable" label="2">异常</el-radio>
  100. </el-radio-group>
  101. </td>
  102. </tr>
  103. <tr>
  104. <td class="col-w120 c-t-center">恶 露</td>
  105. <td colspan="3">
  106. <el-radio-group v-model="postpartumVisitDetails.lochia_status">
  107. <el-radio :disabled="!editable" label="1">未见异常</el-radio>
  108. <el-radio :disabled="!editable" label="2">异常</el-radio>
  109. </el-radio-group>
  110. </td>
  111. </tr>
  112. <tr>
  113. <td class="col-w120 c-t-center">子 宫</td>
  114. <td colspan="3">
  115. <el-radio-group v-model="postpartumVisitDetails.uterus_status">
  116. <el-radio :disabled="!editable" label="1">未见异常</el-radio>
  117. <el-radio :disabled="!editable" label="2">异常</el-radio>
  118. </el-radio-group>
  119. </td>
  120. </tr>
  121. <tr>
  122. <td class="col-w120 c-t-center">伤 口</td>
  123. <td colspan="3">
  124. <el-radio-group v-model="postpartumVisitDetails.wound_status">
  125. <el-radio :disabled="!editable" label="1">未见异常</el-radio>
  126. <el-radio :disabled="!editable" label="2">异常</el-radio>
  127. </el-radio-group>
  128. </td>
  129. </tr>
  130. <tr>
  131. <td class="col-w120 c-t-center">其 他</td>
  132. <td colspan="3">
  133. <el-input type="textarea" :readonly="!editable" v-model="postpartumVisitDetails.other" placeholder="" clearable></el-input>
  134. </td>
  135. </tr>
  136. <tr>
  137. <td class="col-w120 c-t-center">分 类</td>
  138. <td colspan="3">
  139. <el-radio-group v-model="postpartumVisitDetails.category">
  140. <el-radio :disabled="!editable" label="1">未见异常</el-radio>
  141. <el-radio :disabled="!editable" label="2">异常</el-radio>
  142. </el-radio-group>
  143. </td>
  144. </tr>
  145. <tr>
  146. <td class="col-w120 c-t-center">指 导</td>
  147. <td colspan="3">
  148. <el-checkbox-group v-model="check" :disabled="!editable">
  149. <el-checkbox label="1">个人卫生</el-checkbox>
  150. <el-checkbox label="2">心理</el-checkbox>
  151. <el-checkbox label="3">营养</el-checkbox>
  152. <el-checkbox label="4">母乳喂养</el-checkbox>
  153. <el-checkbox label="5">新生儿护理与喂养</el-checkbox>
  154. <el-checkbox class="setinput" label="6">
  155. <el-input type="text" :readonly="other_guide||!editable" v-model="postpartumVisitDetails.other_guide_content" placeholder="其他"
  156. clearable></el-input>
  157. </el-checkbox>
  158. </el-checkbox-group>
  159. </td>
  160. </tr>
  161. <tr>
  162. <td class="col-w120 c-t-center">转 诊</td>
  163. <td colspan="3">
  164. <el-radio-group v-model="postpartumVisitDetails.referral">
  165. <el-radio :disabled="!editable" label="0">无</el-radio>
  166. <el-radio :disabled="!editable" label="1">有</el-radio>
  167. </el-radio-group>
  168. <div class="mt20 ui-grid">
  169. <div class="ui-col-0" for="">原因:</div>
  170. <div class="ui-col-1">
  171. <el-input :readonly="!editable" v-model="postpartumVisitDetails.referral_REASON" placeholder="" clearable></el-input>
  172. </div>
  173. </div>
  174. <div class="mt20 ui-grid">
  175. <div class="ui-col-0">机构:</div>
  176. <div class="ui-col-1">
  177. <el-input :readonly="!editable" v-model="postpartumVisitDetails.organization_ORG_NAME" placeholder="" clearable></el-input>
  178. </div>
  179. <div class="ui-col-0">科室:</div>
  180. <div class="ui-col-1">
  181. <el-input :readonly="!editable" v-model="postpartumVisitDetails.organization" placeholder="" clearable></el-input>
  182. </div>
  183. </div>
  184. </td>
  185. </tr>
  186. <tr>
  187. <td class="col-w120 c-t-center">下次随访日期</td>
  188. <td colspan="3">
  189. <el-date-picker :readonly="!editable" v-model="postpartumVisitDetails.next_visiting_date" value-format="yyyy-MM-dd" type="date"
  190. placeholder="选择日期">
  191. </el-date-picker>
  192. </td>
  193. </tr>
  194. <tr>
  195. <td class="col-w120 c-t-center">随访医生签名</td>
  196. <td colspan="3">
  197. <el-input :readonly="!editable" v-model="postpartumVisitDetails.visiting_doctor_name" placeholder="" clearable></el-input>
  198. </td>
  199. </tr>
  200. </table>
  201. <fangshi-detail-6 :followupId="followupId"></fangshi-detail-6>
  202. <!-- <follow-bottom :followupId="followupId"></follow-bottom> -->
  203. </div>
  204. <script src="../../../js/vue.js" type="text/javascript" charset="utf-8"></script>
  205. <script src="../../../js/jquery-2.2.4.js" type="text/javascript" charset="utf-8"></script>
  206. <script src="../../../js/util.js" type="text/javascript" charset="utf-8"></script>
  207. <script src="../../../plugins/toastr/toastr.min.js"></script>
  208. <script src="../../../js/es6-promise.js" type="text/javascript" charset="utf-8"></script>
  209. <script src="../../../js/underscore.js" type="text/javascript" charset="utf-8"></script>
  210. <script src="../../../js/element-ui.js" type="text/javascript" charset="utf-8"></script>
  211. <script src="../../../component/followup/follow-bottom.js"></script>
  212. <script src="../../../component/followup/fangshi-detail-6.js"></script>
  213. <script src="../../../api/http-request.js" type="text/javascript" charset="utf-8"></script>
  214. <script src="../../../api/fangshi-api.js"></script>
  215. <script>
  216. var Request = GetRequest();
  217. new Vue({
  218. el: "#app",
  219. data: function () {
  220. return {
  221. editable: false,
  222. other_guide: true,
  223. isEditBtn: true,
  224. data2: "",
  225. radio: "",
  226. input: '',
  227. check: [],
  228. postpartumVisitDetails: {
  229. name: '',
  230. number: '',
  231. followup_date: '',
  232. parturition_date: '',
  233. discharged_date: '',
  234. body_temperature: '',
  235. healthy_condition: '',
  236. psychologic_status: '',
  237. blood_pressure_low: '',
  238. blood_pressure_high: '',
  239. breast_status: '',
  240. lochia_status: '',
  241. uterus_status: '',
  242. wound_status: '',
  243. category: '',
  244. other: '',
  245. personal_hygiene: '0',
  246. mentality: '0',
  247. nutrition: '0',
  248. breast_feeding: '0',
  249. newborn_care_and_feeding: '0',
  250. other_guide: '0',
  251. other_guide_content: '',
  252. referral: '',
  253. referral_REASON: '',
  254. organization_ORG_NAME: '',
  255. organization: '',
  256. next_visiting_date: '',
  257. visiting_doctor_name: '',
  258. },
  259. followupId:Request['id']
  260. }
  261. },
  262. mounted: function () {
  263. this.getData()
  264. },
  265. watch: {
  266. check: function (i) {
  267. var a = i.indexOf('6')
  268. if (a > -1) {
  269. this.other_guide = false
  270. } else {
  271. this.other_guide = true
  272. this.postpartumVisitDetails.other_guide_content = ''
  273. }
  274. }
  275. },
  276. methods: {
  277. getData: function () {
  278. var vm = this
  279. var vmP = this.postpartumVisitDetails
  280. fangshiAPI.getPostpartumVisitDetails({ followupId: this.followupId||'3' }).then(function (res) {
  281. if (res.status == 200) {
  282. var data = res.data
  283. vmP.name = data.name
  284. vmP.number = data.number
  285. vmP.followup_date = data.followup_date
  286. vmP.parturition_date = data.parturition_date
  287. vmP.discharged_date = data.discharged_date
  288. vmP.body_temperature = data.body_temperature
  289. vmP.healthy_condition = data.healthy_condition
  290. vmP.psychologic_status = data.psychologic_status
  291. vmP.blood_pressure_low = data.blood_pressure_low
  292. vmP.blood_pressure_high = data.blood_pressure_high
  293. vmP.breast_status = data.breast_status?data.breast_status.toString():''
  294. vmP.lochia_status = data.lochia_status?data.lochia_status.toString():''
  295. vmP.uterus_status = data.uterus_status?data.uterus_status.toString():''
  296. vmP.wound_status = data.wound_status?data.wound_status.toString():''
  297. vmP.category = data.category?data.category.toString():''
  298. vmP.other = data.other
  299. if (data.personal_hygiene == 1) {
  300. vm.check.push('1')
  301. } if (data.mentality == 1) {
  302. vm.check.push('2')
  303. } if (data.nutrition == 1) {
  304. vm.check.push('3')
  305. } if (data.breast_feeding == 1) {
  306. vm.check.push('4')
  307. } if (data.newborn_care_and_feeding == 1) {
  308. vm.check.push('5')
  309. } if (data.other_guide == 1) {
  310. vm.check.push('6')
  311. }
  312. vmP.other_guide_content = data.other_guide_content
  313. vmP.referral = data.referral
  314. vmP.REFERRAL_REASON = data.referral_REASON
  315. vmP.organization_ORG_NAME = data.organization_ORG_NAME
  316. vmP.organization = data.organization
  317. vmP.next_visiting_date = data.next_visiting_date
  318. vmP.visiting_doctor_name = data.visiting_doctor_name
  319. } else {
  320. top.toastr.error(res.msg);
  321. }
  322. })
  323. },
  324. editData: function () {
  325. var vm = this
  326. console.log(this.postpartumVisitDetails)
  327. vm.check.map(i => {
  328. if (i == '1') {
  329. vm.postpartumVisitDetails.personal_hygiene = '1'
  330. } else if (i == '2') {
  331. vm.postpartumVisitDetails.mentality = '1'
  332. } else if (i == '3') {
  333. vm.postpartumVisitDetails.nutrition = '1'
  334. } else if (i == '4') {
  335. vm.postpartumVisitDetails.breast_feeding = '1'
  336. } else if (i == '5') {
  337. vm.postpartumVisitDetails.newborn_care_and_feeding = '1'
  338. } else if (i == '6') {
  339. vm.postpartumVisitDetails.other_guide = '1'
  340. }
  341. })
  342. this.postpartumVisitDetails.version = '1' //版本号
  343. fangshiAPI.savePostpartumVisitDetails({ followupId: '3', postpartumVisitDetails: JSON.stringify(this.postpartumVisitDetails) }).then(function (res) {
  344. if (res.status == 200) {
  345. top.toastr.info('保存成功')
  346. } else {
  347. top.toastr.error(res.msg);
  348. }
  349. })
  350. },
  351. editBtn: function () {
  352. this.isEditBtn = !this.isEditBtn
  353. if (this.isEditBtn == true) {
  354. var btn = document.getElementsByClassName('button')[0]
  355. btn.innerHTML = '编辑'
  356. this.editable = false
  357. this.editData()
  358. } else if (this.isEditBtn == false) {
  359. var btn = document.getElementsByClassName('button')[0]
  360. btn.innerHTML = '保存'
  361. this.editable = true
  362. }
  363. }
  364. }
  365. })
  366. </script>
  367. </body>
  368. </html>