text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5eb2f8d8"],{"02bc":function(t,e,i){"use strict";var a=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},n=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"empty"},[a("img",{attrs:{src:i("f3f6")}})])])}],s={name:"Empty",props:{}},c=s,r=i("9ca4"),o=Object(r["a"])(c,a,n,!1,null,null,null);e["a"]=o.exports},"09fb":function(t,e,i){"use strict";var a=i("35ea"),n=i("9ec1"),s=i("00cb"),c=i("1e97"),r=i("43c9"),o=Object(a["a"])("list"),l=o[0],d=o[1],h=o[2];e["a"]=l({mixins:[Object(c["a"])((function(t){this.scroller||(this.scroller=Object(s["c"])(this.$el)),t(this.scroller,"scroll",this.check)}))],model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:[Number,String],default:300},direction:{type:String,default:"down"}},data:function(){return{innerLoading:this.loading}},updated:function(){this.innerLoading=this.loading},mounted:function(){this.immediateCheck&&this.check()},watch:{loading:"check",finished:"check"},methods:{check:function(){var t=this;this.$nextTick((function(){if(!(t.innerLoading||t.finished||t.error)){var e,i=t.$el,a=t.scroller,s=t.offset,c=t.direction;e=a.getBoundingClientRect?a.getBoundingClientRect():{top:0,bottom:a.innerHeight};var r=e.bottom-e.top;if(!r||Object(n["a"])(i))return!1;var o=!1,l=t.$refs.placeholder.getBoundingClientRect();o="up"===c?e.top-l.top<=s:l.bottom-e.bottom<=s,o&&(t.innerLoading=!0,t.$emit("input",!0),t.$emit("load"))}}))},clickErrorText:function(){this.$emit("update:error",!1),this.check()},genLoading:function(){var t=this.$createElement;if(this.innerLoading&&!this.finished)return t("div",{key:"loading",class:d("loading")},[this.slots("loading")||t(r["a"],{attrs:{size:"16"}},[this.loadingText||h("loading")])])},genFinishedText:function(){var t=this.$createElement;if(this.finished){var e=this.slots("finished")||this.finishedText;if(e)return t("div",{class:d("finished-text")},[e])}},genErrorText:function(){var t=this.$createElement;if(this.error){var e=this.slots("error")||this.errorText;if(e)return t("div",{on:{click:this.clickErrorText},class:d("error-text")},[e])}}},render:function(){var t=arguments[0],e=t("div",{ref:"placeholder",key:"placeholder",class:d("placeholder")});return t("div",{class:d(),attrs:{role:"feed","aria-busy":this.innerLoading}},["down"===this.direction?this.slots():e,this.genLoading(),this.genFinishedText(),this.genErrorText(),"up"===this.direction?this.slots():e])}})},1718:function(t,e,i){},"1f6c":function(t,e,i){"use strict";i("7c36"),i("df3f"),i("1718")},"688d":function(t,e,i){"use strict";var a=i("23c4"),n=i.n(a),s=i("d601"),c=i("35ea"),r=i("2a47"),o=i("f449"),l=i("721a"),d=Object(c["a"])("search"),h=d[0],f=d[1],u=d[2];function g(t,e,i,a){function c(){if(i.label||e.label)return t("div",{class:f("label")},[i.label?i.label():e.label])}function d(){if(e.showAction)return t("div",{class:f("action"),attrs:{role:"button",tabindex:"0"},on:{click:n}},[i.action?i.action():e.actionText||u("cancel")]);function n(){i.action||(Object(r["a"])(a,"input",""),Object(r["a"])(a,"cancel"))}}var h={attrs:a.data.attrs,on:Object(s["a"])({},a.listeners,{keypress:function(t){13===t.keyCode&&(Object(o["c"])(t),Object(r["a"])(a,"search",e.value)),Object(r["a"])(a,"keypress",t)}})},g=Object(r["b"])(a);return g.attrs=void 0,t("div",n()([{class:f({"show-action":e.showAction}),style:{background:e.background}},g]),[null==i.left?void 0:i.left(),t("div",{class:f("content",e.shape)},[c(),t(l["a"],n()([{attrs:{type:"search",border:!1,value:e.value,leftIcon:e.leftIcon,rightIcon:e.rightIcon,clearable:e.clearable,clearTrigger:e.clearTrigger},scopedSlots:{"left-icon":i["left-icon"],"right-icon":i["right-icon"]}},h]))]),d()])}g.props={value:String,label:String,rightIcon:String,actionText:String,background:String,showAction:Boolean,clearTrigger:String,shape:{type:String,default:"square"},clearable:{type:Boolean,default:!0},leftIcon:{type:String,default:"search"}},e["a"]=h(g)},"8ef2":function(t,e,i){"use strict";i("7c36"),i("e47e"),i("8077"),i("9a3a"),i("8866"),i("cb92")},"9d4e":function(t,e,i){},af05:function(t,e,i){"use strict";var a=i("9d4e"),n=i.n(a);n.a},cb92:function(t,e,i){},db95:function(t,e,i){"use strict";i.r(e);var a,n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[null==t.list?i("Loadings"):i("div",{staticClass:"container scontainer"},[i("div",{staticClass:"search-bar"},[i("van-search",{attrs:{"show-action":"",label:"查询",placeholder:"请输入搜索关键词",clearable:""},on:{search:t.searchData},scopedSlots:t._u([{key:"action",fn:function(){return[i("div",{on:{click:t.searchData}},[t._v("搜索")])]},proxy:!0}]),model:{value:t.keywords,callback:function(e){t.keywords=e},expression:"keywords"}})],1),0==t.list.length?i("Empty"):i("van-list",{staticClass:"list",attrs:{finished:t.finished,"finished-text":"没有更多了"},on:{load:t.onLoad},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.list,(function(e,a){return i("div",{key:a,staticClass:"item"},[i("div",{staticClass:"info"},[i("div",{staticClass:"title"},[t._v("客户名称:"+t._s(e.cust_name))]),i("div",{staticClass:"title"},[t._v("\n            货号"+t._s(e.number)+"\n            "),i("span",{staticStyle:{"padding-left":"20px"}},[t._v("品名"+t._s(e.title))])]),i("div",{staticClass:"tips"},[t._v("型号:"+t._s(""==e.model?"暂无":e.model))]),i("div",{staticClass:"tips"},[t._v("产品属性:"+t._s(""==e.attribute?"暂无":e.attribute))]),i("div",{staticClass:"tips"},[t._v("\n            规格:"+t._s(e.standards)+"\n            "),i("span",{staticStyle:{"padding-left":"20px"}},[t._v("单位:"+t._s(e.unit))])]),i("div",{staticClass:"tips"},[t._v("单价:"+t._s(e.price))]),i("div",{staticClass:"tips"},[t._v("业务员:"+t._s(e.sname))])])])})),0)],1)],1)},s=[],c=i("ce3c"),r=(i("1f6c"),i("09fb")),o=(i("b2a3"),i("43c9")),l=(i("8ef2"),i("688d")),d=(i("cc57"),i("733f"),i("d470")),h=i("e876"),f=i("02bc"),u=i("89af"),g={name:"Quote",components:(a={},Object(c["a"])(a,d["a"].name,d["a"]),Object(c["a"])(a,l["a"].name,l["a"]),Object(c["a"])(a,o["a"].name,o["a"]),Object(c["a"])(a,r["a"].name,r["a"]),Object(c["a"])(a,"Empty",f["a"]),Object(c["a"])(a,"Loadings",u["a"]),a),data:function(){return{list:null,keywords:"",page:"",loading:!1,finished:!1}},created:function(){},mounted:function(){this.getData()},methods:{searchData:function(){""!=this.keywords&&(this.page=""),this.getData()},getData:function(){var t=this;Object(h["s"])({search:this.keywords,page:this.page,length:30}).then((function(e){""!=t.page?t.list=t.list.concat(e.data.data):t.list=e.data.data,t.finished=e.data.data.length<30,t.loading=e.data.data.length<30,30==e.data.data.length&&(t.page=t.list[t.list.length-1].pid)}))},onLoad:function(){this.getData()}}},p=g,b=(i("af05"),i("9ca4")),v=Object(b["a"])(p,n,s,!1,null,"20cd3753",null);e["default"]=v.exports},f3f6:function(t,e,i){t.exports=i.p+"h5/img/empty.f65bdbe1.png"}}]);
  //# sourceMappingURL=chunk-5eb2f8d8.391a5f0a.js.map