血透系统PC前端

index.vue 25KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602
  1. <template>
  2. <div class="app-container sign-and-weigh-box">
  3. <el-row :gutter="20">
  4. <el-col :span="7">
  5. <div class="title">患者列表</div>
  6. <div style="margin-bottom: 10px;">
  7. <el-input v-model="queryParams.keywords" placeholder="姓名/透析号" style="width: 180px;" @change="changeSearch"></el-input>
  8. <el-select v-model="queryParams.schedule_type" style="width: 100px;" @change="changeSearch">
  9. <el-option v-for="item in shiftOptions" :label="item.label" :value="item.value" :key="item.value"></el-option>
  10. </el-select>
  11. </div>
  12. <el-table :data="patients" :class="signAndWeighBoxPatients" style="width: 100%" border highlight-current-row :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)'}" max-height="300" @current-change="handleCurrentChange">
  13. <el-table-column type="index" label="序号" min-width="20" align="center"></el-table-column>
  14. <el-table-column prop="name" label="姓名" min-width="50" align="center">
  15. <template slot-scope="scope">
  16. {{scope.row.name}}({{scope.row.dialysis_no}})
  17. </template>
  18. </el-table-column>
  19. <el-table-column prop="state" label="状态" min-width="30" align="center" >
  20. <template slot-scope="scope">
  21. <span v-if="scope.row.signin.id==0">未签到</span>
  22. <span v-else-if="scope.row.dialysis_order.stage==2">已经下机</span>
  23. <span v-else>已签到</span>
  24. </template>
  25. </el-table-column>
  26. </el-table>
  27. <el-table :data="schedules" style="width: 100%; margin:15px 0 0 0;" border highlight-current-row :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)'}">
  28. <el-table-column prop="shift" label="班次" min-width="30" align="center"></el-table-column>
  29. <el-table-column prop="arrange" label="排班" min-width="30" align="center" ></el-table-column>
  30. <el-table-column prop="sign" label="签到" min-width="30" align="center" ></el-table-column>
  31. <el-table-column prop="weight" label="称重(透前/透后)" min-width="50" align="center" >
  32. <template slot-scope="scope">
  33. {{scope.row.before}} / {{scope.row.after}}
  34. </template>
  35. </el-table-column>
  36. </el-table>
  37. </el-col>
  38. <el-col :span="17">
  39. <div class="title">患者信息</div>
  40. <el-form class="information" label-position="left">
  41. <div class="patient-app-container">
  42. <span>姓名:{{weigh_form.name}} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;透析号:{{weigh_form.dialysis_no}} &nbsp;&nbsp;</span> <span class="button"><el-button @click="change()">修改</el-button></span>
  43. </div>
  44. <div class="border"></div>
  45. <el-row :gutter="20">
  46. <el-col :span="8">
  47. <el-form-item label="透前称重(kg):" label-width="100px">
  48. <el-input v-model="weigh_list.weight_before"></el-input>
  49. </el-form-item>
  50. </el-col>
  51. <el-col :span="8">
  52. <el-form-item label="干体重(kg):" label-width="100px">
  53. <el-input v-model="weigh_list.dry_weight"></el-input>
  54. </el-form-item>
  55. </el-col>
  56. </el-row>
  57. <el-row :gutter="20">
  58. <el-col :span="4">
  59. <el-form-item label="体温(℃):" label-width="80px">
  60. <el-input v-model="weigh_list.temperature"></el-input>
  61. </el-form-item>
  62. </el-col>
  63. <el-col :span="5">
  64. <el-form-item label="脉搏(次/分):" label-width="90px">
  65. <el-input v-model="weigh_list.pulse_frequency"></el-input>
  66. </el-form-item>
  67. </el-col>
  68. <el-col :span="5">
  69. <el-form-item label="呼吸(次/分):" label-width="100px">
  70. <el-input v-model="weigh_list.breathing_rate"></el-input>
  71. </el-form-item>
  72. </el-col>
  73. <el-col :span="9">
  74. <el-form-item label="血压(mmHg):" label-width="100px">
  75. <el-input v-model="weigh_list.systolic_blood_pressure" style="width: 70px"></el-input>
  76. <span> / </span>
  77. <el-input v-model="weigh_list.diastolic_blood_pressure" style="width: 70px"></el-input>
  78. </el-form-item>
  79. </el-col>
  80. </el-row>
  81. <div class="border"></div>
  82. <el-row :gutter="20">
  83. <el-col :span="8">
  84. <el-form-item label="透后称重(kg):" label-width="100px">
  85. <el-input v-model="weigh_infor.weight_after"></el-input>
  86. </el-form-item>
  87. </el-col>
  88. <el-col :span="8">
  89. <el-form-item label="干体重(kg):" label-width="100px">
  90. <el-input v-model="weigh_list.dry_weight"></el-input>
  91. </el-form-item>
  92. </el-col>
  93. </el-row>
  94. <el-row :gutter="20">
  95. <el-col :span="4">
  96. <el-form-item label="体温(℃):" label-width="80px">
  97. <el-input v-model="weigh_infor.temperature"></el-input>
  98. </el-form-item>
  99. </el-col>
  100. <el-col :span="5">
  101. <el-form-item label="脉搏(次/分):" label-width="90px">
  102. <el-input v-model="weigh_infor.pulse_frequency"></el-input>
  103. </el-form-item>
  104. </el-col>
  105. <el-col :span="5">
  106. <el-form-item label="呼吸(次/分):" label-width="100px">
  107. <el-input v-model="weigh_infor.breathing_rate"></el-input>
  108. </el-form-item>
  109. </el-col>
  110. <el-col :span="9">
  111. <el-form-item label="血压(mmHg):" label-width="100px">
  112. <el-input v-model="weigh_infor.systolic_blood_pressure" style="width: 70px" ></el-input>
  113. <span> / </span>
  114. <el-input v-model="weigh_infor.diastolic_blood_pressure" style="width: 70px" ></el-input>
  115. </el-form-item>
  116. </el-col>
  117. </el-row>
  118. <div class="border"></div>
  119. <div v-if="show">
  120. <el-row :gutter="20">
  121. <el-col :span="23" align="right">
  122. <el-button @click="hide()">取消</el-button>
  123. <el-button @click="savedata();updatedata()" type="primary">保存</el-button>
  124. </el-col>
  125. </el-row>
  126. </div>
  127. </el-form>
  128. </el-col>
  129. </el-row>
  130. </div>
  131. </template>
  132. <script>
  133. import { fetchSignPatients, getPatientSign, SignWeigh, getDialysisInforInfomation, getDialysisAfterInfomation, createdata, editdata } from '@/api/signandweigh'
  134. export default {
  135. name: 'sign',
  136. data() {
  137. return {
  138. patientlist: [],
  139. signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
  140. queryParams: {
  141. keywords: '',
  142. schedule_type: '',
  143. need_schedule_type: 0
  144. },
  145. querySignParams: {
  146. patient_id: 0,
  147. date_time: ''
  148. },
  149. weigh_form: {
  150. choose: false,
  151. name: '',
  152. dry_weight: '',
  153. clothes_weight: '',
  154. // 透前
  155. weigh_before: '',
  156. dehydrated_weight: '',
  157. dehydrated_percent: '',
  158. weight_before: '',
  159. temperature_before: '',
  160. pulse_rate_before: '', // P 脉率
  161. respiratory_rate_before: '', // R 呼吸频率
  162. DBP_before: '', // 舒张压
  163. SBP_before: '', // 收缩压
  164. // 透后
  165. weigh_after: '',
  166. weight_reduce_after: '',
  167. weight_after: '',
  168. temperature_after: '',
  169. pulse_rate_after: '', // P 脉率
  170. respiratory_rate_after: '', // R 呼吸频率
  171. DBP_after: '', // 舒张压
  172. SBP_after: '', // 收缩压
  173. dialysis_no: ''
  174. },
  175. weigh_list: {
  176. weight_before: '', // 透前体重
  177. temperature: '', // 体温
  178. pulse_frequency: '', // 脉搏
  179. breathing_rate: '', // 呼吸频率
  180. dry_weight: '', // 干体重
  181. systolic_blood_pressure: '', // 收缩压
  182. diastolic_blood_pressure: ''// 舒张压
  183. },
  184. weigh_infor: {
  185. weight_after: '', // 透后体重
  186. temperature: '',
  187. pulse_frequency: '',
  188. breathing_rate: '',
  189. dry_weight: '',
  190. systolic_blood_pressure: '',
  191. diastolic_blood_pressure: ''
  192. },
  193. shiftOptions: [
  194. { value: 0, label: '班次' },
  195. { value: 1, label: '上午' },
  196. { value: 2, label: '下午' },
  197. { value: 3, label: '晚上' }
  198. ],
  199. schedules: [{
  200. type: 1,
  201. shift: '上午',
  202. arrange: 0,
  203. sign: 0,
  204. before: 0,
  205. after: 0
  206. }, {
  207. type: 2,
  208. shift: '下午',
  209. arrange: 0,
  210. sign: 0,
  211. before: 0,
  212. after: 0
  213. }, {
  214. type: 3,
  215. shift: '晚上',
  216. arrange: 0,
  217. sign: 0,
  218. before: 0,
  219. after: 0
  220. }],
  221. patients: [],
  222. dialysis_stege: 0,
  223. show: false
  224. }
  225. },
  226. methods: {
  227. fetchSignPatients() {
  228. fetchSignPatients(this.queryParams).then(response => {
  229. this.patients = []
  230. if (response.data.state === 1) {
  231. this.patients = response.data.data.patients
  232. this.queryParams.schedule_type = response.data.data.schedule_type
  233. this.querySignParams.date_time = response.data.data.today
  234. if (this.queryParams.need_schedule_type === 1) {
  235. var sl = this.schedules.length
  236. for (let index = 0; index < sl; index++) {
  237. if (this.schedules[index].type in response.data.data.panel) {
  238. this.schedules[index].arrange = response.data.data.panel[this.schedules[index].type].schedule
  239. this.schedules[index].sign = response.data.data.panel[this.schedules[index].type].sign
  240. this.schedules[index].before = response.data.data.panel[this.schedules[index].type].before
  241. this.schedules[index].after = response.data.data.panel[this.schedules[index].type].after
  242. }
  243. }
  244. }
  245. }
  246. })
  247. },
  248. // getPatientSign(){
  249. // getPatientSign(this.querySignParams).then(response=>{
  250. // if (response.data.state==1) {
  251. // if (response.data.data.sign != null) {
  252. // var sign = response.data.data.sign;
  253. // this.weigh_form.dry_weight = sign.dry_weight;
  254. // this.weigh_form.clothes_weight = sign.clothes_weight;
  255. // // 透前
  256. // this.weigh_form.weigh_before = sign.weigh_before;
  257. // this.weigh_form.dehydrated_weight = sign.dehydrated_weight;
  258. // this.weigh_form.dehydrated_percent = sign.dehydrated_percent;
  259. // this.weigh_form.weight_before = sign.weight_before;
  260. // this.weigh_form.temperature_before = sign.temperature_before;
  261. // this.weigh_form.pulse_rate_before = sign.pulse_rate_before; // P 脉率
  262. // this.weigh_form.respiratory_rate_before = sign.respiratory_rate_before; // R 呼吸频率
  263. // this.weigh_form.DBP_before = sign.DBP_before; // 舒张压
  264. // this.weigh_form.SBP_before = sign.SBP_before // 收缩压
  265. // // 透后
  266. // this.weigh_form.weigh_after = sign.weigh_after;
  267. // this.weigh_form.weight_reduce_after = sign.weight_reduce_after;
  268. // this.weigh_form.weight_after = sign.weight_after
  269. // this.weigh_form.temperature_after = sign.temperature_after;
  270. // this.weigh_form.pulse_rate_after = sign.pulse_rate_after; // P 脉率
  271. // this.weigh_form.respiratory_rate_after = sign.respiratory_rate_after; // R 呼吸频率
  272. // this.weigh_form.DBP_after = sign.DBP_after; // 舒张压
  273. // this.weigh_form.SBP_after = sign.SBP_after; // 收缩压
  274. // this.weigh_form.id=sign.id;
  275. // }
  276. // }
  277. // });
  278. // },
  279. changeSearch() {
  280. this.queryParams.need_schedule_type = 0
  281. this.fetchSignPatients()
  282. },
  283. handleCurrentChange(row, old) {
  284. // this.weigh_form = {
  285. // id:0,
  286. // choose:false,
  287. // name: '',
  288. // dry_weight: '',
  289. // clothes_weight: '',
  290. // // 透前
  291. // weigh_before: '',
  292. // dehydrated_weight: '',
  293. // dehydrated_percent: '',
  294. // weight_before: '',
  295. // temperature_before: '',
  296. // pulse_rate_before: '', // P 脉率
  297. // respiratory_rate_before: '', // R 呼吸频率
  298. // DBP_before: '', // 舒张压
  299. // SBP_before: '', // 收缩压
  300. // // 透后
  301. // weigh_after: '',
  302. // weight_reduce_after: '',
  303. // weight_after: '',
  304. // temperature_after: '',
  305. // pulse_rate_after: '', // P 脉率
  306. // respiratory_rate_after: '', // R 呼吸频率
  307. // DBP_after: '', // 舒张压
  308. // SBP_after: '', // 收缩压
  309. // patient_id: 0,
  310. // dialysis_no:'',
  311. // };
  312. this.weigh_form.choose = true
  313. this.weigh_form.name = row.name
  314. this.weigh_form.dialysis_no = row.dialysis_no
  315. // if (row.alias.length>0) {
  316. // this.weigh_form.name += "("+row.alias+")";
  317. // }
  318. this.weigh_form.patient_id = row.id
  319. this.querySignParams.patient_id = row.id
  320. this.dialysis_stege = row.dialysis_order.stage
  321. this.getDialysisInforInfomation(row.id)
  322. this.getDialysisAfterInfomation(row.id)
  323. // if (row.signin != null) {
  324. // this.weigh_form.dry_weight = '' + row.signin.dry_weight;
  325. // this.weigh_form.clothes_weight = '' + row.signin.clothing_weight;
  326. // // 透前
  327. // this.weigh_form.weigh_before = '' + row.signin.weighing_before;
  328. // this.weigh_form.dehydrated_weight = '' + row.signin.target_dewatering;
  329. // if (this.weigh_form.dry_weight == 0) {
  330. // this.weigh_form.dehydrated_percent = '';
  331. // }else {
  332. // var dehydrated_percent = ((this.weigh_form.dehydrated_weight/this.weigh_form.dry_weight) * 100).toFixed(2);
  333. // if (isNaN(dehydrated_percent)) {
  334. // this.weigh_form.dehydrated_percent = '';
  335. // }else {
  336. // this.weigh_form.dehydrated_percent = dehydrated_percent + "%";
  337. // }
  338. // }
  339. // this.weigh_form.weight_before = '' + row.signin.weight_before;
  340. // this.weigh_form.temperature_before = '' + row.signin.temperature_before;
  341. // this.weigh_form.pulse_rate_before = '' + row.signin.pulse_frequency_before;
  342. // this.weigh_form.respiratory_rate_before = '' + row.signin.breathing_rate_before;
  343. // this.weigh_form.DBP_before = '' + row.signin.diastolic_blood_pressure_before;
  344. // this.weigh_form.SBP_before = '' + row.signin.systolic_blood_pressure_before;
  345. // this.weigh_form.weigh_after = '' + row.signin.weighing_after;
  346. // this.weigh_form.weight_reduce_after = '' + row.signin.weight_loss;
  347. // this.weigh_form.weight_after = '' + row.signin.weight_after;
  348. // this.weigh_form.temperature_after = '' + row.signin.temperature_after;
  349. // this.weigh_form.pulse_rate_after = '' + row.signin.pulse_frequency_after;
  350. // this.weigh_form.respiratory_rate_after = '' + row.signin.breathing_rate_after;
  351. // this.weigh_form.DBP_after = '' + row.signin.diastolic_blood_pressure_after;
  352. // this.weigh_form.SBP_after = '' + row.signin.systolic_blood_pressure_after;
  353. // this.weigh_form.id = row.signin.id;
  354. // }
  355. },
  356. submitSign() {
  357. SignWeigh(this.querySignParams, this.weigh_form).then(response => {
  358. if (response.data.state === 1) {
  359. this.$message({
  360. type: 'success',
  361. message: '成功!'
  362. })
  363. var tlen = this.patients.length
  364. for (let index = 0; index < tlen; index++) {
  365. if (this.patients[index].id === this.querySignParams.patient_id) {
  366. var signin = this.patients[index].signin
  367. this.patients[index].signin = response.data.data.sign
  368. if (this.patients[index].schedule.id > 0 && (this.patients[index].schedule.schedule_type >= 1 || this.patients[index].schedule.schedule_type <= 3)) {
  369. var sl = this.schedules.length
  370. for (let j = 0; j < sl; j++) {
  371. if (this.schedules[j].type === this.patients[index].schedule.schedule_type) {
  372. if (this.weigh_form.id <= 0) {
  373. this.schedules[j].sign++
  374. }
  375. if (signin.weigh_before_time === 0 && response.data.data.sign.weigh_before_time > 0) {
  376. this.schedules[j].before++
  377. }
  378. if (signin.weigh_time === 0 && response.data.data.sign.weigh_time > 0) {
  379. this.schedules[j].after++
  380. }
  381. }
  382. }
  383. }
  384. break
  385. }
  386. }
  387. this.weigh_form.id = response.data.data.sign.id
  388. } else {
  389. this.$message.error(response.data.msg)
  390. return false
  391. }
  392. })
  393. },
  394. getDialysisInforInfomation(id) {
  395. getDialysisInforInfomation(id).then(response => {
  396. if (response.data.data.patientlist != null) {
  397. var patientlist = response.data.data.patientlist
  398. this.weigh_list.dry_weight = patientlist.dry_weight
  399. this.weigh_list.weight_before = patientlist.weight_before
  400. this.weigh_list.temperature = patientlist.temperature
  401. this.weigh_list.pulse_frequency = patientlist.pulse_frequency
  402. this.weigh_list.breathing_rate = patientlist.breathing_rate
  403. this.weigh_list.systolic_blood_pressure = patientlist.systolic_blood_pressure
  404. this.weigh_list.diastolic_blood_pressure = patientlist.diastolic_blood_pressure
  405. console.log('報恩 ')
  406. console.log(patientlist)
  407. }
  408. })
  409. },
  410. getDialysisAfterInfomation(id) {
  411. getDialysisAfterInfomation(id).then(response => {
  412. if (response.data.data.patientinfor != null) {
  413. var patientinfor = response.data.data.patientinfor
  414. console.log(patientinfor)
  415. this.weigh_infor.dry_weight = patientinfor.dry_weight
  416. this.weigh_infor.weight_after = patientinfor.weight_after
  417. console.log(patientinfor.weight_after)
  418. this.weigh_infor.temperature = patientinfor.temperature
  419. this.weigh_infor.pulse_frequency = patientinfor.pulse_frequency
  420. this.weigh_infor.breathing_rate = patientinfor.breathing_rate
  421. this.weigh_infor.systolic_blood_pressure = patientinfor.systolic_blood_pressure
  422. this.weigh_infor.diastolic_blood_pressure = patientinfor.diastolic_blood_pressure
  423. }
  424. })
  425. },
  426. change() {
  427. this.show = true
  428. },
  429. savedata() {
  430. var params = new Object()
  431. params.patient_id = this.weigh_form.patient_id
  432. params.dry_weight = this.weigh_list.dry_weight
  433. params.weight_before = this.weigh_list.weight_before
  434. params.temperature = this.weigh_list.temperature
  435. params.pulse_frequency = this.weigh_list.pulse_frequency
  436. params.breathing_rate = this.weigh_list.breathing_rate
  437. params.systolic_blood_pressure = this.weigh_list.systolic_blood_pressure
  438. params.diastolic_blood_pressure = this.weigh_list.diastolic_blood_pressure
  439. createdata(params).then(response => {
  440. if (response.data.state === 1) {
  441. this.$message({
  442. type: 'success',
  443. message: '成功!'
  444. })
  445. }
  446. })
  447. console.log('aaaaaaaaaaaaaaaaaa')
  448. console.log(params)
  449. },
  450. hide() {
  451. this.show = false
  452. },
  453. updatedata() {
  454. var params = new Object()
  455. params.patient_id = this.weigh_form.patient_id
  456. params.dry_weight = this.weigh_infor.dry_weight
  457. params.weight_after = this.weigh_infor.weight_after
  458. params.temperature = this.weigh_infor.temperature
  459. params.pulse_frequency = this.weigh_infor.pulse_frequency
  460. params.breathing_rate = this.weigh_infor.breathing_rate
  461. params.systolic_blood_pressure = this.weigh_infor.systolic_blood_pressure
  462. params.diastolic_blood_pressure = this.weigh_infor.diastolic_blood_pressure
  463. editdata(params).then(response => {
  464. if (response.data.state === 1) {
  465. this.$message({
  466. type: 'success',
  467. message: '成功!'
  468. })
  469. }
  470. })
  471. console.log('hahahahah')
  472. console.log(params)
  473. }
  474. },
  475. watch: {
  476. 'weigh_form.weigh_before': function() {
  477. this.weigh_form.weight_before = this.weigh_form.weigh_before - this.weigh_form.clothes_weight
  478. this.weigh_form.dehydrated_weight = this.weigh_form.weigh_before - this.weigh_form.dry_weight - this.weigh_form.clothes_weight
  479. this.weigh_form.weight_before += ''
  480. this.weigh_form.dehydrated_weight += ''
  481. if (this.dialysis_stege === 2) {
  482. this.weigh_form.weight_reduce_after = this.weigh_form.weigh_before - this.weigh_form.weigh_after
  483. this.weigh_form.weight_reduce_after += ''
  484. }
  485. },
  486. 'weigh_form.weigh_after': function() {
  487. if (this.dialysis_stege === 2) {
  488. this.weigh_form.weight_reduce_after = this.weigh_form.weigh_before - this.weigh_form.weigh_after
  489. this.weigh_form.weight_reduce_after += ''
  490. this.weigh_form.weight_after = this.weigh_form.weigh_after - this.weigh_form.clothes_weight
  491. this.weigh_form.weight_after += ''
  492. }
  493. },
  494. 'weigh_form.clothes_weight': function() {
  495. this.weigh_form.weight_before = this.weigh_form.weigh_before - this.weigh_form.clothes_weight
  496. this.weigh_form.dehydrated_weight = this.weigh_form.weigh_before - this.weigh_form.dry_weight - this.weigh_form.clothes_weight
  497. this.weigh_form.weight_before += ''
  498. this.weigh_form.dehydrated_weight += ''
  499. if (this.dialysis_stege === 2) {
  500. this.weigh_form.weight_after = this.weigh_form.weigh_after - this.weigh_form.clothes_weight
  501. this.weigh_form.weight_after += ''
  502. }
  503. },
  504. 'weigh_form.dry_weight': function() {
  505. this.weigh_form.dehydrated_weight = this.weigh_form.weigh_before - this.weigh_form.dry_weight - this.weigh_form.clothes_weight
  506. this.weigh_form.dehydrated_weight += ''
  507. },
  508. 'weigh_form.dehydrated_weight': function() {
  509. if (this.weigh_form.dry_weight === 0) {
  510. this.weigh_form.dehydrated_percent = ''
  511. } else {
  512. var dehydrated_percent = ((this.weigh_form.dehydrated_weight / this.weigh_form.dry_weight) * 100).toFixed(2)
  513. if (isNaN(dehydrated_percent)) {
  514. this.weigh_form.dehydrated_percent = ''
  515. } else {
  516. this.weigh_form.dehydrated_percent = dehydrated_percent + '%'
  517. }
  518. }
  519. }
  520. },
  521. created() {
  522. this.queryParams.schedule_type = -1
  523. this.queryParams.need_schedule_type = 1
  524. this.fetchSignPatients()
  525. }
  526. }
  527. </script>
  528. <style rel="stylesheet/css" lang="scss" scoped>
  529. .information {
  530. border: 1px #dcdfe6 solid;
  531. padding: 30px 20px 30px 20px;
  532. .border {
  533. border-bottom: 1px #dcdfe6 solid;
  534. margin: 0px 0 20px 0;
  535. }
  536. }
  537. .title {
  538. background:#409eff;
  539. height: 44px;
  540. line-height: 44px;
  541. padding: 0 0 0 10px;
  542. color: #fff;
  543. margin: 0 0 10px 0;
  544. // border-radius: 4px 4px 0 0;
  545. }
  546. .edit_separater {
  547. border-top: 1px solid rgb(233, 233, 233);
  548. margin-top: 15px;
  549. margin-bottom: 15px;
  550. }
  551. </style>
  552. <style>
  553. .sign-and-weigh-box .sign-and-weigh-box-patients .cell{
  554. font-size: 12px;
  555. }
  556. .sign-and-weigh-box .sign-and-weigh-box-patients .current-row>td{
  557. background: #6fb5fa;
  558. }
  559. .patient-app-container {
  560. margin-left: 10px;
  561. padding-left: 20px;
  562. margin-bottom: 4px;
  563. height: 36px;
  564. line-height: 36px;
  565. }
  566. .button{
  567. float: right;
  568. margin-bottom:0px
  569. }
  570. </style>