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
5.5 KiB
1 line
5.5 KiB
|
2 months ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package1/inventory/goodsDelete"],{"2cc6":function(t,e,i){"use strict";i.r(e);var s=i("ba25"),a=i.n(s);for(var n in s)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return s[t]}))}(n);e["default"]=a.a},"4e46":function(t,e,i){"use strict";(function(t,e){var s=i("47a9");i("7859");s(i("3240"));var a=s(i("8651"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(a.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},"725a":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return s}));var s={uniSearchBar:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar")]).then(i.bind(null,"f56e"))},uLoadmore:function(){return Promise.all([i.e("common/vendor"),i.e("uni_modules/uview-ui/components/u-loadmore/u-loadmore")]).then(i.bind(null,"9fc5"))},uniPopup:function(){return i.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(i.bind(null,"2864"))}},a=function(){var t=this.$createElement;this._self._c;this._isMounted||(this.e0=function(t){return this.$refs.delPopup.close()})},n=[]},8651:function(t,e,i){"use strict";i.r(e);var s=i("725a"),a=i("2cc6");for(var n in a)["default"].indexOf(n)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(n);i("a23d");var r=i("828b"),c=Object(r["a"])(a["default"],s["b"],s["c"],!1,null,null,null,!1,s["a"],void 0);e["default"]=c.exports},a23d:function(t,e,i){"use strict";var s=i("aa88"),a=i.n(s);a.a},aa88:function(t,e,i){},ba25:function(t,e,i){"use strict";(function(t,s){var a=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("7eb4")),r=a(i("af34")),c=a(i("ee10")),o={components:{},data:function(){return{indexList:[],pageNum:1,shopList:[],shopList1:[],info:0,goodsList:[],categoryId:"",searchName:"",shopId:"",checkbox:"",id:"",carList:[],carNum:0,carType:0,type:"",gwcList:[],checkPayData:"",data:{},height:0}},onReachBottom:function(){this.pageNum>=this.pages||(this.pageNum++,this.getShareList())},onLoad:function(e){this.height=t.getSystemInfoSync().windowHeight,void 0!=e.khid?s.redirectTo({url:"/package1/index/downStearmList?khid="+e.khid}):(this.type=s.getStorageSync("type"),this.getGategoryList())},methods:{getGategoryList:function(){var t=this;this.tui.request("/app/productCategory/list","get",{},!1,!0).then((function(e){if(200==e.code){t.indexList=e.result;for(var i=0;i<t.indexList.length;i++)t.indexList[i].parentId=0==i;t.categoryId=t.indexList[0].id,t.pageNum=1,t.searchName="",t.shopList1=[],t.shopList=[],t.getShareList()}else t.tui.toast(e.message)})).catch((function(t){}))},getShareList:function(t){var e=this;return(0,c.default)(n.default.mark((function i(){return n.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return e,e.goodsList=[],i.next=4,e.tui.request("/app/product/getShareList","POST",{categoryId:""==e.searchName?e.categoryId:"",searchStr:e.searchName,pageNum:e.pageNum,pageSize:"10"},!1,!1).then((function(i){if(200==i.code){for(var s=0;s<i.result.records.length;s++)""!=i.result.records&&(i.result.records[s].checked=!1);e.$nextTick((function(){"search"==t?(e.shopList=[],e.status="nomore",1==e.pages?e.shopList1=i.result.records:e.shopList1=[].concat((0,r.default)(e.shopList1),(0,r.default)(i.result.records)),e.pages=i.result.pages):(e.shopList1=[],e.status="nomore",1==e.pages?e.shopList=i.result.records:e.shopList=[].concat((0,r.default)(e.shopList),(0,r.default)(i.result.records)),e.pages=i.result.pages)}))}else e.tui.toast(i.message)})).catch((function(t){}));case 4:return i.next=6,e.getCheck();case 6:case"end":return i.stop()}}),i)})))()},search:function(t){""==t.value?(this.searchName="",this.getShareList()):(this.searchName=t.value,this.getShareList("search"))},clearSearch:function(){this.searchName="",this.getGategoryList()},getCheck:function(){if(""!=this.carList)if(""!=this.searchName)for(var t=0;t<this.carList.length;t++)for(var e=0;e<this.shopList.length;e++)this.carList[t]==this.shopList[e].id&&(this.shopList[e
|