itemList.js 4.3 KB

1
  1. require('common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["admin/ptItem/itemList"],{1949:function(t,e,n){"use strict";(function(t){n("6cdc");o(n("4a15"));var e=o(n("5845"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("f3be")["createPage"])},"3b76":function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o}));var i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.$util.isEmpty(t.filterProductInfoContrapose)),o=n?t.$util.isEmpty(t.filterProductInfoContrapose):null;t.$mp.data=Object.assign({},{$root:{g0:n,g1:o}})},r=[]},5845:function(t,e,n){"use strict";n.r(e);var o=n("3b76"),i=n("e199");for(var r in i)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(r);n("c06a");var a,s=n("0095"),u=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"f44684c6",null,!1,o["a"],a);e["default"]=u.exports},"7ea8":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("7602"),i=c(n("e350")),r=c(n("90c1")),a=n("1b62"),s=n("7736"),u=n("d5b9");function c(t){return t&&t.__esModule?t:{default:t}}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p=function(){n.e("components/module/app-search").then(function(){return resolve(n("80f2"))}.bind(null,n)).catch(n.oe)},h=function(){n.e("components/app-wrapper-empty").then(function(){return resolve(n("c078"))}.bind(null,n)).catch(n.oe)},m=function(){n.e("admin/ptItem/components/Item").then(function(){return resolve(n("7164"))}.bind(null,n)).catch(n.oe)},b=function(){n.e("components/module/dorpdownSelect").then(function(){return resolve(n("7bb7"))}.bind(null,n)).catch(n.oe)},I={name:"ptItemList",components:{AppSearchModule:p,AppWrapperEmpty:h,ptItemInfo:m,DorpdownSelect:b},mixins:[i.default,a.selectShop,r.default],data:function(){return{STOCK_TYPE:o.STOCK_TYPE,autoLoad:!1,pageType:"getPtItem",tabIndex:0,modifyStock:{},tabs:[{name:"库存预警",key:o.STOCK_TYPE.WARN}],allClass:[]}},computed:l({},(0,s.mapGetters)(["getMyShopInfo","getLoginInfo"])),onLoad:function(){var t="waring";this.shopId=this.getMyShopInfo.id,this.initDataContrapose({type:t,shopId:this.shopId,status:0,delStatus:0})},onPullDownRefresh:function(){this.page=1,this.filterProductInfoContrapose=[];var t="waring";this.shopId=this.getMyShopInfo.id,this.initDataContrapose({type:t,shopId:this.shopId,status:0,delStatus:0})},onShow:function(){},methods:{init:function(){var t=this,e=this;(0,u.getAllItemClass)().then((function(n){if(t.$util.isEmpty(n.data))return!1;e.allClass=n.data}))},selectItem:function(t){2!=t.select?this.$util.pageTo({url:"/admin/item/detail",type:2,query:{ptItemId:t.id}}):this.$msg("已添加")},affirm:function(t){0===t.index&&this.modalCancel()},change:function(e){if(this.tabIndex==e.index)return!1;t.showLoading({title:"加载中"}),this.tabIndex=e.index,this.filterProductInfoContrapose=this.allFilterProductInfoContrapose,t.hideLoading()},scrollTop:function(){},initProductInfo:function(){this.filterProductInfoContrapose=[],this.page=1,this.isMore=!0},selectSussess:function(e){t.showLoading({title:"加载中"}),this.initProductInfo();var n="waring";this.shopId=e.selectItem.id,this.initDataContrapose({type:n,shopId:this.shopId,status:0,delStatus:0})}}};e.default=I}).call(this,n("f3be")["default"])},c06a:function(t,e,n){"use strict";var o=n("d88a"),i=n.n(o);i.a},d88a:function(t,e,n){},e199:function(t,e,n){"use strict";n.r(e);var o=n("7ea8"),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a}},[["1949","common/runtime","common/vendor","admin/ptItem/common/vendor"]]]);