(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/admin/work_order/components/orderAssign"],{"549c":function(e,n,t){"use strict";(function(e){var a=t("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(t("7eb4")),i=a(t("34cf")),s=a(t("ee10")),o=t("cee7"),u=t("0466"),c={name:"OrderAssign",components:{SearchBar:function(){t.e("pages/admin/components/SearchBar").then(function(){return resolve(t("4f80"))}.bind(null,t)).catch(t.oe)},EmptyPage:function(){t.e("components/emptyPage").then(function(){return resolve(t("a342"))}.bind(null,t)).catch(t.oe)}},props:{merId:String},data:function(){return{urlDomain:this.$Cache.get("imgHost"),workOrder:"",isReassign:!1,userList:[],loadOptions:{keywords:"",status:1,loading:!1}}},methods:{handleMakeCallPhone:u.handleMakeCallPhone,openPanel:function(e,n){this.handleGetUserList(),this.workOrder=e,this.isReassign=n,this.$refs.popup.open()},handleConfirm:function(e){this.loadOptions.keywords=e,this.loadOptions.loaded=!1,this.loadOptions.loading=!1,this.userList=[],this.handleGetUserList()},handleAssign:function(n){var t=this;return(0,s.default)(r.default.mark((function a(){var s,u,c,l,d;return r.default.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,e.showModal({title:"提示",content:"确定".concat(t.isReassign?"改派":"派单","给").concat(n.name,"吗？")});case 2:if(s=a.sent,u=(0,i.default)(s,2),c=u[0],l=u[1].confirm,!c&&l){a.next=8;break}return a.abrupt("return");case 8:return e.showLoading({mask:!0}),d=t.isReassign?o.workerOrderReassignApi:o.workerOrderAssignApi,a.prev=10,a.next=13,d({serviceStaffId:n.id,workOrderNoList:[t.workOrder]});case 13:a.sent,e.hideLoading(),t.$util.Tips({title:"".concat(t.isReassign?"改派":"派单","成功"),icon:"success"}),t.handleClosePopup(),t.$emit("refresh",t.workOrder),a.next=24;break;case 20:a.prev=20,a.t0=a["catch"](10),e.hideLoading(),t.$util.Tips({title:a.t0,icon:"none"});case 24:case"end":return a.stop()}}),a,null,[[10,20]])})))()},handleClosePopup:function(){this.$refs.popup.close()},handleGetUserList:function(){var e=this;return(0,s.default)(r.default.mark((function n(){var t,a,i;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t=e.loadOptions.loading,!t){n.next=3;break}return n.abrupt("return");case 3:return e.loadOptions.loading=!0,n.prev=4,n.next=7,(0,o.staffListApi)(e.loadOptions);case 7:a=n.sent,i=a.data,e.userList=i,n.next=15;break;case 12:n.prev=12,n.t0=n["catch"](4),e.$util.Tips({title:n.t0,icon:"none"});case 15:e.loadOptions.loading=!1;case 16:case"end":return n.stop()}}),n,null,[[4,12]])})))()}}};n.default=c}).call(this,t("df3c")["default"])},"6af8":function(e,n,t){},8130:function(e,n,t){"use strict";t.r(n);var a=t("cb42"),r=t("94a7");for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);t("8e94");var s=t("828b"),o=Object(s["a"])(r["default"],a["b"],a["c"],!1,null,"a60e844a",null,!1,a["a"],void 0);n["default"]=o.exports},"8e94":function(e,n,t){"use strict";var a=t("6af8"),r=t.n(a);r.a},"94a7":function(e,n,t){"use strict";t.r(n);var a=t("549c"),r=t.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(i);n["default"]=r.a},cb42:function(e,n,t){"use strict";t.d(n,"b",(function(){return r})),t.d(n,"c",(function(){return i})),t.d(n,"a",(function(){return a}));var a={uniPopup:function(){return t.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(t.bind(null,"e1a2"))}},r=function(){var e=this.$createElement,n=(this._self._c,this.userList.length);this.$mp.data=Object.assign({},{$root:{g0:n}})},i=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'pages/admin/work_order/components/orderAssign-create-component',
    {
        'pages/admin/work_order/components/orderAssign-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("8130"))
        })
    },
    [['pages/admin/work_order/components/orderAssign-create-component']]
]);
