chunk-106311f6.6ef2ea19.js 10 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-106311f6"],{"0b03":function(t,e,a){},"1df0":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("base-form",{ref:"ruleForm",attrs:{slot:"content",data:t.searchData},slot:"content"},[a("div",{attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"xl-form-btn bgc1",attrs:{loading:t.listLoading,icon:"el-icon-search"},on:{click:t.searchHandle}},[t._v("查询")]),a("el-button",{staticClass:"xl-form-btn bgc2",attrs:{loading:t.listLoading,icon:"el-icon-document"},on:{click:t.toExportExcel}},[t._v("导出")])],1)])},r=[],o=a("5530"),n=(a("99af"),{props:{listLoading:Boolean},inject:["parentData"],data:function(){return{searchData:[{label:"土拍时间",label2:"开始时间",label3:"结束时间",key:"startEndTime",type:"datePicker"},{label:"地块编号",key:"no"},{label:"用途",key:"purpose"},{label:"区域",key:"area_type",type:"select",options:this.$dictData.area_type}]}},methods:{toExportExcel:function(){var t=this.$refs.ruleForm.baseForm,e=Object(o["a"])({},t);if(e.startEndTime){e.start_at=e.startEndTime[0],e.end_at=e.startEndTime[1],delete e.startEndTime;var a=window.sessionStorage.getItem("fp_token");window.open("https://api.honglouplus.com/adm/land/export?token=".concat(encodeURIComponent(a),"&start_at=").concat(e.start_at,"&end_at=").concat(e.end_at))}else this.$msgw("请选择导出的时间范围")},searchHandle:function(){var t=this.$refs.ruleForm.baseForm,e=Object(o["a"])({},t);this.$emit("change",e)}}}),s=n,l=a("2877"),c=Object(l["a"])(s,i,r,!1,null,null,null);e["default"]=c.exports},2577:function(t,e,a){"use strict";a("0b03")},"3baa":function(t,e,a){},"4fef":function(t,e,a){"use strict";a.r(e);var i=a("ade3"),r=a("5530");a("4e82"),a("e9c4"),a("a9e3");e["default"]={data:function(){return{listLoading:!1,tableData:[],currentPage:1,pageSize:10,totalRecords:1,listConfig:{},operations:[]}},created:function(){var t=this;this.$nextTick((function(){t.noCreated||t.fetchData()}))},methods:{searchHandle:function(t){this.currentPage=1,this.searchForm=t,this.fetchData()},sizeChange:function(t){this.pageSize=t,this.currentPage=1,this.fetchData()},pageHandle:function(t){this.currentPage=t,this.fetchData()},sortChange:function(t){this.currentPage=1;var e=Object(r["a"])({},this.searchForm);"ascending"===t.order?e.sort=JSON.stringify(Object(i["a"])({},t.prop,"asc")):e.sort=JSON.stringify(Object(i["a"])({},t.prop,"desc")),this.searchForm=Object(r["a"])({},e),this.fetchData(e)},fetchData:function(t){var e=this;if(this.apiStr){var a={page:this.currentPage,page_size:this.pageSize};t?a=Object(r["a"])(Object(r["a"])({},a),t):this.searchForm&&(a=Object(r["a"])(Object(r["a"])({},a),this.searchForm)),this.getDataBefore&&this.getDataBefore(a),this.listLoading=!0;var i=this.apiStr.split(".");this.$api[i[0]][i[1]](a).then((function(t){return 1===e.currentPage&&(e.pageSize=t.page_size||1),e.totalRecords=t.total?Number(t.total):0,e.tableData=t.list||[],e.listLoading=!1,e.getMoreData&&e.getMoreData(t,a),t})).catch((function(t){e.listLoading=!1}))}}}}},"7a67":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("search-form",{attrs:{"list-loading":t.listLoading},on:{change:t.searchHandle}}),a("table-list",{attrs:{"list-loading":t.listLoading,data:t.tableData2,columns:t.listConfig,"current-page":t.currentPage,"page-size":t.pageSize,"total-records":t.totalRecords,isAdd:!0},on:{currentChange:t.pageHandle,sizeChange:t.sizeChange,add:t.openPopup}}),a("popup-edit",{attrs:{isShow:t.isDtlShow,curObj:t.curObj},on:{close:t.closePopup}})],1)},r=[],o=a("2909"),n=(a("d81d"),a("ed08")),s=a("1df0"),l=a("a2bc"),c=a("4fef"),p={name:"index",components:{SearchForm:s["default"],PopupEdit:l["default"]},provide:function(){return{parentData:this}},mixins:[c["default"]],data:function(){return{apiStr:"house.admlandlist",searchForm:null,isDtlShow:!1,curObj:{}}},computed:{tableData2:function(){var t=this,e=Object(o["a"])(this.tableData);return e.map((function(e){e.pri_image=t.IMadd(e.pri_image)})),e}},created:function(){},mounted:function(){this.listConfig={rows:[{label:"土拍图",prop:"pri_image",type:"img"},{label:"地块编号",prop:"no"},{label:"区域",prop:"area_type",type:"tag",tags:Object(n["a"])(this.$dictData.area_type)},{label:"竞得单位",prop:"company"},{label:"成交日期",prop:"deal_time"},{label:"成交价(万元/亩)",prop:"final_price"},{label:"成交楼面价(元)",prop:"floor_price"},{label:"起拍价(万元/亩)",prop:"start_total_price"},{label:"起拍单价(元)",prop:"start_unit_price"},{label:"溢价率(%)",prop:"premium_rate"},{label:"出让面积(亩)",prop:"sell_area"},{label:"毛坯限价(元/㎡)",prop:"built_area"},{label:"出让年限(年)",prop:"sell_ownership"},{label:"用途",prop:"purpose"},{label:"容积率",prop:"plot_ratio"},{label:"操作",width:120,type:"handle2",operations:[{label:"编辑",func:this.openPopup,btnType:"primary"},{label:"删除",func:this.delHandle,btnType:"danger"}]}]}},methods:{delHandle:function(t){var e=this;this.$msg("您确定要删除该文章吗?","confirm",(function(){e.$api.house.admlanddel({id:t.id}).then((function(t){e.$msgs("已删除!"),e.fetchData()}))}),null,!0)},openPopup:function(t){t&&t.id?this.curObj=t:this.curObj={},this.isDtlShow=!0},closePopup:function(t){this.isDtlShow=!1,t&&this.fetchData()}}},u=p,d=(a("2577"),a("2877")),f=Object(d["a"])(u,i,r,!1,null,"596231d2",null);e["default"]=f.exports},"929b":function(t,e,a){"use strict";a("3baa")},a2bc:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-dialog",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"show-close":!1,"close-on-click-modal":!1,visible:t.isShow,title:t.curObj.id?"编辑土拍":"新增土拍",fullscreen:!1,width:"700px","custom-class":"xl-dialog",center:""},on:{"update:visible":function(e){t.isShow=e}}},[a("base-form",{ref:"ruleForm",staticClass:"lib-edit",attrs:{data:t.formData,"is-inline":!1,"label-width":"110px"}},[a("div",{staticStyle:{"padding-top":"20px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{staticClass:"xl-form-btn t2",on:{click:t.close}},[t._v("关 闭")]),a("el-button",{staticClass:"xl-form-btn t1",on:{click:function(e){return t.close("confirm")}}},[t._v("确定")])],1)])],1)],1)},r=[],o=a("5530"),n=(a("b680"),a("a9e3"),{components:{},mixins:mixins,props:{isShow:Boolean,curObj:Object},inject:["parentData"],data:function(){return{formData:[],loading:!0,cObj:{},isShowMap:!1}},watch:{isShow:function(t){var e=this;t&&t&&(this.curObj.id?this.$api.house.admlanddetail({id:this.curObj.id}).then((function(t){var a=t||{};e.cObj=a||{},e.getDef()})):(this.cObj=this.curObj,this.getDef()))}},methods:{getDef:function(t){var e=Object(o["a"])({},this.cObj);"final_price"===t&&(e=Object(o["a"])({},this.$refs.ruleForm.baseForm),e.final_price&&e.plot_ratio&&(e.floor_price=(1e4*Number(e.final_price)/(666.6666666667*Number(e.plot_ratio))).toFixed(2)),e.start_total_price&&e.final_price&&(e.premium_rate=((Number(e.final_price)-Number(e.start_total_price))/Number(e.start_total_price)*100).toFixed(2))),"floor_price"===t&&(e=Object(o["a"])({},this.$refs.ruleForm.baseForm),e.floor_price&&e.plot_ratio&&(e.final_price=(666.6666666667*Number(e.plot_ratio)*Number(e.floor_price)/1e4).toFixed(2)),e.start_unit_price&&e.floor_price&&(e.premium_rate=((Number(e.floor_price)-Number(e.start_unit_price))/Number(e.start_unit_price)*100).toFixed(2))),"start_total_price"===t&&(e=Object(o["a"])({},this.$refs.ruleForm.baseForm),e.start_total_price&&e.plot_ratio&&(e.start_unit_price=(1e4*Number(e.start_total_price)/(666.6666666667*Number(e.plot_ratio))).toFixed(2)),e.start_total_price&&e.final_price&&(e.premium_rate=((Number(e.final_price)-Number(e.start_total_price))/Number(e.start_total_price)*100).toFixed(2))),"start_unit_price"===t&&(e=Object(o["a"])({},this.$refs.ruleForm.baseForm),e.start_unit_price&&e.plot_ratio&&(e.start_total_price=(666.6666666667*Number(e.plot_ratio)*Number(e.start_unit_price)/1e4).toFixed(2)),e.start_unit_price&&e.floor_price&&(e.premium_rate=((Number(e.floor_price)-Number(e.start_unit_price))/Number(e.start_unit_price)*100).toFixed(2))),this.formData=[{label:"地块编号",key:"no",class:"c-2"},{label:"区域",key:"area_type",type:"select",class:"c-2",options:this.$dictData.area_type},{label:"竞得单位",key:"company",class:"c-2"},{label:"成交日期",key:"deal_time",class:"c-2",type:"datePicker",type2:"date"},{label:"容积率",key:"plot_ratio",class:"c-2"},{label:"用途",key:"purpose",class:"c-2"},{label:"成交价",key:"final_price",class:"c-2",type:"inputFont",appendFont:"万元/亩",changeHandle:this.finalPriceChange},{label:"成交楼面价",key:"floor_price",class:"c-2",type:"inputFont",appendFont:"元",changeHandle:this.floorPriceChange},{label:"起拍价",key:"start_total_price",class:"c-2",type:"inputFont",appendFont:"万元/亩",changeHandle:this.startTotalPriceChange},{label:"起拍楼面价",key:"start_unit_price",class:"c-2",type:"inputFont",appendFont:"元",changeHandle:this.startUnitPriceChange},{label:"溢价率",key:"premium_rate",class:"c-2",type:"inputFont",appendFont:"%"},{label:"出让年限",key:"sell_ownership",class:"c-2",type:"inputFont",appendFont:"年"},{label:"出让面积",key:"sell_area",class:"c-2",type:"inputFont",appendFont:"亩"},{label:"毛坯限价",key:"built_area",class:"c-2",type:"inputFont",appendFont:"元/㎡"},{label:"地块位置",key:"land_name",class:"c-2",type:"textarea"},{label:"土拍主图",key:"pri_image",type:"upload",class:"c-2"}],e.pri_image=this.IMadd(e.pri_image),this.setDefaultValue(e)},finalPriceChange:function(){this.getDef("final_price")},floorPriceChange:function(){this.getDef("floor_price")},startTotalPriceChange:function(){this.getDef("start_total_price")},startUnitPriceChange:function(){this.getDef("start_unit_price")},close:function(t){var e=this;"confirm"===t?this.$refs["ruleForm"].$refs["baseForm"].validate((function(t){if(t){var a=e.$refs.ruleForm.baseForm,i=Object(o["a"])({},a);e.curObj.id&&(i.id=e.curObj.id);var r="admlandadd";i.id&&(r="admlandedit"),i.pri_image=e.IMdel(i.pri_image),e.$api.house[r](i).then((function(t){e.$msgs(i.id?"编辑成功":"新增成功"),e.$emit("close",i)}))}})):(this.$emit("close"),this.setDefaultValue())}}}),s=n,l=(a("929b"),a("2877")),c=Object(l["a"])(s,i,r,!1,null,"5b46c97f",null);e["default"]=c.exports}}]);