chunk-5ce452c0.6b80711b.js 5.2 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ce452c0"],{"15e4":function(t,r,e){"use strict";e.d(r,"a",(function(){return s})),e.d(r,"d",(function(){return o})),e.d(r,"e",(function(){return i})),e.d(r,"f",(function(){return d})),e.d(r,"c",(function(){return n})),e.d(r,"b",(function(){return c}));var a=e("0088");function s(t){return Object(a["a"])({url:"bid/orders",method:"post",data:t})}function o(t){return Object(a["a"])({url:"bid/orders/".concat(t),method:"get"})}function i(t){return Object(a["a"])({url:"bid/orders",method:"get",params:t})}function d(t,r){return Object(a["a"])({url:"bid/orders/".concat(t),method:"put",data:r})}function n(t){return Object(a["a"])({url:"bid/orders/".concat(t,"/export"),method:"get"})}function c(t){return Object(a["a"])({url:"bid/orders/".concat(t),method:"delete"})}},"5b20":function(t,r,e){},9901:function(t,r,e){"use strict";e.d(r,"a",(function(){return s}));var a=e("53ca");e("d9e2"),e("d401"),e("4160"),e("b64b"),e("d3b7"),e("e25e"),e("4d63"),e("c607"),e("ac1f"),e("2c3e"),e("00b4"),e("25f0"),e("4d90"),e("5319"),e("159b");function s(t){if(!t&&"object"!==Object(a["a"])(t))throw new Error("error arguments","shallowClone");var r=t.constructor===Array?[]:{};return Object.keys(t).forEach((function(e){t[e]&&"object"===Object(a["a"])(t[e])?r[e]=s(t[e]):r[e]=t[e]})),r}},b3f9:function(t,r,e){"use strict";e.r(r);var a=function(){var t=this,r=t._self._c;return r("div",[r("van-nav-bar",{staticClass:"shadow mb-4",attrs:{title:"报价单详情","left-text":"返回","left-arrow":""},on:{"click-left":function(r){return t.$router.back(-1)}}}),r("div",{staticClass:"mt-2 w-23/24 mx-auto"},[r("div",{staticClass:"mb-4 shadow"},[r("p",{staticClass:"bg-blue-400 text-white px-4 py-2"},[t._v("基本信息")]),r("div",{staticClass:"p-4 bg-white"},[r("div",{staticClass:"pb-1 text-yellow-600 font-bold"},[r("span",[t._v("套餐名称")]),t._v(t._s(t.orderInfo.pkg_name))]),r("div",{staticClass:"pb-1"},[r("span",{staticClass:"font-bold"},[t._v("客户姓名:")]),t._v(t._s(t.orderInfo.customer_name))]),r("div",{staticClass:"pb-1"},[r("span",{staticClass:"font-bold"},[t._v("客户手机:")]),t._v(t._s(t.orderInfo.customer_phone))]),r("div",{staticClass:"pb-1"},[r("span",{staticClass:"font-bold"},[t._v("房屋地址:")]),t._v(t._s(t.orderInfo.house_address))]),r("div",{staticClass:"pb-1"},[r("span",{staticClass:"font-bold"},[t._v("房屋面积:")]),t._v(t._s(t.orderInfo.house_area))]),r("div",{staticClass:"pb-1"},[r("span",{staticClass:"font-bold"},[t._v("报价金额:")]),t._v(t._s(t.orderInfo.total_price))])])]),r("div",{staticClass:"mb-4 shadow"},[r("p",{staticClass:"bg-yellow-400 text-white px-4 py-2"},[t._v("房屋参数")]),r("div",{staticClass:"p-4 bg-white"},[t._m(0),t._l(t.param,(function(e,a){return r("div",{key:a,staticClass:"flex border-b text-center"},[r("div",{staticClass:"w-1/5 py-2 border-r border-l"},[t._v(t._s(e.room_name))]),r("div",{staticClass:"w-1/5 py-2 border-r"},[t._v(t._s(e.area)+"㎡")]),r("div",{staticClass:"w-1/5 py-2 border-r"},[t._v(t._s(e.round)+"m")]),r("div",{staticClass:"w-1/5 py-2 border-r"},[t._v(t._s(e.hole)+"m")]),r("div",{staticClass:"w-1/5 py-2 border-r"},[t._v(t._s(e.window)+"m")])])}))],2)]),r("div",{staticClass:"shadow"},[r("p",{staticClass:"bg-red-400 text-white px-4 py-2"},[t._v("报价明细")]),r("div",{staticClass:"p-4 bg-white"},[r("div",{staticClass:"pb-2"},[r("van-collapse",{attrs:{accordion:"",border:!1},model:{value:t.activeNames,callback:function(r){t.activeNames=r},expression:"activeNames"}},[r("van-collapse-item",{attrs:{title:"套餐内总报价:"+Math.round(10*(t.orderInfo.package_price+t.orderInfo.inclusive_price))/10,name:"build_cost","is-link":!1,disabled:""}}),r("van-collapse-item",{attrs:{title:"个性化总报价:"+Math.round(10*t.orderInfo.customize_price)/10,name:"material_cost","is-link":!1,disabled:""}}),r("van-collapse-item",{attrs:{title:"总精算报价:"+Math.round(10*t.orderInfo.total_price)/10,name:"total_price","is-link":!1,disabled:""}})],1)],1)])])])],1)},s=[function(){var t=this,r=t._self._c;return r("div",{staticClass:"flex border-b border-t text-center"},[r("div",{staticClass:"w-1/5 font-bold py-2 border-r border-l"},[t._v("房间")]),r("div",{staticClass:"w-1/5 font-bold py-2 border-r"},[t._v("面积")]),r("div",{staticClass:"w-1/5 font-bold py-2 border-r"},[t._v("周长")]),r("div",{staticClass:"w-1/5 font-bold py-2 border-r"},[t._v("门洞")]),r("div",{staticClass:"w-1/5 font-bold py-2 border-r"},[t._v("窗宽")])])}],o=e("15e4"),i=e("9901"),d={data:function(){return{activeNames:[],orderInfo:{package_price_decode:{build_price:{}},param_decode:[],customize_price_decode:{},inclusive_price_decode:{}},param:[],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(o["d"])(this.orderID).then((function(r){t.orderInfo=r.data.orderInfo,t.param=Object(i["a"])(t.orderInfo.param_decode),t.param.pop(),t.bidList=r.data.bidList,t.$store.commit("loading/hideLoading")}))}}},n=d,c=(e("d7a0"),e("2877")),l=Object(c["a"])(n,a,s,!1,null,null,null);r["default"]=l.exports},d7a0:function(t,r,e){"use strict";e("5b20")}}]);