123 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cecf26ae"],{"0c47":function(t,e,i){"use strict";var o=i("da84"),r=i("d44e");r(o.JSON,"JSON",!0)},"131a":function(t,e,i){"use strict";var o=i("23e7"),r=i("d2bb");o({target:"Object",stat:!0},{setPrototypeOf:r})},"14d9":function(t,e,i){"use strict";var o=i("23e7"),r=i("7b0b"),n=i("07fa"),a=i("3a34"),s=i("3511"),c=i("d039"),h=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},l=h||!u();o({target:"Array",proto:!0,arity:1,forced:l},{push:function(t){var e=r(this),i=n(e),o=arguments.length;s(i+o);for(var c=0;c<o;c++)e[i]=arguments[c],i++;return a(e,i),i}})},"15e4":function(t,e,i){"use strict";i.d(e,"a",(function(){return r})),i.d(e,"d",(function(){return n})),i.d(e,"e",(function(){return a})),i.d(e,"f",(function(){return s})),i.d(e,"c",(function(){return c})),i.d(e,"b",(function(){return h}));var o=i("0088");function r(t){return Object(o["a"])({url:"bid/orders",method:"post",data:t})}function n(t){return Object(o["a"])({url:"bid/orders/".concat(t),method:"get"})}function a(t){return Object(o["a"])({url:"bid/orders",method:"get",params:t})}function s(t,e){return Object(o["a"])({url:"bid/orders/".concat(t),method:"put",data:e})}function c(t){return Object(o["a"])({url:"bid/orders/".concat(t,"/export"),method:"get"})}function h(t){return Object(o["a"])({url:"bid/orders/".concat(t),method:"delete"})}},"1da1":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));i("d3b7");function o(t,e,i,o,r,n,a){try{var s=t[n](a),c=s.value}catch(t){return void i(t)}s.done?e(c):Promise.resolve(c).then(o,r)}function r(t){return function(){var e=this,i=arguments;return new Promise((function(r,n){var a=t.apply(e,i);function s(t){o(a,r,n,s,c,"next",t)}function c(t){o(a,r,n,s,c,"throw",t)}s(void 0)}))}}},"23dc":function(t,e,i){"use strict";var o=i("d44e");o(Math,"Math",!0)},"26e9":function(t,e,i){"use strict";var o=i("23e7"),r=i("e330"),n=i("e8b5"),a=r([].reverse),s=[1,2];o({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return n(this)&&(this.length=this.length),a(this)}})},3410:function(t,e,i){"use strict";var o=i("23e7"),r=i("d039"),n=i("7b0b"),a=i("e163"),s=i("e177"),c=r((function(){a(1)}));o({target:"Object",stat:!0,forced:c,sham:!s},{getPrototypeOf:function(t){return a(n(t))}})},3511:function(t,e,i){"use strict";var o=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw o("Maximum allowed index exceeded");return t}},"3a34":function(t,e,i){"use strict";var o=i("83ab"),r=i("e8b5"),n=TypeError,a=Object.getOwnPropertyDescriptor,s=o&&!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(r(t)&&!a(t,"length").writable)throw new n("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},4342:function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t._self._c;return e("div",[e("van-nav-bar",{staticClass:"shadow mb-4",attrs:{title:"报价概算","left-text":"返回","left-arrow":""},on:{"click-left":function(e){return t.$router.back(-1)}}}),e("van-form",{ref:"form",staticClass:"mt-2 w-23/24 mx-auto",on:{submit:t.computer}},[e("p",{staticClass:"bg-yellow-600 bg-opacity-80 text-white px-4 py-2"},[t._v("添加信息")]),e("div",{staticClass:"shadow"},[e("van-field",{attrs:{name:"customer_name",label:"客户名称",placeholder:"客户名称",rules:[{message:"请填写客户名称"}]},model:{value:t.orderForm.customer_name,callback:function(e){t.$set(t.orderForm,"customer_name",e)},expression:"orderForm.customer_name"}}),e("van-field",{attrs:{type:"number",name:"customer_phone",label:"客户电话",placeholder:"客户电话",rules:[{message:"请填写客户电话"}]},model:{value:t.orderForm.customer_phone,callback:function(e){t.$set(t.orderForm,"customer_phone",e)},expression:"orderForm.customer_phone"}}),e("van-field",{attrs:{name:"address",label:"房屋地址",placeholder:"房屋地址",rules:[{message:"请填写房屋地址"}]},model:{value:t.orderForm.house_address,callback:function(e){t.$set(t.orderForm,"house_address",e)},expression:"orderForm.house_address"}}),e("van-field",{staticClass:"text-gray-600",attrs:{type:"number",name:"area",label:"房屋面积",placeholder:"房屋面积",rules:[{required:!0,message:"请填写房屋面积"}]},model:{value:t.orderForm.area,callback:function(e){t.$set(t.orderForm,"area",e)},expression:"orderForm.area"}}),e("van-field",{attrs:{name:"room_text",label:"房屋户型",placeholder:"房屋户型",readonly:"",rules:[{required:!0,message:"请选择户型"}]},on:{click:function(e){t.showHouseStylePicker=!0}},model:{value:t.orderForm.roomText,callback:function(e){t.$set(t.orderForm,"roomText",e)},expression:"orderForm.roomText"}}),e("van-popup",{attrs:{position:"bottom"},model:{value:t.showHouseStylePicker,callback:function(e){t.showHouseStylePicker=e},expression:"showHouseStylePicker"}},[e("van-picker",{attrs:{"show-toolbar":"",columns:t.houseStyle,"value-key":"name"},on:{confirm:t.onConfirm}})],1)],1),t.outline_price.area_price>0?e("div",{staticClass:"bg-white p-4 mt-2 shadow text-gray-500"},[e("div",{staticClass:"text-lg"},[t._v(" 套餐价格:"),e("span",{staticClass:"text-red-600"},[t._v(t._s(t.outline_price.area_price.toLocaleString())+" 元")])])]):t._e(),t.outline_price.room_price>0?e("div",{staticClass:"bg-white p-4 mt-2 shadow text-gray-500"},[e("div",{staticClass:"text-lg"},[t._v(" 增加房间:"),e("span",{staticClass:"text-red-600"},[t._v(t._s(t.outline_price.room_price.toLocaleString())+" 元")])])]):t._e(),t.outline_price.kitchen_price>0?e("div",{staticClass:"bg-white p-4 mt-2 shadow text-gray-500"},[e("div",{staticClass:"text-lg"},[t._v(" 增加厨房:"),e("span",{staticClass:"text-red-600"},[t._v(t._s(t.outline_price.kitchen_price.toLocaleString())+" 元")])])]):t._e(),t.outline_price.toilet_price>0?e("div",{staticClass:"bg-white p-4 mt-2 shadow text-gray-500"},[e("div",{staticClass:"text-lg"},[t._v(" 增加卫生间:"),e("span",{staticClass:"text-red-600"},[t._v(t._s(t.outline_price.toilet_price.toLocaleString())+" 元")])])]):t._e(),t.outline_price.extra_item_price>0?e("div",{staticClass:"bg-white p-4 mt-2 shadow text-gray-500"},[e("div",{staticClass:"text-lg"},[t._v(" 个性化项目:"),e("span",{staticClass:"text-red-600"},[t._v(t._s(t.outline_price.extra_item_price.toLocaleString())+" 元")])])]):t._e(),t.money>0?e("div",{staticClass:"bg-white p-4 mt-2 shadow text-gray-500"},[e("div",{staticClass:"text-lg"},[t._v(" 预计总价:"),e("span",{staticClass:"text-red-600"},[t._v(t._s(t.money.toLocaleString())+" 元")])])]):t._e(),e("div",{staticClass:"bg-white mt-4 shadow"},[e("p",{staticClass:"bg-blue-600 bg-opacity-80 text-white px-4 py-2"},[t._v("报价项目")]),e("van-collapse",{attrs:{accordion:""},model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},t._l(t.roomTypes,(function(i,o){return e("van-collapse-item",{key:o,attrs:{title:i.name,name:o}},[e("van-image",{staticStyle:{width:"100%"},attrs:{src:t.getPic(i.id)},on:{click:function(e){t.preview(t.getPic(i.id))}},scopedSlots:t._u([{key:"loading",fn:function(){return[e("van-loading",{attrs:{type:"spinner",size:"40"}})]},proxy:!0}],null,!0)})],1)})),1)],1),e("div",{staticClass:"fixed bottom-0 left-0 w-full xl:w-800px xl:left-400pxh text-white"},[e("van-button",{staticClass:"inline-block w-1/2 text-center",attrs:{type:"primary","native-type":"submit",loading:t.submitLoading}},[t._v("计算报价")]),e("van-button",{staticClass:"inline-block w-1/2 text-center",attrs:{type:"warning",loading:t.submitLoading},on:{click:t.handleSubmitOrder}},[t._v("保存")])],1)])],1)},r=[],n=(i("68ef"),i("a71a"),i("9d70"),i("3743"),i("09fe"),i("4d75"),i("e3b3"),i("8270"),i("786d"),i("504b"),i("c31d")),a=i("2b0e"),s=i("d282"),c=Object(s["a"])("image-preview"),h=c[0],u=c[1],l=i("6605"),d=i("3875"),f=i("5fbe"),m=i("ad06"),p=i("02de"),v=i("1325"),g=i("4598"),b=i("482d"),y=i("9884"),w=Object(s["a"])("swipe"),x=w[0],_=w[1],O=x({mixins:[d["a"],Object(y["b"])("vanSwipe"),Object(f["a"])((function(t,e){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0),t(window,"visibilitychange",this.onVisibilityChange),e?this.initialize():this.clear()}))],props:{width:[Number,String],height:[Number,String],autoplay:[Number,String],vertical:Boolean,lazyRender:Boolean,indicatorColor:String,loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},touchable:{type:Boolean,default:!0},initialSwipe:{type:[Number,String],default:0},showIndicators:{type:Boolean,default:!0},stopPropagation:{type:Boolean,default:!0}},data:function(){return{rect:null,offset:0,active:0,deltaX:0,deltaY:0,swiping:!1,computedWidth:0,computedHeight:0}},watch:{children:function(){this.initialize()},initialSwipe:function(){this.initialize()},autoplay:function(t){t>0?this.autoPlay():this.clear()}},computed:{count:function(){return this.children.length},maxCount:function(){return Math.ceil(Math.abs(this.minOffset)/this.size)},delta:function(){return this.vertical?this.deltaY:this.deltaX},size:function(){return this[this.vertical?"computedHeight":"computedWidth"]},trackSize:function(){return this.count*this.size},activeIndicator:function(){return(this.active+this.count)%this.count},isCorrectDirection:function(){var t=this.vertical?"vertical":"horizontal";return this.direction===t},trackStyle:function(){var t={transitionDuration:(this.swiping?0:this.duration)+"ms",transform:"translate"+(this.vertical?"Y":"X")+"("+this.offset+"px)"};if(this.size){var e=this.vertical?"height":"width",i=this.vertical?"width":"height";t[e]=this.trackSize+"px",t[i]=this[i]?this[i]+"px":""}return t},indicatorStyle:function(){return{backgroundColor:this.indicatorColor}},minOffset:function(){return(this.vertical?this.rect.height:this.rect.width)-this.size*this.count}},mounted:function(){this.bindTouchEvent(this.$refs.track)},methods:{initialize:function(t){if(void 0===t&&(t=+this.initialSwipe),this.$el&&!Object(p["a"])(this.$el)){clearTimeout(this.timer);var e={width:this.$el.offsetWidth,height:this.$el.offsetHeight};this.rect=e,this.swiping=!0,this.active=t,this.computedWidth=+this.width||e.width,this.computedHeight=+this.height||e.height,this.offset=this.getTargetOffset(t),this.children.forEach((function(t){t.offset=0})),this.autoPlay()}},resize:function(){this.initialize(this.activeIndicator)},onVisibilityChange:function(){document.hidden?this.clear():this.autoPlay()},onTouchStart:function(t){this.touchable&&(this.clear(),this.touchStartTime=Date.now(),this.touchStart(t),this.correctPosition())},onTouchMove:function(t){this.touchable&&this.swiping&&(this.touchMove(t),this.isCorrectDirection&&(Object(v["c"])(t,this.stopPropagation),this.move({offset:this.delta})))},onTouchEnd:function(){if(this.touchable&&this.swiping){var t=this.size,e=this.delta,i=Date.now()-this.touchStartTime,o=e/i,r=Math.abs(o)>.25||Math.abs(e)>t/2;if(r&&this.isCorrectDirection){var n=this.vertical?this.offsetY:this.offsetX,a=0;a=this.loop?n>0?e>0?-1:1:0:-Math[e>0?"ceil":"floor"](e/t),this.move({pace:a,emitChange:!0})}else e&&this.move({pace:0});this.swiping=!1,this.autoPlay()}},getTargetActive:function(t){var e=this.active,i=this.count,o=this.maxCount;return t?this.loop?Object(b["c"])(e+t,-1,i):Object(b["c"])(e+t,0,o):e},getTargetOffset:function(t,e){void 0===e&&(e=0);var i=t*this.size;this.loop||(i=Math.min(i,-this.minOffset));var o=e-i;return this.loop||(o=Object(b["c"])(o,this.minOffset,0)),o},move:function(t){var e=t.pace,i=void 0===e?0:e,o=t.offset,r=void 0===o?0:o,n=t.emitChange,a=this.loop,s=this.count,c=this.active,h=this.children,u=this.trackSize,l=this.minOffset;if(!(s<=1)){var d=this.getTargetActive(i),f=this.getTargetOffset(d,r);if(a){if(h[0]&&f!==l){var m=f<l;h[0].offset=m?u:0}if(h[s-1]&&0!==f){var p=f>0;h[s-1].offset=p?-u:0}}this.active=d,this.offset=f,n&&d!==c&&this.$emit("change",this.activeIndicator)}},prev:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(g["a"])((function(){t.swiping=!1,t.move({pace:-1,emitChange:!0})}))},next:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(g["a"])((function(){t.swiping=!1,t.move({pace:1,emitChange:!0})}))},swipeTo:function(t,e){var i=this;void 0===e&&(e={}),this.correctPosition(),this.resetTouchStatus(),Object(g["a"])((function(){var o;o=i.loop&&t===i.count?0===i.active?0:t:t%i.count,e.immediate?Object(g["a"])((function(){i.swiping=!1})):i.swiping=!1,i.move({pace:o-i.active,emitChange:!0})}))},correctPosition:function(){this.swiping=!0,this.active<=-1&&this.move({pace:this.count}),this.active>=this.count&&this.move({pace:-this.count})},clear:function(){clearTimeout(this.timer)},autoPlay:function(){var t=this,e=this.autoplay;e>0&&this.count>1&&(this.clear(),this.timer=setTimeout((function(){t.next(),t.autoPlay()}),e))},genIndicator:function(){var t=this,e=this.$createElement,i=this.count,o=this.activeIndicator,r=this.slots("indicator");return r||(this.showIndicators&&i>1?e("div",{class:_("indicators",{vertical:this.vertical})},[Array.apply(void 0,Array(i)).map((function(i,r){return e("i",{class:_("indicator",{active:r===o}),style:r===o?t.indicatorStyle:null})}))]):void 0)}},render:function(){var t=arguments[0];return t("div",{class:_()},[t("div",{ref:"track",style:this.trackStyle,class:_("track",{vertical:this.vertical})},[this.slots()]),this.genIndicator()])}}),S=i("44bf"),j=i("543e"),C=Object(s["a"])("swipe-item"),k=C[0],T=C[1],$=k({mixins:[Object(y["a"])("vanSwipe")],data:function(){return{offset:0,inited:!1,mounted:!1}},mounted:function(){var t=this;this.$nextTick((function(){t.mounted=!0}))},computed:{style:function(){var t={},e=this.parent,i=e.size,o=e.vertical;return i&&(t[o?"height":"width"]=i+"px"),this.offset&&(t.transform="translate"+(o?"Y":"X")+"("+this.offset+"px)"),t},shouldRender:function(){var t=this.index,e=this.inited,i=this.parent,o=this.mounted;if(!i.lazyRender||e)return!0;if(!o)return!1;var r=i.activeIndicator,n=i.count-1,a=0===r&&i.loop?n:r-1,s=r===n&&i.loop?0:r+1,c=t===r||t===a||t===s;return c&&(this.inited=!0),c}},render:function(){var t=arguments[0];return t("div",{class:T(),style:this.style,on:Object(n["a"])({},this.$listeners)},[this.shouldRender&&this.slots()])}});function P(t){return Math.sqrt(Math.pow(t[0].clientX-t[1].clientX,2)+Math.pow(t[0].clientY-t[1].clientY,2))}var I,L={mixins:[d["a"]],props:{src:String,show:Boolean,active:Number,minZoom:[Number,String],maxZoom:[Number,String],rootWidth:Number,rootHeight:Number},data:function(){return{scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}},computed:{vertical:function(){var t=this.rootWidth,e=this.rootHeight,i=e/t;return this.imageRatio>i},imageStyle:function(){var t=this.scale,e={transitionDuration:this.zooming||this.moving?"0s":".3s"};if(1!==t){var i=this.moveX/t,o=this.moveY/t;e.transform="scale("+t+", "+t+") translate("+i+"px, "+o+"px)"}return e},maxMoveX:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight/this.imageRatio:this.rootWidth;return Math.max(0,(this.scale*t-this.rootWidth)/2)}return 0},maxMoveY:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight:this.rootWidth*this.imageRatio;return Math.max(0,(this.scale*t-this.rootHeight)/2)}return 0}},watch:{active:"resetScale",show:function(t){t||this.resetScale()}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{resetScale:function(){this.setScale(1),this.moveX=0,this.moveY=0},setScale:function(t){t=Object(b["c"])(t,+this.minZoom,+this.maxZoom),t!==this.scale&&(this.scale=t,this.$emit("scale",{scale:this.scale,index:this.active}))},toggleScale:function(){var t=this.scale>1?1:2;this.setScale(t),this.moveX=0,this.moveY=0},onTouchStart:function(t){var e=t.touches,i=this.offsetX,o=void 0===i?0:i;this.touchStart(t),this.touchStartTime=new Date,this.fingerNum=e.length,this.startMoveX=this.moveX,this.startMoveY=this.moveY,this.moving=1===this.fingerNum&&1!==this.scale,this.zooming=2===this.fingerNum&&!o,this.zooming&&(this.startScale=this.scale,this.startDistance=P(t.touches))},onTouchMove:function(t){var e=t.touches;if(this.touchMove(t),(this.moving||this.zooming)&&Object(v["c"])(t,!0),this.moving){var i=this.deltaX+this.startMoveX,o=this.deltaY+this.startMoveY;this.moveX=Object(b["c"])(i,-this.maxMoveX,this.maxMoveX),this.moveY=Object(b["c"])(o,-this.maxMoveY,this.maxMoveY)}if(this.zooming&&2===e.length){var r=P(e),n=this.startScale*r/this.startDistance;this.setScale(n)}},onTouchEnd:function(t){var e=!1;(this.moving||this.zooming)&&(e=!0,this.moving&&this.startMoveX===this.moveX&&this.startMoveY===this.moveY&&(e=!1),t.touches.length||(this.zooming&&(this.moveX=Object(b["c"])(this.moveX,-this.maxMoveX,this.maxMoveX),this.moveY=Object(b["c"])(this.moveY,-this.maxMoveY,this.maxMoveY),this.zooming=!1),this.moving=!1,this.startMoveX=0,this.startMoveY=0,this.startScale=1,this.scale<1&&this.resetScale())),Object(v["c"])(t,e),this.checkTap(),this.resetTouchStatus()},checkTap:function(){var t=this;if(!(this.fingerNum>1)){var e=this.offsetX,i=void 0===e?0:e,o=this.offsetY,r=void 0===o?0:o,n=new Date-this.touchStartTime,a=250,s=5;i<s&&r<s&&n<a&&(this.doubleTapTimer?(clearTimeout(this.doubleTapTimer),this.doubleTapTimer=null,this.toggleScale()):this.doubleTapTimer=setTimeout((function(){t.$emit("close"),t.doubleTapTimer=null}),a))}},onLoad:function(t){var e=t.target,i=e.naturalWidth,o=e.naturalHeight;this.imageRatio=o/i}},render:function(){var t=arguments[0],e={loading:function(){return t(j["a"],{attrs:{type:"spinner"}})}};return t($,{class:u("swipe-item")},[t(S["a"],{attrs:{src:this.src,fit:"contain"},class:u("image",{vertical:this.vertical}),style:this.imageStyle,scopedSlots:e,on:{load:this.onLoad}})])}},E=h({mixins:[d["a"],Object(l["a"])({skipToggleEvent:!0}),Object(f["a"])((function(t){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0)}))],props:{className:null,closeable:Boolean,asyncClose:Boolean,overlayStyle:Object,showIndicators:Boolean,images:{type:Array,default:function(){return[]}},loop:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},minZoom:{type:[Number,String],default:1/3},maxZoom:{type:[Number,String],default:3},transition:{type:String,default:"van-fade"},showIndex:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:300},startPosition:{type:[Number,String],default:0},overlayClass:{type:String,default:u("overlay")},closeIcon:{type:String,default:"clear"},closeOnPopstate:{type:Boolean,default:!0},closeIconPosition:{type:String,default:"top-right"}},data:function(){return{active:0,rootWidth:0,rootHeight:0,doubleClickTimer:null}},mounted:function(){this.resize()},watch:{startPosition:"setActive",value:function(t){var e=this;t?(this.setActive(+this.startPosition),this.$nextTick((function(){e.resize(),e.$refs.swipe.swipeTo(+e.startPosition,{immediate:!0})}))):this.$emit("close",{index:this.active,url:this.images[this.active]})}},methods:{resize:function(){if(this.$el&&this.$el.getBoundingClientRect){var t=this.$el.getBoundingClientRect();this.rootWidth=t.width,this.rootHeight=t.height}},emitClose:function(){this.asyncClose||this.$emit("input",!1)},emitScale:function(t){this.$emit("scale",t)},setActive:function(t){t!==this.active&&(this.active=t,this.$emit("change",t))},genIndex:function(){var t=this.$createElement;if(this.showIndex)return t("div",{class:u("index")},[this.slots("index",{index:this.active})||this.active+1+" / "+this.images.length])},genCover:function(){var t=this.$createElement,e=this.slots("cover");if(e)return t("div",{class:u("cover")},[e])},genImages:function(){var t=this,e=this.$createElement;return e(O,{ref:"swipe",attrs:{lazyRender:!0,loop:this.loop,duration:this.swipeDuration,initialSwipe:this.startPosition,showIndicators:this.showIndicators,indicatorColor:"white"},class:u("swipe"),on:{change:this.setActive}},[this.images.map((function(i){return e(L,{attrs:{src:i,show:t.value,active:t.active,maxZoom:t.maxZoom,minZoom:t.minZoom,rootWidth:t.rootWidth,rootHeight:t.rootHeight},on:{scale:t.emitScale,close:t.emitClose}})}))])},genClose:function(){var t=this.$createElement;if(this.closeable)return t(m["a"],{attrs:{role:"button",name:this.closeIcon},class:u("close-icon",this.closeIconPosition),on:{click:this.emitClose}})},onClosed:function(){this.$emit("closed")},swipeTo:function(t,e){this.$refs.swipe&&this.$refs.swipe.swipeTo(t,e)}},render:function(){var t=arguments[0];return t("transition",{attrs:{name:this.transition},on:{afterLeave:this.onClosed}},[this.shouldRender?t("div",{directives:[{name:"show",value:this.value}],class:[u(),this.className]},[this.genClose(),this.genImages(),this.genIndex(),this.genCover()]):null])}}),z=i("a142"),N={loop:!0,value:!0,images:[],maxZoom:3,minZoom:1/3,onClose:null,onChange:null,className:"",showIndex:!0,closeable:!1,closeIcon:"clear",asyncClose:!1,transition:"van-fade",getContainer:"body",overlayStyle:null,startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeIconPosition:"top-right"},M=function(){I=new(a["a"].extend(E))({el:document.createElement("div")}),document.body.appendChild(I.$el),I.$on("change",(function(t){I.onChange&&I.onChange(t)})),I.$on("scale",(function(t){I.onScale&&I.onScale(t)}))},F=function(t,e){if(void 0===e&&(e=0),!z["g"]){I||M();var i=Array.isArray(t)?{images:t,startPosition:e}:t;return Object(n["a"])(I,N,i),I.$once("input",(function(t){I.value=t})),I.$once("closed",(function(){I.images=[]})),i.onClose&&(I.$off("close"),I.$once("close",i.onClose)),I}};F.Component=E,F.install=function(){a["a"].use(E)};var Y=F,X=i("c7eb"),H=i("1da1"),D=(i("a15b"),i("14d9"),i("acd8"),i("e25e"),i("a3ea")),A=i("15e4"),B=i("9901"),R={data:function(){return{activeNames:[],houseStyle:[],room:{},showHouseStylePicker:!1,roomTypes:[],orderForm:{pkg_id:0,type:1,area:"",house_style:[]},pkgInfo:{},submitLoading:!1,money:0,orderID:0,outline_price:{}}},created:function(){if(!this.$route.query||!this.$route.query.pkg_id)return this.$notify("套餐 id 有误"),!1;this.orderForm.pkg_id=parseInt(this.$route.query.pkg_id),this.loadInfo(),this.$route.params&&this.$route.params.order_id&&(this.orderID=parseInt(this.$route.params.order_id)),this.orderID>0&&this.loadOrderInfo(this.orderID)},methods:{loadOrderInfo:function(t){var e=this;return Object(H["a"])(Object(X["a"])().mark((function i(){return Object(X["a"])().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return e.$store.commit("loading/showLoading"),i.next=3,Object(A["d"])(t).then((function(t){var i=t.data.orderInfo;e.orderForm={id:i.id,type:1,pkg_id:i.pkg_id,customer_name:i.customer_name,customer_phone:i.customer_phone,house_address:i.house_address,house_style:i.house_style_decode,roomText:i.room_text,area:i.house_area},e.$store.commit("loading/hideLoading")}));case 3:case"end":return i.stop()}}),i)})))()},preview:function(t){Y({images:[t],startPosition:0})},getPic:function(t){return Object.prototype.hasOwnProperty.call(this.pkgInfo,"room_pics_decode")&&this.pkgInfo.room_pics_decode&&Object.prototype.hasOwnProperty.call(this.pkgInfo.room_pics_decode,t)&&this.pkgInfo.room_pics_decode[t]?(console.log(this.$store.getters.setting.img_host+this.pkgInfo.room_pics_decode[t]),this.$store.getters.setting.img_host+this.pkgInfo.room_pics_decode[t]):""},loadInfo:function(){var t=this;Object(D["f"])({pkg_id:this.orderForm.pkg_id}).then((function(e){t.houseStyle=e.data.houseStyle,t.roomTypes=e.data.roomTypes,t.pkgInfo=e.data.pkgInfo}))},computer:function(){var t=this;this.submitLoading=!0;var e=Object(B["a"])(this.orderForm);e.area=isNaN(parseFloat(e.area))?0:parseFloat(e.area),Object(D["a"])(e).then((function(e){t.money=e.data.money,t.outline_price=e.data.outline_price,t.submitLoading=!1}))},onConfirm:function(t){for(var e=[],i=[],o=0;o<t.length;o++)e.push(t[o]["name"]),i.push({type:parseInt(t[o]["room_type"]),num:t[o]["num"]});this.orderForm.house_style=i,this.orderForm.roomText=e.join(" "),this.showHouseStylePicker=!1},handleSubmitOrder:function(){var t=this;this.$refs["form"].validate().then((function(){t.submitLoading=!0;var e=Object(B["a"])(t.orderForm);e.area=isNaN(parseFloat(e.area))?0:parseFloat(e.area),e.id>0?Object(A["f"])(e.id,e).then((function(e){var i=t;i.$toast.success({message:"保存成功",duration:1e3,onClose:function(){i.submitLoading=!1,i.$router.push("/bid/orders")}})})):Object(A["a"])(e).then((function(e){var i=t;i.$toast.success({message:"保存成功",duration:1e3,onClose:function(){i.submitLoading=!1,i.$router.push("/bid/orders")}})}))}))}}},W=R,Z=i("2877"),G=Object(Z["a"])(W,o,r,!1,null,null,null);e["default"]=G.exports},"504b":function(t,e,i){},"786d":function(t,e,i){},"7a82":function(t,e,i){"use strict";var o=i("23e7"),r=i("83ab"),n=i("9bf2").f;o({target:"Object",stat:!0,forced:Object.defineProperty!==n,sham:!r},{defineProperty:n})},"7e12":function(t,e,i){"use strict";var o=i("da84"),r=i("d039"),n=i("e330"),a=i("577e"),s=i("58a8").trim,c=i("5899"),h=n("".charAt),u=o.parseFloat,l=o.Symbol,d=l&&l.iterator,f=1/u(c+"-0")!==-1/0||d&&!r((function(){u(Object(d))}));t.exports=f?function(t){var e=s(a(t)),i=u(e);return 0===i&&"-"===h(e,0)?-0:i}:u},8270:function(t,e,i){},"944a":function(t,e,i){"use strict";var o=i("d066"),r=i("e065"),n=i("d44e");r("toStringTag"),n(o("Symbol"),"Symbol")},9901:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var o=i("53ca");i("d9e2"),i("d401"),i("4160"),i("b64b"),i("d3b7"),i("e25e"),i("4d63"),i("c607"),i("ac1f"),i("2c3e"),i("00b4"),i("25f0"),i("4d90"),i("5319"),i("159b");function r(t){if(!t&&"object"!==Object(o["a"])(t))throw new Error("error arguments","shallowClone");var e=t.constructor===Array?[]:{};return Object.keys(t).forEach((function(i){t[i]&&"object"===Object(o["a"])(t[i])?e[i]=r(t[i]):e[i]=t[i]})),e}},a15b:function(t,e,i){"use strict";var o=i("23e7"),r=i("e330"),n=i("44ad"),a=i("fc6a"),s=i("a640"),c=r([].join),h=n!==Object,u=h||!s("join",",");o({target:"Array",proto:!0,forced:u},{join:function(t){return c(a(this),void 0===t?",":t)}})},a3ea:function(t,e,i){"use strict";i.d(e,"f",(function(){return r})),i.d(e,"e",(function(){return n})),i.d(e,"a",(function(){return a})),i.d(e,"b",(function(){return s})),i.d(e,"d",(function(){return c})),i.d(e,"c",(function(){return h}));var o=i("0088");function r(t){return Object(o["a"])({url:"bid/outline",method:"get",params:t})}function n(){return Object(o["a"])({url:"bid/detail",method:"get"})}function a(t){return Object(o["a"])({url:"bid/detail_calc",method:"post",data:t})}function s(t){return Object(o["a"])({url:"bid/detail_calc_toilet",method:"post",data:t})}function c(t){return Object(o["a"])({url:"bids",method:"get",params:t})}function h(t){return Object(o["a"])({url:"bid/export",method:"get",params:{pkg_id:t}})}},acd8:function(t,e,i){"use strict";var o=i("23e7"),r=i("7e12");o({global:!0,forced:parseFloat!==r},{parseFloat:r})},b636:function(t,e,i){"use strict";var o=i("e065");o("asyncIterator")},c7eb:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));i("a4d3"),i("e01a"),i("b636"),i("d28b"),i("944a"),i("d9e2"),i("d401"),i("4160"),i("14d9"),i("26e9"),i("fb6a"),i("0c47"),i("23dc"),i("7a82"),i("3410"),i("131a"),i("d3b7"),i("3ca3"),i("159b"),i("ddb0");var o=i("53ca");function r(){
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
- r=function(){return e};var t,e={},i=Object.prototype,n=i.hasOwnProperty,a=Object.defineProperty||function(t,e,i){t[e]=i.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",h=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,i){return t[e]=i}}function d(t,e,i,o){var r=e&&e.prototype instanceof y?e:y,n=Object.create(r.prototype),s=new L(o||[]);return a(n,"_invoke",{value:T(t,i,s)}),n}function f(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var m="suspendedStart",p="suspendedYield",v="executing",g="completed",b={};function y(){}function w(){}function x(){}var _={};l(_,c,(function(){return this}));var O=Object.getPrototypeOf,S=O&&O(O(E([])));S&&S!==i&&n.call(S,c)&&(_=S);var j=x.prototype=y.prototype=Object.create(_);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function i(r,a,s,c){var h=f(t[r],t,a);if("throw"!==h.type){var u=h.arg,l=u.value;return l&&"object"==Object(o["a"])(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){i("next",t,s,c)}),(function(t){i("throw",t,s,c)})):e.resolve(l).then((function(t){u.value=t,s(u)}),(function(t){return i("throw",t,s,c)}))}c(h.arg)}var r;a(this,"_invoke",{value:function(t,o){function n(){return new e((function(e,r){i(t,o,e,r)}))}return r=r?r.then(n,n):n()}})}function T(e,i,o){var r=m;return function(n,a){if(r===v)throw Error("Generator is already running");if(r===g){if("throw"===n)throw a;return{value:t,done:!0}}for(o.method=n,o.arg=a;;){var s=o.delegate;if(s){var c=$(s,o);if(c){if(c===b)continue;return c}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(r===m)throw r=g,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r=v;var h=f(e,i,o);if("normal"===h.type){if(r=o.done?g:p,h.arg===b)continue;return{value:h.arg,done:o.done}}"throw"===h.type&&(r=g,o.method="throw",o.arg=h.arg)}}}function $(e,i){var o=i.method,r=e.iterator[o];if(r===t)return i.delegate=null,"throw"===o&&e.iterator["return"]&&(i.method="return",i.arg=t,$(e,i),"throw"===i.method)||"return"!==o&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+o+"' method")),b;var n=f(r,e.iterator,i.arg);if("throw"===n.type)return i.method="throw",i.arg=n.arg,i.delegate=null,b;var a=n.arg;return a?a.done?(i[e.resultName]=a.value,i.next=e.nextLoc,"return"!==i.method&&(i.method="next",i.arg=t),i.delegate=null,b):a:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,b)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function E(e){if(e||""===e){var i=e[c];if(i)return i.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function i(){for(;++r<e.length;)if(n.call(e,r))return i.value=e[r],i.done=!1,i;return i.value=t,i.done=!0,i};return a.next=a}}throw new TypeError(Object(o["a"])(e)+" is not iterable")}return w.prototype=x,a(j,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:w,configurable:!0}),w.displayName=l(x,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,l(t,u,"GeneratorFunction")),t.prototype=Object.create(j),t},e.awrap=function(t){return{__await:t}},C(k.prototype),l(k.prototype,h,(function(){return this})),e.AsyncIterator=k,e.async=function(t,i,o,r,n){void 0===n&&(n=Promise);var a=new k(d(t,i,o,r),n);return e.isGeneratorFunction(i)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(j),l(j,u,"Generator"),l(j,c,(function(){return this})),l(j,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),i=[];for(var o in e)i.push(o);return i.reverse(),function t(){for(;i.length;){var o=i.pop();if(o in e)return t.value=o,t.done=!1,t}return t.done=!0,t}},e.values=E,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var i in this)"t"===i.charAt(0)&&n.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var i=this;function o(o,r){return s.type="throw",s.arg=e,i.next=o,r&&(i.method="next",i.arg=t),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),h=n.call(a,"finallyLoc");if(c&&h){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!h)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=t,a.arg=e,r?(this.method="next",this.next=r.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),I(i),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var o=i.completion;if("throw"===o.type){var r=o.arg;I(i)}return r}}throw Error("illegal catch attempt")},delegateYield:function(e,i,o){return this.delegate={iterator:E(e),resultName:i,nextLoc:o},"next"===this.method&&(this.arg=t),b}},e}}}]);
|