Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

index.vue 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588
  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" @keyup.enter.native='changeSearch' 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. // 将没有排班的信息排除
  204. for (let i = this.patients.length - 1; i >= 0; i--) {
  205. if (this.patients[i].schedule.id === 0) {
  206. this.patients.splice(i, 1)
  207. }
  208. }
  209. this.queryParams.schedule_type = response.data.data.schedule_type
  210. this.querySignParams.date_time = response.data.data.today
  211. if (this.queryParams.need_schedule_type === 1) {
  212. var sl = this.schedules.length
  213. var panel = response.data.data.panel
  214. for (let index = 0; index < sl; index++) {
  215. if (this.schedules[index].type in response.data.data.panel) {
  216. this.schedules[index].arrange = response.data.data.panel[this.schedules[index].type].schedule
  217. this.schedules[index].sign = response.data.data.panel[this.schedules[index].type].sign
  218. this.schedules[index].before = response.data.data.panel[this.schedules[index].type].before
  219. this.schedules[index].after = response.data.data.panel[this.schedules[index].type].after
  220. }
  221. }
  222. }
  223. }
  224. })
  225. },
  226. getPatientSign() {
  227. getPatientSign(this.querySignParams).then(response => {
  228. if (response.data.state === 1) {
  229. if (response.data.data.sign != null) {
  230. var sign = response.data.data.sign
  231. this.weigh_form.dry_weight = sign.dry_weight
  232. this.weigh_form.clothes_weight = sign.clothes_weight
  233. // 透前
  234. this.weigh_form.weigh_before = sign.weigh_before
  235. this.weigh_form.dehydrated_weight = sign.dehydrated_weight
  236. this.weigh_form.dehydrated_percent = sign.dehydrated_percent
  237. this.weigh_form.weight_before = sign.weight_before
  238. this.weigh_form.temperature_before = sign.temperature_before
  239. this.weigh_form.pulse_rate_before = sign.pulse_rate_before // P 脉率
  240. this.weigh_form.respiratory_rate_before = sign.respiratory_rate_before // R 呼吸频率
  241. this.weigh_form.DBP_before = sign.DBP_before // 舒张压
  242. this.weigh_form.SBP_before = sign.SBP_before // 收缩压
  243. // 透后
  244. this.weigh_form.weigh_after = sign.weigh_after
  245. this.weigh_form.weight_reduce_after = sign.weight_reduce_after
  246. this.weigh_form.weight_after = sign.weight_after
  247. this.weigh_form.temperature_after = sign.temperature_after
  248. this.weigh_form.pulse_rate_after = sign.pulse_rate_after // P 脉率
  249. this.weigh_form.respiratory_rate_after = sign.respiratory_rate_after // R 呼吸频率
  250. this.weigh_form.DBP_after = sign.DBP_after // 舒张压
  251. this.weigh_form.SBP_after = sign.SBP_after // 收缩压
  252. this.weigh_form.id = sign.id
  253. }
  254. }
  255. })
  256. },
  257. changeSearch() {
  258. this.queryParams.need_schedule_type = 0
  259. this.fetchSignPatients()
  260. },
  261. handleCurrentChange(row, old) {
  262. this.disa = true
  263. this.show = false
  264. this.weigh_form.choose = true
  265. this.weigh_form.name = row.name
  266. this.weigh_form.dialysis_no = row.dialysis_no
  267. this.weigh_form.patient_id = row.id
  268. this.querySignParams.patient_id = row.id
  269. this.dialysis_stege = row.dialysis_order.stage
  270. this.getDialysisInforInfomation(row.id)
  271. this.getDialysisAfterInfomation(row.id)
  272. this.weigh_list.id = row.signin.id
  273. // console.log("是否有数据",this.weigh_list.id)
  274. // this.getsignweigh(row.id)
  275. },
  276. getDialysisInforInfomation(id) {
  277. getDialysisInforInfomation(id).then(response => {
  278. if (response.data.data.patientlist != null) {
  279. var patientlist = response.data.data.patientlist
  280. this.weigh_list.id = patientlist.id
  281. this.weigh_list.dry_weight = patientlist.dry_weight?response.data.data.dryWeight.dry_weight:0
  282. if (this.weigh_list.dry_weight === 0) {
  283. this.weigh_list.dry_weight = ''
  284. }
  285. this.weigh_list.weight_before = patientlist.weight_before
  286. if (this.weigh_list.weight_before === 0) {
  287. this.weigh_list.weight_before = ''
  288. }
  289. this.weigh_list.temperature = patientlist.temperature
  290. if (this.weigh_list.temperature === 0) {
  291. this.weigh_list.temperature = ''
  292. }
  293. this.weigh_list.pulse_frequency = patientlist.pulse_frequency
  294. if (this.weigh_list.pulse_frequency === 0) {
  295. this.weigh_list.pulse_frequency = ''
  296. }
  297. this.weigh_list.breathing_rate = patientlist.breathing_rate
  298. if (this.weigh_list.breathing_rate === 0) {
  299. this.weigh_list.breathing_rate = ''
  300. }
  301. this.weigh_list.systolic_blood_pressure = patientlist.systolic_blood_pressure
  302. if (this.weigh_list.systolic_blood_pressure === 0) {
  303. this.weigh_list.systolic_blood_pressure = ''
  304. }
  305. this.weigh_list.diastolic_blood_pressure = patientlist.diastolic_blood_pressure
  306. if (this.weigh_list.diastolic_blood_pressure === 0) {
  307. this.weigh_list.diastolic_blood_pressure = ''
  308. }
  309. }
  310. })
  311. },
  312. getDialysisAfterInfomation(id) {
  313. getDialysisAfterInfomation(id).then(response => {
  314. if (response.data.data.patientinfor != null) {
  315. var patientinfor = response.data.data.patientinfor
  316. this.weigh_infor.dry_weight = patientinfor.dry_weight
  317. if (this.weigh_infor.dry_weight === 0) {
  318. this.weigh_infor.dry_weight = ''
  319. }
  320. this.weigh_infor.weight_after = patientinfor.weight_after
  321. if (this.weigh_infor.weight_after === 0) {
  322. this.weigh_infor.weight_after = ''
  323. }
  324. this.weigh_infor.temperature = patientinfor.temperature
  325. if (this.weigh_infor.temperature === 0) {
  326. this.weigh_infor.temperature = ''
  327. }
  328. this.weigh_infor.pulse_frequency = patientinfor.pulse_frequency
  329. if (this.weigh_infor.pulse_frequency === 0) {
  330. this.weigh_infor.pulse_frequency = ''
  331. }
  332. this.weigh_infor.breathing_rate = patientinfor.breathing_rate
  333. if (this.weigh_infor.breathing_rate === 0) {
  334. this.weigh_infor.breathing_rate = ''
  335. }
  336. this.weigh_infor.systolic_blood_pressure = patientinfor.systolic_blood_pressure
  337. if (this.weigh_infor.systolic_blood_pressure === 0) {
  338. this.weigh_infor.systolic_blood_pressure = ''
  339. }
  340. this.weigh_infor.diastolic_blood_pressure = patientinfor.diastolic_blood_pressure
  341. if (this.weigh_infor.diastolic_blood_pressure === 0) {
  342. this.weigh_infor.diastolic_blood_pressure = ''
  343. }
  344. }
  345. })
  346. },
  347. change() {
  348. this.show = true
  349. this.disa = false
  350. },
  351. updateSignweight() {
  352. // eslint-disable-next-line no-new-object
  353. var params = new Object()
  354. var data_time = this.querySignParams.date_time
  355. params.date_time = data_time
  356. params.patient_id = this.weigh_form.patient_id
  357. params.dry_weight = this.weigh_list.dry_weight
  358. params.weight_before = this.weigh_list.weight_before
  359. params.temperature = this.weigh_list.temperature
  360. params.pulse_frequency = this.weigh_list.pulse_frequency
  361. params.systolic_blood_pressure = this.weigh_list.systolic_blood_pressure
  362. params.diastolic_blood_pressure = this.weigh_list.diastolic_blood_pressure
  363. params.patient_id = this.weigh_form.patient_id
  364. params.weight_after = this.weigh_infor.weight_after
  365. params.temperatureafter = this.weigh_infor.temperature
  366. params.pulse_frequencyafter = this.weigh_infor.pulse_frequency
  367. params.systolic_blood_pressureafter = this.weigh_infor.systolic_blood_pressure
  368. params.diastolic_blood_pressureafter = this.weigh_infor.diastolic_blood_pressure
  369. console.log("params",params)
  370. updateSignweight(params).then(response => {
  371. if (response.data.state === 1) {
  372. var signs = response.data.data.signs
  373. console.log('signs是什么', signs)
  374. this.$message.success('成功')
  375. // this.$message({
  376. // type: 'success',
  377. // message: '成功!'
  378. // })
  379. }
  380. })
  381. },
  382. hide() {
  383. this.show = false
  384. },
  385. sighdata() {
  386. // 透前数据
  387. var params = new Object()
  388. var data_time = this.querySignParams.date_time
  389. params.date_time = data_time
  390. params.patient_id = this.weigh_form.patient_id
  391. params.dry_weight = this.weigh_list.dry_weight
  392. params.weight_before = this.weigh_list.weight_before
  393. params.temperature = this.weigh_list.temperature
  394. params.pulse_frequency = this.weigh_list.pulse_frequency
  395. params.breathing_rate = this.weigh_list.breathing_rate
  396. params.systolic_blood_pressure = this.weigh_list.systolic_blood_pressure
  397. params.diastolic_blood_pressure = this.weigh_list.diastolic_blood_pressure
  398. // 透后数据
  399. params.weight_after = this.weigh_infor.weight_after
  400. params.temperatureafter = this.weigh_infor.temperature
  401. params.pulse_frequencyafter = this.weigh_infor.pulse_frequency
  402. params.systolic_blood_pressureafter = this.weigh_infor.systolic_blood_pressure
  403. params.diastolic_blood_pressureafter = this.weigh_infor.diastolic_blood_pressure
  404. sighdata(params).then(response => {
  405. var signs = response.data.data.signs
  406. if (response.data.state === 1) {
  407. // this.$message({
  408. // type: 'success',
  409. // message: '成功!'
  410. // })
  411. var tlen = this.patients.length
  412. for (let index = 0; index < tlen; index++) {
  413. if (this.patients[index].id === params.patient_id) {
  414. var signin = this.patients[index].signin
  415. var sings = response.data.data.signs
  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. .el-table td,
  540. .el-table th.is-leaf,
  541. .el-table--border,
  542. .el-table--group {
  543. border-color: #d0d3da;
  544. }
  545. .el-table--border::after,
  546. .el-table--group::after,
  547. .el-table::before {
  548. background-color: #d0d3da;
  549. }
  550. </style>