(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/app-supplier-sel"],{3761:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("8f31"),u=function(){n.e("components/plugin/bottom-popup").then(function(){return resolve(n("062d"))}.bind(null,n)).catch(n.oe)},i=function(){n.e("components/module/app-close").then(function(){return resolve(n("3239"))}.bind(null,n)).catch(n.oe)},a=function(){n.e("components/module/app-search").then(function(){return resolve(n("80f2"))}.bind(null,n)).catch(n.oe)},c={name:"app-customer-sel",components:{BottomPopup:u,AppClose:i,AppSearchModule:a},props:{show:{type:Boolean,default:!1}},data:function(){return{showPopup:!1,name:"",customerListData:[]}},mounted:function(){this.showPopup=this.show},computed:{},watch:{show:function(t){this.showPopup=t,t&&this.initList()}},methods:{initList:function(){var t=this;return(0,o.getList)({type:"0",name:this.name}).then((function(e){var n=e.data.list;t.customerListData=n})).catch((function(t){}))},searchFn:function(t){this.name=t,this.initList()},hidePopup:function(){this.$emit("update:show",!1),this.$emit("hide")},switchCustomer:function(t,e){this.$emit("change",t),this.hidePopup()},getCustomerLevelName:function(t){var e="";switch(Number(t)){case 0:e="普通客户";break;case 1:e="一级会员";break;case 2:e="二级会员";break;default:break}return e},gotoAddCustomer:function(){var e=this;t.navigateTo({url:"/pagesClient/member/add",success:function(t){e.hidePopup()},fail:function(){},complete:function(){}})}}};e.default=c}).call(this,n("1480")["default"])},"3f9f":function(t,e,n){"use strict";var o=n("9db5"),u=n.n(o);u.a},5109:function(t,e,n){"use strict";n.r(e);var o=n("3761"),u=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=u.a},"8c6c":function(t,e,n){"use strict";n.r(e);var o=n("f7ab"),u=n("5109");for(var i in u)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return u[t]}))}(i);n("3f9f");var a,c=n("41a2"),s=Object(c["a"])(u["default"],o["b"],o["c"],!1,null,"7ecd9998",null,!1,o["a"],a);e["default"]=s.exports},"9db5":function(t,e,n){},f7ab:function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var u=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__map(t.customerListData,(function(e,n){var o=t.__get_orig(e),u=t.getCustomerLevelName(e);return{$orig:o,m0:u}})));t.$mp.data=Object.assign({},{$root:{l0:n}})},i=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/app-supplier-sel-create-component',
    {
        'components/app-supplier-sel-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('1480')['createComponent'](__webpack_require__("8c6c"))
        })
    },
    [['components/app-supplier-sel-create-component']]
]);
