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 lines
8.5 KiB
1 lines
8.5 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["agent/pages/index"],{"6acf":function(e,n,t){},7638:function(e,n,t){"use strict";(function(e){var o=t("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(t("7eb4")),a=o(t("ee10")),r=o(t("7ca3")),u=t("8f59");function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){(0,r.default)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var l={components:{tabbar:function(){t.e("components/tabbar").then(function(){return resolve(t("ea26"))}.bind(null,t)).catch(t.oe)}},data:function(){return{isLoad:!1,options:{},detail:{},noticeType:{1:{title:"订单通知",text:"您有新的订单来啦!"},2:{title:"退款通知",text:"您有新的客户退款通知!"},3:{title:"拒单通知",text:"有"+this.$t("action.attendantName")+"拒单, 请尽快处理!"}},shopOrder:[{icon:"icondaifuwu4",text:"待服务",url:"/agent/pages/order/list?tab=1",key:2,number:0},{icon:"iconjishijiedan1",text:this.$t("action.attendantName")+"接单",url:"/agent/pages/order/list?tab=2",key:3,number:0},{icon:"iconjishichufa1",text:this.$t("action.attendantName")+"出发",url:"/agent/pages/order/list?tab=3",key:4,number:0},{icon:"iconjishidaoda1",text:this.$t("action.attendantName")+"到达",url:"/agent/pages/order/list?tab=4",key:5,number:0},{icon:"iconanmo2",text:"服务中",url:"/agent/pages/order/list?tab=5",key:6,number:0},{icon:"iconyiwancheng",text:"已完成",url:"/agent/pages/order/list?tab=6"}],shopBellOrder:[{icon:"https://lbqny.migugu.com/admin/anmo/menu/daifuwu.png",text:"待服务",url:"/agent/pages/order/list?bell=1&tab=1",key:2,number:0},{icon:"https://lbqny.migugu.com/admin/anmo/menu/jiedan.png",text:this.$t("action.attendantName")+"接单",url:"/agent/pages/order/list?bell=1&tab=2",key:3,number:0},{icon:"https://lbqny.migugu.com/admin/anmo/menu/fuwuzhong.png",text:"服务中",url:"/agent/pages/order/list?bell=1&tab=3",key:6,number:0},{icon:"https://lbqny.migugu.com/admin/anmo/menu/wancheng.png",text:"已完成",url:"/agent/pages/order/list?bell=1&tab=4"}],shopRefuseOrder:[{icon:"icondaizhuandan",text:"待转单",url:"/agent/pages/order/list?tab=8",key:8,number:0}],shopRefund:[{icon:"iconshenqingzhong",text:"申请中",url:"/agent/pages/refund/list?tab=1",key:1,number:0},{icon:"icontongyituikuan",text:"同意退款",url:"/agent/pages/refund/list?tab=2",key:2,number:0},{icon:"iconjujuetuikuan",text:"拒绝退款",url:"/agent/pages/refund/list?tab=3",key:3,number:0}],shopBellRefund:[{icon:"https://lbqny.migugu.com/admin/anmo/menu/shenqingzhong.png",text:"申请中",url:"/agent/pages/refund/list?bell=1&tab=1",key:1,number:0},{icon:"https://lbqny.migugu.com/admin/anmo/menu/tongyi.png",text:"同意退款",url:"/agent/pages/refund/list?bell=1&tab=2",key:2,number:0},{icon:"https://lbqny.migugu.com/admin/anmo/menu/jujue.png",text:"拒绝退款",url:"/agent/pages/refund/list?bell=1&tab=3",key:3,number:0}],toolList:[{icon:"iconzhanghaoshezhi",text:"账号设置",url:"/agent/pages/account"},{icon:"iconshenqingjishi3",text:this.$t("action.attendantName")+"管理",url:"/agent/pages/technician/list"},{icon:"iconyongjinxinxi1",text:"佣金信息",url:"/agent/pages/income/commission"},{icon:"icontixianshenqing1",text:"提现申请",url:"/user/pages/distribution/record?type=5"}]}},computed:(0,u.mapState)({primaryColor:function(e){return e.config.configInfo.primaryColor},subColor:function(e){return e.config.configInfo.subColor},configInfo:function(e){return e.config.configInfo},commonOptions:function(e){return e.user.commonOptions},userInfo:function(e){return e.user.userInfo},haveOperItem:function(e){return e.technician.haveOperItem}}),onLoad:function(n){var t=n.agent,o=void 0===t?0:t;n.agent=1*o,this.options=n,e.setNavigationBarTitle({title:1==o?"代理商端":"管理员端"}),this.initIndex()},onShow:function(){this.haveOperItem&&this.initRefresh()},onPullDownRefresh:function(){e.showNavigationBarLoading(),this.initRefresh(),e.stopPullDownRefresh()},methods:c(c({},(0,u.mapMutations)(["updateTechnicianItem"])),{},{initIndex:function(){var e=arguments,n=this;return(0,a.default)(i.default.mark((function t(){var o,a,r,u,s,c,l,d;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.length>0&&void 0!==e[0]&&e[0],n.$util.setNavigationBarColor({bg:n.primaryColor}),n.$util.showLoading(),n.updateTechnicianItem({key:"haveOperItem",val:!1}),o=n.options.agent,a=o?"agent":"admin",t.next=8,n.$api[a].index();case 8:r=t.sent,o&&(r.node=["shopOrder","shopBellOrder","shopRefuseOrder","shopRefund","shopBellRefund"]),u=r.notice,s=u.order_id,c=u.refund_id,l=u.refuse_id,s&&0==s.length&&(s={type:1}),c&&0==c.length&&(c={type:2}),l&&0==l.length&&(l={type:3}),d=[],(r.node.includes("shopOrder")||r.node.includes("shopOrder"))&&d.push(s),(r.node.includes("shopRefund")||r.node.includes("shopBellRefund"))&&d.push(c),r.node.includes("shopRefuseOrder")&&d.push(l),r.notice=d,n.shopOrder.map((function(e){e.key&&(e.number=r.order_count[e.key])})),n.shopBellOrder.map((function(e){e.key&&(e.number=r.add_count[e.key])})),n.shopRefuseOrder.map((function(e){e.key&&(e.number=r.refuse_order[e.key])})),n.shopRefund.map((function(e){e.key&&(e.number=r.refund_count[e.key])})),n.shopBellRefund.map((function(e){e.key&&(e.number=r.add_refund_count[e.key])})),n.detail=r,n.isLoad=!0,n.$util.hideAll();case 28:case"end":return t.stop()}}),t)})))()},initRefresh:function(){this.initIndex(!0)},toJump:function(e,n){var t=this[e][n].url,o=this.options.agent,i=t.includes("?")?"&":"?";t+="".concat(i,"agent=").concat(o),this.$util.goUrl({url:t})},goOrder:function(e){var n=this;return(0,a.default)(i.default.mark((function t(){var o,a,r,u,s,c,l,d,p,f;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(o=n.detail.notice[e],a=o.id,r=void 0===a?0:a,u=o.order_id,s=void 0===u?0:u,c=o.type,s){t.next=3;break}return t.abrupt("return");case 3:return l=n.options.agent,d=l?"agent":"admin",t.next=7,n.$api[d].noticeUpdate({id:r,have_look:1});case 7:n.initRefresh(),p=2==c?"refund":"order",f="/agent/pages/".concat(p,"/detail?id=").concat(s,"&agent=").concat(l),n.$util.goUrl({url:f});case 11:case"end":return t.stop()}}),t)})))()}})};n.default=l}).call(this,t("df3c")["default"])},"8f1c":function(e,n,t){"use strict";var o=t("6acf"),i=t.n(o);i.a},a4a0:function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return i})),t.d(n,"a",(function(){}));var o=function(){var e=this,n=e.$createElement,t=(e._self._c,e.isLoad&&e.options.agent?e.$t("action.attendantName"):null),o=e.isLoad&&e.options.agent?e.$t("action.attendantName"):null,i=e.isLoad?e.detail.node.includes("shopOrder"):null,a=e.isLoad?e.detail.node.includes("shopBellOrder"):null,r=e.isLoad?e.detail.node.includes("shopRefuseOrder"):null,u=e.isLoad?e.detail.node.includes("shopRefund"):null,s=e.isLoad?e.detail.node.includes("shopBellRefund"):null;e._isMounted||(e.e0=function(n){return n.stopPropagation(),e.$util.goUrl({url:"/user/pages/cash-out?type=agent"})},e.e1=function(n){return n.stopPropagation(),e.$refs.show_rule_item.open()},e.e2=function(n){return n.stopPropagation(),e.$util.goUrl({url:"/user/pages/distribution/bind-technician"})},e.e3=function(n){return n.stopPropagation(),e.$util.goUrl({url:"/agent/pages/poster/salesman"})},e.e4=function(n){return n.stopPropagation(),e.$util.goUrl({url:"/agent/pages/poster/channel"})},e.e5=function(n){return n.stopPropagation(),e.$refs.show_rule_item.close()}),e.$mp.data=Object.assign({},{$root:{m0:t,m1:o,g0:i,g1:a,g2:r,g3:u,g4:s}})},i=[]},adf08:function(e,n,t){"use strict";(function(e,n){var o=t("47a9");t("7043");o(t("3240"));var i=o(t("fa84"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(i.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},e8a2:function(e,n,t){"use strict";t.r(n);var o=t("7638"),i=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=i.a},fa84:function(e,n,t){"use strict";t.r(n);var o=t("a4a0"),i=t("e8a2");for(var a in i)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(a);t("8f1c");var r=t("828b"),u=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);n["default"]=u.exports}},[["adf08","common/runtime","common/vendor"]]]); |