chunk-541e9d76.9b3a27e3.js 2.6 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-541e9d76"],{4662:function(t,e,n){"use strict";n("68ef"),n("a71a"),n("9d70"),n("3743"),n("09fe"),n("4d75"),n("e3b3"),n("8270"),n("786d"),n("504b")},e237:function(t,e,n){"use strict";n.r(e);var s=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-empty",{directives:[{name:"show",rawName:"v-show",value:0==t.houseList.length,expression:"houseList.length == 0"}],attrs:{description:"暂无房屋信息"}}),t._l(t.houseList,(function(n,s){return e("div",{key:s,staticClass:"bg-white mb-4 w-11/12 mx-auto text-sm shadow"},[e("div",{staticClass:"p-4"},[e("div",{staticClass:"flex justify-between items-center"},[e("div",{staticClass:"text-lg mb-2 w-5/4"},[t._v(" "+t._s(n.address)+" "+t._s(n.village)+" "+t._s(n.room_no)+" "+t._s(n.area?n.area+"m²":"")+" ")])]),e("div",[e("span",{staticClass:"mr-2"},[t._v(t._s(n.layout))])]),e("div",[n.designer_name?e("p",{staticClass:"py-2"},[t._v(" 设计师:"+t._s(n.designer_name)+" ")]):t._e()]),e("div",{staticClass:"flex justify-end items-center"},[1==n.state?e("van-button",{attrs:{type:"primary",size:"small",round:""},on:{click:function(e){return t.checkContract(n)}}},[t._v("确认合同")]):t._e(),3==n.state?e("van-button",{attrs:{type:"primary",size:"small",round:""},on:{click:function(e){return t.checkStart(n)}}},[t._v("确认开工")]):t._e()],1)])])}))],2)},a=[],i=(n("e17f"),n("2241")),o=(n("4662"),n("28a2")),c=(n("b64b"),n("7952")),r={data:function(){return{showDialog:!1,dialogText:"添加房屋",houseList:[],houseForm:{},loading:!1,error:!1,page:1,finished:!1}},created:function(){this.loadHouseList()},methods:{ImagePreview:o["a"],jsonArray:function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){return[]}return t instanceof Array?t:[]},loadHouseList:function(){var t=this;this.loading=!0,Object(c["k"])().then((function(e){t.loading=!1,t.houseList=e.data.list})).catch((function(){t.loading=!1,t.error=!0}))},checkContract:function(t){var e=this;i["a"].confirm({title:"提示",message:"是否确认合同?"}).then((function(){Object(c["b"])(t.id).then((function(t){e.loading=!1,e.loadHouseList()})).catch((function(){e.loading=!1}))})).catch((function(){}))},checkStart:function(t){var e=this;i["a"].confirm({title:"提示",message:"是否确认开工?"}).then((function(){Object(c["c"])(t.id).then((function(t){e.loading=!1,e.loadHouseList()})).catch((function(){e.loading=!1}))})).catch((function(){}))}}},u=r,l=n("2877"),d=Object(l["a"])(u,s,a,!1,null,null,null);e["default"]=d.exports}}]);