patientDetail.vue 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845
  1. <template>
  2. <view class="orderDetail">
  3. <!-- 头部 -->
  4. <view class="orderDetail_header">
  5. <view class="orderDetail_header_item" v-for="tab in tabs" :key="tab.id" :class="{active:tab.id === selectedTab}"
  6. @click="debouncedChangeTab(tab.id)">
  7. {{tab.name}}
  8. </view>
  9. </view>
  10. <!-- tab -->
  11. <!-- 工单信息 -->
  12. <view class="orderDetail_info" v-show="selectedTab === 1">
  13. <scroll-view scroll-y class="orderDetail_infoItem" v-if="orderInfo.id">
  14. <view class="orderDetail_infoItem_header">
  15. <view class="orderDetail_infoItem_header_title">
  16. <view class="icon"></view>
  17. <view class="taskNameAndWorkerName">
  18. <text class="taskName"
  19. v-if="orderInfo.taskType">{{orderInfo.isHalfInspect === 1? "半程陪检": orderInfo.taskType.taskName}}</text>
  20. </view>
  21. </view>
  22. <text class="orderDetail_infoItem_header_more">{{orderInfo.gdcode}}</text>
  23. </view>
  24. <view class="orderDetail_infoItem_item">
  25. <view class="orderDetail_infoItem_item_content">
  26. <text class="orderDetail_infoItem_item_name">状态</text>
  27. <text class="orderDetail_infoItem_item_value" v-if="orderInfo.gdState">{{orderInfo.gdState.name}}</text>
  28. </view>
  29. <view class="orderDetail_infoItem_item_content">
  30. <text class="orderDetail_infoItem_item_name">工单日期</text>
  31. <text class="orderDetail_infoItem_item_value">{{orderInfo.startTime || '暂无'}}</text>
  32. </view>
  33. <view class="orderDetail_infoItem_item_content">
  34. <text class="orderDetail_infoItem_item_name">总耗时</text>
  35. <text class="orderDetail_infoItem_item_value">{{orderInfo.showTimeNum || '暂无'}}</text>
  36. </view>
  37. <view class="orderDetail_infoItem_item_content">
  38. <text class="orderDetail_infoItem_item_name">申请科室</text>
  39. <text
  40. class="orderDetail_infoItem_item_value">{{orderInfo.createDeptDTO?(deptDisplay==2?orderInfo.createDeptDTO.deptalias:orderInfo.createDeptDTO.dept):'暂无'}}</text>
  41. </view>
  42. <view class="orderDetail_infoItem_item_content">
  43. <text class="orderDetail_infoItem_item_name">起点科室</text>
  44. <text
  45. class="orderDetail_infoItem_item_value">{{orderInfo.startDept?(deptDisplay==2?orderInfo.startDept.deptalias:orderInfo.startDept.dept):'暂无'}}</text>
  46. </view>
  47. <view class="orderDetail_infoItem_item_content"
  48. v-if="orderInfo.taskType.associationType.value === ASSOCIATION_TYPES['患者陪检业务']||orderInfo.taskType.associationType.value === ASSOCIATION_TYPES['患者其他服务业务']">
  49. <text class="orderDetail_infoItem_item_name">中间科室</text>
  50. <text class="orderDetail_infoItem_item_value">{{orderInfo.middleDept || '暂无'}}</text>
  51. </view>
  52. <view class="orderDetail_infoItem_item_content">
  53. <text class="orderDetail_infoItem_item_name">目标科室</text>
  54. <text class="orderDetail_infoItem_item_value">{{orderInfo.endDepts}}</text>
  55. </view>
  56. <view class="orderDetail_infoItem_item_content">
  57. <text class="orderDetail_infoItem_item_name">支助人员</text>
  58. <text class="orderDetail_infoItem_item_value">{{orderInfo.worker?orderInfo.worker.name:'暂无'}}</text>
  59. </view>
  60. <view class="orderDetail_infoItem_item_content">
  61. <text class="orderDetail_infoItem_item_name">联系电话</text>
  62. <text class="orderDetail_infoItem_item_value">{{orderInfo.worker?orderInfo.worker.phone:'暂无'}}</text>
  63. </view>
  64. <view class="orderDetail_infoItem_item_content"
  65. v-if="orderInfo.taskType.associationType.value === ASSOCIATION_TYPES['患者陪检业务']||orderInfo.taskType.associationType.value === ASSOCIATION_TYPES['患者其他服务业务']">
  66. <text class="orderDetail_infoItem_item_name">陪同情况</text>
  67. <text class="orderDetail_infoItem_item_value">{{orderInfo.isAccompany==1?'需要医护陪同':'无需医护陪同'}}</text>
  68. </view>
  69. <view class="orderDetail_infoItem_item_content"
  70. v-if="orderInfo.taskType.associationType.value === ASSOCIATION_TYPES['患者陪检业务']||orderInfo.taskType.associationType.value === ASSOCIATION_TYPES['患者其他服务业务']">
  71. <text class="orderDetail_infoItem_item_name">预约时间</text>
  72. <text class="orderDetail_infoItem_item_value"
  73. v-if="orderInfo.yyjdTime">{{orderInfo.yyjdTime|formatDate('MM-dd HH:mm')}}</text>
  74. <text class="orderDetail_infoItem_item_value" v-else>暂无</text>
  75. </view>
  76. <view class="orderDetail_infoItem_item_content"
  77. v-if="orderInfo.taskType.associationType.value === ASSOCIATION_TYPES['患者陪检业务']">
  78. <text class="orderDetail_infoItem_item_name">是否半程陪检</text>
  79. <text class="orderDetail_infoItem_item_value">{{orderInfo.isHalfInspect===1?'是':'否'}}</text>
  80. </view>
  81. <view class="orderDetail_infoItem_item_content"
  82. v-if="orderInfo.drugs && orderInfo.taskType.associationType.value === ASSOCIATION_TYPES['药品配送业务']">
  83. <text class="orderDetail_infoItem_item_name">药包编码</text>
  84. <text class="orderDetail_infoItem_item_value">{{orderInfo.drugs.packid || '暂无'}}</text>
  85. </view>
  86. <view class="orderDetail_infoItem_item_content"
  87. v-if="orderInfo.staticDistri && orderInfo.taskType.associationType.value === ASSOCIATION_TYPES['静配配送']">
  88. <text class="orderDetail_infoItem_item_name">药包编码</text>
  89. <text class="orderDetail_infoItem_item_value">{{orderInfo.staticDistri.packid || '暂无'}}</text>
  90. </view>
  91. <view class="orderDetail_infoItem_item_content"
  92. v-if="orderInfo.taskType.associationType.value === ASSOCIATION_TYPES['临时标本业务'] || orderInfo.taskType.associationType.value === ASSOCIATION_TYPES['标本轮巡业务']">
  93. <text class="orderDetail_infoItem_item_name">预计接收</text>
  94. <text class="orderDetail_infoItem_item_value">{{orderInfo.expectReceiveNum||'暂无'}}</text>
  95. </view>
  96. <view class="orderDetail_infoItem_item_content"
  97. v-if="orderInfo.taskType.associationType.value === ASSOCIATION_TYPES['临时标本业务'] || orderInfo.taskType.associationType.value === ASSOCIATION_TYPES['标本轮巡业务']">
  98. <text class="orderDetail_infoItem_item_name">实际接收</text>
  99. <text class="orderDetail_infoItem_item_value">{{orderInfo.actualReceiveNum||'暂无'}}</text>
  100. </view>
  101. <view class="orderDetail_infoItem_item_content">
  102. <text class="orderDetail_infoItem_item_name">是否加急</text>
  103. <text class="orderDetail_infoItem_item_value" v-if="orderInfo.emergencyType">
  104. {{(orderInfo.emergencyType.value == 2 || orderInfo.emergencyType.value == 3)?'是':'否'}}
  105. </text>
  106. </view>
  107. <view class="orderDetail_infoItem_item_content"
  108. v-if="orderInfo.workOrderRemark && (orderInfo.taskType.associationType.value === ASSOCIATION_TYPES['临时标本业务']||orderInfo.taskType.associationType.value === ASSOCIATION_TYPES['标本轮巡业务']||orderInfo.taskType.associationType.value === ASSOCIATION_TYPES['其他临床服务'])">
  109. <text class="orderDetail_infoItem_item_name">备注信息</text>
  110. <text class="orderDetail_infoItem_item_value">{{orderInfo.workOrderRemark||'暂无'}}</text>
  111. </view>
  112. <view class="orderDetail_infoItem_item_content" v-if="orderInfo.specialCloseReason">
  113. <text class="orderDetail_infoItem_item_name">特殊情况关闭原因</text>
  114. <text class="orderDetail_infoItem_item_value">{{orderInfo.specialCloseReason||'暂无'}}</text>
  115. </view>
  116. </view>
  117. </scroll-view>
  118. </view>
  119. <!-- 流程信息 -->
  120. <view class="orderDetail_info" v-show="selectedTab === 2">
  121. <scroll-view scroll-y class="orderDetail_infoItem" v-if="logList.length">
  122. <view class="orderDetail_infoItem_header">
  123. <view class="orderDetail_infoItem_header_title">
  124. <view class="icon"></view>
  125. <view class="taskNameAndWorkerName">
  126. <text class="taskName">流程信息</text>
  127. </view>
  128. </view>
  129. </view>
  130. <view class="orderDetail_infoItem_item process">
  131. <view class="orderDetail_process_item" v-for="(step,i) in logList" :key="i">
  132. <view class="step_infoStart">
  133. <view class="step_name">{{step.operationName}}</view>
  134. <view class="step_time" v-if="step.record && step.record[0]">
  135. {{step.record[0].operationTime|formatDate('MM-dd HH:mm')}}
  136. </view>
  137. </view>
  138. <view class="step_icon pda pda-icon_liucheng"
  139. :class="{'active':(step.record&&step.record[0]&&step.record[0].operationTime)}"></view>
  140. <view class="step_infoEnd">
  141. <view class="step_overtime" v-if="i!=0&&step.record&&step.record.length">
  142. 耗时{{filterTime(step.record)}}
  143. </view>
  144. <view class="step_dept" v-if="step.record&&step.record[0]&&step.record[0].dept">
  145. <text v-for="(dept,index) in step.record"
  146. :key="index">{{dept?(deptDisplay == 2?dept.deptalias:dept.dept)+',':''}}</text>
  147. </view>
  148. </view>
  149. </view>
  150. </view>
  151. </scroll-view>
  152. </view>
  153. <!-- 业务信息 -->
  154. <view class="orderDetail_info" v-show="selectedTab === 3">
  155. <scroll-view scroll-y class="orderDetail_infoItem">
  156. <view class="orderDetail_infoItem_header">
  157. <view class="orderDetail_infoItem_header_title">
  158. <view class="icon"></view>
  159. <view class="taskNameAndWorkerName">
  160. <text class="taskName">业务信息</text>
  161. </view>
  162. </view>
  163. </view>
  164. <!-- 检查信息 -->
  165. <view class="orderDetail_infoItem_item business business_inspect"
  166. v-if="orderInfo.taskType&&(orderInfo.taskType.associationType.value==ASSOCIATION_TYPES['患者陪检业务'] || orderInfo.taskType.associationType.value==ASSOCIATION_TYPES['患者其他服务业务'])">
  167. <!-- 患者信息 -->
  168. <view class="inspect_info" v-if="orderInfo.patient">
  169. <view class="inspect_info_block">
  170. <view class="inspect_info_left">
  171. <block v-if="orderInfo.patient.illnessState">
  172. <view class="inspect_info_icon red" v-if="orderInfo.patient.illnessState.value === '2'">危</view>
  173. <view class="inspect_info_icon red" v-else-if="orderInfo.patient.illnessState.value === '3'">重</view>
  174. </block>
  175. <block v-if="orderInfo.patient.careLevel">
  176. <view class="inspect_info_icon red" v-if="orderInfo.patient.careLevel.value === '0'">特</view>
  177. <view class="inspect_info_icon red" v-else-if="orderInfo.patient.careLevel.value === '1'">1</view>
  178. <view class="inspect_info_icon green" v-else-if="orderInfo.patient.careLevel.value === '2'">2</view>
  179. <view class="inspect_info_icon green" v-else-if="orderInfo.patient.careLevel.value === '3'">3</view>
  180. </block>
  181. <view class="inspect_info_name">{{orderInfo.patient.patientName}}</view>
  182. </view>
  183. <view class="inspect_info_right">
  184. {{orderInfo.patient.bedNum}}床
  185. </view>
  186. </view>
  187. <view class="inspect_info_block">
  188. <view class="inspect_info_left">
  189. {{orderInfo.patient.patientCode}}
  190. </view>
  191. <view class="inspect_info_right"
  192. v-if="orderInfo.taskType.associationType.value==ASSOCIATION_TYPES['患者陪检业务']">
  193. 待检{{orderInfo.checkList.length}}
  194. </view>
  195. </view>
  196. </view>
  197. <!-- 检查信息 -->
  198. <block v-if="orderInfo.taskType.associationType.value==ASSOCIATION_TYPES['患者陪检业务']">
  199. <view class="inspect_item" v-for="item in orderInfo.checkList" :key="item.id"
  200. @click="toDetail(item.id,orderInfo.taskType.associationType.value)">
  201. <view class="inspect_item_name">
  202. {{item.inspectName||'暂无'}}
  203. </view>
  204. <view class="inspect_item_info">
  205. <view class="inspect_item_dept">
  206. {{item.execDept?(deptDisplay==2?item.execDept.deptalias:item.execDept.dept):'暂无'}}
  207. </view>
  208. <view class="inspect_item_number">
  209. 叫号信息 {{item.reservationNumber || '暂无'}}
  210. </view>
  211. </view>
  212. <view class="inspect_item_yytime">
  213. 预约时间{{item.yyTime || '暂无'}}
  214. </view>
  215. </view>
  216. </block>
  217. </view>
  218. <!-- 标本信息 -->
  219. <view class="orderDetail_infoItem_item business business_specimen"
  220. v-if="orderInfo.taskType&&(orderInfo.taskType.associationType.value==ASSOCIATION_TYPES['临时标本业务'] || orderInfo.taskType.associationType.value==ASSOCIATION_TYPES['标本轮巡业务'])">
  221. <view class="inspect_specimen">
  222. <uni-table stripe emptyText="暂无更多数据">
  223. <!-- 表头行 -->
  224. <uni-tr class="th">
  225. <uni-th align="center" width="68">标本类型</uni-th>
  226. <uni-th align="center" width="71">标本编码</uni-th>
  227. <uni-th align="center" width="66">状态</uni-th>
  228. <uni-th align="center" width="71">科室</uni-th>
  229. </uni-tr>
  230. <!-- 表格数据行 -->
  231. <uni-tr v-for="data in orderInfo.specimenSet" :key="data.id"
  232. @click.native="toDetail(data.id,orderInfo.taskType.associationType.value)">
  233. <uni-td align="center">{{data.stype?data.stype.name:'暂无'}}</uni-td>
  234. <uni-td align="center">{{data.scode || '暂无'}}</uni-td>
  235. <uni-td align="center">{{data.speState?data.speState.name:'暂无'}}</uni-td>
  236. <uni-td align="center" class="td" v-if="data.checkDept">
  237. {{deptDisplay==2?data.checkDept.deptalias:data.checkDept.dept}}
  238. <image class="urgent" v-if="data.urgent == 1" src="../../static/imgs/icon_ji.png" mode="widthFix">
  239. </image>
  240. </uni-td>
  241. <uni-td align="center" class="td" v-else>
  242. 暂无
  243. <image class="urgent" v-if="data.urgent == 1" src="../../static/imgs/icon_ji.png" mode="widthFix">
  244. </image>
  245. </uni-td>
  246. </uni-tr>
  247. </uni-table>
  248. </view>
  249. </view>
  250. <!-- 药品信息 -->
  251. <view class="orderDetail_infoItem_item business business_drugsBag"
  252. v-if="orderInfo.taskType&&(orderInfo.taskType.associationType.value==ASSOCIATION_TYPES['药品配送业务'] || orderInfo.taskType.associationType.value==ASSOCIATION_TYPES['静配配送'])">
  253. <!-- 检查信息 -->
  254. <block v-if="orderInfo.drugs&&orderInfo.taskType.associationType.value==ASSOCIATION_TYPES['药品配送业务']">
  255. <view class="drugsBag_item">
  256. <view class="drugsBag_item_name">
  257. 发药单号
  258. </view>
  259. <view class="drugsBag_item_value">
  260. {{orderInfo.drugs.packid || '暂无'}}
  261. </view>
  262. </view>
  263. <view class="drugsBag_item">
  264. <view class="drugsBag_item_name">
  265. 发药科室
  266. </view>
  267. <view class="drugsBag_item_value">
  268. {{orderInfo.drugs.launch?(deptDisplay == 2?orderInfo.drugs.launch.deptalias:orderInfo.drugs.launch.dept):'暂无'}}
  269. </view>
  270. </view>
  271. <view class="drugsBag_item">
  272. <view class="drugsBag_item_name">
  273. 状态
  274. </view>
  275. <view class="drugsBag_item_value">
  276. {{orderInfo.drugs.drugsState?orderInfo.drugs.drugsState.name:'暂无'}}
  277. </view>
  278. </view>
  279. </block>
  280. <block v-if="orderInfo.staticDistri&&orderInfo.taskType.associationType.value==ASSOCIATION_TYPES['静配配送']">
  281. <view class="drugsBag_item">
  282. <view class="drugsBag_item_name">
  283. 发药单号
  284. </view>
  285. <view class="drugsBag_item_value">
  286. {{orderInfo.staticDistri.packid || '暂无'}}
  287. </view>
  288. </view>
  289. <view class="drugsBag_item">
  290. <view class="drugsBag_item_name">
  291. 发药科室
  292. </view>
  293. <view class="drugsBag_item_value">
  294. {{orderInfo.staticDistri.launch?(deptDisplay == 2?orderInfo.staticDistri.launch.deptalias:orderInfo.staticDistri.launch.dept):'暂无'}}
  295. </view>
  296. </view>
  297. <view class="drugsBag_item">
  298. <view class="drugsBag_item_name">
  299. 状态
  300. </view>
  301. <view class="drugsBag_item_value">
  302. {{orderInfo.staticDistri.drugsState?orderInfo.staticDistri.drugsState.name:'暂无'}}
  303. </view>
  304. </view>
  305. </block>
  306. </view>
  307. </scroll-view>
  308. </view>
  309. <!-- 底部 -->
  310. <seiminFooterBtn :btns="btns"></seiminFooterBtn>
  311. <seiminModel ref="seiminModel"></seiminModel>
  312. </view>
  313. </template>
  314. <script>
  315. import {
  316. debounce
  317. } from 'lodash/function';
  318. import {
  319. reqFetchData,
  320. reqFetchWorkOrderLog,
  321. reqGetPatientInspectInfo,
  322. } from "../../request/api.js";
  323. import {
  324. mapState
  325. } from "vuex";
  326. import {
  327. GDSTATE
  328. } from "../../utils/enum.gdstate.js";
  329. import {
  330. ASSOCIATION_TYPES
  331. } from "../../utils/enum.association_types.js";
  332. import {
  333. showAppraise,
  334. openRecallModal,
  335. openExecModal,
  336. showJiaji,
  337. } from "../../utils/index.js";
  338. export default {
  339. data() {
  340. return {
  341. debouncedChangeTab: null,
  342. // 路由传参
  343. queryParams: {},
  344. // 关联类型
  345. ASSOCIATION_TYPES,
  346. // 选项卡
  347. tabs: [{
  348. id: 1,
  349. name: '患者信息'
  350. },
  351. {
  352. id: 2,
  353. name: '患者标本'
  354. },
  355. {
  356. id: 3,
  357. name: '患者检查'
  358. },
  359. ],
  360. // 当前选中的tab
  361. selectedTab: 1,
  362. // 工单信息
  363. orderInfo: {},
  364. // 流程信息
  365. logList: [],
  366. //底部按钮
  367. btns: [{
  368. name: "回到列表",
  369. type: "default",
  370. click: () => {
  371. uni.navigateTo({
  372. url: "/pages/patientList/patientList",
  373. });
  374. },
  375. }, {
  376. name: "一键建单",
  377. type: "default",
  378. click: () => {
  379. uni.navigateTo({
  380. url: "/pages/patientList/patientList",
  381. });
  382. },
  383. }],
  384. };
  385. },
  386. computed: {
  387. ...mapState('other', ["deptDisplay"]),
  388. },
  389. methods: {
  390. init(queryParams) {
  391. this.queryParams = queryParams;
  392. this.changeTab(1);
  393. },
  394. // 跳转详情
  395. toDetail(id, associationType) {
  396. uni.navigateTo({
  397. url: `/pages/detail/detail?id=${id}&associationType=${associationType}`
  398. })
  399. },
  400. // 格式化时分秒
  401. // (时间小于一分钟则显示秒,时间大于一分钟则显示分钟数,如超出一小时则显示小时和分钟。)time单位:秒
  402. formatTime(time) {
  403. let timeStr = "";
  404. if (time >= 0 && time < 60) {
  405. // 秒
  406. timeStr = time + "秒";
  407. } else if (time >= 60 && time < 3600) {
  408. // 分钟
  409. timeStr = Math.floor(time / 60) + "分钟";
  410. } else if (time >= 3600) {
  411. // 时 + 分
  412. let h = "";
  413. let m = "";
  414. h = Math.floor(time / 3600) + "小时";
  415. m = time % 3600 >= 60 ? Math.floor((time % 3600) / 60) + "分钟" : "";
  416. timeStr = h + m;
  417. }
  418. return timeStr;
  419. },
  420. // 计算流程信息耗时
  421. filterTime(step) {
  422. let num = 0;
  423. step.forEach((e) => {
  424. num += e.difTime;
  425. });
  426. return this.formatTime(num / 1000);
  427. },
  428. // 切换tab
  429. changeTab(id) {
  430. this.selectedTab = id;
  431. switch (id) {
  432. case 1:
  433. this.getInfo(this.queryParams);
  434. break;
  435. case 2:
  436. this.getProcess(this.queryParams);
  437. break;
  438. case 3:
  439. break;
  440. }
  441. },
  442. //获取工单信息数据
  443. getInfo(queryParams) {
  444. uni.showLoading({
  445. mask: true,
  446. title: '加载中',
  447. })
  448. let postData = {
  449. "patientCode": queryParams.patientCode
  450. };
  451. reqGetPatientInspectInfo(queryParams.id).then(res => {
  452. uni.hideLoading();
  453. if (res.status == 200) {
  454. // 检查科室处理
  455. if (res.data.middleDept) {
  456. //有检查科室的话
  457. res.data.middleDept = res.data.middleDept.map(v => {
  458. return this.deptDisplay == 2 ? v.deptalias : v.dept;
  459. }).toString();
  460. }
  461. // 终点科室处理
  462. res.data.endDepts = res.data.endDepts.map(v => {
  463. return this.deptDisplay == 2 ? v.deptalias : v.dept;
  464. }).toString();
  465. // 工单信息
  466. this.orderInfo = res.data;
  467. } else {
  468. this.$refs.seiminModel.show({
  469. skin: 'toast',
  470. icon: 'error',
  471. content: '请求失败',
  472. })
  473. }
  474. })
  475. },
  476. //获取流程信息数据
  477. getProcess(queryParams) {
  478. uni.showLoading({
  479. mask: true,
  480. title: '加载中',
  481. })
  482. reqFetchWorkOrderLog(queryParams.id).then(res => {
  483. uni.hideLoading();
  484. if (res.status == 200) {
  485. // 流程信息
  486. this.logList = res.data;
  487. } else {
  488. this.$refs.seiminModel.show({
  489. skin: 'toast',
  490. icon: 'error',
  491. content: '请求失败',
  492. })
  493. }
  494. })
  495. },
  496. },
  497. onLoad(queryParams) {
  498. console.log(queryParams);
  499. this.init(queryParams);
  500. },
  501. created() {
  502. this.debouncedChangeTab = debounce(this.changeTab, 166);
  503. },
  504. beforeDestroy() {
  505. this.debouncedChangeTab.cancel()
  506. }
  507. }
  508. </script>
  509. <style lang="scss" scoped>
  510. .orderDetail {
  511. padding-bottom: 108rpx;
  512. // 头部
  513. .orderDetail_header {
  514. position: fixed;
  515. z-index: 98;
  516. width: 100%;
  517. height: 88rpx;
  518. background-color: #fff;
  519. color: #333;
  520. @include flex;
  521. .orderDetail_header_item {
  522. flex: 1;
  523. font-size: 32rpx;
  524. @include border(right);
  525. @include border(bottom);
  526. @include flex(center, center);
  527. &:last-of-type {
  528. border-right: none;
  529. }
  530. &.active {
  531. color: $defaultColor;
  532. border-bottom: 4rpx solid $defaultColor;
  533. }
  534. }
  535. }
  536. // tab
  537. // 工单详情
  538. .orderDetail_info {
  539. padding: 108rpx 24rpx 0;
  540. .orderDetail_infoItem {
  541. width: 702rpx;
  542. height: calc(100vh - 340rpx);
  543. background-color: #fff;
  544. margin-top: 8rpx;
  545. border-radius: 8rpx;
  546. position: relative;
  547. padding: 0 24rpx;
  548. font-size: 32rpx;
  549. @include border;
  550. @include semicircle(#f9fafb, 82rpx);
  551. @include flex(flex-start, stretch, column);
  552. .ji,
  553. .jiaji {
  554. width: 60rpx;
  555. position: absolute;
  556. right: 0;
  557. top: 0;
  558. }
  559. .orderDetail_infoItem_header {
  560. height: 86rpx;
  561. @include border($directive:bottom, $style:dashed);
  562. @include flex(space-between, center);
  563. .orderDetail_infoItem_header_title {
  564. color: #333;
  565. flex: 1;
  566. @include flex(flex-start, center);
  567. .icon {
  568. width: 10rpx;
  569. height: 46rpx;
  570. border-radius: 2rpx;
  571. background-color: #F0F6ED;
  572. @include btn_background;
  573. }
  574. .taskNameAndWorkerName {
  575. flex: 1;
  576. @include flex;
  577. .taskName {
  578. max-width: 10em;
  579. margin-left: 8rpx;
  580. font-size: 38rpx;
  581. font-weight: bold;
  582. @include clamp;
  583. }
  584. }
  585. }
  586. .orderDetail_infoItem_header_more {
  587. color: #333;
  588. font-weight: bold;
  589. font-size: 38rpx;
  590. @include clamp;
  591. }
  592. }
  593. .orderDetail_infoItem_item {
  594. padding-top: 12rpx;
  595. padding-bottom: 12rpx;
  596. color: #333;
  597. font-size: 30rpx;
  598. flex: 1;
  599. @include border(bottom);
  600. @include flex(flex-start, stretch, column);
  601. &.process {
  602. padding-top: 90rpx;
  603. padding-bottom: 90rpx;
  604. }
  605. &:last-of-type {
  606. border-bottom: none;
  607. }
  608. // 工单信息
  609. .orderDetail_infoItem_item_content {
  610. margin-top: 20rpx;
  611. @include flex(space-between, stretch);
  612. .orderDetail_infoItem_item_name {
  613. font-size: 34rpx;
  614. color: #666;
  615. max-width: 4em;
  616. }
  617. .orderDetail_infoItem_item_value {
  618. font-size: 38rpx;
  619. color: #333;
  620. font-weight: bold;
  621. max-width: 420rpx;
  622. text-align: justify;
  623. word-break: break-all;
  624. }
  625. }
  626. // 流程信息
  627. .orderDetail_process_item {
  628. min-height: 120rpx;
  629. line-height: 50rpx;
  630. color: #333;
  631. @include flex(center);
  632. &:last-of-type {
  633. .step_icon {
  634. &::after {
  635. display: none;
  636. }
  637. }
  638. }
  639. .step_infoStart {
  640. font-size: 28rpx;
  641. flex: 1;
  642. @include flex(flex-end);
  643. .step_time {
  644. margin-left: 16rpx;
  645. }
  646. }
  647. .step_icon {
  648. font-size: 38rpx;
  649. margin-left: 30rpx;
  650. margin-right: 30rpx;
  651. position: relative;
  652. color: #E5E9ED;
  653. &.active {
  654. color: #07863C;
  655. }
  656. &::after {
  657. content: '';
  658. position: absolute;
  659. top: 60rpx;
  660. left: 18rpx;
  661. width: 1px;
  662. height: calc(100% - 70rpx);
  663. background-color: #DDE1E5;
  664. }
  665. }
  666. .step_infoEnd {
  667. font-size: 34rpx;
  668. flex: 1;
  669. padding-bottom: 16rpx;
  670. }
  671. }
  672. // 业务信息-检查
  673. &.business_inspect {
  674. .inspect_info {
  675. font-size: 34rpx;
  676. color: #333;
  677. padding-top: 20rpx;
  678. padding-bottom: 20rpx;
  679. @include border($directive:bottom, $style:dashed);
  680. .inspect_info_block {
  681. height: 60rpx;
  682. @include flex(space-between, center);
  683. .inspect_info_left {
  684. @include flex;
  685. .inspect_info_icon {
  686. width: 50rpx;
  687. height: 50rpx;
  688. line-height: 50rpx;
  689. border-radius: 50%;
  690. font-size: 28rpx;
  691. margin-right: 8rpx;
  692. @include flex(center, center);
  693. &.green {
  694. color: $defaultColor;
  695. border: 1px solid $defaultColor;
  696. background-color: rgba(73, 184, 86, 0.1);
  697. }
  698. &.red {
  699. color: #FF3B53;
  700. border: 1px solid #FF3B53;
  701. background-color: #FFE8EB;
  702. }
  703. }
  704. .inspect_info_name {
  705. font-weight: bold;
  706. }
  707. }
  708. .inspect_info_right {
  709. font-weight: bold;
  710. }
  711. }
  712. }
  713. .inspect_item {
  714. color: #333;
  715. font-size: 34rpx;
  716. line-height: 48rpx;
  717. padding-top: 26rpx;
  718. padding-bottom: 26rpx;
  719. @include border($directive:bottom, $style:dashed);
  720. .inspect_item_name {
  721. font-weight: bold;
  722. }
  723. .inspect_item_yytime {
  724. font-weight: bold;
  725. }
  726. .inspect_item_info {
  727. margin-top: 16rpx;
  728. margin-bottom: 16rpx;
  729. @include flex(space-between, center);
  730. .inspect_item_dept {
  731. flex: 1;
  732. word-break: break-all;
  733. @include clamp;
  734. }
  735. .inspect_item_number {
  736. flex: 1;
  737. text-align: right;
  738. word-break: break-all;
  739. @include clamp;
  740. }
  741. }
  742. }
  743. }
  744. // 业务信息-标本
  745. &.business_specimen {
  746. font-size: 34rpx;
  747. .th {
  748. background-color: red;
  749. @include btn_background;
  750. th {
  751. color: #fff;
  752. }
  753. }
  754. .td {
  755. position: relative;
  756. .urgent {
  757. width: 60rpx;
  758. position: absolute !important;
  759. right: 0;
  760. top: 0;
  761. }
  762. }
  763. .table--border {
  764. border: none;
  765. }
  766. ::v-deep .uni-table {
  767. min-width: 0;
  768. }
  769. ::v-deep .uni-table-td {
  770. word-break: break-all;
  771. }
  772. }
  773. // 业务信息-药品
  774. &.business_drugsBag {
  775. .drugsBag_item {
  776. color: #333;
  777. font-size: 34rpx;
  778. margin-top: 20rpx;
  779. @include flex(space-between, center);
  780. .drugsBag_item_name {}
  781. .drugsBag_item_value {
  782. font-weight: bold;
  783. }
  784. }
  785. }
  786. }
  787. }
  788. }
  789. }
  790. </style>