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
20 KiB
1 line
20 KiB
|
2 months ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package1/inventory/changeGoods1"],{"33cd":function(t,i,e){"use strict";(function(t,s){var r=e("47a9");Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=r(e("af34")),o={components:{},data:function(){return{indexList:[],pageNum:1,shopList:[],shopList1:[],info:0,zheng:"",fu:"",categoryId:"",searchName:"",temporaryNum:0,allChangeNum:0,goodsDetail:[],attrNameList:[],temporaryList:[],carList:[],bigImg:[],columns:[],keyList:[],evalue:[],customerCategoryList:[],show:!1,attributeList:{},purchasePrice:"",zPrice:0,zNum:0,storageType:0,carNum:0,swiperDotIndex:0,carType:0,productId:"",productNum:0,isPlusAndMinus:!1,height:0,oldTemList:[],pageOldTemList:[],goodsList:[],newTemList:[],pecsList:[],gateType:"",screenHeight:0,dataObj:new Map}},filters:{sliceMsg:function(t){var i="";if("string"==typeof t){var e=JSON.parse(t);for(var s in e)i+=e[s]+"/"}return i},maxNum:function(t){return t>=10?10:t<0?0:void 0}},onLoad:function(){this.height=t.getSystemInfoSync().windowHeight,this.storageType=s.getStorageSync("type")},onShow:function(){var t=s.getSystemInfoSync();this.screenHeight=t.screenHeight,this.pageNum=1,this.searchName="",this.shopList=[],this.shopList1=[],this.getGategoryList(),this.getCustomerCategoryList()},onReachBottom:function(){console.log("触底"),this.pageNum>=this.pages||(this.pageNum++,"search"==this.gateType?this.getShareList("search"):this.getShareList())},methods:{getGategoryList:function(){var t=this;this.tui.request("/app/productCategory/list","get",{},!1,!0).then((function(i){if(200==i.code){t.indexList=i.result;for(var e=0;e<t.indexList.length;e++)t.indexList[e].parentId=0==e;t.categoryId=t.indexList[0].id,t.getShareList()}else t.tui.toast(i.message)})).catch((function(t){}))},combination:function(t){var i=[[]];return t.map((function(t){var e=[];i.map((function(i){t.specs.map((function(t){e.push([].concat((0,a.default)(i),[t]))}))})),i=e})),i},saveCheck:function(){this.pageOldTemList=this.temporaryList;for(var t=0;t<this.goodsDetail.attributeList.length;t++){this.goodsList[t].specs=[];for(var i=0;i<this.goodsDetail.attributeList[t].value.length;i++)this.goodsDetail.attributeList[t].value[i].isChecked=!1}},clickClose:function(){this.evalue=[],this.allChangeNum=0},allChange:function(t){if(this.linshiPrice==t.target.value?this.allChangeNum=t.target.value:""==t.target.value?this.allChangeNum=this.linshiPrice:this.allChangeNum=t.target.value,0==this.isPlusAndMinus)for(var i=0;i<this.temporaryList.length;i++){if(0==this.evalue.length)this.temporaryList[i].productCount=Number(this.allChangeNum);else for(var e=0;e<this.evalue.length;e++)this.evalue[e]==this.temporaryList[i].name&&(this.temporaryList[i].productCount=Number(this.allChangeNum));for(var s=0;s<this.pageOldTemList.length;s++)this.temporaryList[i].attributeList==this.pageOldTemList[s].attributeList&&(this.pageOldTemList[s].productCount=this.temporaryList[i].productCount);for(e=0;e<this.oldTemList.length;e++)this.temporaryList[i].attributeList==this.oldTemList[e].attributeList&&(this.oldTemList[e].productCount=this.temporaryList[i].productCount)}this.isPlusAndMinus,this.temporaryChange("")},seeStockCount:function(t,i){this.zheng=t,this.fu=i,this.$refs.showPopup.open()},plusNum:function(){this.isPlusAndMinus;for(var t=0;t<this.temporaryList.length;t++){if(0==this.evalue.length)void 0==this.temporaryList[t].productCount?this.temporaryList[t].productCount=1:this.temporaryList[t].productCount++;else for(var i=0;i<this.evalue.length;i++)this.evalue[i]==this.temporaryList[t].name&&(void 0==this.temporaryList[t].productCount?this.temporaryList[t].productCount=1:this.temporaryList[t].productCount>=0&&this.temporaryList[t].productCount++);for(var e=0;e<this.pageOldTemList.length;e++)this.temporaryList[t].attributeList==this.pageOldTemList[e].attributeList&&(this.pageOldTemList[e].productCount=this.temporaryList[t].productCount);for(i=0;i<this.oldTemList.length;i++)this.temporaryList[t].attributeList==this.oldTemList[i].attributeList&&(this.oldTemList[i].productCount=this.temporaryList[t].produ
|