人民医院前端

dispatchdetail.vue 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595
  1. <template>
  2. <div class="order_detail">
  3. <el-row :gutter="20">
  4. <el-col :md="24" class="order_detail_body">
  5. <el-card shadow="hover">
  6. <el-col :md="21">
  7. <el-col :md="18">
  8. <h1 class="title" style="display: inline-block">
  9. <svg-icon class="title_icon" icon-class="hongqi" />工单编号:{{
  10. orderDetailData.F_WorkOrderCode
  11. }}
  12. <span v-if="orderDetailData.StateName" class="wostate">{{
  13. orderDetailData.StateName
  14. }}</span>
  15. <span v-if="orderDetailData.F_UrgeCount > 0" class="wostate">催{{ orderDetailData.F_UrgeCount }}</span>
  16. </h1>
  17. </el-col>
  18. </el-col>
  19. <el-col :md="24" class="order_detail_content">
  20. <table class="tabdept" cellspacing="0" cellpadding="0">
  21. <tr>
  22. <th>业务类别:</th>
  23. <td>{{ orderDetailData.TypeName }}</td>
  24. <th>工单类别:</th>
  25. <td>{{ orderDetailData.F_TypeName2 }}</td>
  26. <th>超时时限:</th>
  27. <td>{{ orderDetailData.GapTime || "-" }}</td>
  28. </tr>
  29. <tr>
  30. <th>申请人:</th>
  31. <td v-if="orderDetailData.applicantname">
  32. {{ orderDetailData.applicantname }}({{
  33. orderDetailData.F_Phone
  34. }})
  35. </td>
  36. <td v-if="!orderDetailData.applicantname">-</td>
  37. <th>申请科室:</th>
  38. <td v-if="orderDetailData.F_ApplicationDept && orderDetailData.F_ApplicationDept!='0'">
  39. {{ $store.getters.deptmap[parseInt(orderDetailData.F_ApplicationDept)].text }}</td>
  40. <td v-if="!orderDetailData.F_ApplicationDept || orderDetailData.F_ApplicationDept=='0'">-</td>
  41. <th>科室位置:</th>
  42. <td>{{ orderDetailData.F_Location }}</td>
  43. </tr>
  44. <tr>
  45. <th>申请时间:</th>
  46. <td>{{ orderDetailData.F_CreateTime }}</td>
  47. <th>接单人:</th>
  48. <td>
  49. {{ orderDetailData.DealManName }}-{{
  50. orderDetailData.DealManPhone
  51. }}
  52. </td>
  53. <th>完成时间:</th>
  54. <td>{{ orderDetailData.F_Endtime || "-" }}</td>
  55. <!-- <th>完成时长:</th>
  56. <td>{{ orderDetailData.SpendTime || "-" }}</td> -->
  57. </tr>
  58. <tr v-show="isDD.indexOf('DD')>=0 || isDD==='GLY'">
  59. <th>接单时间:</th>
  60. <td colspan="5">{{ orderDetailData.F_AcceptTime || "-" }}</td>
  61. <!-- <th>送达科室:</th>
  62. <td colspan="3">{{ orderDetailData.F_ToPlace }}</td> -->
  63. </tr>
  64. <tr v-if="
  65. orderDetailData.PSInfo && orderDetailData.PSInfo.length > 0
  66. ">
  67. <th :rowspan="orderDetailData.PSInfo.length + 1">配送信息:</th>
  68. </tr>
  69. <tr v-for="(item, index) in orderDetailData.PSInfo" :key="index">
  70. <th v-if="item.F_ToDept">送达科室:</th>
  71. <th v-if="item.F_ToDept">{{ $store.getters.deptmap[parseInt(item.F_ToDept)].text }}</th>
  72. <th v-if="item.F_ToDept">物品名称:</th>
  73. <td v-if="item.F_ToDept">
  74. <span>{{ item.F_DicName }}</span>
  75. <span v-if="item.F_IsBorrow==1">(借)</span>
  76. <span v-if="item.F_IsBorrow==2">(还)</span>
  77. <span>({{ item.F_Number }})</span>
  78. </td>
  79. <th v-if="!item.F_ToDept">物品名称:</th>
  80. <td v-if="!item.F_ToDept">
  81. <span>{{ item.F_DicName }}</span>
  82. <span v-if="item.F_IsBorrow==1">(借)</span>
  83. <span v-if="item.F_IsBorrow==2">(还)</span>
  84. </td>
  85. <th v-if="!item.F_ToDept">数量:</th>
  86. <td v-if="!item.F_ToDept">{{ item.F_Number }}</td>
  87. <th>-</th>
  88. </tr>
  89. <!-- <tr v-if="orderDetailData.F_WorkOrderCodes">
  90. <th>关联工单:</th>
  91. <td colspan="5">
  92. <span v-for="(item,index) in orderDetailData.F_WorkOrderCodes.split(',')"
  93. style="display: inline-block;margin-right: 15px;">
  94. <span style="color: royalblue;cursor: pointer;" @click="hadndleOrderCode(item)">{{item}}</span>
  95. </span>
  96. </td>
  97. </tr> -->
  98. <!-- <tr>
  99. <th>紧急情况:</th>
  100. <td colspan="5">{{ orderDetailData.F_EmergencyTypes }}</td>
  101. </tr> -->
  102. <tr>
  103. <th>备注:</th>
  104. <td colspan="5">{{ orderDetailData.F_Content || "-"}}</td>
  105. </tr>
  106. <tr v-if="
  107. orderDetailData.FileUrl ||
  108. orderDetailData.DealFileUrl ||
  109. orderDetailData.CollectFile
  110. ">
  111. <th>附件:</th>
  112. <td colspan="5" style="text-align: left; padding: 5px 10px">
  113. <div class="imglist">
  114. <img v-for="(item, index) in imgFiles" :key="index" :src="item.F_FileUrl"
  115. @click="bigImg(item.F_FileUrl)" />
  116. <a v-for="(item, index) in otherFiles" :key="index" :href="item.F_FileUrl"
  117. :download="item.F_FileName">{{
  118. item.F_FileName.substring(19, item.F_FileName.length)
  119. }}</a>
  120. </div>
  121. </td>
  122. </tr>
  123. </table>
  124. </el-col>
  125. </el-card>
  126. </el-col>
  127. </el-row>
  128. <el-row :gutter="20">
  129. <el-col :md="24" class="order_detail_body">
  130. <el-card shadow="hover">
  131. <el-tabs ref="tabs" v-model="activeName">
  132. <el-tab-pane label="工单流程" name="1">
  133. <el-col :md="24" class="order_detail_content">
  134. <el-table :data="workOrderCirculationList" border style="width: 100%">
  135. <el-table-column prop="username" label="操作人" align="center" />
  136. <el-table-column prop="F_LogContent" label="内容" align="center" />
  137. <el-table-column prop="F_OperationTime" label="时间" align="center" />
  138. </el-table>
  139. </el-col>
  140. </el-tab-pane>
  141. <el-tab-pane label="关联工单" name="2">
  142. <el-col :md="24" class="order_detail_content">
  143. <el-table :data="sonData" border style="width: 100%">
  144. <el-table-column prop="F_WorkOrderCode" label="工单编号" align="center" />
  145. <el-table-column prop="DealManName" label="接单人" align="center">
  146. <template slot-scope="scope">
  147. <span>{{scope.row.DealManName}}-{{scope.row.DealManPhone}}</span>
  148. </template>
  149. </el-table-column>
  150. <el-table-column prop="F_CreateTime" label="时间" align="center" />
  151. </el-table>
  152. </el-col>
  153. </el-tab-pane>
  154. <el-tab-pane label="评价" name="3">
  155. <div v-if="!evaluateData.F_Attitude">暂无评价</div>
  156. <div class="evaluate" v-if="evaluateData.F_Attitude">
  157. <span class="demonstration">服务态度:</span>
  158. <el-rate v-model="evaluateData.F_Attitude" :texts="texts" show-text disabled
  159. style="display: inline-block" />
  160. </div>
  161. <div class="evaluate" v-if="evaluateData.F_Quality">
  162. <span class="demonstration">服务质量:</span>
  163. <el-rate v-model="evaluateData.F_Quality" :texts="texts" show-text disabled
  164. style="display: inline-block" />
  165. </div>
  166. <div class="evaluate" v-if="evaluateData.F_Efficiency">
  167. <span class="demonstration">完工时效:</span>
  168. <el-rate v-model="evaluateData.F_Efficiency" :texts="texts" show-text disabled
  169. style="display: inline-block" />
  170. </div>
  171. <div v-if="evaluateData.F_EvaluateContent">
  172. <el-col :md="24" style="font-size: 15px; color: #505050">
  173. 文字评价:{{ evaluateData.F_EvaluateContent }}
  174. </el-col>
  175. </div>
  176. </el-tab-pane>
  177. </el-tabs>
  178. </el-card>
  179. </el-col>
  180. </el-row>
  181. <el-dialog :visible.sync="dialogImgVisible" title="查看图片" width="50%" append-to-body>
  182. <div>
  183. <img :src="imgUrl" style="width: 100%; height: 500px" />
  184. </div>
  185. </el-dialog>
  186. </div>
  187. </template>
  188. <script>
  189. import {
  190. mapGetters
  191. } from "vuex";
  192. import {
  193. GetOrderDetail
  194. } from "@/api/comDispatch/addOrEditDispatch";
  195. import dispatchDetail from "../../comDispatch/components/dispatchdetail.vue";
  196. import Pagination from "@/components/context/Pagination"; // 对el-pagination 二次封装
  197. let that;
  198. export default {
  199. name: "DispatchDetail",
  200. components: {
  201. Pagination,
  202. },
  203. filters: {
  204. formtDeptById(id) {
  205. if (!id) {
  206. return "";
  207. }
  208. return that.$store.getters.deptmap[parseInt(id)].text;
  209. },
  210. },
  211. props: {
  212. rowid: {
  213. type: String,
  214. default: "",
  215. },
  216. layerid: {
  217. type: String,
  218. default: "",
  219. },
  220. },
  221. data() {
  222. return {
  223. isDD: window.localStorage.getItem('roleCode'), //角色是不是调度
  224. texts: ['不满意', '不满意', '基本满意', '满意', '满意'],
  225. imgUrl: "",
  226. dialogImgVisible: false,
  227. activeName: "1",
  228. imgFiles: [],
  229. otherFiles: [],
  230. ChatList: [], // 备注详情列表
  231. orderDetailData: {
  232. F_CallID: "",
  233. F_WorkOrderCode: "",
  234. F_ID: "",
  235. F_Source: "电话", // 业务类别
  236. F_Type1: "", // 工单类别
  237. F_TypeName1: "", // 工单类别
  238. F_Type2: "", // 工单子类
  239. F_TypeName2: "", // 工单子类
  240. F_Type3: "", // 工单三类
  241. F_TypeName3: "", // 工单三类
  242. F_Customer: "", // 姓名
  243. F_Sex: "0", // 性别
  244. F_Phon: "", // 电话
  245. F_CusAddress: "", // 家庭住址
  246. F_IdCard: "", // 身份证号
  247. F_ServiceItems: "", // 服务项目
  248. F_Address: "", // 地区
  249. F_FirstCheckHospital: "", // 首次检查医院
  250. F_NoduleSize: "", // 肺结节大小
  251. F_FirstFindTime: "", // 首次发现肺结节时间
  252. F_Urgency: "0", // 紧急程度
  253. F_Cathetertype: "", // 置管类型
  254. F_Catheterdept: "", // 置管科室
  255. F_Cathetertime: "", // 置管时间
  256. F_BedNum: "", // 床号
  257. F_InpatientNum: "", // 住院号
  258. opt: "", // 处理方式
  259. cont: "",
  260. F_WorkOrderContents: "", // 工单内容
  261. F_DealOpinions: "", // 处理意见
  262. },
  263. pageParams: {
  264. pageindex: 1, // 当前第几页
  265. pagesize: 5, // 每页几条数据
  266. total: 0, // 总共多少数据
  267. },
  268. evaluateData: {}, // 评价
  269. workOrderCirculationList: [], // 工单流转
  270. sonData: []
  271. };
  272. },
  273. computed: {
  274. ...mapGetters(["rolecode"]),
  275. },
  276. beforeCreate() {
  277. that = this;
  278. },
  279. created() {
  280. this.getDetail("0");
  281. this.getDetail("1");
  282. this.getDetail("2");
  283. this.getDetail("3");
  284. },
  285. methods: {
  286. hadndleOrderCode(id) {
  287. this.$layer.iframe({
  288. content: {
  289. content: dispatchDetail, // 传递的组件对象
  290. parent: this, // 当前的vue对象
  291. data: {
  292. rowid: id,
  293. }, // props
  294. },
  295. area: ["80%", "90%"],
  296. title: "工单详情",
  297. });
  298. },
  299. bigImg(url) {
  300. this.dialogImgVisible = true;
  301. this.imgUrl = url;
  302. },
  303. handleClick(tab, event) {
  304. console.log(tab, event);
  305. },
  306. // 详情
  307. getDetail(num) {
  308. const params = {
  309. WorkOrderCode: this.rowid,
  310. type: num,
  311. };
  312. GetOrderDetail(params).then((response) => {
  313. if (num === "1") {
  314. this.workOrderCirculationList = response.data;
  315. } else if (num === "2") {
  316. if (response.data.length > 0) {
  317. this.evaluateData = response.data[0];
  318. }
  319. } else if (num === "3") {
  320. if (response.data&&response.data.length > 0) {
  321. this.sonData = response.data;
  322. }
  323. if (response.data == null) {
  324. this.$refs.tabs.$children[0].$refs.tabs[1].style.display = "none";
  325. }
  326. } else {
  327. const res = response.data[0];
  328. this.orderDetailData = res;
  329. const imgs = [];
  330. const others = [];
  331. const fileUrls = [
  332. ...(this.orderDetailData.FileUrl || []),
  333. ...(this.orderDetailData.DealFileUrl || []), ,
  334. ...(this.orderDetailData.CollectFile || []),
  335. ];
  336. if (fileUrls && fileUrls.length > 0) {
  337. fileUrls.forEach(function(v, n) {
  338. if (v.F_FileType === ".jpg" || v.F_FileType === ".png") {
  339. imgs.push(v);
  340. } else {
  341. others.push(v);
  342. }
  343. });
  344. this.imgFiles = imgs;
  345. this.otherFiles = others;
  346. }
  347. this.orderDetailData.F_TypeName2 =
  348. this.$store.getters.workTypeMap[
  349. parseInt(res.F_WorkOrderCategory)
  350. ].text; // 工单子类
  351. if (this.orderDetailData.F_TypeName2.indexOf('标本') >= 0) {
  352. for (var i = 0; i < res.PSInfo.length; i++) {
  353. res.PSInfo[i].F_DicName = this.$store.getters.bbxxTypeMap[parseInt(res.PSInfo[i].F_DicId)].text;
  354. }
  355. }
  356. }
  357. });
  358. },
  359. },
  360. };
  361. </script>
  362. <style rel="stylesheet/scss" lang="scss">
  363. .order_detail {
  364. .tabdept {
  365. width: 100%;
  366. margin: 10px 0;
  367. border: 1px solid #ccc;
  368. }
  369. .tabdept th {
  370. width: 150px;
  371. padding: 10px 0;
  372. font-size: 1rem;
  373. text-align: center;
  374. background-color: #ececec;
  375. border: 1px solid #ccc;
  376. }
  377. .tabdept td {
  378. font-size: 1rem;
  379. text-align: center;
  380. background-color: #fafafa;
  381. border: 1px solid #ccc;
  382. }
  383. .wostate {
  384. color: #67aa60;
  385. display: inline-block;
  386. border: 1px solid #c1c1c1;
  387. border-radius: 5px;
  388. padding: 5px 10px 3px 10px;
  389. font-size: 17px !important;
  390. }
  391. .evaluate {
  392. margin: 10px;
  393. font-size: 15px;
  394. color: #505050;
  395. }
  396. .el-col {
  397. // margin-bottom: 20px;
  398. }
  399. .el-icon-time {
  400. color: #d81e06;
  401. }
  402. .el-card__header {
  403. padding-top: 14px;
  404. padding-bottom: 14px;
  405. background-color: #f5f5f6;
  406. }
  407. .order_file {
  408. .el-card__body {
  409. padding: 22px 0 0 0;
  410. text-align: center;
  411. }
  412. }
  413. .order_steps {
  414. .el-step__icon-inner {
  415. display: none;
  416. }
  417. }
  418. .order_record {
  419. .el-card__body {
  420. padding: 0;
  421. }
  422. .el-tabs__header {
  423. padding: 0px 20px;
  424. background-color: #f5f5f6;
  425. .el-tabs__item {
  426. font-size: 16px;
  427. height: 47px;
  428. line-height: 47px;
  429. }
  430. }
  431. }
  432. }
  433. </style>
  434. <style rel="stylesheet/scss" lang="scss" scoped>
  435. /deep/.el-rate__icon {
  436. font-size: 30px;
  437. }
  438. .order_detail {
  439. .imglist {
  440. display: inline-block;
  441. vertical-align: middle;
  442. }
  443. .imglist img {
  444. width: 72px;
  445. height: 72px;
  446. margin-right: 15px;
  447. vertical-align: middle;
  448. }
  449. .imglist a {
  450. margin-right: 15px;
  451. color: #64b3e7;
  452. }
  453. .order_detail_body {
  454. margin-bottom: 20px;
  455. .round_img {
  456. width: 90px;
  457. height: 90px;
  458. border-radius: 50%;
  459. overflow: hidden;
  460. margin: 14px;
  461. img {
  462. width: 100%;
  463. height: 100%;
  464. }
  465. }
  466. .title {
  467. font-size: 20px;
  468. .title_icon {
  469. color: #d81e06;
  470. font-size: 16px;
  471. margin-right: 20px;
  472. }
  473. }
  474. .title_sub {
  475. font-size: 14px;
  476. color: #666666;
  477. }
  478. .order_detail_content {
  479. background-color: #f5f5f6;
  480. padding-top: 20px;
  481. color: #4c4c4c;
  482. font-size: 14px;
  483. .order_detail_item {
  484. margin-bottom: 10px;
  485. .order_content {
  486. margin-top: 10px;
  487. }
  488. .order_file {
  489. position: relative;
  490. cursor: pointer;
  491. .img_mask {
  492. display: none;
  493. position: absolute;
  494. left: 0px;
  495. top: 0px;
  496. background-color: rgba(0, 0, 0, 0.3);
  497. width: 100%;
  498. height: 22px;
  499. text-align: right;
  500. z-index: 1;
  501. i {
  502. font-size: 20px;
  503. line-height: 22px;
  504. display: inline-block;
  505. margin-right: 15px;
  506. color: #fff;
  507. }
  508. }
  509. p {
  510. margin-top: 5px;
  511. padding-left: 14px;
  512. padding-right: 14px;
  513. white-space: nowrap;
  514. overflow: hidden;
  515. text-overflow: ellipsis;
  516. }
  517. .file_icon {
  518. height: 68px;
  519. line-height: 68px;
  520. font-size: 68px;
  521. color: #409eff;
  522. }
  523. }
  524. .order_file:hover .img_mask {
  525. display: block;
  526. }
  527. }
  528. }
  529. }
  530. .green {
  531. color: #00c1de;
  532. }
  533. .done {
  534. color: #198120;
  535. }
  536. .red {
  537. color: #d81e06;
  538. }
  539. .yellow {
  540. color: #e6a23c;
  541. }
  542. .order_steps {
  543. // height: 240px;
  544. .el-step__icon-inner {
  545. display: none;
  546. }
  547. }
  548. .tab_body {
  549. padding: 0 20px 20px 20px;
  550. }
  551. }
  552. </style>