| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595 |
- <template>
- <div class="order_detail">
- <el-row :gutter="20">
- <el-col :md="24" class="order_detail_body">
- <el-card shadow="hover">
- <el-col :md="21">
- <el-col :md="18">
- <h1 class="title" style="display: inline-block">
- <svg-icon class="title_icon" icon-class="hongqi" />工单编号:{{
- orderDetailData.F_WorkOrderCode
- }}
- <span v-if="orderDetailData.StateName" class="wostate">{{
- orderDetailData.StateName
- }}</span>
- <span v-if="orderDetailData.F_UrgeCount > 0" class="wostate">催{{ orderDetailData.F_UrgeCount }}</span>
- </h1>
- </el-col>
- </el-col>
- <el-col :md="24" class="order_detail_content">
- <table class="tabdept" cellspacing="0" cellpadding="0">
- <tr>
- <th>业务类别:</th>
- <td>{{ orderDetailData.TypeName }}</td>
- <th>工单类别:</th>
- <td>{{ orderDetailData.F_TypeName2 }}</td>
- <th>超时时限:</th>
- <td>{{ orderDetailData.GapTime || "-" }}</td>
- </tr>
- <tr>
- <th>申请人:</th>
- <td v-if="orderDetailData.applicantname">
- {{ orderDetailData.applicantname }}({{
- orderDetailData.F_Phone
- }})
- </td>
- <td v-if="!orderDetailData.applicantname">-</td>
- <th>申请科室:</th>
- <td v-if="orderDetailData.F_ApplicationDept && orderDetailData.F_ApplicationDept!='0'">
- {{ $store.getters.deptmap[parseInt(orderDetailData.F_ApplicationDept)].text }}</td>
- <td v-if="!orderDetailData.F_ApplicationDept || orderDetailData.F_ApplicationDept=='0'">-</td>
- <th>科室位置:</th>
- <td>{{ orderDetailData.F_Location }}</td>
-
- </tr>
- <tr>
- <th>申请时间:</th>
- <td>{{ orderDetailData.F_CreateTime }}</td>
- <th>接单人:</th>
- <td>
- {{ orderDetailData.DealManName }}-{{
- orderDetailData.DealManPhone
- }}
- </td>
- <th>完成时间:</th>
- <td>{{ orderDetailData.F_Endtime || "-" }}</td>
- <!-- <th>完成时长:</th>
- <td>{{ orderDetailData.SpendTime || "-" }}</td> -->
- </tr>
- <tr v-show="isDD.indexOf('DD')>=0 || isDD==='GLY'">
- <th>接单时间:</th>
- <td colspan="5">{{ orderDetailData.F_AcceptTime || "-" }}</td>
- <!-- <th>送达科室:</th>
- <td colspan="3">{{ orderDetailData.F_ToPlace }}</td> -->
- </tr>
- <tr v-if="
- orderDetailData.PSInfo && orderDetailData.PSInfo.length > 0
- ">
- <th :rowspan="orderDetailData.PSInfo.length + 1">配送信息:</th>
- </tr>
- <tr v-for="(item, index) in orderDetailData.PSInfo" :key="index">
- <th v-if="item.F_ToDept">送达科室:</th>
- <th v-if="item.F_ToDept">{{ $store.getters.deptmap[parseInt(item.F_ToDept)].text }}</th>
- <th v-if="item.F_ToDept">物品名称:</th>
- <td v-if="item.F_ToDept">
- <span>{{ item.F_DicName }}</span>
- <span v-if="item.F_IsBorrow==1">(借)</span>
- <span v-if="item.F_IsBorrow==2">(还)</span>
- <span>({{ item.F_Number }})</span>
- </td>
- <th v-if="!item.F_ToDept">物品名称:</th>
- <td v-if="!item.F_ToDept">
- <span>{{ item.F_DicName }}</span>
- <span v-if="item.F_IsBorrow==1">(借)</span>
- <span v-if="item.F_IsBorrow==2">(还)</span>
- </td>
- <th v-if="!item.F_ToDept">数量:</th>
- <td v-if="!item.F_ToDept">{{ item.F_Number }}</td>
- <th>-</th>
- </tr>
- <!-- <tr v-if="orderDetailData.F_WorkOrderCodes">
- <th>关联工单:</th>
- <td colspan="5">
- <span v-for="(item,index) in orderDetailData.F_WorkOrderCodes.split(',')"
- style="display: inline-block;margin-right: 15px;">
- <span style="color: royalblue;cursor: pointer;" @click="hadndleOrderCode(item)">{{item}}</span>
- </span>
- </td>
- </tr> -->
- <!-- <tr>
- <th>紧急情况:</th>
- <td colspan="5">{{ orderDetailData.F_EmergencyTypes }}</td>
- </tr> -->
- <tr>
- <th>备注:</th>
- <td colspan="5">{{ orderDetailData.F_Content || "-"}}</td>
- </tr>
- <tr v-if="
- orderDetailData.FileUrl ||
- orderDetailData.DealFileUrl ||
- orderDetailData.CollectFile
- ">
- <th>附件:</th>
- <td colspan="5" style="text-align: left; padding: 5px 10px">
- <div class="imglist">
- <img v-for="(item, index) in imgFiles" :key="index" :src="item.F_FileUrl"
- @click="bigImg(item.F_FileUrl)" />
- <a v-for="(item, index) in otherFiles" :key="index" :href="item.F_FileUrl"
- :download="item.F_FileName">{{
- item.F_FileName.substring(19, item.F_FileName.length)
- }}</a>
- </div>
- </td>
- </tr>
- </table>
- </el-col>
- </el-card>
- </el-col>
- </el-row>
- <el-row :gutter="20">
- <el-col :md="24" class="order_detail_body">
- <el-card shadow="hover">
- <el-tabs ref="tabs" v-model="activeName">
- <el-tab-pane label="工单流程" name="1">
- <el-col :md="24" class="order_detail_content">
- <el-table :data="workOrderCirculationList" border style="width: 100%">
- <el-table-column prop="username" label="操作人" align="center" />
- <el-table-column prop="F_LogContent" label="内容" align="center" />
- <el-table-column prop="F_OperationTime" label="时间" align="center" />
- </el-table>
- </el-col>
- </el-tab-pane>
- <el-tab-pane label="关联工单" name="2">
- <el-col :md="24" class="order_detail_content">
- <el-table :data="sonData" border style="width: 100%">
- <el-table-column prop="F_WorkOrderCode" label="工单编号" align="center" />
- <el-table-column prop="DealManName" label="接单人" align="center">
- <template slot-scope="scope">
- <span>{{scope.row.DealManName}}-{{scope.row.DealManPhone}}</span>
- </template>
- </el-table-column>
- <el-table-column prop="F_CreateTime" label="时间" align="center" />
- </el-table>
- </el-col>
- </el-tab-pane>
- <el-tab-pane label="评价" name="3">
- <div v-if="!evaluateData.F_Attitude">暂无评价</div>
- <div class="evaluate" v-if="evaluateData.F_Attitude">
- <span class="demonstration">服务态度:</span>
- <el-rate v-model="evaluateData.F_Attitude" :texts="texts" show-text disabled
- style="display: inline-block" />
- </div>
- <div class="evaluate" v-if="evaluateData.F_Quality">
- <span class="demonstration">服务质量:</span>
- <el-rate v-model="evaluateData.F_Quality" :texts="texts" show-text disabled
- style="display: inline-block" />
- </div>
- <div class="evaluate" v-if="evaluateData.F_Efficiency">
- <span class="demonstration">完工时效:</span>
- <el-rate v-model="evaluateData.F_Efficiency" :texts="texts" show-text disabled
- style="display: inline-block" />
- </div>
- <div v-if="evaluateData.F_EvaluateContent">
- <el-col :md="24" style="font-size: 15px; color: #505050">
- 文字评价:{{ evaluateData.F_EvaluateContent }}
- </el-col>
- </div>
- </el-tab-pane>
- </el-tabs>
- </el-card>
- </el-col>
- </el-row>
- <el-dialog :visible.sync="dialogImgVisible" title="查看图片" width="50%" append-to-body>
- <div>
- <img :src="imgUrl" style="width: 100%; height: 500px" />
- </div>
- </el-dialog>
- </div>
- </template>
- <script>
- import {
- mapGetters
- } from "vuex";
- import {
- GetOrderDetail
- } from "@/api/comDispatch/addOrEditDispatch";
- import dispatchDetail from "../../comDispatch/components/dispatchdetail.vue";
- import Pagination from "@/components/context/Pagination"; // 对el-pagination 二次封装
- let that;
- export default {
- name: "DispatchDetail",
- components: {
- Pagination,
- },
- filters: {
- formtDeptById(id) {
- if (!id) {
- return "";
- }
- return that.$store.getters.deptmap[parseInt(id)].text;
- },
- },
- props: {
- rowid: {
- type: String,
- default: "",
- },
- layerid: {
- type: String,
- default: "",
- },
- },
- data() {
- return {
- isDD: window.localStorage.getItem('roleCode'), //角色是不是调度
- texts: ['不满意', '不满意', '基本满意', '满意', '满意'],
- imgUrl: "",
- dialogImgVisible: false,
- activeName: "1",
- imgFiles: [],
- otherFiles: [],
- ChatList: [], // 备注详情列表
- orderDetailData: {
- F_CallID: "",
- F_WorkOrderCode: "",
- F_ID: "",
- F_Source: "电话", // 业务类别
- F_Type1: "", // 工单类别
- F_TypeName1: "", // 工单类别
- F_Type2: "", // 工单子类
- F_TypeName2: "", // 工单子类
- F_Type3: "", // 工单三类
- F_TypeName3: "", // 工单三类
- F_Customer: "", // 姓名
- F_Sex: "0", // 性别
- F_Phon: "", // 电话
- F_CusAddress: "", // 家庭住址
- F_IdCard: "", // 身份证号
- F_ServiceItems: "", // 服务项目
- F_Address: "", // 地区
- F_FirstCheckHospital: "", // 首次检查医院
- F_NoduleSize: "", // 肺结节大小
- F_FirstFindTime: "", // 首次发现肺结节时间
- F_Urgency: "0", // 紧急程度
- F_Cathetertype: "", // 置管类型
- F_Catheterdept: "", // 置管科室
- F_Cathetertime: "", // 置管时间
- F_BedNum: "", // 床号
- F_InpatientNum: "", // 住院号
- opt: "", // 处理方式
- cont: "",
- F_WorkOrderContents: "", // 工单内容
- F_DealOpinions: "", // 处理意见
- },
- pageParams: {
- pageindex: 1, // 当前第几页
- pagesize: 5, // 每页几条数据
- total: 0, // 总共多少数据
- },
- evaluateData: {}, // 评价
- workOrderCirculationList: [], // 工单流转
- sonData: []
- };
- },
- computed: {
- ...mapGetters(["rolecode"]),
- },
- beforeCreate() {
- that = this;
- },
- created() {
- this.getDetail("0");
- this.getDetail("1");
- this.getDetail("2");
- this.getDetail("3");
- },
- methods: {
- hadndleOrderCode(id) {
- this.$layer.iframe({
- content: {
- content: dispatchDetail, // 传递的组件对象
- parent: this, // 当前的vue对象
- data: {
- rowid: id,
- }, // props
- },
- area: ["80%", "90%"],
- title: "工单详情",
- });
- },
- bigImg(url) {
- this.dialogImgVisible = true;
- this.imgUrl = url;
- },
- handleClick(tab, event) {
- console.log(tab, event);
- },
- // 详情
- getDetail(num) {
- const params = {
- WorkOrderCode: this.rowid,
- type: num,
- };
- GetOrderDetail(params).then((response) => {
- if (num === "1") {
- this.workOrderCirculationList = response.data;
- } else if (num === "2") {
- if (response.data.length > 0) {
- this.evaluateData = response.data[0];
- }
- } else if (num === "3") {
- if (response.data&&response.data.length > 0) {
- this.sonData = response.data;
- }
- if (response.data == null) {
- this.$refs.tabs.$children[0].$refs.tabs[1].style.display = "none";
- }
- } else {
- const res = response.data[0];
- this.orderDetailData = res;
- const imgs = [];
- const others = [];
- const fileUrls = [
- ...(this.orderDetailData.FileUrl || []),
- ...(this.orderDetailData.DealFileUrl || []), ,
- ...(this.orderDetailData.CollectFile || []),
- ];
- if (fileUrls && fileUrls.length > 0) {
- fileUrls.forEach(function(v, n) {
- if (v.F_FileType === ".jpg" || v.F_FileType === ".png") {
- imgs.push(v);
- } else {
- others.push(v);
- }
- });
- this.imgFiles = imgs;
- this.otherFiles = others;
- }
- this.orderDetailData.F_TypeName2 =
- this.$store.getters.workTypeMap[
- parseInt(res.F_WorkOrderCategory)
- ].text; // 工单子类
- if (this.orderDetailData.F_TypeName2.indexOf('标本') >= 0) {
- for (var i = 0; i < res.PSInfo.length; i++) {
- res.PSInfo[i].F_DicName = this.$store.getters.bbxxTypeMap[parseInt(res.PSInfo[i].F_DicId)].text;
- }
- }
- }
- });
- },
- },
- };
- </script>
- <style rel="stylesheet/scss" lang="scss">
- .order_detail {
- .tabdept {
- width: 100%;
- margin: 10px 0;
- border: 1px solid #ccc;
- }
- .tabdept th {
- width: 150px;
- padding: 10px 0;
- font-size: 1rem;
- text-align: center;
- background-color: #ececec;
- border: 1px solid #ccc;
- }
- .tabdept td {
- font-size: 1rem;
- text-align: center;
- background-color: #fafafa;
- border: 1px solid #ccc;
- }
- .wostate {
- color: #67aa60;
- display: inline-block;
- border: 1px solid #c1c1c1;
- border-radius: 5px;
- padding: 5px 10px 3px 10px;
- font-size: 17px !important;
- }
- .evaluate {
- margin: 10px;
- font-size: 15px;
- color: #505050;
- }
- .el-col {
- // margin-bottom: 20px;
- }
- .el-icon-time {
- color: #d81e06;
- }
- .el-card__header {
- padding-top: 14px;
- padding-bottom: 14px;
- background-color: #f5f5f6;
- }
- .order_file {
- .el-card__body {
- padding: 22px 0 0 0;
- text-align: center;
- }
- }
- .order_steps {
- .el-step__icon-inner {
- display: none;
- }
- }
- .order_record {
- .el-card__body {
- padding: 0;
- }
- .el-tabs__header {
- padding: 0px 20px;
- background-color: #f5f5f6;
- .el-tabs__item {
- font-size: 16px;
- height: 47px;
- line-height: 47px;
- }
- }
- }
- }
- </style>
- <style rel="stylesheet/scss" lang="scss" scoped>
- /deep/.el-rate__icon {
- font-size: 30px;
- }
- .order_detail {
- .imglist {
- display: inline-block;
- vertical-align: middle;
- }
- .imglist img {
- width: 72px;
- height: 72px;
- margin-right: 15px;
- vertical-align: middle;
- }
- .imglist a {
- margin-right: 15px;
- color: #64b3e7;
- }
- .order_detail_body {
- margin-bottom: 20px;
- .round_img {
- width: 90px;
- height: 90px;
- border-radius: 50%;
- overflow: hidden;
- margin: 14px;
- img {
- width: 100%;
- height: 100%;
- }
- }
- .title {
- font-size: 20px;
- .title_icon {
- color: #d81e06;
- font-size: 16px;
- margin-right: 20px;
- }
- }
- .title_sub {
- font-size: 14px;
- color: #666666;
- }
- .order_detail_content {
- background-color: #f5f5f6;
- padding-top: 20px;
- color: #4c4c4c;
- font-size: 14px;
- .order_detail_item {
- margin-bottom: 10px;
- .order_content {
- margin-top: 10px;
- }
- .order_file {
- position: relative;
- cursor: pointer;
- .img_mask {
- display: none;
- position: absolute;
- left: 0px;
- top: 0px;
- background-color: rgba(0, 0, 0, 0.3);
- width: 100%;
- height: 22px;
- text-align: right;
- z-index: 1;
- i {
- font-size: 20px;
- line-height: 22px;
- display: inline-block;
- margin-right: 15px;
- color: #fff;
- }
- }
- p {
- margin-top: 5px;
- padding-left: 14px;
- padding-right: 14px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .file_icon {
- height: 68px;
- line-height: 68px;
- font-size: 68px;
- color: #409eff;
- }
- }
- .order_file:hover .img_mask {
- display: block;
- }
- }
- }
- }
- .green {
- color: #00c1de;
- }
- .done {
- color: #198120;
- }
- .red {
- color: #d81e06;
- }
- .yellow {
- color: #e6a23c;
- }
- .order_steps {
- // height: 240px;
- .el-step__icon-inner {
- display: none;
- }
- }
- .tab_body {
- padding: 0 20px 20px 20px;
- }
- }
- </style>
|