patientInspectLogDetail.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579
  1. <template>
  2. <view class="incidentDetail">
  3. <view class="head">
  4. <view class="tab" :class="{active: tab.value === dataInfo.tabActiveValue}" v-for="tab in dataInfo.tabs" :key="tab.id" @click="clickTab(tab.value)">
  5. {{tab.name}}<text v-if="tab.num !== ''">({{tab.num}})</text>
  6. </view>
  7. </view>
  8. <scroll-view scroll-y class="body">
  9. <!-- 基本信息 -->
  10. <template v-if="dataInfo.tabActiveValue === '1'">
  11. <view class="detail_head">
  12. <text class="title">基本信息</text>
  13. <view class="other">
  14. <view class="status">{{dataInfo.patientInspectLogData.state ? dataInfo.patientInspectLogData.state.name : ''}}</view>
  15. </view>
  16. </view>
  17. <view class="detail_item_wrap">
  18. <view class="deital_item">
  19. <text class="name">患者科室:</text>
  20. <text class="value">{{dataInfo.patientInspectLogData.deptName}}</text>
  21. </view>
  22. <view class="deital_item">
  23. <text class="name">患者姓名:</text>
  24. <text class="value">{{dataInfo.patientInspectLogData.patientName}}</text>
  25. <text class="value text_value">年龄:<text v-if="dataInfo.patientInspectLogData.age !== undefined">{{dataInfo.patientInspectLogData.age }}岁</text></text>
  26. </view>
  27. <view class="deital_item">
  28. <text class="name">住院号:</text>
  29. <text class="value">{{dataInfo.patientInspectLogData.patientCode}}</text>
  30. <text class="value text_value">床号:{{dataInfo.patientInspectLogData.bedNum }}</text>
  31. </view>
  32. <view class="deital_item">
  33. <text class="name">护理等级:</text>
  34. <text class="value">{{dataInfo.patientInspectLogData.careLevel ? dataInfo.patientInspectLogData.careLevel.name : ''}}</text>
  35. <text class="value text_value">危重等级:{{dataInfo.patientInspectLogData.illnessState ? dataInfo.patientInspectLogData.illnessState.name : ''}}</text>
  36. </view>
  37. </view>
  38. <view class="detail_head">
  39. <text class="title">陪检信息</text>
  40. </view>
  41. <view class="detail_item_wrap">
  42. <view class="deital_item">
  43. <text class="name">陪检方式:</text>
  44. <text class="value">{{dataInfo.patientInspectLogData.tripTypeDTO ? dataInfo.patientInspectLogData.tripTypeDTO.inspectMode : ''}}</text>
  45. </view>
  46. <view class="deital_item">
  47. <text class="name">携带设备:</text>
  48. <text class="value">{{dataInfo.patientInspectLogData.goodsList | filterNames('name')}}</text>
  49. </view>
  50. <view class="deital_item">
  51. <text class="name">出科时间:</text>
  52. <text class="value">{{dataInfo.patientInspectLogData.outDeptTime | formatDate('yyyy-MM-dd hh:mm')}}</text>
  53. </view>
  54. <view class="deital_item">
  55. <text class="name">出科人:</text>
  56. <text class="value">{{dataInfo.patientInspectLogData.outDeptUserDTO ? dataInfo.patientInspectLogData.outDeptUserDTO.name : ''}}</text>
  57. </view>
  58. </view>
  59. <view class="detail_head">
  60. <text class="title">最新操作</text>
  61. </view>
  62. <view class="detail_item_wrap">
  63. <view class="deital_item">
  64. <text class="name">签到时间:</text>
  65. <text class="value">{{dataInfo.patientInspectLogData.signTime | formatDate('yyyy-MM-dd hh:mm')}}</text>
  66. </view>
  67. <view class="deital_item">
  68. <text class="name">签到人:</text>
  69. <text class="value">{{dataInfo.patientInspectLogData.signUserDTO ? dataInfo.patientInspectLogData.signUserDTO.name : ''}}</text>
  70. </view>
  71. <view class="deital_item">
  72. <text class="name">签到科室:</text>
  73. <text class="value">{{dataInfo.patientInspectLogData.signDeptDTO ? dataInfo.patientInspectLogData.signDeptDTO.dept : ''}}</text>
  74. </view>
  75. </view>
  76. <view class="detail_head">
  77. <text class="title">回科信息</text>
  78. </view>
  79. <view class="detail_item_wrap">
  80. <view class="deital_item">
  81. <text class="name">回科时间:</text>
  82. <text class="value">{{dataInfo.patientInspectLogData.backDeptTime | formatDate('yyyy-MM-dd hh:mm')}}</text>
  83. </view>
  84. <view class="deital_item">
  85. <text class="name">回科人:</text>
  86. <text class="value">{{dataInfo.patientInspectLogData.backDeptUserDTO ? dataInfo.patientInspectLogData.backDeptUserDTO.name : ''}}</text>
  87. </view>
  88. </view>
  89. </template>
  90. <!-- 检查信息 -->
  91. <template v-if="dataInfo.tabActiveValue === '2'">
  92. <view class="info">
  93. <view v-for="item in dataInfo.valueList" :key="item.id" class="infoItem">
  94. <view class="name">检查项目:<text class="fwb">{{item.inspectName}}</text></view>
  95. <view class="name">检查单号:<text>{{item.inspectCode}}</text></view>
  96. <view class="name">状态:<text>{{item.inspectState ? item.inspectState.name : ''}}</text></view>
  97. <view class="name">检查地点:<text>{{item.execDept ? item.execDept.dept : ''}}</text></view>
  98. </view>
  99. </view>
  100. </template>
  101. <!-- 流程图 -->
  102. <template v-if="dataInfo.tabActiveValue === '3'">
  103. <view class="process_item_wrap">
  104. <view class="process_item" v-for="item in dataInfo.logList" :key="item.id">
  105. <view class="process_item_top">
  106. <view class="name">{{item.operationType ? item.operationType.name : '' }}</view>
  107. <view class="value" v-if="item.remark">({{item.remark}})</view>
  108. </view>
  109. <view class="process_item_bottom">
  110. <text class="name">{{item.operationTime | formatDate('yyyy-MM-dd hh:mm')}}</text>
  111. <text class="value" v-if="item.username">{{item.username}}</text>
  112. </view>
  113. </view>
  114. </view>
  115. </template>
  116. </scroll-view>
  117. <view class="foot_common_btns">
  118. <button @click="toList()" type="default" class="primaryButton btn gray">返回</button>
  119. <button v-if="dataInfo.patientInspectLogData.state && dataInfo.patientInspectLogData.state.value === '4'" @click="tagClick(dataInfo.patientInspectLogData)" type="default" class="primaryButton btn">标记回科</button>
  120. </view>
  121. <!-- 弹窗 -->
  122. <showModel :title="models.title" :icon="models.icon" :disjunctor="models.disjunctor" :content="models.content" @ok="ok" @cancel="cancel" @know="know" :operate="models.operate"></showModel>
  123. </view>
  124. </template>
  125. <script>
  126. import { get, post, SM, deleteIt, webHandle } from "../../http/http.js";
  127. export default {
  128. data(){
  129. return {
  130. selectData: {},
  131. // 弹窗model
  132. models: {
  133. disjunctor: false,
  134. },
  135. dataInfo: {
  136. tabs: [
  137. {id: 1, name: '基本信息', value: '1', num: ''},
  138. {id: 2, name: '检查信息', value: '2', num: ''},
  139. {id: 3, name: '流程信息', value: '3', num: ''},
  140. ],
  141. tabActiveValue: 1,//当前选择的tab
  142. patientInspectLogId: undefined,//闭环ID
  143. patientInspectLogData: {},//闭环对象
  144. valueList: [],//检查信息
  145. logList: [],//流程图
  146. }
  147. }
  148. },
  149. methods: {
  150. // 标记回科
  151. tagClick(data){
  152. this.selectData = data;
  153. this.models = {
  154. disjunctor: true,
  155. title: "提示",
  156. content: `您确认${data.patientName}患者已回科吗?`,
  157. icon: "warn",
  158. operate: {
  159. ok: "确定",
  160. cancel: "取消",
  161. },
  162. };
  163. },
  164. //确定
  165. ok() {
  166. this.models.disjunctor = false;
  167. uni.showLoading({
  168. title: "加载中",
  169. mask: true,
  170. });
  171. post("/nurse/patientInspect/setPatientInspectBackDept", {
  172. pilId: this.selectData.id,
  173. }).then((res) => {
  174. uni.hideLoading();
  175. let _this = this;
  176. if (res.state == 200) {
  177. uni.showToast({
  178. icon: "none",
  179. mask: true,
  180. title: "操作成功!",
  181. });
  182. setTimeout(() => {
  183. _this.toList();
  184. },300)
  185. } else {
  186. uni.showToast({
  187. icon: 'none',
  188. title: res.msg || '请求数据失败!'
  189. });
  190. }
  191. })
  192. },
  193. //取消
  194. cancel() {
  195. this.models.disjunctor = false;
  196. },
  197. // 点击tab
  198. clickTab(tabValue){
  199. if(this.dataInfo.tabActiveValue == tabValue){
  200. return;
  201. }
  202. this.dataInfo.tabActiveValue = tabValue;
  203. this.initData()
  204. },
  205. // tab业务数据接口
  206. initData(){
  207. if(this.dataInfo.tabActiveValue === '1'){
  208. }else if(this.dataInfo.tabActiveValue === '2'){
  209. this.getValue();
  210. }else if(this.dataInfo.tabActiveValue === '3'){
  211. this.getLog();
  212. }
  213. },
  214. // 获取检查信息
  215. getValue(){
  216. uni.showLoading({
  217. title: "加载中",
  218. mask: true,
  219. });
  220. let postData = {
  221. pilId: this.dataInfo.patientInspectLogId,
  222. };
  223. post(`/nurse/patientInspect/getPatientInspectList`, postData).then(res => {
  224. uni.hideLoading();
  225. if(res.status == 200){
  226. this.dataInfo.valueList = res.list || [];
  227. }else{
  228. uni.showToast({
  229. icon: 'none',
  230. title: res.msg || '请求数据失败!'
  231. });
  232. }
  233. })
  234. },
  235. // 获取流程信息
  236. getLog(){
  237. uni.showLoading({
  238. title: "加载中",
  239. mask: true,
  240. });
  241. let postData = {
  242. "idx": 0,
  243. "sum": 9999,
  244. "patientInspectLogLog": {
  245. "pilId": this.dataInfo.patientInspectLogId
  246. }
  247. };
  248. post(`/simple/data/fetchDataList/patientInspectLogLog`, postData).then(res => {
  249. uni.hideLoading();
  250. if(res.status == 200){
  251. this.dataInfo.logList = res.list || [];
  252. }else{
  253. uni.showToast({
  254. icon: 'none',
  255. title: res.msg || '请求数据失败!'
  256. });
  257. }
  258. })
  259. },
  260. // 获取详情
  261. getDetail(){
  262. uni.showLoading({
  263. title: "加载中",
  264. mask: true,
  265. });
  266. get(`/simple/data/fetchData/patientInspectLog/${this.dataInfo.patientInspectLogId}`).then(res => {
  267. uni.hideLoading();
  268. if(res.status == 200){
  269. this.dataInfo.patientInspectLogData = res.data || {};
  270. this.dataInfo.logList = this.dataInfo.patientInspectLogData.logList || [];
  271. this.dataInfo.tabActiveValue = this.dataInfo.tabs[0].value;
  272. this.initData()
  273. }else{
  274. uni.showToast({
  275. icon: 'none',
  276. title: res.msg || '请求数据失败!'
  277. });
  278. }
  279. })
  280. },
  281. // 返回列表
  282. toList(){
  283. uni.reLaunch({
  284. url: `/pages/patientInspectLog/patientInspectLogList`
  285. })
  286. }
  287. },
  288. onLoad(options){
  289. this.dataInfo.patientInspectLogId = options.patientInspectLogId;
  290. this.getDetail();
  291. }
  292. }
  293. </script>
  294. <style lang="scss" scoped>
  295. .popup-content{
  296. padding: 40rpx;
  297. }
  298. .gray{
  299. background-color: #8F939C!important;
  300. }
  301. .incidentDetail{
  302. height: 100vh;
  303. display: flex;
  304. flex-direction: column;
  305. justify-content: space-between;
  306. .head{
  307. height: 88rpx;
  308. display: flex;
  309. position: fixed;
  310. z-index: 99;
  311. width: 100%;
  312. background-color: #fff;
  313. font-size: 30rpx;
  314. .tab{
  315. flex: 1;
  316. display: flex;
  317. justify-content: center;
  318. align-items: center;
  319. border-bottom: 4rpx solid transparent;
  320. position: relative;
  321. &:last-of-type{
  322. &:after{
  323. display: none;
  324. }
  325. }
  326. // &:after{
  327. // content: '';
  328. // position: absolute;
  329. // right: 0;
  330. // top: 50%;
  331. // transform: translateY(-50%);
  332. // width: 1rpx;
  333. // height: 44rpx;
  334. // background-color: #515151;
  335. // }
  336. &.active{
  337. color: #49B856;
  338. border-color: #49B856;
  339. }
  340. }
  341. }
  342. .body{
  343. margin-top: 88rpx;
  344. box-sizing: border-box;
  345. flex: 1;
  346. min-height: 0;
  347. border-top: 7rpx solid #EBEBEB;
  348. .phone-filled{
  349. margin-left: 5rpx;
  350. }
  351. .mic-filled{
  352. margin-right: 100rpx;
  353. }
  354. .detail_item_wrap{
  355. padding-bottom: 24rpx;
  356. }
  357. .detail_head{
  358. padding: 24rpx;
  359. border-top: 8rpx solid #D2D2D2;
  360. border-bottom: 1rpx solid #D2D2D2;
  361. display: flex;
  362. justify-content: space-between;
  363. align-items: center;
  364. &:first-of-type{
  365. border-top: none;
  366. }
  367. .title{
  368. font-size: 26rpx;
  369. color: #49B856;
  370. padding-left: 18rpx;
  371. position: relative;
  372. &:before{
  373. content: '';
  374. width: 8rpx;
  375. height: 25rpx;
  376. background-color: #49B856;
  377. position: absolute;
  378. left: 0;
  379. top: 50%;
  380. transform: translateY(-50%);
  381. }
  382. }
  383. .other{
  384. display: flex;
  385. align-items: center;
  386. .priority{
  387. font-size: 26rpx;
  388. margin-right: 15rpx;
  389. }
  390. .status{
  391. font-size: 26rpx;
  392. }
  393. }
  394. }
  395. .deital_item{
  396. font-size: 26rpx;
  397. color: #555;
  398. padding: 24rpx 24rpx 0;
  399. display: flex;
  400. align-items: center;
  401. .name{
  402. width: 5em;
  403. margin-right: 24rpx;
  404. }
  405. .value{
  406. flex: 2;
  407. word-break: break-all;
  408. &.text_value{
  409. flex: 1;
  410. }
  411. &.img{
  412. display: flex;
  413. .imgItem{
  414. width: 82rpx;
  415. height: 82rpx;
  416. margin-right: 24rpx;
  417. &:last-of-type{
  418. margin-right: 0;
  419. }
  420. }
  421. .resourceItem{
  422. width: 100rpx;
  423. height: 100rpx;
  424. margin-right: 24rpx;
  425. &:last-of-type{
  426. margin-right: 0;
  427. }
  428. }
  429. .resourceItem-audio{
  430. width: 300rpx;
  431. height: 60rpx;
  432. }
  433. }
  434. }
  435. }
  436. .summaryItem_bodyItem{
  437. padding: 24rpx 24rpx 0;
  438. font-size: 26rpx;
  439. .summaryItem_bodyItem_top{
  440. display: flex;
  441. justify-content: space-between;
  442. align-items: center;
  443. .value{
  444. padding-left: 48rpx;
  445. flex-shrink: 0;
  446. }
  447. }
  448. .summaryItem_bodyItem_bottom{
  449. margin-top: 24rpx;
  450. display: flex;
  451. justify-content: space-between;
  452. align-items: center;
  453. .name{
  454. text-align: right;
  455. flex: 1;
  456. }
  457. .value{
  458. width: 220rpx;
  459. text-align: right;
  460. flex-shrink: 0;
  461. }
  462. }
  463. }
  464. .summaryItem_bodyItem_total{
  465. text-align: right;
  466. padding: 24rpx;
  467. font-size: 26rpx;
  468. }
  469. .summaryItem_total{
  470. text-align: center;
  471. padding-top: 24rpx;
  472. font-size: 32rpx;
  473. font-weight: bold;
  474. color: #49B856;
  475. border-top: 1rpx solid #D2D2D2;
  476. }
  477. .info{
  478. .infoItem{
  479. padding: 24rpx;
  480. background-color: #fff;
  481. border-top: 8rpx solid #D2D2D2;
  482. font-size: 24rpx;
  483. &:first-of-type{
  484. border-top: none;
  485. }
  486. .name{
  487. margin-top: 24rpx;
  488. &:first-of-type{
  489. margin-top: 0;
  490. }
  491. }
  492. }
  493. }
  494. .process_item_wrap{
  495. padding: 38rpx;
  496. .process_item{
  497. &:last-of-type{
  498. .process_item_bottom{
  499. border-left: none;
  500. }
  501. }
  502. .process_item_top{
  503. padding-left: 30rpx;
  504. display: flex;
  505. align-items: center;
  506. position: relative;
  507. &:before{
  508. content: '';
  509. position: absolute;
  510. left: -13rpx;
  511. top: 50%;
  512. width: 26rpx;
  513. height: 26rpx;
  514. border-radius: 50%;
  515. background-color: #49B856;
  516. transform: translateY(-50%);
  517. }
  518. .name{
  519. font-size: 30rpx;
  520. }
  521. .value{
  522. margin-left: 20rpx;
  523. font-size: 22rpx;
  524. color: #A1A1A1;
  525. flex: 1;
  526. }
  527. }
  528. .process_item_bottom{
  529. min-height: 82rpx;
  530. border-left: 1rpx solid #B7BDC6;
  531. margin-top: 5rpx;
  532. padding-left: 30rpx;
  533. display: flex;
  534. font-size: 24rpx;
  535. color: #A1A1A1;
  536. .value{
  537. margin-left: 20rpx;
  538. }
  539. }
  540. }
  541. }
  542. .appraise_detail{
  543. padding: 24rpx 24rpx 24rpx 40rpx;
  544. .appraise_detail_top{
  545. display: flex;
  546. align-items: center;
  547. justify-content: space-between;
  548. font-size: 26rpx;
  549. .name{
  550. color: #A1A1A1;
  551. }
  552. .value{}
  553. }
  554. .appraise_detail_bottom{
  555. font-size: 30rpx;
  556. margin-top: 24rpx;
  557. word-break: break-all;
  558. }
  559. }
  560. }
  561. }
  562. </style>