2 lines
5.4 KiB
JavaScript
2 lines
5.4 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a5f425ba"],{"3a37":function(e,o,t){},5903:function(e,o,t){"use strict";t.r(o);var a=function(){var e=this,o=e._self._c;return o("div",[o("el-row",[o("el-col",{attrs:{span:24}},[o("el-card",{staticClass:"box-card"},[o("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[o("span",[e._v("查询条件")])]),o("el-form",{staticClass:"flex justify-start",attrs:{inline:!0,model:e.housekeepingServPoolPayInfo.conditions}},[o("el-form-item",[o("el-input",{attrs:{placeholder:"请输入服务名称",clearable:""},model:{value:e.housekeepingServPoolPayInfo.conditions.servName,callback:function(o){e.$set(e.housekeepingServPoolPayInfo.conditions,"servName",o)},expression:"housekeepingServPoolPayInfo.conditions.servName"}})],1),o("el-form-item",[o("el-input",{attrs:{placeholder:"请输入申请人",clearable:""},model:{value:e.housekeepingServPoolPayInfo.conditions.applyName,callback:function(o){e.$set(e.housekeepingServPoolPayInfo.conditions,"applyName",o)},expression:"housekeepingServPoolPayInfo.conditions.applyName"}})],1),o("el-form-item",[o("el-input",{attrs:{placeholder:"请输入联系电话",clearable:""},model:{value:e.housekeepingServPoolPayInfo.conditions.applyTel,callback:function(o){e.$set(e.housekeepingServPoolPayInfo.conditions,"applyTel",o)},expression:"housekeepingServPoolPayInfo.conditions.applyTel"}})],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e._queryHousekeepingServPoolMethod}},[o("i",{staticClass:"el-icon-search"}),e._v(" 查询 ")]),o("el-button",{on:{click:e._resetHousekeepingServPoolMethod}},[o("i",{staticClass:"el-icon-refresh"}),e._v(" 重置 ")])],1)],1)],1)],1)],1),o("el-card",{staticClass:"margin-top-sm"},[o("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[o("span",[e._v("服务支付")])]),o("el-table",{staticStyle:{width:"100%"},attrs:{data:e.housekeepingServPoolPayInfo.housekeepingServPools,border:""}},[o("el-table-column",{attrs:{prop:"servName",label:"服务名称",align:"center"}}),o("el-table-column",{attrs:{prop:"cartId",label:"订单编号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(o){return[e._v(" "+e._s("-1"===o.row.cartId?"电话预约":o.row.cartId)+" ")]}}])}),o("el-table-column",{attrs:{prop:"applyName",label:"申请人",align:"center"}}),o("el-table-column",{attrs:{prop:"applyTel",label:"联系方式",align:"center"}}),o("el-table-column",{attrs:{prop:"appointmentTime",label:"预约时间",align:"center"}}),o("el-table-column",{attrs:{prop:"createTime",label:"申请时间",align:"center"}}),o("el-table-column",{attrs:{prop:"stateName",label:"状态",align:"center"}}),o("el-table-column",{attrs:{prop:"context",label:"备注",align:"center"}}),o("el-table-column",{attrs:{label:"操作",align:"center",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{size:"mini"},on:{click:function(o){return e._toPay(t.row)}}},[e._v(" 缴费 ")]),o("el-button",{attrs:{size:"mini"},on:{click:function(o){return e._openDetail(t.row)}}},[e._v(" 详情 ")])]}}])})],1),o("el-pagination",{staticClass:"pagination",attrs:{"current-page":e.currentPage,"page-size":e.pageSize,layout:"total, prev, pager, next",total:e.housekeepingServPoolPayInfo.total},on:{"current-change":e.handleCurrentChange}})],1)],1)},n=[],s=t("b775");function l(e){return new Promise((o,t)=>{Object(s["a"])({url:"/housekeepingServPool/queryHousekeepingServPool",method:"get",params:e}).then(e=>{const t=e.data;o(t)}).catch(e=>{t(e)})})}var i=t("7323"),r={name:"HousekeepingServPoolPay",data(){return{housekeepingServPoolPayInfo:{housekeepingServPools:[],total:0,records:1,conditions:{servName:"",state:"1400",applyName:"",applyTel:"",shopId:""}},currentPage:1,pageSize:10}},created(){this.housekeepingServPoolPayInfo.conditions.shopId=Object(i["f"])(),this._listHousekeepingServPays(this.currentPage,this.pageSize)},methods:{async _listHousekeepingServPays(e,o){this.housekeepingServPoolPayInfo.conditions.page=e,this.housekeepingServPoolPayInfo.conditions.row=o;const t={...this.housekeepingServPoolPayInfo.conditions,servName:this.housekeepingServPoolPayInfo.conditions.servName.trim(),applyName:this.housekeepingServPoolPayInfo.conditions.applyName.trim(),applyTel:this.housekeepingServPoolPayInfo.conditions.applyTel.trim()};try{const e=await l(t);this.housekeepingServPoolPayInfo.total=e.total,this.housekeepingServPoolPayInfo.records=e.records,this.housekeepingServPoolPayInfo.housekeepingServPools=e.data}catch(a){console.error("请求失败:",a)}},_queryHousekeepingServPoolMethod(){this.currentPage=1,this._listHousekeepingServPays(this.currentPage,this.pageSize)},_resetHousekeepingServPoolMethod(){this.housekeepingServPoolPayInfo.conditions.servName="",this.housekeepingServPoolPayInfo.conditions.applyName="",this.housekeepingServPoolPayInfo.conditions.applyTel="",this.currentPage=1,this._listHousekeepingServPays(this.currentPage,this.pageSize)},_toPay(e){this.$router.push({path:"/pages/goods/housekeepingServPoolPayOrder",query:{poolId:e.poolId,servName:e.servName}})},_openDetail(e){this.$router.push({path:"/pages/goods/housekeepingServDetail",query:{poolId:e.poolId}})},handleCurrentChange(e){this.currentPage=e,this._listHousekeepingServPays(this.currentPage,this.pageSize)}}},p=r,c=(t("6e02"),t("2877")),u=Object(c["a"])(p,a,n,!1,null,"7c9e2f2f",null);o["default"]=u.exports},"6e02":function(e,o,t){"use strict";t("3a37")}}]);
|
|
//# sourceMappingURL=chunk-a5f425ba.0d73b734.js.map
|