Files
PropertyDeployment/resources/Web/MicroCommunityMallWeb/html/js/chunk-75ee176c.e9b31164.js
Anfioo adfd019d2d 江门
1
2026-02-01 15:37:55 +08:00

2 lines
9.5 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-75ee176c"],{"10bd":function(e,t,s){},2541:function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e._self._c;return t("div",[t("el-row",[t("el-col",{attrs:{span:24}},[t("el-card",{staticClass:"box-card"},[t("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[t("span",[e._v("工单详情")]),t("div",[t("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e._goBack()}}},[t("i",{staticClass:"el-icon-close"}),e._v(" 返回 ")])],1)]),t("div",{staticClass:"card-content text-left"},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:8}},[t("div",{staticClass:"form-item"},[t("label",{staticClass:"form-label"},[e._v("工单编码:")]),t("span",[e._v(e._s("-1"==e.housekeepingServDetailInfo.cartId?e.housekeepingServDetailInfo.poolId:e.housekeepingServDetailInfo.cartId))])])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"form-item"},[t("label",{staticClass:"form-label"},[e._v("服务名称:")]),t("span",[e._v(e._s(e.housekeepingServDetailInfo.servName))])])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"form-item"},[t("label",{staticClass:"form-label"},[e._v("申请人:")]),t("span",[e._v(e._s(e.housekeepingServDetailInfo.applyName))])])])],1),t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:8}},[t("div",{staticClass:"form-item"},[t("label",{staticClass:"form-label"},[e._v("联系方式:")]),t("span",[e._v(e._s(e.housekeepingServDetailInfo.applyTel))])])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"form-item"},[t("label",{staticClass:"form-label"},[e._v("服务类型:")]),t("span",[e._v(e._s(e.housekeepingServDetailInfo.hktName))])])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"form-item"},[t("label",{staticClass:"form-label"},[e._v("预约时间:")]),t("span",[e._v(e._s(e.housekeepingServDetailInfo.appointmentTime))])])])],1),t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:8}},[t("div",{staticClass:"form-item"},[t("label",{staticClass:"form-label"},[e._v("状态:")]),t("span",[e._v(e._s(e.housekeepingServDetailInfo.stateName))])])]),t("el-col",{attrs:{span:8}},[t("div",{staticClass:"form-item"},[t("label",{staticClass:"form-label"},[e._v("备注:")]),t("span",[e._v(e._s(e.housekeepingServDetailInfo.context))])])])],1),e.housekeepingServDetailInfo.visitType?t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:8}},[t("div",{staticClass:"form-item"},[t("label",{staticClass:"form-label"},[e._v("回访满意度:")]),t("span",[e._v(e._s("1001"==e.housekeepingServDetailInfo.visitType?"满意":"不满意"))])])]),t("el-col",{attrs:{span:16}},[t("div",{staticClass:"form-item"},[t("label",{staticClass:"form-label"},[e._v("回访内容:")]),t("span",[e._v(e._s(e.housekeepingServDetailInfo.visitContext))])])])],1):e._e()],1)])],1)],1),e.housekeepingServDetailInfo.beforePhotos.length>0?t("el-row",[t("el-col",{attrs:{span:24}},[t("el-card",{staticClass:"box-card"},[t("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[t("span",[e._v("维修前图片")])]),t("div",{staticClass:"card-content"},[t("el-row",{attrs:{gutter:20}},e._l(e.housekeepingServDetailInfo.beforePhotos,(function(s,a){return t("el-col",{key:a,attrs:{span:4}},[t("div",{staticClass:"image-item"},[t("img",{staticClass:"preview-image",attrs:{src:s.url},on:{click:function(t){return e.openFile(s)}}})])])})),1)],1)])],1)],1):e._e(),e.housekeepingServDetailInfo.afterPhotos.length>0?t("el-row",[t("el-col",{attrs:{span:24}},[t("el-card",{staticClass:"box-card"},[t("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[t("span",[e._v("维修后图片")])]),t("div",{staticClass:"card-content"},[t("el-row",{attrs:{gutter:20}},e._l(e.housekeepingServDetailInfo.afterPhotos,(function(s,a){return t("el-col",{key:a,attrs:{span:4}},[t("div",{staticClass:"image-item"},[t("img",{staticClass:"preview-image",attrs:{src:s.url},on:{click:function(t){return e.openFile(s)}}})])])})),1)],1)])],1)],1):e._e(),"1001"==e.housekeepingServDetailInfo.maintenanceType||"1003"==e.housekeepingServDetailInfo.maintenanceType?t("el-row",[t("el-col",{attrs:{span:24}},[t("el-card",{staticClass:"box-card"},[t("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[t("span",[e._v("相关物品")])]),t("div",{staticClass:"card-content"},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.housekeepingServDetailInfo.resourceStoreInfo,border:""}},[t("el-table-column",{attrs:{prop:"resId",label:"物品资源编号",align:"center"}}),t("el-table-column",{attrs:{prop:"rstName",label:"物品资源类型",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.rstName||"-")+" ")]}}],null,!1,341091938)}),t("el-table-column",{attrs:{prop:"resourceStoreName",label:"物品资源名称",align:"center"}}),t("el-table-column",{attrs:{prop:"specName",label:"物品资源规格",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.specName||"-")+" ")]}}],null,!1,597806130)}),t("el-table-column",{attrs:{prop:"quantity",label:"物品使用数量",align:"center"}}),t("el-table-column",{attrs:{prop:"unitPrice",label:"物品价格",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.unitPrice||"-")+" ")]}}],null,!1,3397746267)}),t("el-table-column",{attrs:{prop:"createUserName",label:"使用人",align:"center"}}),t("el-table-column",{attrs:{prop:"createTime",label:"时间",align:"center"}})],1)],1)])],1)],1):e._e(),t("el-row",[t("el-col",{attrs:{span:24}},[t("el-card",{staticClass:"box-card"},[t("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[t("span",[e._v("工单流转")])]),t("div",{staticClass:"card-content"},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.housekeepingServDetailInfo.housekeepingServUsers,border:""}},[t("el-table-column",{attrs:{label:"序号",align:"center",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.$index+1)+" ")]}}])}),t("el-table-column",{attrs:{prop:"staffName",label:"处理人",align:"center"}}),t("el-table-column",{attrs:{prop:"stateName",label:"状态",align:"center"}}),t("el-table-column",{attrs:{prop:"endTime",label:"处理时间",align:"center"}}),t("el-table-column",{attrs:{prop:"duration",label:"耗时",align:"center"}}),t("el-table-column",{attrs:{prop:"context",label:"意见",align:"center"}})],1)],1)])],1)],1),t("view-image",{ref:"viewImage"})],1)},l=[],o=s("7323"),r=s("b775");function n(e){return new Promise((t,s)=>{Object(r["a"])({url:"/housekeepingServPool/queryHousekeepingServPool",method:"get",params:e}).then(e=>{const s=e.data;t(s)}).catch(e=>{s(e)})})}function i(e){return new Promise((t,s)=>{Object(r["a"])({url:"/housekeepingServPoolUser/queryHouseServPoolUser",method:"get",params:e}).then(e=>{const s=e.data;t(s)}).catch(e=>{s(e)})})}var c=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.showImage,expression:"showImage"}],attrs:{id:"viewImage"}},[t("div",{staticClass:"image-preview-container"},[t("img",{staticClass:"preview-image",attrs:{src:e.url}}),t("span",{staticClass:"el-icon-close close-icon",on:{click:e.closeImage}})])])},u=[],p={name:"ViewImage",data(){return{url:"",showImage:!1}},methods:{open(e){this.url=e,this.showImage=!0,this.launchIntoFullscreen()},closeImage(){this.exitFullscreen(),this.showImage=!1},launchIntoFullscreen(){const e=document.getElementById("viewImage");e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},exitFullscreen(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()}},mounted(){document.addEventListener("fullscreenchange",e=>{console.log(e),document.fullscreenElement||(this.showImage=!1)})}},m=p,v=(s("6813f"),s("2877")),d=Object(v["a"])(m,c,u,!1,null,"61328b41",null),h=d.exports,f={name:"HousekeepingServDetail",components:{ViewImage:h},data(){return{housekeepingServDetailInfo:{poolId:"",cartId:"",servName:"",applyName:"",applyTel:"",hktName:"",roomName:"",appointmentTime:"",context:"",stateName:"",userId:"",userName:"",housekeepingServUsers:[],photos:[],housekeepingServPhotos:[],beforePhotos:[],afterPhotos:[],visitType:"",visitContext:"",maintenanceType:"",housekeepingServMaterials:"",housekeepingServFee:"",resourceStoreInfo:[]}}},created(){this.initData()},methods:{initData(){const e=this.$route.query.poolId;e&&(this.housekeepingServDetailInfo.poolId=e,this._listRepairPools())},async _listRepairPools(){try{const e={page:1,row:1,shopId:Object(o["f"])(),poolId:this.housekeepingServDetailInfo.poolId},t=await n(e),s=t.data;if(s.length<1)return;Object.assign(this.housekeepingServDetailInfo,s[0]),this.housekeepingServDetailInfo.hktName=s[0].housekeepingServDtos[0].hktName,this._loadRepairUser()}catch(e){console.error("请求失败:",e)}},async _loadRepairUser(){try{const e={page:1,row:100,shopId:Object(o["f"])(),poolId:this.housekeepingServDetailInfo.poolId},t=await i(e);this.housekeepingServDetailInfo.housekeepingServUsers=t.data}catch(e){console.error("请求失败:",e)}},_goBack(){this.$router.go(-1)},openFile(e){this.$refs.viewImage.open(e.url)}}},g=f,b=(s("3e04"),Object(v["a"])(g,a,l,!1,null,"51b4c34a",null));t["default"]=b.exports},"3e04":function(e,t,s){"use strict";s("10bd")},"6813f":function(e,t,s){"use strict";s("891a")},"891a":function(e,t,s){}}]);
//# sourceMappingURL=chunk-75ee176c.e9b31164.js.map