(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["package1/billing/changeGoods1"],{2861:function(t,e,s){"use strict";var i=s("3759"),r=s.n(i);r.a},3759:function(t,e,s){},"42b8":function(t,e,s){"use strict";s.r(e);var i=s("7cef"),r=s("4d73");for(var o in r)["default"].indexOf(o)<0&&function(t){s.d(e,t,(function(){return r[t]}))}(o);s("2861");var a=s("828b"),u=Object(a["a"])(r["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=u.exports},"4d73":function(t,e,s){"use strict";s.r(e);var i=s("aa34"),r=s.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){s.d(e,t,(function(){return i[t]}))}(o);e["default"]=r.a},"52bc":function(t,e,s){"use strict";(function(t,e){var i=s("47a9");s("7859");i(s("3240"));var r=i(s("42b8"));t.__webpack_require_UNI_MP_PLUGIN__=s,e(r.default)}).call(this,s("3223")["default"],s("df3c")["createPage"])},"7cef":function(t,e,s){"use strict";s.d(e,"b",(function(){return r})),s.d(e,"c",(function(){return o})),s.d(e,"a",(function(){return i}));var i={uniSearchBar:function(){return Promise.all([s.e("common/vendor"),s.e("uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar")]).then(s.bind(null,"f56e"))},uniIcons:function(){return Promise.all([s.e("common/vendor"),s.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(s.bind(null,"6bbb6"))},uLoadmore:function(){return Promise.all([s.e("common/vendor"),s.e("uni_modules/uview-ui/components/u-loadmore/u-loadmore")]).then(s.bind(null,"9fc5"))},uniPopup:function(){return s.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(s.bind(null,"2864"))},uniDataCheckbox:function(){return Promise.all([s.e("common/vendor"),s.e("uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox")]).then(s.bind(null,"fab5"))},uKeyboard:function(){return Promise.all([s.e("common/vendor"),s.e("uni_modules/uview-ui/components/u-keyboard/u-keyboard")]).then(s.bind(null,"e056"))}},r=function(){var t=this,e=t.$createElement,s=(t._self._c,t.carList.length),i=t.__map(t.carList,(function(e,s){var i=t.__get_orig(e),r=t.__map(e.saleDetailQueryDTO,(function(e,s){var i=t.__get_orig(e),r=t._f("sliceMsg")(e.attributeList);return{$orig:i,f0:r}}));return{$orig:i,l0:r}}));t._isMounted||(t.e0=function(e){return t.$refs.goodsNumDialog.close()},t.e1=function(e){t.show=!0},t.e2=function(t){return this.$refs.carPopup.close()},t.e3=function(e){return t.$refs.showPopup.close()}),t.$mp.data=Object.assign({},{$root:{g0:s,l1:i}})},o=[]},aa34:function(t,e,s){"use strict";(function(t,i){var r=s("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(s("7eb4")),a=r(s("34cf")),u=r(s("ee10")),n=r(s("af34")),h={components:{},data:function(){return{indexList:[],focus:!1,pageNum:1,shopList:[],shopList1:[],show:!1,categoryId:"",searchName:"",checkbox:[],temporaryNum:0,allChangeNum:0,defaultText:0,checkCanBuy:[],oneGoodsSpec:[],goodsDetail:[],attrNameList:[],keyboard:"",oneGoodsName:"",temporaryList:[],isPlusAndMinus:!1,carList:[],zheng:"",fu:"",shopId:t.getStorageSync("shopId"),attributeList:[],purchasePrice:0,keyboardIndex:"",zPrice:0,zNum:0,goodsNum:"",storageType:"",keyboardNum:"",carNum:0,carType:0,type:"",productId:"",productNum:null,height:0,pecsList:[],pageOldTemList:[],oldTemList:[],bigImg:[],swiperDotIndex:0,goodsList:[],khId:"",customerId:"",customerName:"",evalue:[],newTemList:[],dataObj:new Map,gateType:"",yanseList:new Map,chimaList:new Map}},filters:{sliceMsg:function(t){var e="";if("string"==typeof t){var s=JSON.parse(t);for(var i in s)e+=s[i]+" | "}return e}},onReachBottom:function(){this.pageNum>=this.pages||(this.pageNum++,"search"==this.gateType?this.getShareList("search"):this.getShareList())},onLoad:function(e){var s=this;this.khId=e.khId,this.customerId=e.customerId,this.customerName=e.customerName,this.height=i.getSystemInfoSync().windowHeight,this.carList=JSON.parse(e.arr);for(var r=function(t){""!=s.carList[t].returnList&&void 0!=s.carList[t].returnList&&(s.carList[t].returnList=new Map(JSON.parse(decodeURIComponent(s.carList[t].returnList))),s.carList[t].returnList.forEach((function(e,i){for(var r=0;r0&&i.seeCustomCategory()}),500),this.shopList.length>0)for(var o=0;o0)for(var a=0;athis.temporaryList[e].productNum&&("1838094297858183168"==this.shopId||"1811579958284390400"==this.shopId||"1818888277105709056"==this.shopId)?this.tui.toast("已超出可售数量",300):(this.temporaryList[e].productCount=t,this.temporaryList[e].productCount<0&&"散客"!=this.customerName&&this.checkCanReturn(this.goodsDetail.productSn,this.goodsDetail.id,this.temporaryList[e].attributeList,this.customerId,this.temporaryList[e].productCount),setTimeout((function(t){s.checkCanBuy.length>0&&s.seeCustomCategory()}),500),this.$forceUpdate(),this.temporaryChange())},allChange:function(t){var e=this;if(this.allChangeNum=t,0==this.isPlusAndMinus)for(var s=0;sthis.temporaryList[s].productNum&&("1838094297858183168"==this.shopId||"1811579958284390400"==this.shopId||"1818888277105709056"==this.shopId)?this.tui.toast(this.temporaryList[s].name+"已超出可售数量",300):(this.temporaryList[s].productCount=Number(this.allChangeNum),this.temporaryList[s].productCount<0&&"散客"!=this.customerName&&this.checkCanReturn(this.goodsDetail.productSn,this.goodsDetail.id,this.temporaryList[s].attributeList,this.customerId,this.temporaryList[s].productCount));else for(var i=0;ithis.temporaryList[s].productNum&&("1838094297858183168"==this.shopId||"1811579958284390400"==this.shopId||"1818888277105709056"==this.shopId)?this.tui.toast(this.temporaryList[s].name+"已超出可售数量",300):(this.temporaryList[s].productCount=Number(this.allChangeNum),this.temporaryList[s].productCount<0&&"散客"!=this.customerName&&this.checkCanReturn(this.goodsDetail.productSn,this.goodsDetail.id,this.temporaryList[s].attributeList,this.customerId,this.temporaryList[s].productCount)));for(var r=0;r0&&e.seeCustomCategory()}),500),this.isPlusAndMinus,this.temporaryChange()},plusNum:function(){this.isPlusAndMinus;for(var t=0;tthis.temporaryList[t].productNum&&("1838094297858183168"==this.shopId||"1811579958284390400"==this.shopId||"1818888277105709056"==this.shopId)?this.tui.toast(this.temporaryList[t].name+"已超出可售数量",300):this.temporaryList[t].productCount++;else for(var e=0;ethis.temporaryList[t].productNum&&("1838094297858183168"==this.shopId||"1811579958284390400"==this.shopId||"1818888277105709056"==this.shopId)?this.tui.toast(this.temporaryList[t].name+"已超出可售数量",300):this.temporaryList[t].productCount++);for(var s=0;s0&&t.seeCustomCategory()}),500),this.temporaryChange()},mapMinusNum:function(t,e){var s=this;if(this.carList[t].saleDetailQueryDTO[e].productCount--,this.carList[t].saleDetailQueryDTO[e].productCount<0&&"散客"!=this.customerName&&this.checkCanReturn(this.carList[t].productSn,this.carList[t].id,this.carList[t].saleDetailQueryDTO[e].attributeList,this.customerId,this.carList[t].saleDetailQueryDTO[e].productCount),setTimeout((function(t){s.checkCanBuy.length>0&&s.seeCustomCategory()}),500),this.shopList.length>0)for(var i=0;i0)for(var r=0;r0)for(var s=0;s0)for(var i=0;i0&&e.seeCustomCategory()}),500),this.temporaryChange()},onePlusNum:function(t){this.temporaryList[t].productCount+1>this.temporaryList[t].productNum&&("1838094297858183168"==this.shopId||"1811579958284390400"==this.shopId||"1818888277105709056"==this.shopId)?this.tui.toast("已超出可售数量",300):(this.temporaryList[t].productCount++,this.temporaryChange())},obtainPrice:function(t,e,s,i){this.show=!0,"zongjishu"==e?this.keyboard="zongjishu":"danjishu"==e?(this.keyboard="danjishu",this.keyboardIndex=s):"chejishu"==e&&(this.keyboard="chejishu",this.keyboardIndex=[s,i])},attrNameChange:function(e,s,i){var r=this;t.showLoading({title:"加载中..."}),this.goodsDetail.attributeList[e].isChecked=!this.goodsDetail.attributeList[e].isChecked,this.goodsDetail.attributeList[e].value[i].isChecked=!this.goodsDetail.attributeList[e].value[i].isChecked,this.evalue=[];for(var o=[],a=0,u=this.goodsDetail.attributeList[0].value;a0&&g&&this.newTemList.push(this.oldTemList[p])}for(p=0;p0&&f&&this.newTemList.push(this.pageOldTemList[p])}}this.$nextTick((function(){for(var t=0;t0)for(var u=0;u0)for(var d=0;d0?r.goodsNum=r.carList[a].saleDetailQueryDTO[0].productCount:r.goodsNum=0,r.zNum=r.carList[a].num,r.temporaryList=r.carList[a].saleDetailQueryDTO,r.pageOldTemList=r.carList[a].saleDetailQueryDTO,r.oldTemList=r.carList[a].saleDetailQueryDTO);return i.next=8,s.tui.request("/app/productAttribute/selectAttributeAndValueByCategoryId","POST",{categoryId:s.goodsDetail.attrId},!1,!0).then((function(t){if(200==t.code){if("string"==typeof t.result.attributeAndValue){var e=JSON.parse(t.result.attributeAndValue),i=[];for(var o in e){for(var a=[],u=0;u1&&(e=i[0]+"."+i.slice(1).join(""));var r="",o="";if(e.includes(".")){var u=e.split("."),n=(0,a.default)(u,2);r=n[0],o=n[1]}else r=e;r=r.replace(/^0+/,""),""===r&&(r="0");var h=""===o?r:"".concat(r,".").concat(o);return"0"!==r||""!==o&&!/^0*$/.test(o)||(h="0",s=""),s+h},oneGoodsToCarList:function(){var t=this;return(0,u.default)(o.default.mark((function e(){var s,i,r,a,u,n;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=t,t.goodsNum=t.handleNumber(t.goodsNum),"1838094297858183168"!=t.shopId&&"1811579958284390400"!=t.shopId&&"1818888277105709056"!=t.shopId){e.next=6;break}if(!(t.goodsNum>t.goodsDetail.stockCount)){e.next=6;break}return t.tui.toast("已超出可售数量",1e3),e.abrupt("return");case 6:if(s.shopList.length>0)for(i=0;i0)for(r=0;r0&&t.seeCustomCategory()}),500)}));case 21:return e.next=23,t.$nextTick((function(){for(var e=0;e0)for(var u=0;u0)for(var n=0;n