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

2 lines
7.3 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-478554dc"],{"5cb1":function(e,t,o){"use strict";o.r(t);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"animated fadeInRight ecommerce"},[t("el-row",[t("el-col",{attrs:{span:24}},[t("el-card",{staticClass:"ibox"},[t("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[t("div",[e._v("查询条件")]),t("div",{staticClass:"ibox-tools",staticStyle:{top:"10px"}},[t("el-button",{staticStyle:{"margin-right":"10px"},attrs:{type:"text"},on:{click:function(t){return e._moreCondition()}}},[e._v(" "+e._s(1==e.myHousekeepingDispatchInfo.moreCondition?"隐藏":"更多")+" ")])],1)]),t("div",{},[t("el-form",{staticClass:"flex justify-start",attrs:{inline:!0,model:e.myHousekeepingDispatchInfo.conditions}},[t("el-form-item",[t("el-form-item",[t("el-input",{attrs:{placeholder:"请输入工单编号"},model:{value:e.myHousekeepingDispatchInfo.conditions.cartId,callback:function(t){e.$set(e.myHousekeepingDispatchInfo.conditions,"cartId",t)},expression:"myHousekeepingDispatchInfo.conditions.cartId"}})],1)],1),t("el-form-item",[t("el-form-item",[t("el-input",{attrs:{placeholder:"请输入申请人"},model:{value:e.myHousekeepingDispatchInfo.conditions.applyName,callback:function(t){e.$set(e.myHousekeepingDispatchInfo.conditions,"applyName",t)},expression:"myHousekeepingDispatchInfo.conditions.applyName"}})],1)],1),t("el-form-item",[t("el-form-item",[t("el-input",{attrs:{placeholder:"请输入联系电话"},model:{value:e.myHousekeepingDispatchInfo.conditions.applyTel,callback:function(t){e.$set(e.myHousekeepingDispatchInfo.conditions,"applyTel",t)},expression:"myHousekeepingDispatchInfo.conditions.applyTel"}})],1)],1),t("el-form-item",[t("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e._queryHousekeepingPoolMethod()}}},[t("i",{staticClass:"el-icon-search"}),e._v(" 查询 ")]),t("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e._resetHousekeepingPoolMethod()}}},[t("i",{staticClass:"el-icon-refresh"}),e._v(" 重置 ")])],1)],1),1==e.myHousekeepingDispatchInfo.moreCondition?t("el-form",{staticClass:"flex justify-start",attrs:{inline:!0,model:e.myHousekeepingDispatchInfo.conditions}},[t("el-form-item",[t("el-form-item",[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择状态"},model:{value:e.myHousekeepingDispatchInfo.conditions.state,callback:function(t){e.$set(e.myHousekeepingDispatchInfo.conditions,"state",t)},expression:"myHousekeepingDispatchInfo.conditions.state"}},[t("el-option",{attrs:{label:"请选择状态",disabled:"",value:""}}),e._l(e.myHousekeepingDispatchInfo.states,(function(e,o){return t("el-option",{key:o,attrs:{label:e.name,value:e.statusCd}})}))],2)],1)],1)],1):e._e()],1)])],1)],1),t("el-row",[t("el-col",{attrs:{span:24}},[t("el-card",{staticClass:"ibox"},[t("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[t("div",[t("span",[e._v(e._s(e.myHousekeepingDispatchInfo.conditions.roomName))]),e._v("服务已办")])]),t("div",{},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.myHousekeepingDispatchInfo.pools}},[t("el-table-column",{attrs:{prop:"servName",label:"服务名称",align:"center"}}),t("el-table-column",{attrs:{prop:"cartId",label:"订单编号",align:"center"}}),t("el-table-column",{attrs:{prop:"applyName",label:"申请人",align:"center"}}),t("el-table-column",{attrs:{prop:"applyTel",label:"联系方式",align:"center"}}),t("el-table-column",{attrs:{prop:"appointmentTime",label:"预约时间",align:"center"}}),t("el-table-column",{attrs:{label:"状态",align:"center"},scopedSlots:e._u([{key:"default",fn:function(o){return["1800"!=o.row.state||"001"!=o.row.returnVisitFlag&&"002"!=o.row.returnVisitFlag?t("span",[e._v(" "+e._s(o.row.stateName)+" ")]):t("span",[e._v(" "+e._s(o.row.stateName)+"(定时任务处理) ")])]}}])}),t("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(o){return[t("el-button",{attrs:{size:"mini"},on:{click:function(t){return e._openDetail(o.row)}}},[e._v("详情")])]}}])})],1),t("el-pagination",{attrs:{"current-page":e.currentPage,"page-size":e.pageSize,layout:"total, prev, pager, next",total:e.total},on:{"current-change":e.handleCurrentChange}})],1)])],1)],1)],1)},s=[],n=o("7323"),a=o("b775");function l(e){return new Promise((t,o)=>{Object(a["a"])({url:"/housekeepingServPool/queryStaffFinishServ",method:"get",params:{...e,shopId:Object(n["f"])()}}).then(e=>{const o=e.data;t(o)}).catch(e=>{o(e)})})}function r(e){return new Promise((t,o)=>{Object(a["a"])({url:"/myHousekeepingDispatch.closeOrder",method:"post",data:e,emulateJSON:!0}).then(e=>{const o=e.data;t(o)}).catch(e=>{o(e)})})}var c={name:"MyHousekeepingDispatchManage",data(){return{DEFAULT_PAGE:1,DEFAULT_ROWS:10,currentPage:1,pageSize:10,total:0,myHousekeepingDispatchInfo:{pools:[],total:0,records:1,moreCondition:!1,repairName:"",currentRepairId:"",states:[],conditions:{cartId:"",applyName:"",applyTel:"",repairType:"",roomId:"",roomName:"",ownerId:"",state:"",page:1,row:10,shopId:""}}}},created(){this._initMethod(),this._initEvent()},methods:{async _initMethod(){try{const{data:e}=await Object(n["e"])("housekeeping_serv_pool","state");this.myHousekeepingDispatchInfo.states=e}catch(e){console.error("获取字典数据失败:",e)}this._listHousekeepingPools(this.DEFAULT_PAGE,this.DEFAULT_ROWS)},_initEvent(){},async _listHousekeepingPools(e,t){this.myHousekeepingDispatchInfo.conditions.page=e,this.myHousekeepingDispatchInfo.conditions.row=t,this.myHousekeepingDispatchInfo.conditions.shopId=Object(n["f"])();const o={...this.myHousekeepingDispatchInfo.conditions,cartId:this.myHousekeepingDispatchInfo.conditions.cartId.trim(),applyName:this.myHousekeepingDispatchInfo.conditions.applyName.trim(),applyTel:this.myHousekeepingDispatchInfo.conditions.applyTel.trim()};try{const t=await l(o);this.myHousekeepingDispatchInfo.total=t.total,this.myHousekeepingDispatchInfo.records=t.records,this.myHousekeepingDispatchInfo.pools=t.data,this.total=t.records,this.currentPage=e}catch(i){console.error("请求失败:",i)}},_moreCondition(){this.myHousekeepingDispatchInfo.moreCondition=!this.myHousekeepingDispatchInfo.moreCondition},_openDetail(e){this.$router.push("/pages/goods/housekeepingServDetail?poolId="+e.poolId)},async _closeRepairDispatchOrder(e){const t={repairId:this.myHousekeepingDispatchInfo.currentRepairId,context:e.remark,shopId:Object(n["f"])()};"1100"==e.state?t.state="10002":t.state="10003";try{await r(t),this._listHousekeepingPools(this.DEFAULT_PAGE,this.DEFAULT_ROWS)}catch(o){console.error("请求失败:",o)}},_openDispatchRepairDetail(e){console.log(e),this.$emit("ownerRepairDetail","openOwnerRepairDetailModal",e)},_queryHousekeepingPoolMethod(){this._listHousekeepingPools(this.DEFAULT_PAGE,this.DEFAULT_ROWS)},_resetHousekeepingPoolMethod(){this.myHousekeepingDispatchInfo.conditions.cartId="",this.myHousekeepingDispatchInfo.conditions.applyName="",this.myHousekeepingDispatchInfo.conditions.applyTel="",this.myHousekeepingDispatchInfo.conditions.state="",this._listHousekeepingPools(this.DEFAULT_PAGE,this.DEFAULT_ROWS)},handleCurrentChange(e){this._listHousekeepingPools(e,this.DEFAULT_ROWS)}}},p=c,u=(o("77aa"),o("2877")),h=Object(u["a"])(p,i,s,!1,null,"a7266cfc",null);t["default"]=h.exports},"77aa":function(e,t,o){"use strict";o("e5ee")},e5ee:function(e,t,o){}}]);
//# sourceMappingURL=chunk-478554dc.a493bff0.js.map