徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
3.4 KiB

require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/admin/goods/specsStock"],{"73a1":function(t,i,n){"use strict";n.r(i);var e=n("d241"),c=n("c7a5");for(var s in c)["default"].indexOf(s)<0&&function(t){n.d(i,t,(function(){return c[t]}))}(s);n("a86d");var o=n("828b"),a=Object(o["a"])(c["default"],e["b"],e["c"],!1,null,"1537056c",null,!1,e["a"],void 0);i["default"]=a.exports},a86d:function(t,i,n){"use strict";var e=n("afc2"),c=n.n(e);c.a},afc2:function(t,i,n){},b00d:function(t,i,n){"use strict";(function(t){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e=n("e727"),c={components:{editStock:function(){n.e("pages/admin/goods/components/editStock/index").then(function(){return resolve(n("6e3b"))}.bind(null,n)).catch(n.oe)}},data:function(){return{navList:["入库","出库"],attrsList:[],id:0,administer:!1,isAllSelect:!1,visibleStock:!1,goodsInfo:{id:0,spec_type:1,attr_value:{}},storeNum:1}},onShow:function(){},onLoad:function(t){this.id=t.id,this.storeNum=parseInt(t.storeNum),this.getAttrsList()},methods:{navTap:function(t,i){t.current=i},getIds:function(){var t=[];return this.attrsList.forEach((function(i){i.checked&&t.push(i.id)})),t},batchEdit:function(){this.getIds().length?(this.goodsInfo.id=this.id,this.visibleStock=!0):this.$util.Tips({title:"请选择商品规格"})},stockCloseDrawer:function(){this.visibleStock=!1},define:function(){var i=this,n={attr_value:[],type:"stock"};this.attrsList.forEach((function(t){var i={unique:t.unique,stock:t.current?parseInt(t.stock)-parseInt(t.currentStock):parseInt(t.stock)+parseInt(t.currentStock)};n.attr_value.push(i)})),(0,e.postStoreUpdateAttrs)(this.id,n).then((function(n){i.$util.Tips({title:n.msg},(function(){t.navigateTo({url:"/pages/admin/goods/index"})}))})).catch((function(t){i.$util.Tips({title:t})}))},getAttrsList:function(){var t=this;(0,e.getStoreGetAttrs)(this.id).then((function(i){var n=i.data;n.forEach((function(t){t.checked=!1,t.currentStock=0,t.current=0})),t.attrsList=n})).catch((function(i){t.$util.Tips({title:i})}))},checkboxChange:function(t){var i=t.detail.value;this.attrsList.forEach((function(t){-1!==i.indexOf(t.id+"")?t.checked=!0:t.checked=!1})),i.length==this.attrsList.length?this.isAllSelect=!0:this.isAllSelect=!1},forGoods:function(t){this.attrsList.length&&this.attrsList.forEach((function(i){i.checked=!!t}))},checkboxAllChange:function(t){var i=t.detail.value;i.length?(this.isAllSelect=!0,this.forGoods(1)):(this.isAllSelect=!1,this.forGoods(0))},manageTap:function(){this.administer=!this.administer},priceCloseDrawer:function(){this.visibleStock=!1},successChange:function(t){this.visibleStock=!1,this.attrsList.forEach((function(i){i.checked&&(i.currentStock=t.currentStock,i.current=t.current)})),this.manageTap()}}};i.default=c}).call(this,n("df3c")["default"])},c7a5:function(t,i,n){"use strict";n.r(i);var e=n("b00d"),c=n.n(e);for(var s in e)["default"].indexOf(s)<0&&function(t){n.d(i,t,(function(){return e[t]}))}(s);i["default"]=c.a},d241:function(t,i,n){"use strict";n.d(i,"b",(function(){return e})),n.d(i,"c",(function(){return c})),n.d(i,"a",(function(){}));var e=function(){var t=this.$createElement;this._self._c},c=[]},db25:function(t,i,n){"use strict";(function(t,i){var e=n("47a9");n("7561");e(n("3240"));var c=e(n("73a1"));t.__webpack_require_UNI_MP_PLUGIN__=n,i(c.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])}},[["db25","common/runtime","common/vendor"]]]);