(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=0&&this.temporaryList[t].productCount++);for(var e=0;e0&&this.temporaryList[t].productCount--;for(var e=0;e0&&a++;var u=[];a==this.goodsList.length&&(u=this.combination(this.goodsList)),this.evalue=[];for(var h=[],n=0;n0&&g&&this.newTemList.push(this.oldTemList[o])}for(o=0;o0&&m&&this.newTemList.push(this.pageOldTemList[o])}}this.$nextTick((function(){for(var t=0;t0&&(this.carList[t].saleDetailQueryDTO[i].productCount--,this.carList[t].num--),this.temporaryChange("che")):(this.temporaryList[t].productCount<=0?this.temporaryList[t].productCount=0:this.temporaryList[t].productCount--,this.temporaryChange(""))},onePlusNum:function(t,i,e){""!=e?(this.carList[t].saleDetailQueryDTO[i].productCount>=0&&(this.carList[t].saleDetailQueryDTO[i].productCount++,this.carList[t].num++),this.temporaryChange("che")):(this.temporaryList[t].productCount<0?this.temporaryList[t].productCount=0:this.temporaryList[t].productCount++,this.temporaryChange(""))},dialogInputConfirm:function(t){if(""!=this.categoryText){this.$refs.inputDialog.close();var i={isChecked:!1,value:this.categoryText};"0"==this.isOpenId?(this.goodsDetail.attributeList[0].value.push(i),this.dataObj.set(i.value,"颜色")):"1"==this.isOpenId&&(this.goodsDetail.attributeList[1].value.push(i),this.dataObj.set(i.value,"尺码")),this.categoryText="",this.$refs.clearInput.onClear(),this.$forceUpdate()}else this.tui.toast("请输入规格值后提交")},dialogClose:function(){this.inputVal="",this.$refs.inputDialog.close(),this.$refs.clearInput.onClear(),this.categoryText=""},obtainPrice:function(t,i,e,s){this.linshiPrice=t.target.value,"zongjishu"==i?this.allChangeNum="":"danjishu"==i?(this.temporaryList[e].productCount="",this.$forceUpdate()):"chejishu"==i&&(this.carList[e].saleDetailQueryDTO[s].productCount="",this.$forceUpdate())},clickMask:function(i){var e="";e=0==i.delFlag?"请将商品上架后再操作!":"请将上次入库的采购价维护后再进行操作!",t.showToast({title:e,icon:"none"})},getCustomerCategoryList:function(){var i=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){i.customerCategoryList=t.result;for(var e=0;e