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"],{"3bbd":function(t,i,e){"use strict";e.r(i);var s=e("6d8b"),r=e.n(s);for(var a in s)["default"].indexOf(a)<0&&function(t){e.d(i,t,(function(){return s[t]}))}(a);i["default"]=r.a},"659e":function(t,i,e){"use strict";e.r(i);var s=e("f2a1"),r=e("3bbd");for(var a in r)["default"].indexOf(a)<0&&function(t){e.d(i,t,(function(){return r[t]}))}(a);e("d508");var o=e("828b"),u=Object(o["a"])(r["default"],s["b"],s["c"],!1,null,null,null,!1,s["a"],void 0);i["default"]=u.exports},"6d8b":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:[],shopOwnerPhone:t.getStorageSync("shopOwnerPhone"),username:t.getStorageSync("username"),info:0,shopId:t.getStorageSync("shopId"),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:"",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=s.getSystemInfoSync().windowHeight,this.storageType=t.getStorageSync("type")},onShow:function(){this.pageNum=1,this.searchName="",this.shopList=[],this.shopList1=[],this.getGategoryList(),this.getCustomerCategoryList()},onReachBottom:function(){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.temporaryL
|