index.vue 25KB

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