血透系统PC前端

index.vue 25KB

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