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 line
6.3 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package1/inventory/inventoryUpNew"],{"0c35":function(t,e,i){"use strict";i.r(e);var s=i("3fb2"),o=i.n(s);for(var c in s)["default"].indexOf(c)<0&&function(t){i.d(e,t,(function(){return s[t]}))}(c);e["default"]=o.a},2464:function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return c})),i.d(e,"a",(function(){return s}));var s={uniIcons:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(i.bind(null,"6bbb6"))},uniPopup:function(){return i.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(i.bind(null,"2864"))}},o=function(){var t=this,e=t.$createElement,i=(t._self._c,t.carList.length);t._isMounted||(t.e0=function(e){return t.$refs.upNewPopup.open()}),t.$mp.data=Object.assign({},{$root:{g0:i}})},c=[]},2752:function(t,e,i){"use strict";i.r(e);var s=i("2464"),o=i("0c35");for(var c in o)["default"].indexOf(c)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(c);i("284d");var n=i("828b"),a=Object(n["a"])(o["default"],s["b"],s["c"],!1,null,null,null,!1,s["a"],void 0);e["default"]=a.exports},"284d":function(t,e,i){"use strict";var s=i("3e3f"),o=i.n(s);o.a},"3e3f":function(t,e,i){},"3fb2":function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={components:{},data:function(){return{bigImg:[],swiperDotIndex:0,canvasshow:!1,indexList:[],isCheck:!0,pageNum:1,shopList:[],info:0,classId:"",gateType:"",goodsList:[],categoryId:"",searchName:"",shopId:"",checkbox:"",id:"",carList:[],zheng:"",fu:"",khName:[],carNum:0,carType:0,type:"",gwcList:[],data:{},height:0,base64:"",shareSuccess:!1,tempFilePath:"",mini_program_openid:"",unionid:"",official_account_openid:"",customerCategoryList:[],FWHPic:"https://jewel-shop.oss-cn-beijing.aliyuncs.com/f2ba2080aaa54c618c2e47df4f220087.png"}},onLoad:function(t){this.geetGoodsInfo(t.id),this.getCustomerCategoryList()},methods:{getCustomerCategoryList:function(){var e=this;this.tui.request("/app/customerCategory/getCustomerCategoryListByShopId","POST",{shopId:t.getStorageSync("shopId")},!1,!0).then((function(t){if(200==t.code)if(t.result.length>0){e.customerCategoryList=t.result;for(var i=0;i<e.customerCategoryList.length;i++){var s={categoryName:e.customerCategoryList[i].categoryName,categoryId:e.customerCategoryList[i].id,categoryPrice:""};e.customerCategoryList[i]=s}}else e.customerCategoryList=null;else e.tui.toast(t.message)})).catch((function(t){}))},geetGoodsInfo:function(t){var e=this;this.tui.request("/app/purchase/getPurchaseAllData","post",{id:t},!1,!0).then((function(t){if(200==t.code){for(var i=0;i<t.result.purchaseDetails.length;i++)""!=t.result.purchaseDetails&&(t.result.purchaseDetails[i].checked=!1);e.$nextTick((function(){e.shopList=t.result.purchaseDetails}))}else e.tui.toast(t.message)})).catch((function(t){}))},lunbochange:function(t){this.current=t.detail.current},largeImg:function(t){if(null==t.productPicture&&null==t.productPictures||""==t.productPicture&&null==t.productPictures)this.tui.toast("暂无可展示的图片",300);else{if(this.bigImg=[],null!=t.productPicture){var e={productPicture:t.productPicture};this.bigImg.push(e)}if(null!=t.productPictures)for(var i=0;i<t.productPictures.length;i++)this.bigImg.push(t.productPictures[i]);this.$refs.imgPopup.open()}},upNewRemind:function(){this.checkUserClass("4"),this.$refs.upNewPopup.close()},checkUserClass:function(t,e){if(0!=this.carList.length){if("31"==t){for(var i=0;i<this.customerCategoryList.length;i++)this.upNew("3",this.customerCategoryList[i]);this.upNew("5","")}else"3"==t?this.upNew("3",e):"0"==t?this.upNew("0",""):"1"==t?this.upNew("1",""):"4"==t&&this.upNew("3",this.khName)}else this.tui.toast("请选择商品后再推送")},upNew:function(e,i){var s=this;if(this.$refs.upNewPopup.close(),this.data={shareType:"2",shareProductId:this.carList},this.data.priceType="5"==e?"1":"4"==e?""!=this.khName.categoryId&&null!=this.khName.categoryId&&"null"!=this.khName.categoryId?"3":"1":e,"3"==e){var o={id:i