You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
8.0 KiB

8 months ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["agent/pages/order/change"],{4284:function(t,e,a){"use strict";var n=a("e8ee"),i=a.n(n);i.a},"4a30":function(t,e,a){"use strict";(function(t){var n=a("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("7eb4")),r=n(a("ee10")),o=n(a("7ca3")),c=a("8f59");function s(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function u(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?s(Object(a),!0).forEach((function(e){(0,o.default)(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}var d={components:{},data:function(){return{isLoad:!1,options:{},placeholder:"请输入"+this.$t("action.attendantName")+"名称",tabList:[{id:1,title:"更换"+this.$t("action.attendantName")},{id:2,title:"委派"+this.$t("action.attendantName")}],transfreTypeList:[{id:1,title:"距离最近"},{id:2,title:"最早可预约"}],cityType:["","城市","区县","省"],param:{page:1,coach_name:"",type:1},list:{data:[]},loading:!0,index:-1,lockTap:!1,popupHeight:"",popupInfo:{},base_agent:[],chooseInd:-1,transferForm:{order_id:"",coach_type:1,coach_id:"",coach_name:"",near_time:"",mobile:"",text:"",admin_id:""},rule:[{name:"coach_name",checkType:"isNotNull",errorMsg:"请输入"+this.$t("action.attendantName")+"姓名",regType:2},{name:"mobile",checkType:"isMobile",errorMsg:"请输入联系电话"}]}},computed:(0,c.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo}}),onLoad:function(t){var e=t.id,a=t.agent,n=void 0===a?0:a;t.agent=1*n,this.options=t,this.transferForm.order_id=e,this.initIndex()},onPullDownRefresh:function(){t.showNavigationBarLoading(),this.initRefresh(),t.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},methods:u(u(u({},(0,c.mapActions)(["getConfigInfo"])),(0,c.mapMutations)(["updateTechnicianItem"])),{},{initIndex:function(){var t=arguments,e=this;return(0,r.default)(i.default.mark((function a(){var n;return i.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(n=t.length>0&&void 0!==t[0]&&t[0],e.configInfo.id&&!n){a.next=4;break}return a.next=4,e.getConfigInfo();case 4:return a.next=6,Promise.all([e.getBaseInfo(),e.getList()]);case 6:e.isLoad=!0,e.$util.setNavigationBarColor({bg:e.primaryColor});case 8:case"end":return a.stop()}}),a)})))()},initRefresh:function(){this.param.page=1,this.initIndex(!0)},getBaseInfo:function(){var t=this;return(0,r.default)(i.default.mark((function e(){var a,n,r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.options.agent,n=void 0===a?0:a,r=n?"agent":"admin",e.next=4,t.$api[r].adminSelect();case 4:t.base_agent=e.sent;case 5:case"end":return e.stop()}}),e)})))()},toSearch:function(t){this.param.page=1,this.param.coach_name=t,this.transferForm.coach_id="",this.getList()},getList:function(){var t=this;return(0,r.default)(i.default.mark((function e(){var a,n,r,o,c,s,u,d;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.list,n=t.param,r=t.options,o=r.id,c=r.agent,s=void 0===c?0:c,n.order_id=o,u=s?"agent":"admin",e.next=6,t.$api[u].orderChangeCoachList(n);case 6:d=e.sent,1==t.param.page||(d.data=a.data.concat(d.data)),t.list=d,t.loading=!1,t.$util.hideAll();case 10:case"end":return e.stop()}}),e)})))()},initFixHeight:function(t){this.popupHeight=t},toChangeItem:function(t,e){switch(t){case"type":this.transferForm.coach_id="",this.param[t]=e,this.param.page=1,this.getList(),this.$refs.show_tra