| 1 |
- require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/subPackages/companyDetailsEdit/companyDetailsEdit"],{"32cc":function(e,t,n){"use strict";var o=n("53d9"),r=n.n(o);r.a},"53d9":function(e,t,n){},"5db7":function(e,t,n){"use strict";(function(e){var o=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n("2eee")),a=o(n("448a")),i=o(n("c973")),s=o(n("9523")),l=n("2679"),c=o(n("acaa"));function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,s.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var m={id:"",YYZZFBZP:null,FRSFZHZM:"../../../static/idzhengmian.png",FRSFZHFM:"../../../static/idfanmian.png",frsfzh_zhenmian:"../../../static/idzhengmian.png",frsfzh_fanmian:"../../../static/idfanmian.png",RYXXZPList:[],qymc:"",shxydm:"",zczj:"",fddbr:"",lxdh:"",frsfzh:"",qylxr:"",email:"",cwfzr:"",cwfzrdh:"",investmentManagerName:"",investmentManager:"",area:"",zcdz:"",jydz:"",ryxxzp:"",rdInvestment:"",jgInvestment:"",fourOpennessAmount:"",fourTransferenceAmount:"",fourServiceAmount:"",fourConsultAmount:"",associationCompany:"",settleInType:"",frEmail:"",zscqgs:"",fileLists:[],file:""},d={components:{handleReport:function(){n.e("pages/subPackages/companyreport/components/handlereport").then(function(){return resolve(n("cbe8"))}.bind(null,n)).catch(n.oe)},selectDengjiren:function(){Promise.all([n.e("pages/subPackages/common/vendor"),n.e("pages/subPackages/components/select_dengjiren/tkitree")]).then(function(){return resolve(n("6334"))}.bind(null,n)).catch(n.oe)},compnaySelect:function(){n.e("pages/subPackages/companyDetailsEdit/compnaySelect").then(function(){return resolve(n("3dbd"))}.bind(null,n)).catch(n.oe)},zaitiTree:function(){Promise.all([n.e("common/vendor"),n.e("components/zaiti-tree/index")]).then(function(){return resolve(n("37f8"))}.bind(null,n)).catch(n.oe)}},data:function(){return{defaultSelected:[],treeData3List:[],trueData7List:[],jydzAry:[],treeData3DialogVisible:!1,treeData7DialogVisible:!1,show:!1,bizhongIndex:null,BASE_URI:this.$constant.BASE_URI,range:[],companyAllList:[],settleInTypeIndex:null,id:"",interviewList:[],dic_key:["MNP_BUILDING_TYPE","SETTLE_IN_STATUS","interviewType","CURRENCY"],dic_SelectList:{},activeNames:[],StatusBar:0,search:{pageSize:20,pageNum:1},form:u({},m),companySearchData:{pageNum:1,pageSize:20},value1:!0,list:[],value:["0"],modeIndex:-1,styleIndex:-1,current:0,mode:"default",dotsStyles:{},swiperDotIndex:0}},onShow:function(){var t=this;e.$on("getuser",(function(e){e&&(0,l.findRoomInfoListByIds)(e.result.join(",")).then((function(n){var o=n.map((function(e){return e.roomString})),r=n.map((function(e){return e.id}));"自有"==e.housetype&&(t.form.socialCarrierStr=r.join(","),t.form.socialCarrierStrName=o.join(","),console.log(o)),"租赁"==e.housetype&&(t.form.socialCarrierLeaseStr=r.join(","),t.form.socialCarrierLeaseStrName=o.join(","),console.log(o)),"未确定"==e.housetype&&(t.form.socialCarrierNoTrue=r.join(","),t.form.socialCarrierNoTrueName=o.join(","),console.log(o)),"无合同"==e.housetype&&(t.form.contractCarrierNoStr=r.join(","),t.form.contractCarrierNoStrName=o.join(","),console.log("无合同",o))})),console.log(e)}))},onLoad:function(e){this.id=e.id,this.getCompanyListFy(),this.getByCodes(),this.getTreeData3(),this.getTreeData7()},methods:{clearCompaynList:function(){this.companySearchData.pageNum=1},addPageNum:function(){this.companySearchData.pageNum+=1,this.getCompanyListFy()},colseSelectPage:function(){console.log(9),this.show=!1},getTreeData7:function(){var e=this;return(0,i.default)(r.default.mark((function t(){var n,o;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e,t.next=3,(0,l.getTreeData7)();case 3:o=t.sent,console.log(o),n.trueData7List=o.data;case 6:case"end":return t.stop()}}),t)})))()},getTreeData3:function(){var e=this;return(0,i.default)(r.default.mark((function t(){var n,o;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e,t.next=3,(0,l.getTreeData3)();case 3:o=t.sent,console.log(o),n.treeData3List=o.data;case 6:case"end":return t.stop()}}),t)})))()},onFinish:function(e){console.log(e.detail.selectedOptions),console.log(JSON.stringify(e)),this.form.parkInfoId=e.detail.selectedOptions[e.detail.selectedOptions.length-1].id,this.form.parkInfoName=e.detail.selectedOptions[e.detail.selectedOptions.length-1].label,this.treeData3DialogVisible=!1},onClose:function(){this.treeData3DialogVisible=!1,this.treeData7DialogVisible=!1},onFinishTreeData7:function(e){var t=this;return(0,i.default)(r.default.mark((function n(){var o,a,i,s,c;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(console.log(e.detail),4==e.detail.selectedOptions.length){n.next=4;break}return t.$showToast("该载体下无楼栋或房间"),n.abrupt("return");case 4:return n.next=6,(0,l.getAreaByIds)({ids:e.detail.selectedOptions[e.detail.selectedOptions.length-1].value});case 6:for(o=n.sent,a="",i=e.detail.selectedOptions[e.detail.selectedOptions.length-1].value,s=";".concat(o,"㎡"),c=0;c<e.detail.selectedOptions.length;c++)console.log(e.detail.selectedOptions.length,c+1),c+1!=e.detail.selectedOptions.length?a+=e.detail.selectedOptions[c].label+"/":a+=e.detail.selectedOptions[c].label;console.log("this.company.jydzAry",t.jydzAry),-1!=t.jydzAry.findIndex((function(e){return e.id==i}))?t.$showToast("请勿重复添加相同地址"):(t.jydzAry.push({name:a+s,id:i}),t.treeData7DialogVisible=!1);case 13:case"end":return n.stop()}}),n)})))()},openTreeData3Dialog:function(){console.log(123123),this.treeData3DialogVisible=!0},addJydzAry:function(){this.treeData7DialogVisible=!0},deletZt:function(e){this.jydzAry.splice(e,1)},openFile:function(t){e.downloadFile({url:t.url,success:function(t){var n=t.tempFilePath;console.log("下载文件:",t),e.openDocument({filePath:n,success:function(e){console.log("打开文档成功")},fail:function(e){console.log("uni.openDocument,fail"),console.log(e)},complete:function(e){console.log("uni.openDocument,complete"),console.log(e)}})},fail:function(e){console.log("uni.downloadFile,fail"),console.log(e)},complete:function(e){console.log("uni.downloadFile,complete"),console.log(e)}}),console.log(t)},jumpChosseHouse:function(t){e.navigateTo({url:"/pages/subPackages/chosseHouse/chosseHouse?housetype="+t})},spliceYYZZFBZP:function(){console.log("this.form.YYZZFBZP",this.form.YYZZFBZP),this.form.YYZZFBZP=null,this.form=u({},this.form),console.log("form.YYZZFBZP",this.form.YYZZFBZP)},selectZaiti:function(e){var t=this;return(0,i.default)(r.default.mark((function n(){var o,a,i;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:for(console.log(e),o=[],a=[],i=0;i<e.length;i++)o.push(e[i].id),a.push(e[i].label);t.form.socialCarrierStr=o.join(","),t.form.socialCarrierName=a.join(",");case 6:case"end":return n.stop()}}),n)})))()},openZaitiTree:function(e){var t=this;return(0,i.default)(r.default.mark((function e(){var n,o;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t,e.next=3,(0,l.getTreeData6)("");case 3:o=e.sent,n.range=c.default.transData(o.data,"id","parentid","children"),n.$refs.zaitiTree._show();case 6:case"end":return e.stop()}}),e)})))()},selectByCompanyId1:function(){var e=this;return(0,i.default)(r.default.mark((function t(){var n,o,a,i,s,c,f,u,m,d,h;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,l.selectByCompanyId)({companyId:e.id});case 2:for(n=t.sent,console.log("zaitizaitizaitizaiti",n),o=[],a=[],i=[],s=[],c=[],f=[],u=[],m=[],d=0;d<n.length;d++)h=n[d],console.log(h.propertyNature,h.socialType),"2"===h.propertyNature&&"1"===h.socialType&&(o.push(h.houseId),a.push(h.discName+h.groupName+h.buildName+h.houseName)),"2"===h.propertyNature&&"2"===h.socialType&&(i.push(h.houseId),s.push(h.discName+h.groupName+h.buildName+h.houseName)),"2"===h.propertyNature&&"3"===h.socialType&&(c.push(h.houseId),f.push(h.discName+h.groupName+h.buildName+h.houseName)),"1"===h.propertyNature&&"2"===h.ownType&&(u.push(h.houseId),m.push(h.discName+h.groupName+h.buildName+h.houseName));e.form.socialCarrierStr=o.join(","),e.form.socialCarrierStrName=a.join(","),e.form.socialCarrierLeaseStr=i.join(","),e.form.socialCarrierLeaseStrName=s.join(","),e.form.socialCarrierNoTrue=c.join(","),e.form.socialCarrierNoTrueName=f.join(","),e.form.contractCarrierNoStr=u.join(","),e.form.contractCarrierNoStrName=m.join(",");case 21:case"end":return t.stop()}}),t)})))()},getRoomNameByCompanyId:function(){var e=this;return(0,i.default)(r.default.mark((function t(){var n;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,l.getRoomNameByCompanyId)({companyId:e.id});case 2:n=t.sent,console.log(n),e.form.socialCarrierName=n||"";case 5:case"end":return t.stop()}}),t)})))()},addZyfw:function(){},addJyfw:function(){console.log(this.form.jyfwAry),this.form.jyfwAry=[].concat((0,a.default)(this.form.jyfwAry),[{name:""}]),this.$forceUpdate()},deleteJyfw:function(e){this.form.jyfwAry.splice(e,1);var t=JSON.parse(JSON.stringify(this.form.jyfwAry));this.form.jyfwAry=[],this.form.jyfwAry=t,this.$forceUpdate()},chosseAboutCompany:function(){console.log(123111);this.show=!0,this.$refs.compnaySelect.getAllList(this.companyAllList)},confirm:function(e){console.log(e);var t=[],n=[];for(var o in e)t.push(e[o].label),n.push(e[o].value);this.form.associationCompanyName=t.join(","),this.form.associationCompany=n.join(","),console.log(t.join(",")),this.show=!1,this.$forceUpdate()},getCompanyListFy:function(){var e=arguments,t=this;return(0,i.default)(r.default.mark((function n(){var o,a;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return o=e.length>0&&void 0!==e[0]?e[0]:null,t.companySearchData.qymc=o,n.next=4,(0,l.getCompanyListFy)(t.companySearchData);case 4:a=n.sent,t.companyAllList=a.rows.map((function(e){return{label:e.qymc,value:e.id}})),console.log("companyAllList11",t.companyAllList),t.$refs.compnaySelect.getAllList(t.companyAllList);case 8:case"end":return n.stop()}}),n)})))()},deleteFileList:function(e){this.form.fileList.splice(e,1)},uploadFileList:function(t){var n=this;n.form.fileList=n.form.fileList?n.form.fileList:[];var o=t.detail.file;e.uploadFile({url:n.$constant.BASE_URI+"/wx/fileController/upload2",filePath:o.url,name:"file",formData:{user:"test"},success:function(e){try{var t=JSON.parse(e.data),o=t.data;console.log(o);var r=JSON.parse(o[0]).name,a=JSON.parse(o[0]).size;n.form.fileList.push({name:r,size:a,imgUrl:"/FileController/download/"+o[1],id:o[1],url:n.$constant.BASE_URI+"/FileController/download/"+o[1]}),console.log("that.form.fileList",n.form.fileList),n.form=u({},n.form)}catch(i){console.log(i)}},fail:function(e){}})},getBizhongtype:function(e){this.form.currency=this.dic_SelectList.CURRENCY[e.detail.value].value,this.bizhongIndex=e.detail.value},uploadRYXXZP:function(t){var n=this,o=t.detail.file;e.uploadFile({url:n.$constant.BASE_URI+"/wx/fileController/upload",filePath:o.url,name:"file",formData:{user:"test"},success:function(e){var t=JSON.parse(e.data);n.form.RYXXZPList.push({imgUrl:"/FileController/download/"+t.data[0],id:t.data[0],url:n.$constant.BASE_URI+"/FileController/download/"+t.data[0],isImage:!0}),n.$forceUpdate()},fail:function(e){}})},splicefrsfzh_zhenmian:function(){this.form.frsfzh_zhenmian=m.FRSFZHZM,this.$forceUpdate()},splicefrsfzh_fanmian:function(){this.form.frsfzh_fanmian=m.FRSFZHFM,this.$forceUpdate()},choosefrsfzh_zhenmian:function(){var t=this;t.form.frsfzh_zhenmian==m.FRSFZHZM?e.chooseImage({count:1,sizeType:"original",success:function(n){e.uploadFile({url:t.$constant.BASE_URI+"/wx/fileController/upload",filePath:n.tempFilePaths[0],name:"file",formData:{user:"test"},success:function(e){var n=JSON.parse(e.data);t.form.frsfzh_zhenmian=n.data[0],t.$forceUpdate()},fail:function(e){}})}}):e.previewImage({urls:[t.BASE_URI+"/FileController/download/"+t.form.frsfzh_zhenmian],longPressActions:{itemList:["发送给朋友","保存图片","收藏"],success:function(e){},fail:function(e){}}})},getZcsj:function(e){this.form.zcsj=e.detail.value},chooseYYZZFBZP:function(){var t=this;console.log(t.form.YYZZFBZP),t.form.YYZZFBZP?e.previewImage({urls:[this.BASE_URI+"/FileController/download/"+t.form.YYZZFBZP],longPressActions:{itemList:["发送给朋友","保存图片","收藏"],success:function(e){},fail:function(e){}}}):e.chooseImage({count:1,sizeType:"original",success:function(n){e.uploadFile({url:t.$constant.BASE_URI+"/wx/fileController/upload",filePath:n.tempFilePaths[0],name:"file",formData:{user:"test"},success:function(e){var n=JSON.parse(e.data);t.form.YYZZFBZP=n.data[0],t.$forceUpdate()},fail:function(e){}})}})},choosefrsfzh_fanmian:function(){var t=this;t.form.frsfzh_fanmian==m.FRSFZHFM?e.chooseImage({count:1,sizeType:"original",success:function(n){e.uploadFile({url:t.$constant.BASE_URI+"/wx/fileController/upload",filePath:n.tempFilePaths[0],name:"file",formData:{user:"test"},success:function(e){var n=JSON.parse(e.data);t.form.frsfzh_fanmian=n.data[0],t.$forceUpdate()},fail:function(e){}})}}):e.previewImage({urls:[t.BASE_URI+"/FileController/download/"+t.form.frsfzh_fanmian],longPressActions:{itemList:["发送给朋友","保存图片","收藏"],success:function(e){},fail:function(e){}}})},checkFormValue:function(){return""!=this.form.fddbr&&this.form.fddbr?""!=this.form.fddbr&&this.form.fddbr?0!=this.form.jyfwAry.length&&this.form.jyfwAry?""!=this.form.qymc&&this.form.qymc?""!=this.form.cwfzrdh&&this.form.cwfzrdh?0!=this.form.jydzValue.length&&this.form.jydzValue?0!=this.form.parkInfoName.length&&this.form.parkInfoName?(console.log(this.form.areaSize),0!=this.form.areaSize.length||(this.$showToast("请输入面积"),!1)):(this.$showToast("请选择所属园区"),!1):(this.$showToast("请输入经营地址"),!1):(this.$showToast("请输入负责人电话"),!1):(this.$showToast("请输入企业名称"),!1):(this.$showToast("请输入经营范围"),!1):(this.$showToast("请输入法定代表人"),!1):(this.$showToast("请输入法人电话"),!1)},selectDengjiren:function(e){var t=[],n=[];for(var o in e)"u"==e[o].type&&(t.push(e[o].name),n.push(e[o].id));this.form.investmentManagerName=t.join(","),this.form.investmentManager=n.join(",")},edit:function(){var t=this;return(0,i.default)(r.default.mark((function n(){var o,a,i,s,c,f,u,d;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(o=t,o.checkFormValue()){n.next=3;break}return n.abrupt("return");case 3:return a=[],o.form.jyfwAry.length>0&&(a=o.form.jyfwAry.map((function(e){return e.name}))),i=[],o.form.fileList.length>0&&(i=o.form.fileList.map((function(e){return e.id}))),o.form.file=i.toString(),s={currency:Number(o.bizhongIndex)+1,id:o.form.id,file:i,parkInfoId:o.form.parkInfoId,socialCarrierStr:o.form.socialCarrierStr?o.form.socialCarrierStr:"",socialCarrierLeaseStr:o.form.socialCarrierLeaseStr?o.form.socialCarrierLeaseStr:"",socialCarrierNoTrue:o.form.socialCarrierNoTrue?o.form.socialCarrierNoTrue:"",contractCarrierNoStr:o.form.contractCarrierNoStr?o.form.contractCarrierNoStr:"",otherContact:o.form.otherContact?o.form.otherContact:"",shareCertificateCode:o.form.shareCertificateCode?o.form.shareCertificateCode:"",leaseArea:o.form.leaseArea?o.form.leaseArea:0,areaSize:t.form.areaSize,jydzValue:t.form.jydzValue,qymc:o.form.qymc,shxydm:o.form.shxydm,zczj:o.form.zczj?o.form.zczj:0,fddbr:o.form.fddbr,jyfw:a.join(","),frsfzh:o.form.frsfzh_zhenmian+","+o.form.frsfzh_fanmian,qylxr:o.form.qylxr?o.form.qylxr:"",lxdh:o.form.lxdh,email:o.form.email,cwfzr:o.form.cwfzr,cwfzrdh:o.form.cwfzrdh,investmentManagerName:o.form.investmentManagerName,investmentManager:o.form.investmentManager,area:o.form.area,zcdz:o.form.zcdz,jydz:o.form.jydz,ryxxzp:o.form.ryxxzp,rdInvestment:o.form.rdInvestment,jgInvestment:o.form.jgInvestment,fourOpennessAmount:o.form.fourOpennessAmount,fourTransferenceAmount:o.form.fourTransferenceAmount,fourServiceAmount:o.form.fourServiceAmount,fourConsultAmount:o.form.fourConsultAmount,associationCompany:o.form.associationCompany,settleInType:o.form.settleInType,zscqgs:o.form.zscqgs?o.form.zscqgs:0,frEmail:o.form.frEmail?o.form.frEmail:""},c=[],o.form.RYXXZPList.length>0&&(c=o.form.RYXXZPList.map((function(e){return e.id}))),s.ryxxzp=c.toString(),f=o.form.frsfzh_zhenmian==m.FRSFZHZM?"":o.form.frsfzh_zhenmian,u=o.form.frsfzh_fanmian==m.FRSFZHFM?"":o.form.frsfzh_fanmian,o.form.yyzzfbzp=o.form.YYZZFBZP,s.frsfzh=f+","+u,s.rdInvestment||delete s.rdInvestment,s.jgInvestment||delete s.jgInvestment,s.fourOpennessAmount||delete s.fourOpennessAmount,s.fourTransferenceAmount||delete s.fourTransferenceAmount,s.fourServiceAmount||delete s.fourServiceAmount,s.fourConsultAmount||delete s.fourConsultAmount,n.next=24,(0,l.companyECdit)(s);case 24:d=n.sent,200==d.code&&(t.$showToast("修改成功"),e.navigateBack({}));case 26:case"end":return n.stop()}}),n)})))()},getSelectUserTwo:function(e){var t=this;return(0,i.default)(r.default.mark((function n(){var o,a;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return o=t,n.next=3,(0,l.getSelectUserTwo)("");case 3:a=n.sent,o.range=c.default.transData(a.data,"id","parentid","children"),o.$refs[e]._show();case 6:case"end":return n.stop()}}),n)})))()},jumpEditCompanyDetails:function(e){},jumpChosseTags:function(){e.navigateTo({url:"/pages/subPackages/chooseCompanyTags/index"})},openHandleReportDialog:function(e){this.$refs.handleReport.openDianlog(e)},getSettleInType:function(e){this.form.settleInType=this.dic_SelectList.MNP_BUILDING_TYPE[e.detail.value].value,this.settleInTypeIndex=e.detail.value},getDicTypeZoufang:function(e){if(e&&this.dic_SelectList.interviewType){var t=this.dic_SelectList.interviewType,n=t.findIndex((function(t){return t.value==e}));return-1!=n?t[n].label:void 0}},getDicType:function(e,t){if("type"==e&&this.dic_SelectList.MNP_BUILDING_TYPE){var n=this.dic_SelectList.MNP_BUILDING_TYPE,o=n.findIndex((function(e){return e.value==t}));return-1!=o?n[o].label:"暂无"}if("zt"==e&&this.dic_SelectList.SETTLE_IN_STATUS){var r=this.dic_SelectList.SETTLE_IN_STATUS,a=r.findIndex((function(e){return e.value==t}));return-1!=a?r[a].label:"暂无"}},getByCodes:function(){var e=this;return(0,i.default)(r.default.mark((function t(){var n;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.search.pageNum=1,t.next=3,(0,l.getByCodes)(JSON.stringify(e.dic_key));case 3:n=t.sent,e.dic_SelectList=e.$common.handleDicList(n),e.getCompanyHouseDetails(e.id);case 6:case"end":return t.stop()}}),t)})))()},changeActive:function(){var e=this;return(0,i.default)(r.default.mark((function t(){var n;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,l.interviewEscalationListAll)(e.id);case 2:n=t.sent,e.interviewList=n;case 4:case"end":return t.stop()}}),t)})))()},selectItems:function(e){var t=this;this.$nextTick((function(){t.$refs.collapse.resize()}))},selectByCompanyId:function(){var e=this;return(0,i.default)(r.default.mark((function t(){var n,o,a;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,l.selectByCompanyId)({companyId:e.id});case 2:n=t.sent,console.log({zaiti:n}),o=n.map((function(e){return e.discName+e.groupName+e.buildName+e.houseName})),a=o.join(","),e.form.socialCarrierName=a,e.$forceUpdate(),console.log(e.form.socialCarrierName);case 9:case"end":return t.stop()}}),t)})))()},getCompanyHouseDetails:function(e){var t=this;return(0,i.default)(r.default.mark((function n(){var o,a,i,s,c,f,u,d;return r.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return o=t,n.prev=1,n.next=4,(0,l.getCompanyHouseDetails)(e);case 4:a=n.sent,console.log(a),o.selectByCompanyId1(),o.getRoomNameByCompanyId(),i=o.dic_SelectList.MNP_BUILDING_TYPE.findIndex((function(e){return e.value==a.data.settleInType})),a.data.contractNumber>0&&o.getRoomNameByCompanyId(),o.settleInTypeIndex=i,o.form=a.data,o.form.areaSize=a.data.areaSize?a.data.areaSize:0,o.form.associationCompany=o.form.associationCompany?o.form.associationCompany.split(","):[],a.data.ryxxzp&&a.data.ryxxzp.length>0?(s=a.data.ryxxzp.split(","),o.form.RYXXZPList=s.map((function(e){return{imgUrl:"/FileController/download/"+e,id:e,url:o.$constant.BASE_URI+"/FileController/download/"+e,isImage:!0}}))):o.form.RYXXZPList=[],a.data.file&&a.data.file.length>0&&"[]"!=a.data.file?(c=a.data.file.split(","),o.form.fileList=c.map((function(e){return{imgUrl:"/FileController/download/"+e,id:e,name:e,url:o.$constant.BASE_URI+"/FileController/download/"+e,isImage:!0}}))):o.form.fileList=[],a.data.jydz?function(){for(var e=a.data.jydzStr.split(",").map((function(e){return{name:e}})),n=a.data.jydz.split(","),o=function(t){e[t].id=n[t],console.log(n),console.log("jydzIdAry[i].id",n[t]),(0,l.getAreaByIds)({ids:n[t]}).then((function(n){e[t].name+=";".concat(n,"㎡")}))},r=0;r<n.length;r++)o(r);t.jydzAry=e,console.log(e)}():t.jydzAry=[],f=t.dic_SelectList.CURRENCY.findIndex((function(e){return e.value==a.data.currency})),o.bizhongIndex=-1==f?null:f,o.form.YYZZFBZP=a.data.yyzzfbzp&&"undefined"!=a.data.yyzzfbzp?a.data.yyzzfbzp:m.YYZZFBZP,a.data.frsfzh&&a.data.frsfzh.length>0&&","!=a.data.frsfzh?(u=a.data.frsfzh.split(","),o.form.frsfzh_fanmian=u[0],o.form.frsfzh_zhenmian=u[1]):(o.form.frsfzh_fanmian=m.FRSFZHFM,o.form.frsfzh_zhenmian=m.FRSFZHZM),a.data.jyfw.length>0?(d=a.data.jyfw.split(",").map((function(e){return{name:e}})),o.form.jyfwAry=d):o.form.jyfwAry=[],n.next=27;break;case 24:n.prev=24,n.t0=n["catch"](1),console.log(n.t0);case 27:case"end":return n.stop()}}),n,null,[[1,24]])})))()},onChange:function(e){this.activeNames=e.detail}}};t.default=d}).call(this,n("543d")["default"])},"86dd":function(e,t,n){"use strict";var o=n("b023"),r=n.n(o);r.a},"88ee":function(e,t,n){"use strict";(function(e,t){var o=n("4ea4");n("eaf5"),n("4a2a");o(n("66fd"));var r=o(n("fa2e"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},b023:function(e,t,n){},e086:function(e,t,n){"use strict";n.r(t);var o=n("5db7"),r=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=r.a},e537:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}));var o={uniCollapse:function(){return n.e("uni_modules/uni-collapse/components/uni-collapse/uni-collapse").then(n.bind(null,"e04e"))},uniCollapseItem:function(){return n.e("uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item").then(n.bind(null,"2170"))},uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,"f251"))}},r=function(){var e=this.$createElement,t=(this._self._c,n("d15c")),o=n("d15c"),r=this.form.honorInformation?this.form.honorInformation.length:null,a=this.form.YYZZFBZP?null:n("cc7f"),i=n("d15c"),s=n("d15c"),l=n("d15c"),c=n("d15c"),f=n("d15c");this.$mp.data=Object.assign({},{$root:{m0:t,m1:o,g0:r,m2:a,m3:i,m4:s,m5:l,m6:c,m7:f}})},a=[]},fa2e:function(e,t,n){"use strict";n.r(t);var o=n("e537"),r=n("e086");for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);n("32cc"),n("86dd");var i=n("f0c5"),s=Object(i["a"])(r["default"],o["b"],o["c"],!1,null,"7f8317ac",null,!1,o["a"],void 0);t["default"]=s.exports}},[["88ee","common/runtime","common/vendor","pages/subPackages/common/vendor"]]]);
|