1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-79720b18"],{"06a8":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div")},o=[],i=n("795b"),r=n.n(i),c=(n("7f7f"),n("ac6a"),n("f20c")),s=n("5cab"),l=n("f499"),u=n.n(l),f=n("8982"),d="/industryParkApi",m="/wx/data",h="/wx/public",p="/wx/dictController";function g(t){return Object(f["a"])({url:d+m+"/listBizAll/"+t,method:"post"})}function v(t){return Object(f["a"])({url:d+h+"/listProjectAll",method:"post",data:t})}function b(t){return Object(f["a"])({url:d+p+"/getByCodes",method:"post",data:t})}function y(t){var e={codes:u()(t)};return new r.a(function(t,n){b(e).then(function(e){t(e)}).catch(function(t,e){n(t,e)})})}var k=n("3089"),C={name:"BaseData",data:function(){return{currentPage:1,totalSize:0,pageSize:10,InitialLoading:!0,allLoaded:!1,bottomStatus:"",StaffData:[],StaffMap:{},BizData:[],BizMap:{},UserProject:[],ProjectData:[],ProjectMap:{},dialogImageUrl:"",dialogImageVisible:!1,dc_map:{},dc_data:{},dc_map_no_all:{},dc_data_no_all:{}}},mounted:function(){},methods:{initDict:function(t){var e=this;return t||(t=e.dc_key),y(t).then(function(t){t.data&&e.dc_key.forEach(function(n){var a=e.getDictValue(t.data,n,!0);e.dc_data[n]=a,e.dc_map[n]=e.$common.transDcMap(a);var o=e.getDictValue(t.data,n,!1);e.dc_data_no_all[n]=o,e.dc_map_no_all[n]=e.$common.transDcMap(o)})})},initDict2:function(t){var e=this;return t||(t=e.dc_key),y(t).then(function(t){t.data&&e.dc_key.forEach(function(n){var a=e.getDictValue(t.data,n,!1);e.dc_data[n]=a,e.dc_map[n]=e.$common.transDcMap(a);var o=e.getDictValue(t.data,n,!1);e.dc_data_no_all[n]=o,e.dc_map_no_all[n]=e.$common.transDcMap(o)})})},initBiz:function(){var t=this;return this.BizData=[],g(s["a"].uid()).then(function(e){e.data&&e.data.forEach(function(e){var n={label:e.businessName,value:e.id};t.BizData.push(n),t.BizMap[e.id]=e.businessName})}).catch(function(){})},initProjectData:function(){var t=this;return this.ProjectData=[],v(s["a"].uid()).then(function(e){e.data&&e.data.forEach(function(e){var n={label:e.name,value:e.id};t.ProjectData.push(n),t.ProjectMap[n.value]=e})}).catch(function(){})},pagination:function(t){var e=this.currentPage,n=this.pageSize,a=e*n-n,o=e*n;return t.slice(a,o)},getDictValue:function(t,e,n){var a=t[e]?c["a"].castEval(t[e].dictValue):[],o=[];if(a.forEach(function(t){var e={id:t.id,isSearch:t.isSearch,label:t.label,value:t.value,active:!1};o.push(e)}),n){var i={label:"全部",value:"",active:!0};o.unshift(i)}return o},confirm:function(t,e){return new r.a(function(n,a){k["Dialog"].confirm({title:e,message:t}).then(function(t){n(t)}).catch(function(t){Object(k["Toast"])("已取消"),a(t)})})},handleBottomChange:function(t){console.log("handleBottomChange:"+t),this.bottomStatus=t,"drop"===this.bottomStatus&&this.currentPage++},loadBottom:function(){var t=this,e=this;console.log("loadBottom"),setTimeout(function(){e.getData(),t.$refs.loadmore.onBottomLoaded()},500)},imgPreview:function(t){this.dialogImageUrl="/industryParkApi/wx/img/viewImg/"+t,this.dialogImageVisible=!0},imgRemove:function(t,e){var n=e.indexOf(t);e.splice(n,1)},noImg:function(){var t=event.srcElement;t.src=n("aed7"),t.onerror=null}}},P=C,_=n("2877"),x=Object(_["a"])(P,a,o,!1,null,"3fa5b905",null);e["a"]=x.exports},"0a0d":function(t,e,n){t.exports=n("e829")},"0a49":function(t,e,n){var a=n("9b43"),o=n("626a"),i=n("4bf8"),r=n("9def"),c=n("cd1c");t.exports=function(t,e){var n=1==t,s=2==t,l=3==t,u=4==t,f=6==t,d=5==t||f,m=e||c;return function(e,c,h){for(var p,g,v=i(e),b=o(v),y=a(c,h,3),k=r(b.length),C=0,P=n?m(e,k):s?m(e,0):void 0;k>C;C++)if((d||C in b)&&(p=b[C],g=y(p,C,v),t))if(n)P[C]=g;else if(g)switch(t){case 3:return!0;case 5:return p;case 6:return C;case 2:P.push(p)}else if(u)return!1;return f?-1:l||u?u:P}}},"0a90":function(t,e,n){var a=n("63b6"),o=n("10ff");a(a.G+a.F*(parseFloat!=o),{parseFloat:o})},"10ff":function(t,e,n){var a=n("e53d").parseFloat,o=n("a1ce").trim;t.exports=1/a(n("e692")+"-0")!==-1/0?function(t){var e=o(String(t),3),n=a(e);return 0===n&&"-"==e.charAt(0)?-0:n}:a},1169:function(t,e,n){var a=n("2d95");t.exports=Array.isArray||function(t){return"Array"==a(t)}},"20d6":function(t,e,n){"use strict";var a=n("5ca1"),o=n("0a49")(6),i="findIndex",r=!0;i in[]&&Array(1)[i](function(){r=!1}),a(a.P+a.F*r,"Array",{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(i)},"28a5":function(t,e,n){"use strict";var a=n("aae3"),o=n("cb7c"),i=n("ebd6"),r=n("0390"),c=n("9def"),s=n("5f1b"),l=n("520a"),u=n("79e5"),f=Math.min,d=[].push,m="split",h="length",p="lastIndex",g=4294967295,v=!u(function(){RegExp(g,"y")});n("214f")("split",2,function(t,e,n,u){var b;return b="c"=="abbc"[m](/(b)*/)[1]||4!="test"[m](/(?:)/,-1)[h]||2!="ab"[m](/(?:ab)*/)[h]||4!="."[m](/(.?)(.?)/)[h]||"."[m](/()()/)[h]>1||""[m](/.?/)[h]?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!a(t))return n.call(o,t,e);var i,r,c,s=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,m=void 0===e?g:e>>>0,v=new RegExp(t.source,u+"g");while(i=l.call(v,o)){if(r=v[p],r>f&&(s.push(o.slice(f,i.index)),i[h]>1&&i.index<o[h]&&d.apply(s,i.slice(1)),c=i[0][h],f=r,s[h]>=m))break;v[p]===i.index&&v[p]++}return f===o[h]?!c&&v.test("")||s.push(""):s.push(o.slice(f)),s[h]>m?s.slice(0,m):s}:"0"[m](void 0,0)[h]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,a){var o=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,o,a):b.call(String(o),n,a)},function(t,e){var a=u(b,t,this,e,b!==n);if(a.done)return a.value;var l=o(t),d=String(this),m=i(l,RegExp),h=l.unicode,p=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(v?"y":"g"),y=new m(v?l:"^(?:"+l.source+")",p),k=void 0===e?g:e>>>0;if(0===k)return[];if(0===d.length)return null===s(y,d)?[d]:[];var C=0,P=0,_=[];while(P<d.length){y.lastIndex=v?P:0;var x,D=s(y,v?d:d.slice(P));if(null===D||(x=f(c(y.lastIndex+(v?0:P)),d.length))===C)P=r(d,P,h);else{if(_.push(d.slice(C,P)),_.length===k)return _;for(var w=1;w<=D.length-1;w++)if(_.push(D[w]),_.length===k)return _;P=C=x}}return _.push(d.slice(C)),_}]})},"2bc1":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"add"},[n("div",{staticClass:"white-box top-box"},[n("p",[t._v("合同要素编号:")]),n("p",[t._v("原合同要素编号: "+t._s(t.form.contractElementNo))])]),n("div",{staticClass:"white-box form-part"},[t._m(0),n("van-form",[n("van-field",{staticClass:"input-item",attrs:{readonly:"",clickable:"",placeholder:"请选择","input-align":"right",label:"*企业名称"},on:{click:function(e){t.showPicker_qy=!0}},scopedSlots:t._u([{key:"button",fn:function(){return[n("i",{staticClass:"iconfont icon-zuo"})]},proxy:!0}]),model:{value:t.form.enterpriseName,callback:function(e){t.$set(t.form,"enterpriseName",e)},expression:"form.enterpriseName"}}),n("van-popup",{attrs:{position:"bottom"},model:{value:t.showPicker_qy,callback:function(e){t.showPicker_qy=e},expression:"showPicker_qy"}},[n("van-picker",{attrs:{"show-toolbar":"","item-height":"40",columns:t.qyList},on:{confirm:function(e){return t.onConfirmPaymentCycle(e,"qy")},cancel:function(e){t.showPicker_qy=!1}}})],1),n("div",{staticClass:"white-box page-1"},[n("div",{staticClass:"custom-item-tit"},[n("p",{staticClass:"tit"},[t._v("*楼盘/楼栋/房间号")]),n("span",{staticClass:"normal-button-app z-bt",on:{click:function(e){t.showPicker_2=!0}}},[t._v("新增")])]),t.selectList.length>0?n("div",{staticClass:"tips-list-box"},t._l(t.selectList,function(e,a){return n("div",{staticClass:"close-tips"},[n("span",[t._v(t._s(e))]),n("i",{staticClass:"iconfont icon-guanbi",on:{click:function(e){return t.getDelect(a)}}})])}),0):n("div",{staticClass:"tips-list-box none-tips"},[t._v("请选择")])]),n("van-popup",{attrs:{position:"bottom"},model:{value:t.showPicker_2,callback:function(e){t.showPicker_2=e},expression:"showPicker_2"}},[n("van-picker",{attrs:{"show-toolbar":"",columns:t.items},on:{confirm:t.onConfirm,cancel:function(e){t.showPicker_2=!1}}})],1),n("van-field",{staticClass:"input-item",attrs:{label:"免费停车位(个)","input-align":"right",placeholder:"请填写"},model:{value:t.form.freeParkingSpace,callback:function(e){t.$set(t.form,"freeParkingSpace",e)},expression:"form.freeParkingSpace"}}),n("van-field",{staticClass:"input-item",attrs:{readonly:"",clickable:"","input-align":"right",name:"datetimePicker",label:"*合同日期起",placeholder:"请选择"},on:{click:function(e){t.showPicker_3=!0}},scopedSlots:t._u([{key:"button",fn:function(){return[n("i",{staticClass:"iconfont icon-zuo"})]},proxy:!0}]),model:{value:t.form.contractDateStart,callback:function(e){t.$set(t.form,"contractDateStart",e)},expression:"form.contractDateStart"}}),n("van-popup",{attrs:{position:"bottom"},model:{value:t.showPicker_3,callback:function(e){t.showPicker_3=e},expression:"showPicker_3"}},[n("van-datetime-picker",{attrs:{type:"date"},on:{confirm:function(e){return t.onDateConfirm(e,"3")},cancel:function(e){t.showPicker_3=!1}}})],1),n("van-field",{staticClass:"input-item",attrs:{readonly:"",clickable:"","input-align":"right",name:"datetimePicker",label:"*合同日期止",placeholder:"请选择"},on:{click:function(e){t.showPicker_4=!0}},scopedSlots:t._u([{key:"button",fn:function(){return[n("i",{staticClass:"iconfont icon-zuo"})]},proxy:!0}]),model:{value:t.form.contractDateEnd,callback:function(e){t.$set(t.form,"contractDateEnd",e)},expression:"form.contractDateEnd"}}),n("van-popup",{attrs:{position:"bottom"},model:{value:t.showPicker_4,callback:function(e){t.showPicker_4=e},expression:"showPicker_4"}},[n("van-datetime-picker",{attrs:{type:"date"},on:{confirm:function(e){return t.onDateConfirm(e,"4")},cancel:function(e){t.showPicker_4=!1}}})],1),n("van-field",{staticClass:"input-item",attrs:{label:"*合同周期(月)","input-align":"right",placeholder:"请填写"},model:{value:t.form.contractPeriod,callback:function(e){t.$set(t.form,"contractPeriod",e)},expression:"form.contractPeriod"}}),n("van-field",{staticClass:"input-item",attrs:{label:"押金(元)","input-align":"right",placeholder:"请填写"},model:{value:t.form.deposit,callback:function(e){t.$set(t.form,"deposit",e)},expression:"form.deposit"}})],1)],1),n("div",{staticClass:"white-box form-part"},[t._m(1),n("van-form",[n("van-field",{staticClass:"input-item",attrs:{label:"*月租金(元)","input-align":"right",placeholder:"请填写"},on:{change:t.monthlyRentChange},model:{value:t.form.monthlyRent,callback:function(e){t.$set(t.form,"monthlyRent",e)},expression:"form.monthlyRent"}}),n("van-field",{staticClass:"input-item",attrs:{label:"年租金(元)","input-align":"right",placeholder:"请填写"},model:{value:t.form.yearRent,callback:function(e){t.$set(t.form,"yearRent",e)},expression:"form.yearRent"}}),n("van-field",{staticClass:"input-item",attrs:{label:"租金合计(元)","input-align":"right",placeholder:"请填写"},model:{value:t.form.totalRent,callback:function(e){t.$set(t.form,"totalRent",e)},expression:"form.totalRent"}}),n("van-field",{staticClass:"input-item",attrs:{readonly:"",clickable:"",placeholder:"请选择","input-align":"right",label:"租金支付周期"},on:{click:function(e){t.showPicker_8=!0}},scopedSlots:t._u([{key:"button",fn:function(){return[n("i",{staticClass:"iconfont icon-zuo"})]},proxy:!0}]),model:{value:t.form.rentPaymentCycle,callback:function(e){t.$set(t.form,"rentPaymentCycle",e)},expression:"form.rentPaymentCycle"}}),n("van-popup",{attrs:{position:"bottom"},model:{value:t.showPicker_8,callback:function(e){t.showPicker_8=e},expression:"showPicker_8"}},[n("van-picker",{attrs:{"show-toolbar":"","item-height":"40",columns:t.paymentCycleList},on:{confirm:function(e){return t.onConfirmPaymentCycle(e,"8")},cancel:function(e){t.showPicker_8=!1}}})],1),n("van-field",{staticClass:"input-item",attrs:{readonly:"",clickable:"","input-align":"right",name:"datetimePicker",label:"减免起始日期",placeholder:"请选择"},on:{click:function(e){t.showPicker_6=!0}},scopedSlots:t._u([{key:"button",fn:function(){return[n("i",{staticClass:"iconfont icon-zuo"})]},proxy:!0}]),model:{value:t.form.deductionStartDate,callback:function(e){t.$set(t.form,"deductionStartDate",e)},expression:"form.deductionStartDate"}}),n("van-popup",{attrs:{position:"bottom"},model:{value:t.showPicker_6,callback:function(e){t.showPicker_6=e},expression:"showPicker_6"}},[n("van-datetime-picker",{attrs:{type:"date"},on:{confirm:function(e){return t.onDateConfirm(e,"6")},cancel:function(e){t.showPicker_6=!1}}})],1),n("van-field",{staticClass:"input-item",attrs:{readonly:"",clickable:"","input-align":"right",name:"datetimePicker",label:"减免终止日期",placeholder:"请选择"},on:{click:function(e){t.showPicker_7=!0}},scopedSlots:t._u([{key:"button",fn:function(){return[n("i",{staticClass:"iconfont icon-zuo"})]},proxy:!0}]),model:{value:t.form.deductionEndDate,callback:function(e){t.$set(t.form,"deductionEndDate",e)},expression:"form.deductionEndDate"}}),n("van-popup",{attrs:{position:"bottom"},model:{value:t.showPicker_7,callback:function(e){t.showPicker_7=e},expression:"showPicker_7"}},[n("van-datetime-picker",{attrs:{type:"date"},on:{confirm:function(e){return t.onDateConfirm(e,"7")},cancel:function(e){t.showPicker_7=!1}}})],1),n("van-field",{staticClass:"input-item",attrs:{label:"减免周期(月)","input-align":"right",placeholder:"请填写"},model:{value:t.form.reductionCycle,callback:function(e){t.$set(t.form,"reductionCycle",e)},expression:"form.reductionCycle"}}),n("van-field",{staticClass:"input-item",attrs:{label:"减免租金(元)","input-align":"right",placeholder:"请填写"},model:{value:t.form.rentReduction,callback:function(e){t.$set(t.form,"rentReduction",e)},expression:"form.rentReduction"}})],1)],1),n("div",{staticClass:"white-box form-part part-3"},[t._m(2),n("van-form",[n("van-field",{staticClass:"input-item",attrs:{label:"*月物业管理费(元)","input-align":"right",placeholder:"请填写"},on:{change:t.monthlyPropertyManagementFeeChange},model:{value:t.form.monthlyPropertyManagementFee,callback:function(e){t.$set(t.form,"monthlyPropertyManagementFee",e)},expression:"form.monthlyPropertyManagementFee"}}),n("van-field",{staticClass:"input-item",attrs:{label:"年物业费(元)","input-align":"right",placeholder:"请填写"},model:{value:t.form.annualPropertyFee,callback:function(e){t.$set(t.form,"annualPropertyFee",e)},expression:"form.annualPropertyFee"}}),n("van-field",{staticClass:"input-item",attrs:{label:"物业费合计(元)","input-align":"right",placeholder:"请填写"},model:{value:t.form.totalPropertyCost,callback:function(e){t.$set(t.form,"totalPropertyCost",e)},expression:"form.totalPropertyCost"}}),n("van-field",{staticClass:"input-item",attrs:{"input-align":"right",label:"物业费支付周期",placeholder:"请选择",readonly:"",clickable:""},on:{click:function(e){t.showPicker_9=!0}},scopedSlots:t._u([{key:"button",fn:function(){return[n("i",{staticClass:"iconfont icon-zuo"})]},proxy:!0}]),model:{value:t.form.propertyFeePaymentCycle,callback:function(e){t.$set(t.form,"propertyFeePaymentCycle",e)},expression:"form.propertyFeePaymentCycle"}}),n("van-popup",{attrs:{position:"bottom"},model:{value:t.showPicker_9,callback:function(e){t.showPicker_9=e},expression:"showPicker_9"}},[n("van-picker",{attrs:{"show-toolbar":"","item-height":"40",columns:t.paymentCycleList},on:{confirm:function(e){return t.onConfirmPaymentCycle(e,"9")},cancel:function(e){t.showPicker_9=!1}}})],1),n("div",{staticClass:"custom-item-tit"},[n("div",{staticClass:"tit"},[t._v("备注")])]),n("van-field",{staticClass:"textarea-item input-item-warp",attrs:{autosize:"",autosize:"",type:"textarea",placeholder:"请填写"},model:{value:t.form.remark,callback:function(e){t.$set(t.form,"remark",e)},expression:"form.remark"}}),n("div",{staticClass:"block-cell-item"},[n("p",{staticClass:"label"},[t._v("\n\t\t\t\t\t图片上传"),n("span",{staticClass:"tips"},[t._v("(支持图片上传限20M内,最多6张)")])]),n("div",{staticClass:"tit"},[n("van-uploader",{attrs:{multiple:!0,"max-count":6,"after-read":t.afterRead,"before-delete":t.beforeDelete},model:{value:t.photoList,callback:function(e){t.photoList=e},expression:"photoList"}})],1)])],1)],1),n("div",{staticClass:"repair-bottom bottom-button"},[n("button",{staticClass:"btn",on:{click:t.addContract}},[t._v("提交")])])])},o=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"custom-item-tit"},[n("div",{staticClass:"tit"},[t._v("合同基础要素")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"custom-item-tit"},[n("div",{staticClass:"tit"},[t._v("房租要素")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"custom-item-tit"},[n("div",{staticClass:"tit"},[t._v("物业费要素")])])}],i=n("f499"),r=n.n(i),c=n("795b"),s=n.n(c),l=n("59ad"),u=n.n(l),f=(n("28a5"),n("20d6"),n("ac6a"),n("06a8")),d=n("ad68"),m=n("c518"),h=n("3bdb"),p=n("bc3a"),g=n.n(p),v=n("3089"),b=(n("5cab"),{mixins:[f["a"]],data:function(){return{dc_key:["paymentCycle"],form:{},showPicker_3:!1,showPicker_4:!1,showPicker_6:!1,showPicker_7:!1,showPicker_8:!1,showPicker_9:!1,showPicker_qy:!1,photoList:[],id:"",detail:"",contractPeriod:"",reductionCycle:"",contractDateStart:"",contractDateEnd:"",deductionStartDate:"",deductionEndDate:"",fileUrlList:[],showPicker_2:!1,items:[],selectList:[],paymentCycleList:[],qyList:[]}},watch:{contractPeriod:{deep:!0,immediate:!0,handler:function(t){this.contractPeriodChange()}},reductionCycle:{deep:!0,immediate:!0,handler:function(t){this.reductionCycleChange()}},contractDateStart:{deep:!0,immediate:!0,handler:function(t){this.contractDateChange()}},contractDateEnd:{deep:!0,immediate:!0,handler:function(t){this.contractDateChange()}},deductionStartDate:{deep:!0,immediate:!0,handler:function(t){this.deductionDateChange()}},deductionEndDate:{deep:!0,immediate:!0,handler:function(t){this.deductionDateChange()}}},mounted:function(){var t=this;this.initDict(this.dc_key).then(function(e){t.paymentCycleList=[],t.dc_data_no_all.paymentCycle.forEach(function(e){e.text=e.label,t.paymentCycleList.push(e)}),t.id=t.$route.query.id,t.findRoomTree(),setTimeout(function(){t.getById()},200)}),this.getBizMainList()},methods:{getDelect:function(t){this.selectList.splice(t,1)},onConfirm:function(t){var e="";if(t.forEach(function(t){e=e+t+"/"}),e=e.substring(0,e.length-1),this.selectList.length>0){var n=this.selectList.findIndex(function(t){return t===e});n<0&&this.selectList.push(e)}else this.selectList.push(e);this.showPicker_2=!1},findRoomTree:function(){var t=this;Object(h["d"])({}).then(function(e){t.items=e.data,console.log(e),console.log(t.items)})},onDateConfirm:function(t,e){"3"===e?(this.form.contractDateStart=Object(d["a"])(t,"day"),this.contractDateStart=this.form.contractDateStart):"4"===e?(this.form.contractDateEnd=Object(d["a"])(t,"day"),this.contractDateEnd=this.form.contractDateEnd):"6"===e?(this.form.deductionStartDate=Object(d["a"])(t,"day"),this.deductionStartDate=this.form.deductionStartDate):"7"===e&&(this.form.deductionEndDate=Object(d["a"])(t,"day"),this.deductionEndDate=this.form.deductionEndDate),this["showPicker_"+e]=!1},getById:function(){var t=this;Object(h["e"])(this.id).then(function(e){if(t.form=e,t.form.contractDateStart=t.$common.transDate(t.form.contractDateStart),t.form.contractDateEnd=t.$common.transDate(t.form.contractDateEnd),t.form.signingDate=t.$common.transDate(t.form.signingDate),t.form.deductionStartDate=t.$common.transDate(t.form.deductionStartDate),t.form.deductionEndDate=t.$common.transDate(t.form.deductionEndDate),t.form.annex&&t.form.annex.length>2){t.photoList=[];var n=[],a=t.$common.castEval(t.form.annex);a.forEach(function(t){n.push("https://www.idea-co-sf.com/industryParkApi"+t.url.substring(7,t.length))}),n.forEach(function(e){t.photoList.push(JSON.parse('{"url":"'+e+'","isImage": true}'))}),t.fileUrlList=a}var o=t.form.estateBuildingRoomNo.split(",");o.forEach(function(e){var n="",a=e.split("/");t.items.forEach(function(t){a[0]===t.id&&(n=n+t.text+"/",t.children.forEach(function(t){a[1]===t.id&&(n=n+t.text+"/",t.children.forEach(function(t){a[2]===t.id&&(n+=t.text)}))}))}),t.selectList.push(n)}),console.log(t.photoList),console.log(e)})},contractDateChange:function(){if(""!==this.form.contractDateStart&&""!==this.form.contractDateEnd){var t=new Date(this.form.contractDateStart),e=new Date(this.form.contractDateEnd),n=e.getTime()-t.getTime();this.form.contractPeriod=(u()(n)/u()(2592e6)).toFixed(1),this.contractPeriod=this.form.contractPeriod}},deductionDateChange:function(){if(""!==this.form.deductionStartDate&&""!==this.form.deductionEndDate){var t=new Date(this.form.deductionStartDate),e=new Date(this.form.deductionEndDate),n=e.getTime()-t.getTime();this.form.reductionCycle=(u()(n)/u()(2592e6)).toFixed(1),this.reductionCycle=this.form.reductionCycle}},monthlyRentChange:function(){this.form.monthlyRent&&(this.form.yearRent=12*u()(this.form.monthlyRent),this.form.contractPeriod&&(this.form.totalRent=(u()(this.form.monthlyRent)*u()(this.form.contractPeriod)).toFixed(2)),this.form.reductionCycle&&(this.form.rentReduction=(u()(this.form.monthlyRent)*u()(this.form.reductionCycle)).toFixed(2)))},reductionCycleChange:function(){this.form.monthlyRent&&this.form.reductionCycle&&(this.form.rentReduction=(u()(this.form.monthlyRent)*u()(this.form.reductionCycle)).toFixed(2))},contractPeriodChange:function(){this.form.contractPeriod&&(this.form.monthlyRent&&(this.form.totalRent=(u()(this.form.monthlyRent)*u()(this.form.contractPeriod)).toFixed(2)),this.form.monthlyPropertyManagementFee&&(this.form.totalPropertyCost=(u()(this.form.monthlyPropertyManagementFee)*u()(this.form.contractPeriod)).toFixed(2)))},monthlyPropertyManagementFeeChange:function(){this.form.monthlyPropertyManagementFee&&(this.form.annualPropertyFee=12*u()(this.form.monthlyPropertyManagementFee),this.form.totalPropertyCost=(u()(this.form.monthlyPropertyManagementFee)*u()(this.form.contractPeriod)).toFixed(2))},afterRead:function(t){var e=this;t instanceof Array?t.map(function(t){e.uploadImg(t)}):this.uploadImg(t)},uploadImg:function(t){var e=this,n=new FormData;n.append("file",t.file),console.log(n.get("file"));var a={headers:{"Content-Type":"multipart/form-data","MVVM-Key":String((new Date).getTime()),xx:"anything"}};return new s.a(function(t,o){g.a.post("/industryParkApi/wx/fileController/upload",n,a).then(function(t){var n=t.data.data.substring(1,t.data.data.length);n=n.substring(0,n.length-1),e.fileUrlList.push(e.$common.castEval(n)),console.log(e.photoList)}).catch(function(t,e){o(t,e)})})},beforeDelete:function(t,e){var n=this;return n.fileUrlList.splice(e.index,1),function(e,a){var o=a.index;n.fileUrlList[t].splice(o,1)}},onConfirmPaymentCycle:function(t,e){"8"===e?this.form.rentPaymentCycle=t.value:"9"===e?this.form.propertyFeePaymentCycle=t.value:"qy"===e&&(this.form.enterpriseName=t.text,this.form.enterpriseId=t.id),this["showPicker_"+e]=!1},getBizMainList:function(){var t=this;Object(m["b"])().then(function(e){e.data&&(t.qyList=[],e.data.forEach(function(e){e.text=e.businessName,t.qyList.push(e)}))})},addContract:function(){var t=this;if(""!==this.form.enterpriseName)if(0!==this.selectList.length)if(""!==this.form.contractDateStart)if(""!==this.form.contractDateEnd)if(""!==this.form.contractPeriod)if(""!==this.form.monthlyRent)if(""!==this.form.monthlyPropertyManagementFee){this.form.annex=r()(this.fileUrlList),this.form.confirmStatus="1";var e="";this.selectList.forEach(function(n){var a=n.split("/");t.items.forEach(function(t){a[0]===t.text&&(e=e+t.id+"/",t.children.forEach(function(t){a[1]===t.text&&(e=e+t.id+"/",t.children.forEach(function(t){a[2]===t.text&&(e+=t.id)}))}))}),e+=","}),e=e.substring(0,e.length-1),this.form.estateBuildingRoomNo=e,Object(h["b"])(this.form).then(function(t){Object(v["Toast"])("续签成功")})}else Object(v["Toast"])("请填写月物业管理费");else Object(v["Toast"])("请填写月租金");else Object(v["Toast"])("请填写合同周期");else Object(v["Toast"])("请选择合同结束日期");else Object(v["Toast"])("请选择合同起始日期");else Object(v["Toast"])("请选择房间号");else Object(v["Toast"])("请填写企业名称")}}}),y=b,k=(n("db71"),n("2877")),C=Object(k["a"])(y,a,o,!1,null,"764fb227",null);e["default"]=C.exports},"2cf5":function(t,e,n){},"2f37":function(t,e,n){var a=n("63b6");a(a.S,"Date",{now:function(){return(new Date).getTime()}})},"3bdb":function(t,e,n){"use strict";n.d(e,"f",function(){return r}),n.d(e,"e",function(){return c}),n.d(e,"g",function(){return s}),n.d(e,"b",function(){return l}),n.d(e,"c",function(){return u}),n.d(e,"a",function(){return f}),n.d(e,"d",function(){return d});var a=n("8982"),o="/industryParkApi",i="/wx/parkContract";function r(t){return Object(a["a"])({url:o+i+"/list",method:"post",data:t})}function c(t){return Object(a["a"])({url:o+i+"/getById?id="+t,method:"get"})}function s(t){return Object(a["a"])({url:o+i+"/remove",method:"post",data:t})}function l(t){return Object(a["a"])({url:o+i+"/addContract",method:"post",data:t})}function u(t){return Object(a["a"])({url:o+i+"/edit",method:"post",data:t})}function f(t){return Object(a["a"])({url:o+i+"/add",method:"post",data:t})}function d(t){return Object(a["a"])({url:o+i+"/findRoomTree",method:"post",data:t})}},"59ad":function(t,e,n){t.exports=n("7be7")},"5d6b":function(t,e,n){var a=n("e53d").parseInt,o=n("a1ce").trim,i=n("e692"),r=/^[-+]?0[xX]/;t.exports=8!==a(i+"08")||22!==a(i+"0x16")?function(t,e){var n=o(String(t),3);return a(n,e>>>0||(r.test(n)?16:10))}:a},7445:function(t,e,n){var a=n("63b6"),o=n("5d6b");a(a.G+a.F*(parseInt!=o),{parseInt:o})},"7be7":function(t,e,n){n("0a90"),t.exports=n("584a").parseFloat},"7f7f":function(t,e,n){var a=n("86cc").f,o=Function.prototype,i=/^\s*function ([^ (]*)/,r="name";r in o||n("9e1e")&&a(o,r,{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},8982:function(t,e,n){"use strict";n.d(e,"a",function(){return m}),n.d(e,"b",function(){return h});var a=n("795b"),o=n.n(a),i=n("bc3a"),r=n.n(i),c=n("4328"),s=n.n(c),l=n("4360"),u=n("5cab"),f=n("a18c"),d=n("3089");function m(t,e){t.headers||(t.headers={}),t.headers&&u["a"].getToken()&&(t.headers["RC-Token"]=u["a"].getToken());var n={method:t.method,url:t.url,data:s.a.stringify(t.data)};return e&&(n.data=t.data),t.headers&&(n.headers=t.headers),new o.a(function(e,a){r()(n).then(function(t){if(t&&t.data&&200===t.status){var n=t.data;switch(n.errno){case 501:Object(d["Toast"])(n.errmsg),setTimeout(function(){l["a"].dispatch("user/logout").then(function(){f["a"].push("/login")})},1500),a(n.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(d["Toast"])(n.errmsg),a(n.errmsg);break}e(n)}else console.log(t),a(t)}).catch(function(e,n){console.log(t.url+" fail",e,n),Object(d["Toast"])(e),a(e,n)})})}function h(t){t.headers||(t.headers={}),t.headers&&u["a"].getToken()&&(t.headers["RC-Token"]=u["a"].getToken());var e={method:t.method,url:t.url};return e.data=t.data,t.headers&&(e.headers=t.headers,e.headers["MVVM-Key"]=String((new Date).getTime()),e.headers["xx"]="anything",e.headers["Content-Type"]="application/json;charset=UTF-8"),console.log("request: ",t),new o.a(function(n,a){r.a.defaults.withCredentials=!0,r()(e).then(function(t){if(console.log("response:",t),t&&t.data&&200===t.status){var e=t.data;switch(e.errno){case 501:Object(d["Toast"])(e.errmsg),setTimeout(function(){l["a"].dispatch("user/logout").then(function(){f["a"].push("/login")})},1500),a(e.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(d["Toast"])(e.errmsg),a(e.errmsg);break}n(e)}else console.log(t),a(t)}).catch(function(e,n){console.log(t.url+" fail",e,n),Object(d["Toast"])(e),a(e,n)})})}},a1ce:function(t,e,n){var a=n("63b6"),o=n("25eb"),i=n("294c"),r=n("e692"),c="["+r+"]",s="
",l=RegExp("^"+c+c+"*"),u=RegExp(c+c+"*$"),f=function(t,e,n){var o={},c=i(function(){return!!r[t]()||s[t]()!=s}),l=o[t]=c?e(d):r[t];n&&(o[n]=l),a(a.P+a.F*c,"String",o)},d=f.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(u,"")),t};t.exports=f},ad68:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var a=n("e814"),o=n.n(a),i=n("59ad"),r=n.n(i);n("6b54"),n("a481"),n("0a0d");function c(t){return t<10?"0"+t:t}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"slash",n="";console.log(t.constructor),t.constructor===Date?n=t:(n=(r()(t)+946684800).toString(),-1!=n.indexOf("-")||-1!=n.indexOf("/")||-1!=n.indexOf(":")?(n=n.replace(/-/g,"/"),n=new Date(n)):10==n.length?n=new Date(1e3*o()(n)):13==n.length&&(n=new Date(o()(n))));var a=n.getFullYear(),i=n.getMonth()+1,s=n.getDate(),l=n.getHours(),u=n.getMinutes(),f=n.getSeconds(),d=new Date,m=Math.floor(d-n),h=Math.floor(m/60),p=Math.floor(h/60),g=Math.floor(p/24),v=Math.floor(g/30),b=(Math.floor(v/12),(new Date).getFullYear()),y=new Date;y=new Date(y.getFullYear(),y.getMonth(),y.getDate());var k=new Date(n);k=new Date(k.getFullYear(),k.getMonth(),k.getDate());var C=(k-y)/1e3/60/60/24;switch(e){case"horizontal":return a+"-"+c(i)+"-"+c(s)+" "+c(l)+":"+c(u)+":"+c(f);case"day":return a+"-"+c(i)+"-"+c(s);case"minute":var P="";return b===a?C<-1?P=c(i)+"-"+c(s)+" "+c(l)+":"+c(u):C<0?P="昨天 "+c(l)+":"+c(u):0==C&&(P=c(l)+":"+c(u)):P=a+"-"+c(i)+"-"+c(s)+" "+c(l)+":"+c(u),P;case"second":var _="";return b===a?C<-1?_=c(i)+"-"+c(s)+" "+c(l)+":"+c(u)+":"+c(f):C<0?_="昨天 "+c(l)+":"+c(u)+":"+c(f):0==C&&(_=c(l)+":"+c(u)+":"+c(f)):_=a+"-"+c(i)+"-"+c(s)+" "+c(l)+":"+c(u)+":"+c(f),_;case"spot":var x="";return x=a+"."+c(i)+"."+c(s)+" "+c(l)+":"+c(u)+":"+c(f),x;case"date":var D="";return D=a+"."+c(i)+"."+c(s),D;case"time":var w="";return w=c(l)+":"+c(u),w;case"dateTime":var S="";return S=a+"-"+c(i)+"-"+c(s)+" "+c(l)+":"+c(u),S;case"bvcTime":return c(l)+":"+c(u)+":"+c(f)+" "+c(s)+"/"+c(i)+"/"+a;default:return a+"/"+c(i)+"/"+c(s)+" "+c(l)+":"+c(u)+":"+c(f)}}},aed7:function(t,e,n){t.exports=n.p+"assets/img/no-result.b05bdcd3.jpg"},b9e9:function(t,e,n){n("7445"),t.exports=n("584a").parseInt},c518:function(t,e,n){"use strict";n.d(e,"d",function(){return r}),n.d(e,"c",function(){return c}),n.d(e,"b",function(){return s}),n.d(e,"a",function(){return l});var a=n("8982"),o="/industryParkApi",i="/wx/userRelation";function r(t){return Object(a["a"])({url:o+i+"/getUserRelation",method:"post",data:t})}function c(t){return Object(a["a"])({url:o+i+"/getUserMain",method:"post",data:t})}function s(t){return Object(a["a"])({url:o+i+"/getBizMainList",method:"post",data:t})}function l(t){return Object(a["a"])({url:o+i+"/getUserMainApp",method:"post",data:t})}},cd1c:function(t,e,n){var a=n("e853");t.exports=function(t,e){return new(a(t))(e)}},db71:function(t,e,n){"use strict";var a=n("2cf5"),o=n.n(a);o.a},e692:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},e814:function(t,e,n){t.exports=n("b9e9")},e829:function(t,e,n){n("2f37"),t.exports=n("584a").Date.now},e853:function(t,e,n){var a=n("d3f4"),o=n("1169"),i=n("2b4c")("species");t.exports=function(t){var e;return o(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!o(e.prototype)||(e=void 0),a(e)&&(e=e[i],null===e&&(e=void 0))),void 0===e?Array:e}}}]);
|