(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-31634f89"],{"14d9":function(t,e,r){"use strict";var o=r("23e7"),n=r("7b0b"),s=r("07fa"),i=r("3a34"),a=r("3511"),c=r("d039"),d=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=d||!u();o({target:"Array",proto:!0,arity:1,forced:l},{push:function(t){var e=n(this),r=s(e),o=arguments.length;a(r+o);for(var c=0;cn)throw o("Maximum allowed index exceeded");return t}},"3a34":function(t,e,r){"use strict";var o=r("83ab"),n=r("e8b5"),s=TypeError,i=Object.getOwnPropertyDescriptor,a=o&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(n(t)&&!i(t,"length").writable)throw new s("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},"40d7":function(t,e,r){"use strict";r.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:t.pkgInfo.pkg_name+"报价","left-text":"返回","left-arrow":""},on:{"click-left":function(e){return t.$router.back(-1)}}}),e("div",{staticClass:"mt-2"},[t.showOrder?e("div",{staticClass:"shadow w-23/24 mx-auto mb-2"},[e("div",{class:"bg-"+t.orderForm.state_color+" text-white px-4 py-2 flex justify-between items-center"},[e("div",[t._v(t._s(t.orderForm.created_at))]),e("span",[t._v(t._s(t.orderForm.state_name))])]),e("div",{staticClass:"bg-white px-4 py-2 text-sm"},[e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("客户名称:")]),t._v(t._s(t.orderForm.customer_name))]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("客户电话:")]),t._v(t._s(t.orderForm.customer_phone))]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("房屋地址:")]),t._v(t._s(t.orderForm.address))]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("房屋面积:")]),t._v(t._s(t.orderForm.area))]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("房屋户型:")]),t._v(t._s(t.orderForm.room_text))]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-bold"},[t._v("报价套餐:")]),t._v(t._s(t.orderForm.pkg_name))])])]):e("div",{staticClass:"text-sm"},[e("div",{staticClass:"flex"},[e("div",{staticClass:"w-1/6"},t._l(t.pkgData,(function(r,o){return e("div",{key:o,class:"py-4 pl-2 "+(r.on?"bg-white border-l-4 border-blue-400 text-blue-400":""),on:{click:function(e){return t.changeTab(o)}}},[t._v(t._s(r.name))])})),0),e("div",{staticClass:"w-5/6 bg-white p-2"},t._l(t.pkgData,(function(r,o){return e("div",{directives:[{name:"show",rawName:"v-show",value:r.on,expression:"item.on"}],key:o},t._l(r.picks,(function(r,n){return e("div",{key:n,staticClass:"shadow mb-2"},[e("p",{staticClass:"bg-blue-400 text-white p-2 flex justify-between items-center"},[e("span",[t._v(t._s(r.pick_name))])]),t.orderForm["item"][o][r["id"]]["id"]?e("div",{staticClass:"p-2 text-gray-400"},[e("div",{staticClass:"flex justify-between pb-2"},[e("span",{class:2==t.orderForm["item"][o][r["id"]]["level"]?"text-red-600":""},[t._v(t._s(t.orderForm["item"][o][r["id"]]["brand_name"])+" "+t._s(t.orderForm["item"][o][r["id"]]["item_name"]))])]),""!==t.orderForm["item"][o][r["id"]]["color"]?e("div",{staticClass:"flex items-center pb-2"},[e("span",[t._v("颜色:"+t._s(t.orderForm["item"][o][r["id"]]["color"]))])]):t._e(),2==t.orderForm["item"][o][r["id"]]["level"]?e("div",{staticClass:"flex items-center pb-2"},[e("span",[t._v("数量:"+t._s(t.orderForm["item"][o][r["id"]]["num"]))]),e("span",{staticClass:"pl-1"},[t._v(t._s(t.orderForm["item"][o][r["id"]]["unit_name"]))])]):t._e(),e("div",[t.orderForm["item"][o][r["id"]]["remarks"]?e("span",[t._v(" 备注:"+t._s(t.orderForm["item"][o][r["id"]]["remarks"])+" ")]):t._e()])]):t._e()])})),0)})),0)])])]),e("div",{staticClass:"fixed bottom-0 left-0 w-full text-white"},[e("span",{staticClass:"inline-block w-1/2 bg-yellow-400 py-3 text-center",on:{click:function(e){t.showOrder=!0}}},[t._v("订单信息")]),e("span",{staticClass:"inline-block w-1/2 bg-green-400 py-3 text-center",on:{click:function(e){t.showOrder=!1}}},[t._v("选材信息")])])],1)},n=[],s=(r("d81d"),r("14d9"),r("e25e"),r("6687")),i=r("9901"),a=r("629f"),c={data:function(){return{showOrder:!1,pkgData:{},pkgInfo:{},pickList:{},roomTypes:{},orderForm:{}}},created:function(){this.$route.params&&this.$route.params.order_id&&(this.orderID=this.$route.params.order_id,this.loadOrderInfo())},methods:{loadOrderInfo:function(){var t=this;this.$store.commit("loading/showLoading"),Object(a["c"])(this.orderID).then((function(e){t.orderForm=e.data,t.loadPickList(),t.$store.commit("loading/hideLoading")}))},changeTab:function(t){this.pkgData.map((function(e,r){e.on=parseInt(t)===r?1:0}))},loadPickList:function(){var t=this;this.$store.commit("loading/showLoading"),Object(s["b"])({pkg_id:this.orderForm.pkg_id}).then((function(e){t.pkgInfo=e.data.pkgInfo,t.pickList=e.data.pickList,t.roomTypes=e.data.roomTypes,t.houseStyle=e.data.houseStyle,t.createData(),t.$store.commit("loading/hideLoading")}))},createData:function(){this.pkgData=[{picks:this.pickList[0],name:this.roomTypes[0],on:1}];for(var t=this.orderForm,e=0;e1?arguments[1]:void 0)}})}}]);