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.6 KiB
1 lines
3.6 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package1/AI/AiChangeGoods"],{"0257":function(t,e,n){"use strict";n.r(e);var i=n("3855"),a=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=a.a},3855:function(t,e,n){"use strict";(function(t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={components:{},data:function(){return{indexList:[],pageNum:1,shopList:[],zheng:"",fu:"",shopList1:[],categoryId:"",searchName:"",height:0,gateType:""}},onLoad:function(){this.height=t.getSystemInfoSync().windowHeight},onShow:function(){this.getGategoryList()},methods:{seeStockCount:function(t,e){this.zheng=t,this.fu=e,this.$refs.showPopup.open()},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 n=0;n<t.indexList.length;n++)t.indexList[n].parentId=0==n;t.categoryId=t.indexList[0].id,t.getShareList()}else t.tui.toast(e.message)})).catch((function(t){}))},backPrevPage:function(t){t.productId=t.id;var e=getCurrentPages(),i=e[e.length-2];i.$vm.carList1=t,i.$vm.merge=1,n.navigateBack({delta:1})},getShareList:function(t){var e=this,n={};"search"==t?(this.gateType="search",n={categoryId:"",searchStr:this.searchName,pageNum:this.pageNum,pageSize:"100"}):(this.gateType="",n={categoryId:this.categoryId,searchStr:this.searchName,pageNum:this.pageNum,pageSize:"100"}),this.tui.request("/app/product/getShareList","POST",n,!1,!1).then((function(n){200==n.code?"search"==t?(e.shopList=[],e.shopList1=n.result.records):(e.shopList1=[],e.shopList=n.result.records):e.tui.toast(n.message)})).catch((function(t){}))},goAddGoods:function(){n.navigateTo({url:"/package1/inventory/addGoods"})},search:function(t){""==t.value?(this.searchName="",this.getShareList()):(this.searchName=t.value,this.getShareList("search"))},clearSearch:function(){this.searchName="",this.getShareList()},clickMask:function(t){var e="";e=0==t.delFlag?"请将商品上架后再操作!":"请将上次入库的采购价维护后再进行操作!",n.showToast({title:e,icon:"none"})},clickLeftBtn:function(t){for(var e=0;e<this.indexList.length;e++)this.indexList[e].parentId=e==t;this.categoryId=this.indexList[t].id,this.getShareList()}}};e.default=i}).call(this,n("3223")["default"],n("df3c")["default"])},6540:function(t,e,n){"use strict";var i=n("8fa6"),a=n.n(i);a.a},"71c8":function(t,e,n){"use strict";(function(t,e){var i=n("47a9");n("7859");i(n("3240"));var a=i(n("7665"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},7665:function(t,e,n){"use strict";n.r(e);var i=n("aa68"),a=n("0257");for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n("6540");var o=n("828b"),r=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=r.exports},"8fa6":function(t,e,n){},aa68:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var i={uniSearchBar:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar")]).then(n.bind(null,"f56e"))},uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"6bbb6"))},uniPopup:function(){return n.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(n.bind(null,"2864"))}},a=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){return t.$refs.showPopup.close()})},s=[]}},[["71c8","common/runtime","common/vendor"]]]);
|