(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-34a2d722"],{"14d9":function(t,e,r){"use strict";var a=r("23e7"),i=r("7b0b"),o=r("07fa"),n=r("3a34"),s=r("3511"),c=r("d039"),d=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},u=d||!l();a({target:"Array",proto:!0,arity:1,forced:u},{push:function(t){var e=i(this),r=o(e),a=arguments.length;s(r+a);for(var c=0;c0&&(this.orderCacheKey="bid_order_edit1"),this.loadParams()},methods:{isSelected:function(t){var e=s["a"].get(this.orderCacheKey);console.log(t);for(var r=0;r0?this.$router.push({path:"/bid/orders/"+t.id+"/edit",query:{pkg_id:this.pkgID,step:3}}):this.$router.push({path:"/bid/detail",query:{pkg_id:this.pkgID,step:3}})},loadParams:function(){var t=this;Object(n["a"])({params:"material_room_type,material_bid_category"}).then((function(e){var r=[{text:"选择类别",value:-1}];e.data.material_bid_category.forEach((function(t){r.push({text:t.name,value:t.id})})),t.categoryList=r,console.log(t.categoryList);var a=[{text:"房屋类型",value:-1}];e.data.material_room_type.forEach((function(t){a.push({text:t.name,value:t.id})})),t.roomList=a}))},handleSelectItem:function(t){t.selected=1;var e=s["a"].get(this.orderCacheKey);e.customize[this.category].push({id:t["id"],num:1,room_type_name:t["room_type_name"],category_name:t["category_name"],bid_name:t["bid_name"],unit_name:t["unit_name"],price:t["price"]}),s["a"].set(this.orderCacheKey,e)},refresh:function(){return console.log("ok"),this.finished=!1,this.loading=!1,this.error=!1,this.page=1,this.bidList=[],this.loadBidList(),!0},loadBidList:function(){var t=this;this.loading=!0,Object(o["d"])({page:this.page++,pkg_id:this.pkgID,category:this.category,room_type:this.roomID,level:2,bid_name:this.bidName}).then((function(e){for(var r in t.loading=!1,e.data.lengthi)throw a("Maximum allowed index exceeded");return t}},"3a34":function(t,e,r){"use strict";var a=r("83ab"),i=r("e8b5"),o=TypeError,n=Object.getOwnPropertyDescriptor,s=a&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(i(t)&&!n(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},a3ea:function(t,e,r){"use strict";r.d(e,"f",(function(){return i})),r.d(e,"e",(function(){return o})),r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return s})),r.d(e,"d",(function(){return c})),r.d(e,"c",(function(){return d}));var a=r("0088");function i(t){return Object(a["a"])({url:"bid/outline",method:"get",params:t})}function o(){return Object(a["a"])({url:"bid/detail",method:"get"})}function n(t){return Object(a["a"])({url:"bid/detail_calc",method:"post",data:t})}function s(t){return Object(a["a"])({url:"bid/detail_calc_toilet",method:"post",data:t})}function c(t){return Object(a["a"])({url:"bids",method:"get",params:t})}function d(t){return Object(a["a"])({url:"bid/export",method:"get",params:{pkg_id:t}})}},cf57:function(t,e,r){},ead7:function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var a=r("0088");function i(t){return Object(a["a"])({url:"params",method:"get",params:t})}},f905:function(t,e,r){"use strict";r("cf57")}}]);