(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-680faee6"],{"589c":function(e,o,t){"use strict";t.r(o);var i=function(){var e=this,o=e.$createElement,t=e._self._c||o;return t("div",{attrs:{id:"goods_order"}},[t("c-title",{attrs:{hide:!1,text:"商品下单页"}}),t("div",{attrs:{id:"content"}},[t("ul",{staticClass:"detail_a"},[t("li",[e._v(e._s(e.title))]),t("li",[e._v(e._s(e.start_time)+"-"+e._s(e.end_time)+"  共"+e._s(e.night_day)+"晚")])]),t("ul",{staticClass:"detail_b"},[t("li",{staticClass:"b_room"},[t("span",[e._v("房间数")]),t("van-stepper",{on:{change:e.addTotal},model:{value:e.total,callback:function(o){e.total=o},expression:"total"}})],1),t("li",[t("span",[e._v("入住人")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.name,expression:"name"}],attrs:{type:"text",placeholder:"请填写入住姓名"},domProps:{value:e.name},on:{input:function(o){o.target.composing||(e.name=o.target.value)}}})]),t("li",[t("span",[e._v("联系手机")]),t("input",{directives:[{name:"model",rawName:"v-model",value:e.mobil,expression:"mobil"}],attrs:{type:"text",placeholder:"请填写入住人电话"},domProps:{value:e.mobil},on:{input:function(o){o.target.composing||(e.mobil=o.target.value)}}})])]),t("ul",{staticClass:"detail_c"},[t("li",{staticClass:"c_invoice"},[t("span",[e._v("是否需要发票")]),t("van-checkbox",{attrs:{"checked-color":"#f15353",shape:"square"},on:{change:e.invoiceChange},model:{value:e.isInvoice,callback:function(o){e.isInvoice=o},expression:"isInvoice"}})],1),e.isInvoice?t("li",{staticClass:"c_type"},[t("van-radio-group",{on:{change:e.eInvoiceChange},model:{value:e.el_invoice,callback:function(o){e.el_invoice=o},expression:"el_invoice"}},[t("van-radio",{staticStyle:{float:"left"},attrs:{name:"1","checked-color":"#f15353"}},[e._v("电子发票")]),t("van-radio",{staticStyle:{float:"left","margin-left":"10px"},attrs:{name:"2","checked-color":"#f15353"}},[e._v("纸质发票")])],1)],1):e._e(),e.isInvoice?t("li",{staticClass:"c_type"},[t("van-radio-group",{on:{change:e.typeChange},model:{value:e.invoice_type,callback:function(o){e.invoice_type=o},expression:"invoice_type"}},[t("van-radio",{staticStyle:{float:"left"},attrs:{name:"1","checked-color":"#f15353"}},[e._v("个人")]),t("van-radio",{staticStyle:{float:"left","margin-left":"10px"},attrs:{name:"2","checked-color":"#f15353"}},[e._v("公司")])],1)],1):e._e(),e.isInvoice&&"1"==e.invoice_type?t("li",[t("input",{directives:[{name:"model",rawName:"v-model",value:e.fp_tt,expression:"fp_tt"}],attrs:{type:"text",placeholder:"输入发票抬头"},domProps:{value:e.fp_tt},on:{input:function(o){o.target.composing||(e.fp_tt=o.target.value)}}})]):e._e(),e.isInvoice&&"2"==e.invoice_type?t("li",[t("input",{directives:[{name:"model",rawName:"v-model",value:e.company_name,expression:"company_name"}],attrs:{type:"text",placeholder:"请填写单位名称"},domProps:{value:e.company_name},on:{input:function(o){o.target.composing||(e.company_name=o.target.value)}}})]):e._e(),e.isInvoice&&"2"==e.invoice_type?t("li",[t("input",{directives:[{name:"model",rawName:"v-model",value:e.sbxd,expression:"sbxd"}],attrs:{type:"text",placeholder:"请填写纳税识别号"},domProps:{value:e.sbxd},on:{input:function(o){o.target.composing||(e.sbxd=o.target.value)}}})]):e._e(),e.hasGoodOpenDF?t("li",{staticStyle:{color:"#ff2424"},on:{click:e.getGoodDFData}},[e._v("点击填写表单")]):e._e(),e.hasGoodOpenDF?t("li",{staticStyle:{color:"#ff2424"},on:{click:e.getGoodDFData}},[e._v("点击修改表单")]):e._e()]),e.isShowCoupon?t("div",{staticClass:"tbs coupon-list",on:{click:e.showCoupon}},[t("div",{staticClass:"list"},[t("div",{staticClass:"left "},[e._v(" 优惠券 "),t("font",[e._v(e._s(e.coupon_size)+"张可用")])],1),t("div",{staticClass:"right"},[t("font",{attrs:{color:"#E84E40"}},[t("span",[e._v(e._s(0==e.use_coupon_size?"未使用":"已使用"+e.use_coupon_size+"张"))])])],1)])]):e._e(),e._l(e.order_info.orders,(function(o,i){return t("div",{key:i,class:o.order_deductions&&o.order_deductions.length>0||o.order_coin_exchanges&&o.order_coin_exchanges.length>0?"tbs":""},[o.order_deductions&&o.order_deductions.length>0?t("div",{staticClass:"score list"},e._l(o.order_deductions,(function(i,n){return t("div",{key:n,staticClass:"list-child-style"},[t("div",{staticClass:"left "},[e._v(" 可用"+e._s(parseFloat(i.coin).toFixed(2))+e._s(i.name||e.integral)+" "),t("span",[e._v("抵扣"+e._s(i.amount)+e._s(e.$i18n.t("元")))])]),t("div",{directives:[{name:"show",rawName:"v-show",value:0==e.good_clicktag,expression:"good_clicktag == 0"}],staticClass:"right"},[t("van-switch",{attrs:{"active-color":"#f15353","inactive-color":"#fff",size:"23"},on:{change:function(t){return e.discountHandle(o,i,"discount")}},model:{value:i.checked,callback:function(o){e.$set(i,"checked",o)},expression:"d.checked"}})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:0!=e.good_clicktag,expression:"good_clicktag != 0"}],staticClass:"right"},[t("van-loading")],1)])})),0):e._e(),o.order_coin_exchanges&&o.order_coin_exchanges.length>0?t("div",{staticClass:"score list"},e._l(o.order_coin_exchanges,(function(o,i){return t("div",{key:i,staticStyle:{width:"100%",display:"block",clear:"both","margin-bottom":"2.1875rem"}},[t("div",{staticClass:"left "},[e._v(" "+e._s(parseFloat(o.coin).toFixed(2))+e._s(o.name||e.integral)+" "),t("span",[e._v("抵扣"+e._s(o.amount)+e._s(e.$i18n.t("元")))])]),t("div",{staticClass:"right"})])})),0):e._e()])})),t("ul",{staticClass:"detail_d"},e._l(e.order_info.amount_items,(function(o,i){return t("li",{key:i},[t("span",[e._v(e._s(o.name))]),t("span",[e._v(e._s(e.$i18n.t("money"))),"total_deduction_price"==o.code?t("span",[e._v("-")]):e._e(),e._v(e._s(o.amount))])])})),0),e.order_info.discount_amount_items&&e.order_info.discount_amount_items.length>0?t("ul",{staticClass:"detail_d"},e._l(e.order_info.discount_amount_items,(function(o,i){return t("li",{key:i},[t("span",[e._v(e._s(o.name))]),t("span",[e._v("-"+e._s(e.$i18n.t("money"))+e._s(o.amount))])])})),0):e._e(),e._e(),t("div",{staticClass:"foot",style:{width:3==this.fun.getPhoneEnv()?"375px":""}},[t("ul",{staticClass:"foot_a"},[t("li",[e._v(" 合计:"),t("span",[e._v(e._s(e.$i18n.t("money"))),t("font",[e._v(e._s(e.order_info.total_price))])],1)])]),t("button",{attrs:{type:"button"},on:{click:e.submit}},[e._v("提交订单")])])],2),t("van-popup",{staticClass:"mint-popup-4",style:{overflow:"visible"},attrs:{position:"bottom",closeOnClickModal:"true"},model:{value:e.popupCouponSpecs,callback:function(o){e.popupCouponSpecs=o},expression:"popupCouponSpecs"}},[t("div",{staticClass:"add-info"},e._l(e.coupons,(function(o,i){return t("div",{key:i,staticClass:"coupon-list-info"},[e.cup_notice?t("div",{staticClass:"checkList",staticStyle:{float:"left"},on:{click:function(o){return o.stopPropagation(),e.chooseCoupon(i)}}},[t("van-checkbox",{attrs:{shape:"square",disabled:!o.valid,"checked-color":"#f15353",name:o},on:{change:function(t){return e.selectCoupon(t,o)}},model:{value:o.checked,callback:function(t){e.$set(o,"checked",t)},expression:"coupon.checked"}})],1):e._e(),t("div",{class:{coupon_voucher_main:o.valid,coupon_voucher_gray:!o.valid}},[t("div",{staticClass:"coupon_voucher_left"},[1==o.belongs_to_coupon.coupon_method?t("div",[t("p",{staticClass:"coupon_voucher_amount type_large"},[e._v(" "+e._s(o.belongs_to_coupon.deduct)+" ")]),t("p",{staticClass:"coupon_voucher_limit"},[e._v("满"+e._s(o.belongs_to_coupon.enough)+"立减")])]):t("div",[t("p",{staticClass:"coupon_voucher_amount type_large"},[e._v(e._s(o.belongs_to_coupon.discount)+"折")]),t("p",{staticClass:"coupon_voucher_limit"},[e._v("满"+e._s(o.belongs_to_coupon.enough)+"立享")])])]),t("div",{staticClass:"coupon_voucher_hr"}),t("div",{staticClass:"coupon_voucher_right"},[t("p",{staticClass:"coupon_voucher_range"},[e._v(" "+e._s(o.belongs_to_coupon.name)+" ")]),t("p",{staticClass:"coupon_voucher_period"},[e._v(e._s(o.time_start)+"-"+e._s(o.time_end))])])])])})),0),t("button",{staticClass:" sure",attrs:{type:"button"},on:{click:function(o){e.popupCouponSpecs=!1}}},[e._v(" 确认 ")]),t("button",{staticClass:"close",attrs:{type:"button"},on:{click:function(o){e.popupCouponSpecs=!1}}},[e._v(" 取消 ")])]),t("van-popup",{staticClass:"mint-popup-4",style:{width:"100%",height:"100%",overflow:"auto",display:e.dyFormPopup?"flex":"none"},attrs:{position:"bottom"},model:{value:e.dyFormPopup,callback:function(o){e.dyFormPopup=o},expression:"dyFormPopup"}},[t("div",{staticClass:"DYFpopHeader"},[t("i",{staticClass:"iconfont icon-member-left",on:{click:function(o){e.dyFormPopup=!1}}}),t("p",[e._v(e._s(e.dyTiitle))])]),e.dyFormPopup?t("diyfrom",{staticStyle:{height:"100%",overflow:"auto"},attrs:{form_id:e.goodDYDormID,form_data_id:e.activeFormDataID,modeType:"Single",singleStatus:!0},on:{submitsave:e.diyFormSave}}):e._e()],1)],1)},n=[],s=(t("e7e5"),t("d399")),a=(t("a4d3"),t("e01a"),t("d3b7"),t("159b"),t("a434"),t("e9c4"),t("ac1f"),t("1276"),t("99af"),t("b0c0"),t("ef32")),r=t("bede"),d="plugin.hotel.frontend.hotel.create",c={data:function(){return{start:"",end:"",total:1,order_info:{},start_time:"",end_time:"",night_day:"",name:"",mobil:"",isInvoice:!1,invoice_type:"1",el_invoice:"1",fp_tt:"",company_name:"",sbxd:"",title:"",popupCouponSpecs:!1,coupon_size:0,checkCouponList:[],use_coupon_size:0,cup_notice:!0,isShowCoupon:!0,good_clicktag:0,checkDeductionList:[],hasGoodOpenDF:!1,dyFormPopup:!1,dfData:{},goodDYDormID:null,activeDYGoodID:null,activeFormDataID:null,dyDescription:null,dyTiitle:"",dyThumb:null,oldOrder_data:[]}},activated:function(){this.initData(),this.fun.isTextEmpty(this.$route.query.id)&&this.$router.push(this.fun.getUrl("home",{})),this.end=this.$route.query.end||"",this.start=this.$route.query.start||"",this.fun.isTextEmpty(this.$route.params.exchangeData)?this.getOrerData():this.getExchangeData(),this.getCustomizeHotelHead()},methods:{findGoodOpen:function(){for(var e=0;e0){for(var i=0;i0)for(var n=0;n0&&this.checkDeductionList.forEach((function(i,n){i&&i.pre_id==e.pre_id&&(t=!0,o&&o.checked?i.deduction_ids&&-1==i.deduction_ids.indexOf(o.code)&&i.deduction_ids.push(o.code):o&&!o.checked&&i.deduction_ids&&i.deduction_ids.indexOf(o.code)>-1&&i.deduction_ids.splice(i.deduction_ids.indexOf(o.code),1))})),t||this.checkDeductionList.push({deduction_ids:o&&o.code?[o.code]:[],pre_id:e.pre_id}),this.checkDeductionList.reverse()},assembleDeduction:function(){for(var e=[],o=0;o