chunk-36816180.e271ba97.js 6.3 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-36816180"],{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")},"4de4":function(t,e,s){"use strict";var i=s("23e7"),n=s("b727").filter,a=s("1dde"),o=a("filter");i({target:"Array",proto:!0,forced:!o},{filter:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}})},b7b9: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["mp4"==s.split("/").pop().split(".").pop()?e("div",{key:i,staticClass:"overflow-hidden flex justify-center items-center",staticStyle:{width:"5rem",height:"5rem",display:"inline-block"}},[e("video",{staticClass:"min-w-full min-h-full",attrs:{src:s},on:{click:function(e){return t.videoPlay(s)}}},[t._v(" 您的浏览器不支持视频播放 ")])]):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)}}})]}))],2)])]),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,n){return["mp4"==i.split("/").pop().split(".").pop()?e("div",{key:n,staticClass:"overflow-hidden flex justify-center items-center",staticStyle:{width:"5rem",height:"5rem",display:"inline-block"}},[e("video",{staticClass:"min-w-full min-h-full",attrs:{src:i},on:{click:function(e){return t.videoPlay(i)}}},[t._v(" 您的浏览器不支持视频播放 ")])]):e("van-image",{key:n,staticClass:"mr-1 border border-gray-100",attrs:{src:i,width:"5rem"},on:{click:function(e){return t.preview(s.pic_list,n)}}})]}))],2):t._e()])})),1)],1),t.videoShow?e("van-overlay",{staticClass:"flex justify-center items-center",attrs:{show:t.videoShow,"z-index":"1000"}},[e("video",{staticClass:"max-w-full max-h-full",attrs:{src:t.videoUrl,controls:""}},[t._v(" 您的浏览器不支持视频播放 ")]),e("i",{staticClass:"van-icon van-icon-clear van-image-preview__close-icon van-image-preview__close-icon--top-right",attrs:{role:"button"},on:{click:function(e){t.videoShow=!1}}})]):t._e()],1)},n=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-semibold"},[t._v("故障图片:")])])}],a=(s("4662"),s("28a2")),o=(s("4de4"),s("c975"),s("d3b7"),s("f8b4")),r={data:function(){return{orderInfo:{leader_info:{}},eventList:[],id:0,item:{},dataLoading:!1,videoShow:!1,videoUrl:""}},created:function(){this.$route.params&&this.$route.params.id&&(this.id=this.$route.params.id),this.loadOrderInfo(this.id)},methods:{videoPlay:function(t){this.videoUrl=t,this.videoShow=!0},preview:function(t,e){Object(a["a"])({images:t,startPosition:e,closeable:!0})},loadOrderInfo:function(t){var e=this;this.dataLoading=!0,this.$store.commit("loading/showLoading"),Object(o["c"])(t).then((function(t){e.$store.commit("loading/hideLoading"),e.orderInfo=t.data.info,e.eventList=t.data.event.filter((function(t){return-1==t.title.indexOf("】修改订单状态为已完结")}))})).catch((function(){e.$store.commit("loading/hideLoading")}))}}},c=r,l=s("2877"),d=Object(l["a"])(c,i,n,!1,null,null,null);e["default"]=d.exports},f8b4:function(t,e,s){"use strict";s.d(e,"a",(function(){return a})),s.d(e,"d",(function(){return o})),s.d(e,"c",(function(){return r})),s.d(e,"e",(function(){return c})),s.d(e,"b",(function(){return l}));var i=s("8035"),n=s("f9db");function a(t){return Object(i["a"])({url:n["a"].customer+"orders",method:"post",data:t})}function o(t){return Object(i["a"])({url:n["a"].customer+"orders",method:"get",params:t})}function r(t){return Object(i["a"])({url:n["a"].customer+"orders/".concat(t),method:"get"})}function c(t,e){return Object(i["a"])({url:n["a"].customer+"orders/".concat(t,"/revoke"),method:"post",data:e})}function l(t,e){return Object(i["a"])({url:n["a"].customer+"orders/".concat(t,"/comment"),method:"post",data:e})}}}]);