1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e8faae1c"],{"3b0e":function(t,e,s){"use strict";s.d(e,"a",(function(){return n}));var i=s("1836"),a=s("2687");function n(t,e){return Object(i["a"])({url:a["a"].customer+"orders/".concat(t,"/revoke"),method:"post",data:e})}},4662:function(t,e,s){"use strict";s("68ef"),s("a71a"),s("9d70"),s("3743"),s("09fe"),s("4d75"),s("e3b3"),s("8270"),s("786d"),s("504b")},ab0e:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t._self._c;return e("div",[e("van-nav-bar",{staticClass:"shadow mb-4",attrs:{title:"报修进度","left-text":"返回","left-arrow":""},on:{"click-left":function(e){return t.$router.back(-1)}}}),e("div",{staticClass:"shadow w-11/12 mx-auto"},[e("p",{staticClass:"bg-yellow-600 bg-opacity-80 text-white px-4 py-2"},[t._v("工单信息")]),e("div",{staticClass:"px-4 bg-white py-2 text-sm"},[e("div",{staticClass:"pb-1 flex items-center justify-between"},[e("span",[e("span",{staticClass:"font-semibold"},[t._v("工单编号:")]),t._v(t._s(t.orderInfo.order_no))]),e("span",{class:"text-white "+t.orderInfo.state_color+" px-1 py-0.5 rounded-sm"},[t._v(t._s(t.orderInfo.state_name))])]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-semibold"},[t._v("报修时间:")]),t._v(t._s(t.orderInfo.created_at)+" ")]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-semibold"},[t._v("报修姓名:")]),t._v(t._s(t.orderInfo.link_name)+" ")]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-semibold"},[t._v("联系电话:")]),t._v(t._s(t.orderInfo.link_phone)+" ")]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-semibold"},[t._v("报修地址:")]),t._v(t._s(t.orderInfo.address)+" ")]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-semibold"},[t._v("故障类型:")]),t._v(t._s(t.orderInfo.type)+" ")]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-semibold"},[t._v("故障描述:")]),t._v(t._s(t.orderInfo.content)+" ")]),t.orderInfo.leader?e("div",{staticClass:"pb-1 flex items-center"},[e("span",{staticClass:"font-bold"},[t._v("工程队长:")]),e("span",{staticClass:"flex items-center"},[e("span",[t._v(t._s(t.orderInfo.leader_info.username))]),t.orderInfo.leader_info.phone?e("span",{staticClass:"flex items-center"},[t._v("("+t._s(t.orderInfo.leader_info.phone)+")"),e("a",{staticClass:"flex items-center",attrs:{href:"tel:"+t.orderInfo.leader_info.phone}},[e("van-icon",{attrs:{name:"phone",size:"22",color:"#009688"}})],1)]):t._e()])]):t._e(),t._m(0),e("div",{staticClass:"pb-1"},t._l(t.orderInfo.pic_list,(function(s,i){return e("van-image",{key:i,staticClass:"mr-1 border border-gray-100",attrs:{src:s,width:"5rem",height:"5rem"},on:{click:function(e){return t.preview(t.orderInfo.pic_list,i)}}})})),1)])]),e("div",{staticClass:"shadow w-11/12 mx-auto mt-4"},[e("p",{staticClass:"bg-gray-600 bg-opacity-80 text-white px-4 py-2"},[t._v("报修进度")]),e("van-steps",{attrs:{direction:"vertical",active:0}},t._l(t.eventList,(function(s,i){return e("van-step",{key:i},[e("h3",[t._v(t._s(s.title))]),e("p",{staticClass:"pt-2"},[t._v(t._s(s.created_at))]),s.content?e("p",{staticClass:"pt-2"},[t._v(t._s(s.content))]):t._e(),s.pic_list.length?e("p",{staticClass:"pt-2"},t._l(s.pic_list,(function(i,a){return e("van-image",{key:a,staticClass:"mr-1 border border-gray-100",attrs:{src:i,width:"5rem"},on:{click:function(e){return t.preview(s.pic_list,a)}}})})),1):t._e()])})),1)],1)],1)},a=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-semibold"},[t._v("故障图片:")])])}],n=(s("4662"),s("28a2")),c=(s("3b0e"),{data:function(){return{orderInfo:{leader_info:{}},eventList:[],id:0,item:{},dataLoading:!1}},created:function(){this.$route.params&&this.$route.params.id&&(this.id=this.$route.params.id),this.loadOrderInfo(this.id)},methods:{preview:function(t,e){Object(n["a"])({images:t,startPosition:e,closeable:!0})},loadOrderInfo:function(t){this.dataLoading=!0,this.orderInfo={id:0,order_no:"100000000000000000",main_type:0,sub_type:0,type:"XX/XXX",link_name:"客户",link_phone:"13000000000",province:0,city:0,region:0,address:"联发广场 X-X-XXXX",content:"XXXXXXXXXXXXXXXXXXX",pics:"",pic_list:["https://image.nczyzs.com/17111796835249483636614200244.jpg","https://image.nczyzs.com/17124067795563612565117412409.jpg","https://image.nczyzs.com/17107371559867504924763436260.jpg"],state:30,state_name:"待维修",state_color:"blue-500",created_at:"2024-05-08",leader:797,leader_info:{id:797,username:"XXX",phone:"15000000000"}},0==this.id?this.eventList=[{title:"用户【客户】已提交报修订单",content:"",pics:"",pic_list:[],created_at:"2024-05-08 10:39"}]:1==this.id?this.eventList=[{title:"维修人员【维修人员】上门服务处理中,预计上门时间:2024-05-21 21:00",content:"",pics:"",pic_list:[],created_at:"2024-05-08 07:56"},{title:"维修人员【维修人员】已确认工单",content:"",pics:"",pic_list:[],created_at:"2024-05-08 07:56"},{title:"客服【客服】已分配维修人员【维修人员】",content:"",pics:"",pic_list:[],created_at:"2024-05-08 11:01"},{title:"客服【客服】已审核工单",content:"",pics:"",pic_list:[],created_at:"2024-05-08 11:01"},{title:"用户【客户】已提交报修订单",content:"",pics:"",pic_list:[],created_at:"2024-05-08 10:39"}]:this.eventList=[{title:"客服【客服】修改订单状态为已完结",content:"",pics:"",pic_list:[],created_at:"2024-05-10 10:11"},{title:"用户【维修人员】已确认完成并评价",content:"",pics:"",pic_list:[],created_at:"2024-05-08 07:58"},{title:"维修人员【维修人员】上门服务处理中,预计上门时间:2024-05-21 21:00",content:"",pics:"",pic_list:[],created_at:"2024-05-08 07:56"},{title:"维修人员【维修人员】已确认工单",content:"",pics:"",pic_list:[],created_at:"2024-05-08 07:56"},{title:"客服【客服】已分配维修人员【维修人员】",content:"",pics:"",pic_list:[],created_at:"2024-05-08 11:01"},{title:"客服【客服】已审核工单",content:"",pics:"",pic_list:[],created_at:"2024-05-08 11:01"},{title:"用户【客户】已提交报修订单",content:"",pics:"",pic_list:[],created_at:"2024-05-08 10:39"}]}}}),r=c,o=s("2877"),l=Object(o["a"])(r,i,a,!1,null,null,null);e["default"]=l.exports}}]);
|