patientInspectLogDetail.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577
  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">返回</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. .incidentDetail{
  299. height: 100vh;
  300. display: flex;
  301. flex-direction: column;
  302. justify-content: space-between;
  303. background-color: #EBEBEB;
  304. .head{
  305. height: 88rpx;
  306. display: flex;
  307. position: fixed;
  308. z-index: 99;
  309. width: 100%;
  310. background-color: #fff;
  311. font-size: 30rpx;
  312. .tab{
  313. flex: 1;
  314. display: flex;
  315. justify-content: center;
  316. align-items: center;
  317. border-bottom: 4rpx solid transparent;
  318. position: relative;
  319. &:last-of-type{
  320. &:after{
  321. display: none;
  322. }
  323. }
  324. // &:after{
  325. // content: '';
  326. // position: absolute;
  327. // right: 0;
  328. // top: 50%;
  329. // transform: translateY(-50%);
  330. // width: 1rpx;
  331. // height: 44rpx;
  332. // background-color: #515151;
  333. // }
  334. &.active{
  335. color: #49B856;
  336. border-color: #49B856;
  337. }
  338. }
  339. }
  340. .body{
  341. margin-top: 88rpx;
  342. box-sizing: border-box;
  343. flex: 1;
  344. min-height: 0;
  345. border-top: 7rpx solid #EBEBEB;
  346. .phone-filled{
  347. margin-left: 5rpx;
  348. }
  349. .mic-filled{
  350. margin-right: 100rpx;
  351. }
  352. .detail_item_wrap{
  353. padding-bottom: 24rpx;
  354. }
  355. .detail_head{
  356. padding: 24rpx;
  357. border-top: 8rpx solid #D2D2D2;
  358. border-bottom: 1rpx solid #D2D2D2;
  359. display: flex;
  360. justify-content: space-between;
  361. align-items: center;
  362. &:first-of-type{
  363. border-top: none;
  364. }
  365. .title{
  366. font-size: 26rpx;
  367. color: #49B856;
  368. padding-left: 18rpx;
  369. position: relative;
  370. &:before{
  371. content: '';
  372. width: 8rpx;
  373. height: 25rpx;
  374. background-color: #49B856;
  375. position: absolute;
  376. left: 0;
  377. top: 50%;
  378. transform: translateY(-50%);
  379. }
  380. }
  381. .other{
  382. display: flex;
  383. align-items: center;
  384. .priority{
  385. font-size: 26rpx;
  386. margin-right: 15rpx;
  387. }
  388. .status{
  389. font-size: 26rpx;
  390. }
  391. }
  392. }
  393. .deital_item{
  394. font-size: 26rpx;
  395. color: #555;
  396. padding: 24rpx 24rpx 0;
  397. display: flex;
  398. align-items: center;
  399. .name{
  400. width: 5em;
  401. margin-right: 24rpx;
  402. }
  403. .value{
  404. flex: 2;
  405. word-break: break-all;
  406. &.text_value{
  407. flex: 1;
  408. }
  409. &.img{
  410. display: flex;
  411. .imgItem{
  412. width: 82rpx;
  413. height: 82rpx;
  414. margin-right: 24rpx;
  415. &:last-of-type{
  416. margin-right: 0;
  417. }
  418. }
  419. .resourceItem{
  420. width: 100rpx;
  421. height: 100rpx;
  422. margin-right: 24rpx;
  423. &:last-of-type{
  424. margin-right: 0;
  425. }
  426. }
  427. .resourceItem-audio{
  428. width: 300rpx;
  429. height: 60rpx;
  430. }
  431. }
  432. }
  433. }
  434. .summaryItem_bodyItem{
  435. padding: 24rpx 24rpx 0;
  436. font-size: 26rpx;
  437. .summaryItem_bodyItem_top{
  438. display: flex;
  439. justify-content: space-between;
  440. align-items: center;
  441. .value{
  442. padding-left: 48rpx;
  443. flex-shrink: 0;
  444. }
  445. }
  446. .summaryItem_bodyItem_bottom{
  447. margin-top: 24rpx;
  448. display: flex;
  449. justify-content: space-between;
  450. align-items: center;
  451. .name{
  452. text-align: right;
  453. flex: 1;
  454. }
  455. .value{
  456. width: 220rpx;
  457. text-align: right;
  458. flex-shrink: 0;
  459. }
  460. }
  461. }
  462. .summaryItem_bodyItem_total{
  463. text-align: right;
  464. padding: 24rpx;
  465. font-size: 26rpx;
  466. }
  467. .summaryItem_total{
  468. text-align: center;
  469. padding-top: 24rpx;
  470. font-size: 32rpx;
  471. font-weight: bold;
  472. color: #49B856;
  473. border-top: 1rpx solid #D2D2D2;
  474. }
  475. .info{
  476. .infoItem{
  477. padding: 24rpx;
  478. background-color: #fff;
  479. border-top: 8rpx solid #D2D2D2;
  480. font-size: 24rpx;
  481. &:first-of-type{
  482. border-top: none;
  483. }
  484. .name{
  485. margin-top: 24rpx;
  486. &:first-of-type{
  487. margin-top: 0;
  488. }
  489. }
  490. }
  491. }
  492. .process_item_wrap{
  493. padding: 38rpx;
  494. .process_item{
  495. &:last-of-type{
  496. .process_item_bottom{
  497. border-left: none;
  498. }
  499. }
  500. .process_item_top{
  501. padding-left: 30rpx;
  502. display: flex;
  503. align-items: center;
  504. position: relative;
  505. &:before{
  506. content: '';
  507. position: absolute;
  508. left: -13rpx;
  509. top: 50%;
  510. width: 26rpx;
  511. height: 26rpx;
  512. border-radius: 50%;
  513. background-color: #49B856;
  514. transform: translateY(-50%);
  515. }
  516. .name{
  517. font-size: 30rpx;
  518. }
  519. .value{
  520. margin-left: 20rpx;
  521. font-size: 22rpx;
  522. color: #A1A1A1;
  523. flex: 1;
  524. }
  525. }
  526. .process_item_bottom{
  527. min-height: 82rpx;
  528. border-left: 1rpx solid #B7BDC6;
  529. margin-top: 5rpx;
  530. padding-left: 30rpx;
  531. display: flex;
  532. font-size: 24rpx;
  533. color: #A1A1A1;
  534. .value{
  535. margin-left: 20rpx;
  536. }
  537. }
  538. }
  539. }
  540. .appraise_detail{
  541. padding: 24rpx 24rpx 24rpx 40rpx;
  542. .appraise_detail_top{
  543. display: flex;
  544. align-items: center;
  545. justify-content: space-between;
  546. font-size: 26rpx;
  547. .name{
  548. color: #A1A1A1;
  549. }
  550. .value{}
  551. }
  552. .appraise_detail_bottom{
  553. font-size: 30rpx;
  554. margin-top: 24rpx;
  555. word-break: break-all;
  556. }
  557. }
  558. }
  559. }
  560. </style>