1 line
36 KiB
JavaScript
1 line
36 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods_manage-goods_manage"],{"0122":function(t,e,o){"use strict";o.r(e);var n=o("9bdf"),i=o("bbfa");for(var a in i)"default"!==a&&function(t){o.d(e,t,(function(){return i[t]}))}(a);var r=o("762f");for(var a in r)"default"!==a&&function(t){o.d(e,t,(function(){return r[t]}))}(a);o("cab0");var s=o("f0c5"),l=o("6da0");i["default"].__module="renderBiz";var c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,"86fc822c",null,!1,n["a"],i["default"]);"function"===typeof l["a"]&&Object(l["a"])(c),e["default"]=c.exports},"0aff":function(t,e,o){var n=o("24fb");e=n(!1),e.push([t.i,"@charset \"UTF-8\";\n/* 颜色变量 */\n/** S Font's size **/\n/** E Font's size **/[data-v-2bdeb282]:export{red_theme:#ff2c3c;orange_theme:#f7971e;pink_theme:#fa444d;gold_theme:#e0a356;blue_theme:#2f80ed;green_theme:#2ec840}\n/*根元素需要有固定的高度*/uni-page-body[data-v-2bdeb282]{height:100%;box-sizing:border-box}uni-page-body .header[data-v-2bdeb282]{padding:%?16?% %?30?%}uni-page-body .nav[data-v-2bdeb282]{padding:%?15?% 0}uni-page-body .section[data-v-2bdeb282]{overflow:hidden}uni-page-body .section .title[data-v-2bdeb282]{padding:%?20?%}uni-page-body .section .btn[data-v-2bdeb282]{margin-top:%?20?%;margin-left:%?20?%;width:%?180?%;height:%?64?%;font-size:%?26?%}uni-page-body .section .solid[data-v-2bdeb282]{color:#fff;background-color:#ff4141}uni-page-body .section .hollow[data-v-2bdeb282]{color:#666;border:1px solid #dbdbdb}",""]),t.exports=e},"0d8e":function(t,e,o){"use strict";var n=o("e651"),i=o.n(n);i.a},"0ea7":function(t,e,o){"use strict";var n=o("4ea4");o("99af"),o("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(o("2909"));o("96cf");var a=n(o("1da1")),r=n(o("4803")),s=o("890d"),l=o("a9eb"),c={mixins:[r.default],data:function(){return{height:"100%",keyword:"",list:[{name:"销售中",type:1,lists:[]},{name:"仓库中",type:2,lists:[]},{name:"库存预警",type:3,lists:[]},{name:"回收站",type:4,lists:[]},{name:"待审核",type:5,lists:[]},{name:"未通过",type:6,lists:[]}],current:0,count:0,action:"",curData:{},btns:{},off_shelf:!1,on_shelf:!1,del:!1,recycle:!1,warehouse:!1,upOption:{empty:{icon:"/static/images/empty/shop.png",tip:"暂无商品!",fixed:!0,top:"200rpx"}}}},onShow:function(){var t=this;return(0,a.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.upCallback=(0,l.debounce)(t.upCallback,200,t),t.$nextTick((function(){t.$refs.mescrollRef[t.current].mescroll.resetUpScroll()})),uni.getSystemInfo({success:function(e){t.height=e.windowHeight-107+"px"}});case 3:case"end":return e.stop()}}),e)})))()},methods:{change:function(t){var e;e=t.detail?t.detail.current:t,this.current=Number(e),this.$refs.mescrollRef[this.current].mescroll.resetUpScroll()},upCallback:function(t){var e=this;return(0,a.default)(regeneratorRuntime.mark((function o(){var n,a,r;return regeneratorRuntime.wrap((function(o){while(1)switch(o.prev=o.next){case 0:n=e.current,a=t.num,r=t.size,(0,s.apiGoodsLists)({name:e.keyword,type:e.list[n].type,page_no:a,page_size:r}).then((function(t){var o=t.lists,r=(t.page_size,t.btns),s=t.more,l=t.count;(1==a||e.keyword)&&(e.list[n].lists=[]),e.btns=r,e.count=l;var c=!!s;e.list[n].lists=[].concat((0,i.default)(e.list[n].lists),(0,i.default)(o)),e.$refs.mescrollRef[n].mescroll.endSuccess(o.length,c)})).catch((function(t){console.log(t),e.mescroll.endErr()}));case 4:case"end":return o.stop()}}),o)})))()},openFunc:function(t,e){this.curData=t,this.action=e,this[e]=!0},goodsSetting:function(){var t=this;return(0,a.default)(regeneratorRuntime.mark((function e(){var o,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return o=t.curData.id,n="del"==t.action?"delete":t.action,e.next=3,(0,s.apiGoodsOperation)({action:n,id:o});case 3:t.$refs.mescrollRef[t.current].mescroll.resetUpScroll(),t.$refs.uToast.show({title:"操作成功",type:"success"});case 5:case"end":return e.stop()}}),e)})))()}}};e.default=c},"169b":functi
|