housedetail.vue 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170
  1. <template>
  2. <view class="check">
  3. <uni-forms ref="form" :model="datainfo" :rules="rules">
  4. <view class="cbox">
  5. <view class="chmain">
  6. <picker range-key='dictLabel' :disabled="isdisabled" :value="rylxidx" :range="rylxList" @change='bindDateChangee'>
  7. <uni-forms-item label="人员类型" required name="residentType">
  8. <view class="flexc mh35">
  9. <view class="flex1 txr f13 co27" v-if="datainfo.residentType&&!rylx">{{statusFormats(datainfo.residentType,rylxList,'rylx')}}</view>
  10. <view class="flex1 txr f13" v-else :class="rylx?'co27':'coa'">{{rylx||"请选择人员类型"}}</view>
  11. <view class="rimg"><image :src="rimg"></image></view>
  12. </view>
  13. </uni-forms-item>
  14. </picker>
  15. <uni-forms-item label="姓名" name="residentName">
  16. <view class="flexc">
  17. <uni-easyinput :disabled="isdisabled" v-model="datainfo.residentName" :inputBorder='false' placeholder="请输入姓名" />
  18. </view>
  19. </uni-forms-item>
  20. <uni-forms-item label="手机号码" required name="residentPhone">
  21. <view class="flexc">
  22. <uni-easyinput :disabled="isdisabled" v-model="datainfo.residentPhone" :inputBorder='false' placeholder="请输入手机号码" />
  23. </view>
  24. </uni-forms-item>
  25. <uni-forms-item label="小区名称" required name="tenantId">
  26. <w-select
  27. style="margin-left: 20rpx;"
  28. v-model="datainfo.tenantId"
  29. :list='voList'
  30. width='200rpx'
  31. valueName='dictLabel'
  32. keyName="dictValue"
  33. :valuea="datainfo.tenantId"
  34. :chosevalue="tenantName?tenantName:statusFormats(datainfo.tenantId,voList,'tenant')"
  35. :isdisabled="ptype=='edit'?true:false"
  36. :filterable="filterable"
  37. @change='getchangea'
  38. >
  39. </w-select>
  40. </uni-forms-item>
  41. <block v-if="datainfo.residentType&&datainfo.residentType!=3">
  42. <uni-forms-item label="房屋号" required name="houseId" v-if="datainfo.residentType!=3">
  43. <w-select
  44. style="margin-left: 20rpx;"
  45. v-model="datainfo.houseId"
  46. :list='fwlist'
  47. valueName='dictLabel'
  48. keyName="dictValue"
  49. :valuea="datainfo.houseId"
  50. :isdisabled="ptype=='edit'?true:false"
  51. :chosevalue="datainfo.detailedAddress"
  52. :filterable='filterable'
  53. @change='getchange'
  54. >
  55. </w-select>
  56. </uni-forms-item>
  57. <block v-if="datainfo.residentType==1">
  58. <uni-forms-item label="是否户主" required name="isHouseholder">
  59. <view class="flexc ">
  60. <view class="flex1"></view>
  61. <view class="sylist flexcc" :class="datainfo.isHouseholder==ite.dictValue?'act':''" v-for="(ite,idx) in sfList" :key="idx" @click="getSyFn(ite.dictValue)">{{ite.dictLabel}}</view>
  62. <view class="rimg"><image :src="rimg"></image></view>
  63. </view>
  64. </uni-forms-item>
  65. <block v-if="datainfo.isHouseholder!='Y'">
  66. <picker range-key='dictLabel' :disabled="isdisabled" :value="hzgxidx" :range="hzgxList" @change='bindDateChangea'>
  67. <uni-forms-item class="isnobor" label="与户主关系" required name="residentRelationship">
  68. <view class="flexc mh35">
  69. <view class="flex1 txr f13 co27" v-if="datainfo.residentRelationship&&!hzgx">{{statusFormats(datainfo.residentRelationship,hzgxList,'hzgx')}}</view>
  70. <view class="flex1 txr f13" v-else :class="hzgx?'co27':'coa'">{{hzgx||"请选择与户主关系"}}</view>
  71. <view class="flex0" @click.stop="">
  72. <uni-icons v-if="datainfo.residentRelationship&&!isdisabled" class="content-clear-icon" type="clear" :size="clearSize" color="#c0c4cc" @click="onClear('hzgx')"></uni-icons>
  73. </view>
  74. <view class="rimg"><image :src="rimg"></image></view>
  75. </view>
  76. </uni-forms-item>
  77. </picker>
  78. </block>
  79. </block>
  80. </block>
  81. </view>
  82. <uni-collapse ref="collapse" >
  83. <block>
  84. <view class="chtit">人员信息</view>
  85. <block>
  86. <uni-collapse-item title-border="none" class="chmain">
  87. <template v-slot:title>
  88. <uni-forms-item label="身份证号" required name="residentIdCard">
  89. <view class="flexc">
  90. <uni-easyinput :disabled="isdisabled" v-model="datainfo.residentIdCard" :inputBorder='false' placeholder="自动识别" />
  91. <image v-if='datainfo.idCardBack' :src="baseUrl+datainfo.idCardBack" class="cmico" @click.stop="getPreview(datainfo.idCardBack)"></image>
  92. <image :src="cmico" @click.stop="getaddImage('front')" class="cmico"></image>
  93. </view>
  94. </uni-forms-item>
  95. </template>
  96. <view>
  97. <uni-forms-item label="性别" required name="residentGender">
  98. <view class="flexc">
  99. <view class="flex1"></view>
  100. <uni-data-checkbox :map="map" :disabled="isdisabled" selectedColor="#0156FE" selectedTextColor="#272727" v-model="datainfo.residentGender" :localdata="xbList" />
  101. </view>
  102. </uni-forms-item>
  103. <uni-forms-item label="家庭地址" required name="idCardAddress">
  104. <view class="flexc">
  105. <uni-easyinput disabled v-model="datainfo.idCardAddress" :inputBorder='false' placeholder="自动识别" />
  106. </view>
  107. </uni-forms-item>
  108. <picker range-key='dictLabel' :disabled="isdisabled" :value="rymmidx" :range="rymmList" @change='bindDateChangef'>
  109. <uni-forms-item label="人员面貌" required name="residentAppearance">
  110. <view class="flexc mh35">
  111. <view class="flex1 txr f13 co27" v-if="datainfo.residentAppearance&&!rymm">{{statusFormats(datainfo.residentAppearance,rymmList,'rymm')}}</view>
  112. <view class="flex1 txr f13" v-else :class="rymm?'co27':'coa'">{{rymm||"请选择人员面貌"}}</view>
  113. <view class="flex0" @click.stop="">
  114. <uni-icons v-if="datainfo.residentAppearance&&!isdisabled" class="content-clear-icon" type="clear" :size="clearSize" color="#c0c4cc" @click="onClear('rymm')"></uni-icons>
  115. </view>
  116. <view class="rimg"><image :src="rimg"></image></view>
  117. </view>
  118. </uni-forms-item>
  119. </picker>
  120. <picker range-key='dictLabel' :disabled="isdisabled" :value="dslxidx" :range="dslxList" @change='bindDateChangeg'>
  121. <uni-forms-item label="特殊类型" name="specialType">
  122. <view class="flexc mh35">
  123. <view class="flex1 txr f13 co27" v-if="datainfo.specialType&&!dslx">{{statusFormats(datainfo.specialType,dslxList,'dslx')}}</view>
  124. <view class="flex1 txr f13" v-else :class="dslx?'co27':'coa'">{{dslx||"如有五保户等特殊类型,请选择"}}</view>
  125. <view class="flex0" @click.stop="">
  126. <uni-icons v-if="datainfo.specialType&&!isdisabled" class="content-clear-icon" type="clear" :size="clearSize" color="#c0c4cc" @click="onClear('dslx')"></uni-icons>
  127. </view>
  128. <view class="rimg"><image :src="rimg"></image></view>
  129. </view>
  130. </uni-forms-item>
  131. </picker>
  132. <uni-forms-item label="工作单位" name="residentEmployer">
  133. <view class="flexc">
  134. <uni-easyinput :disabled="isdisabled" v-model="datainfo.residentEmployer" :inputBorder='false' placeholder="请输入工作单位" />
  135. </view>
  136. </uni-forms-item>
  137. <uni-forms-item label="兴趣爱好" name="residentHobby">
  138. <view class="flexc ml10">
  139. <uni-easyinput type="textarea" :disabled="isdisabled" autoHeight v-model="datainfo.residentHobby" :inputBorder='false' placeholder="请输入兴趣爱好" />
  140. </view>
  141. </uni-forms-item>
  142. <uni-forms-item label="上传头像" name="facePhoto">
  143. <view class="addimgs">
  144. <block v-if="phofile&&phofile.length">
  145. <view class="assimg" v-for="(ite,idx) in phofile" :key="idx" @click="getPreviewa(idx,phofile)">
  146. <image :src="baseUrl+ite" class="img"></image>
  147. <image :src="rdelimg" class="delimg" @click.stop="getDelFn(idx,'fm')" v-if="!isdisabled"></image>
  148. </view>
  149. </block>
  150. <view class="addbox" @click="getaddImageava">
  151. <image :src="aphoto"></image>
  152. <view>添加图片</view>
  153. </view>
  154. </view>
  155. </uni-forms-item>
  156. </view>
  157. </uni-collapse-item>
  158. </block>
  159. </block>
  160. <block v-if="datainfo.residentType==1&&datainfo.isHouseholder=='Y'">
  161. <view class="chtit">房本信息</view>
  162. <block>
  163. <uni-collapse-item title-border="none" class="chmain">
  164. <template v-slot:title>
  165. <uni-forms-item label="房屋坐落" required name="location">
  166. <view class="flexc">
  167. <uni-easyinput :disabled="isdisabled" v-model="houserinfo.location" :inputBorder='false' placeholder="自动识别" />
  168. <image v-if='houserinfo.houseImage' :src="baseUrl+houserinfo.houseImage" class="cmico" @click.stop="getPreview(houserinfo.houseImage)"></image>
  169. <image :src="cmico" @click.stop="getaddImage('fbxx')" class="cmico"></image>
  170. </view>
  171. </uni-forms-item>
  172. </template>
  173. <view >
  174. <uni-forms-item label="权利人姓名" name="ownerName">
  175. <view class="flexc">
  176. <uni-easyinput :disabled="isdisabled" v-model="houserinfo.ownerName" :inputBorder='false' placeholder="自动识别" />
  177. <view class="rimg"></view>
  178. </view>
  179. </uni-forms-item>
  180. <uni-forms-item label="权利类型" name="rightType">
  181. <picker range-key='dictLabel' :disabled="isdisabled" :value="qllxidx" :range="qllxList" @change='bindDateChange'>
  182. <view class="flexc">
  183. <view class="flex1 txr f13 co27" v-if="houserinfo.rightType&&!qllx">{{statusFormats(houserinfo.rightType,qllxList,'qllx')}}</view>
  184. <view class="flex1 txr f13" v-else :class="qllx?'co27':'coa'">{{qllx||"请选择权利类型"}}</view>
  185. <view class="flex0" @click.stop="">
  186. <uni-icons v-if="houserinfo.rightType&&!isdisabled" class="content-clear-icon" type="clear" :size="clearSize" color="#c0c4cc" @click="onClear('qllx')"></uni-icons>
  187. </view>
  188. <view class="rimg"><image :src="rimg"></image></view>
  189. </view>
  190. </picker>
  191. </uni-forms-item>
  192. <uni-forms-item label="建筑面积" required name="area">
  193. <view class="flexc">
  194. <uni-easyinput :disabled="isdisabled" v-model="houserinfo.area" :inputBorder='false' placeholder="自动识别" />
  195. <view class="tips">m²</view>
  196. <view class="rimg"></view>
  197. </view>
  198. </uni-forms-item>
  199. <uni-forms-item label="不动产单元号" name="propertyUnitNumber">
  200. <view class="flexc">
  201. <uni-easyinput :disabled="isdisabled" v-model="houserinfo.propertyUnitNumber" :inputBorder='false' placeholder="请输入不动产单元号" />
  202. <view class="rimg"></view>
  203. </view>
  204. </uni-forms-item>
  205. <uni-forms-item label="相关的字第号" name="documentNumber">
  206. <view class="flexc">
  207. <uni-easyinput :disabled="isdisabled" v-model="houserinfo.documentNumber" :inputBorder='false' placeholder="请输入相关的字第号" />
  208. <view class="rimg"></view>
  209. </view>
  210. </uni-forms-item>
  211. <uni-forms-item label="小区名称" name="communityName">
  212. <view class="flexc">
  213. <uni-easyinput :disabled="isdisabled" v-model="houserinfo.communityName" :inputBorder='false' placeholder="请输入小区名称" />
  214. <view class="rimg"></view>
  215. </view>
  216. </uni-forms-item>
  217. <uni-forms-item label="门牌号" required name="detailedAddress">
  218. <view class="flexc">
  219. <uni-easyinput disabled v-model="houserinfo.detailedAddress" :inputBorder='false' placeholder="请输入门牌号" />
  220. <view class="rimg"></view>
  221. </view>
  222. </uni-forms-item>
  223. <uni-forms-item label="房屋类型" required name="houseType">
  224. <picker range-key='dictLabel' :disabled="isdisabled" :value="fwlxidx" :range="fwlxList" @change='bindDateChangeh'>
  225. <view class="flexc mh35">
  226. <view class="flex1 txr f13 co27" v-if="houserinfo.houseType&&!fwlx">{{statusFormats(houserinfo.houseType,fwlxList,'fwlx')}}</view>
  227. <view class="flex1 txr f13" v-else :class="fwlx?'co27':'coa'">{{fwlx||"请选择房屋类型"}}</view>
  228. <view class="flex0" @click.stop="">
  229. <uni-icons v-if="houserinfo.houseType&&!isdisabled" class="content-clear-icon" type="clear" :size="clearSize" color="#c0c4cc" @click="onClear('fwlx')"></uni-icons>
  230. </view>
  231. <view class="rimg"><image :src="rimg"></image></view>
  232. </view>
  233. </picker>
  234. </uni-forms-item>
  235. <uni-forms-item label="使用期限" name="usagePeriod">
  236. <view class="flexc">
  237. <uni-easyinput :disabled="isdisabled" v-model="houserinfo.usagePeriod" :inputBorder='false' placeholder="请输入使用期限" />
  238. <view class="rimg"></view>
  239. </view>
  240. </uni-forms-item>
  241. <uni-forms-item label="登记日期" name="registrationDate">
  242. <!-- <picker mode="timed" :disabled="isdisabled" @change='bindDateChangea'>
  243. <view class="flexc">
  244. <view class="flex1 txr f13" :class="datainfo.registrationDate?'co27':'coa'">{{datainfo.registrationDate||"请选择登记日期"}}</view>
  245. <view class="rimg"><image :src="rimg"></image></view>
  246. </view>
  247. </picker> -->
  248. <!-- :hide-second='true' -->
  249. <view class="flexc">
  250. <uni-datetime-picker :disabled="isdisabled" :class="houserinfo.registrationDate?'co27':'coa'" type="datetime" placeholder="请选择登记日期" :border="false" v-model="houserinfo.registrationDate" />
  251. <view class="rimg"><image :src="rimg"></image></view>
  252. </view>
  253. </uni-forms-item>
  254. <uni-forms-item label="共有姓名" name="coOwner">
  255. <view class="flexc">
  256. <uni-easyinput :disabled="isdisabled" v-model="houserinfo.coOwner" :inputBorder='false' placeholder="请输入共有姓名" />
  257. <view class="rimg"></view>
  258. </view>
  259. </uni-forms-item>
  260. <uni-forms-item label="共有情况" name="coOwnership">
  261. <view class="flexc">
  262. <uni-easyinput :disabled="isdisabled" v-model="houserinfo.coOwnership" :inputBorder='false' placeholder="请输入共有情况" />
  263. <view class="rimg"></view>
  264. </view>
  265. </uni-forms-item>
  266. <uni-forms-item label="房屋状态" name="houseStatus">
  267. <picker range-key='dictLabel' :disabled="isdisabled" :value="fwztidx" :range="fwztList" @change='bindDateChangeb'>
  268. <view class="flexc">
  269. <view class="flex1 txr f13 co27" v-if="houserinfo.houseStatus&&!fwzt">{{statusFormats(houserinfo.houseStatus,fwztList,'fwzt')}}</view>
  270. <view class="flex1 txr f13" v-else :class="fwzt?'co27':'coa'">{{fwzt||"请选择房屋状态"}}</view>
  271. <view class="flex0" @click.stop="">
  272. <uni-icons v-if="houserinfo.houseStatus&&!isdisabled" class="content-clear-icon" type="clear" :size="clearSize" color="#c0c4cc" @click="onClear('fwzt')"></uni-icons>
  273. </view>
  274. <view class="rimg"><image :src="rimg"></image></view>
  275. </view>
  276. </picker>
  277. </uni-forms-item>
  278. <uni-forms-item label="房屋用途" name="usageType">
  279. <picker range-key='dictLabel' :disabled="isdisabled" :value="fwytidx" :range="fwytList" @change='bindDateChangec'>
  280. <view class="flexc">
  281. <view class="flex1 txr f13 co27" v-if="houserinfo.usageType&&!fwyt">{{statusFormats(houserinfo.usageType,fwytList,'fwyt')}}</view>
  282. <view class="flex1 txr f13" v-else :class="fwyt?'co27':'coa'">{{fwyt||"请选择房屋用途"}}</view>
  283. <view class="flex0" @click.stop="">
  284. <uni-icons v-if="houserinfo.usageType&&!isdisabled" class="content-clear-icon" type="clear" :size="clearSize" color="#c0c4cc" @click="onClear('fwyt')"></uni-icons>
  285. </view>
  286. <view class="rimg"><image :src="rimg"></image></view>
  287. </view>
  288. </picker>
  289. </uni-forms-item>
  290. <uni-forms-item label="有无车位" name="hasParkingSpace">
  291. <picker range-key='dictLabel' :disabled="isdisabled" :value="ywcwidx" :range="ywcwList" @change='bindDateChanged'>
  292. <view class="flexc">
  293. <view class="flex1 txr f13 co27" v-if="houserinfo.hasParkingSpace&&!ywcw">{{statusFormats(houserinfo.hasParkingSpace,ywcwList,'ywcw')}}</view>
  294. <view class="flex1 txr f13" v-else :class="ywcw?'co27':'coa'">{{ywcw||"请选择有/无"}}</view>
  295. <view class="flex0" @click.stop="">
  296. <uni-icons v-if="houserinfo.hasParkingSpace&&!isdisabled" class="content-clear-icon" type="clear" :size="clearSize" color="#c0c4cc" @click="onClear('ywcw')"></uni-icons>
  297. </view>
  298. <view class="rimg"><image :src="rimg"></image></view>
  299. </view>
  300. </picker>
  301. </uni-forms-item>
  302. <uni-forms-item label="车位号" name="parkingNumber">
  303. <view class="flexc">
  304. <uni-easyinput :disabled="isdisabled" v-model="houserinfo.parkingNumber" :inputBorder='false' placeholder="请输入车位号" />
  305. <view class="rimg"></view>
  306. </view>
  307. </uni-forms-item>
  308. </view>
  309. </uni-collapse-item>
  310. </block>
  311. </block>
  312. </uni-collapse>
  313. </view>
  314. <view class="hfbtns flexcj" >
  315. <block v-if="datainfo.examine==1&&checkPermi(['wuYe:residentInfo:examineStaff'])">
  316. <view class="btn btn1" @click.stop="getShFn('3')">拒绝</view>
  317. <view class="btn btn2" @click.stop="getShFn('2')">通过</view>
  318. </block>
  319. <view class="btn btn2 flex1" v-if="datainfo.examine!=1&&checkPermi(['wuYe:residentInfo:editAuthentication'])" @click.stop="getSubmit">修改提交</view>
  320. </view>
  321. </uni-forms>
  322. <loading></loading>
  323. </view>
  324. </template>
  325. <script>
  326. import config from '@/config'
  327. import {checkPermi,checkRole} from "@/utils/permission"; // 权限判断函数
  328. import {uploadIdentify,uploadmore} from '@/utils/common.js'
  329. import {listNoPageTenant,houseInfoDet,examineResident} from "@/api/work/work.js"
  330. import {gettenantList} from "@/api/login.js"
  331. import {residentInfoDet,authenticationPut,addResidentInfo} from "@/api/work/people.js"
  332. import {getDictionaryFn} from "@/api/system/user.js"
  333. import {selectValueKey} from "@/utils/common.js"
  334. import {getOcrIdCard,getrealEstateCertificatee} from "@/api/system/card.js"
  335. import wSelect from "@/people/components/w-select/w-select.vue"
  336. export default {
  337. components: {wSelect},
  338. data() {
  339. return {
  340. rimg: require('@/mine/static/house/rimg.png'),
  341. cmico: require('@/mine/static/house/cmico.png'),
  342. aphoto: require('@/service/static/service/photo.png'),
  343. rdelimg:require('@/service/static/service/rdel.png'),
  344. baseUrl: config.baseUrl,
  345. checkflag:true,
  346. backgroundColor: "transparent",
  347. datainfo: {
  348. "tenantId":"",//租户id
  349. "residentType":"",//人员类型:1:业主 2:租户 3:其他
  350. "residentName":"",//居住人员姓名
  351. "residentPhone":"",//人员手机号
  352. "houseInfoRedidentList":[],//用户房屋信息集合
  353. "houseId":"",//关联房屋信息表的house_id
  354. "residentRelationship":"",//居住人员与户主的关系,如父子、夫妻等
  355. "isHouseholder":"",//是否是户主 N不是 Y是
  356. "houseType":null,//房屋类型 1:普通住宅,2:洋房
  357. "residentIdCard":"",//居住人员身份证号码,18位
  358. // "residentBirthday":"",//居住人员出生日期
  359. "residentGender":'',//居住人员性别:1-男,2-女
  360. // "isTenant":"",//是否是租户:Y-是,N-否
  361. "residentEmployer":"",//居住人员工作单位
  362. "residentAppearance":"",//居住人员面貌,如党员、群众等
  363. "residentHobby":"",//爱好
  364. "facePhoto":"",//人脸地址
  365. "idCardAddress":"",//身份证住址
  366. "specialType":"",//特殊类型
  367. "idCardFront":"",//身份证正面
  368. "idCardBack":"",//身份证反面
  369. },
  370. rules:{
  371. residentType: {rules: [{required: true,errorMessage: '请选择人人员类型' }]},
  372. // residentIdCard: {rules: [{required: true,errorMessage: '请输入身份证号码' }]},
  373. // residentName: {rules: [{required: true,errorMessage: '请输入姓名' }]},
  374. // residentGender: {rules: [{required: true,errorMessage: '请选择性别' }]},
  375. // houseId: {rules: [{required: true,errorMessage: '请选择房屋号' }]},
  376. // detailedAddress: {rules: [{required: true,errorMessage: '请输入居住地址' }]},
  377. // isHouseholder: {rules: [{required: true,errorMessage: '请选择是否户主' }]},
  378. // residentRelationship: {rules: [{required: true,errorMessage: '请选择与户主关系' }]},
  379. residentPhone: {rules: [{required: true,errorMessage: '请输入手机号'}, {pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,errorMessage:'请输入正确的手机号码'}]},
  380. },
  381. hzgx:"",
  382. rylx:"",
  383. hzgxidx:0,
  384. dslxidx:0,
  385. rylxidx:0,
  386. list:[],
  387. phofile:[],
  388. fwlist:[],
  389. rylxList:[],
  390. fwzt:'',
  391. qllx:'',
  392. fwyt:'',
  393. ywcw:'',
  394. hzgx:'',
  395. sfhz:"",
  396. sfzh:"",
  397. rymm:"",
  398. dslx:"",
  399. fwztidx:0,
  400. qllxidx:0,
  401. fwytidx:0,
  402. ywcwidx:0,
  403. hzgxidx:0,
  404. sfzhidx:0,
  405. rymmidx:0,
  406. sfhzidx:0,
  407. dslxidx:0,
  408. fwztList:[],
  409. qllxList:[],
  410. fwytList:[],
  411. hzgxList:[],
  412. sfList:[],
  413. rymmList:[],
  414. dslxList:[],
  415. xbList:[],
  416. ywcwList:[{dictLabel:'有',dictValue:'Y'},{dictLabel:'无',dictValue:'N'},],
  417. isdisabled:false,
  418. ptype:'add',
  419. filterable:true,
  420. chooseValue:'',
  421. map:{text:'dictLabel',value:'dictValue'},
  422. userId:this.$store.state.user.userId,
  423. voList:[],
  424. tenantName:'',
  425. houseInfoRedidentList:[],
  426. fwztList:[],
  427. qllxList:[],
  428. fwytList:[],
  429. sfList:[],
  430. fwlxList:[],
  431. fwlxidx:'',
  432. fwlx:'',
  433. rzflag:false,
  434. choseidx:'',
  435. clearSize:24,
  436. houserinfo:{
  437. "houseId":'',
  438. "tenantId":"",//租户id
  439. "houseImage":null,//房本照片
  440. "ownerName":null,//权利人姓名
  441. "location":null,//房屋坐落位置
  442. "houseType":null,//房屋类型 1:普通住宅,2:洋房
  443. "rightType":null,//权利类型,如所有权、使用权等
  444. "area":null,//房屋面积,单位为平方米
  445. "documentNumber":null,//房屋相关的字第号
  446. "propertyUnitNumber":null,//不动产单元号
  447. "coOwnership":null,//房屋的共有情况,如共有比例等
  448. "usageType":null,//房屋用途,如住宅、商业等
  449. "usagePeriod":null,//房屋使用期限
  450. "registrationDate":null,//房屋登记日期
  451. "coOwner":null,//共有人姓名,多个共有人可以用逗号分隔
  452. "detailedAddress":null,//房屋的门牌号
  453. "hasParkingSpace":null,//是否有车位,Y表示有,N表示无
  454. "communityName":null,//房屋所在小区名称
  455. "houseStatus":null,//房屋状态:1-自住,2-出租,3-空闲,4-待售
  456. "parkingNumber":null,//车位号
  457. }
  458. }
  459. },
  460. onLoad: function(e) {
  461. if(e.type){
  462. this.rztype=e.type
  463. this.rzflag=true;
  464. this.datainfo.residentPhone=this.$store.state.user.phonenumber;
  465. this.datainfo.userId=this.$store.state.user.userId;
  466. }else{
  467. // var tenantId=this.$store.state.user.tenantId;
  468. // this.datainfo.tenantId=tenantId;
  469. }
  470. this.gettenantList();
  471. if(e.id){
  472. this.id=e.id;
  473. this.ptype="edit";
  474. // this.isdisabled=true;
  475. this.getDetail()
  476. }
  477. this.init()
  478. },
  479. onPageScroll(e) {
  480. var scrollTop = Number(e.scrollTop);
  481. if (scrollTop > 0) {
  482. this.backgroundColor = '#48CC9A'
  483. } else {
  484. this.backgroundColor = 'transparent'
  485. }
  486. },
  487. methods: {
  488. checkPermi,
  489. checkRole,
  490. getEditFn(){
  491. this.isdisabled=false;
  492. },
  493. getSyFn(e){
  494. if(this.isdisabled){
  495. return
  496. }
  497. this.datainfo.isHouseholder=e
  498. console.log(this.datainfo.isHouseholder)
  499. },
  500. getShFn(type){
  501. var that=this;
  502. var params=JSON.parse(JSON.stringify(this.datainfo))
  503. params.examine=type;
  504. examineResident(params).then(res=>{
  505. if(res.code==200){
  506. this.$toast('审核成功')
  507. setTimeout(function() {
  508. uni.$emit('refHouseList')
  509. uni.navigateBack({
  510. delta:1
  511. })
  512. }, 1500);
  513. }
  514. })
  515. },
  516. getChose(idx){
  517. this.choseidx=idx;
  518. },
  519. getAddfb(){
  520. var obj={
  521. "ownerName":"",//权利人姓名
  522. "location":"",//房屋坐落位置
  523. "rightType":"",//权利类型,如所有权、使用权等
  524. "area":"",//房屋面积,单位为平方米
  525. "documentNumber":"",//房屋相关的字第号
  526. "propertyUnitNumber":"",//不动产单元号
  527. "coOwnership":"",//房屋的共有情况,如共有比例等
  528. "usageType":"",//房屋用途,如住宅、商业等
  529. "usagePeriod":"",//房屋使用期限
  530. "registrationDate":"",//房屋登记日期
  531. "coOwner":"",//共有人姓名,多个共有人可以用逗号分隔
  532. "detailedAddress":"",//房屋的门牌号
  533. "hasParkingSpace":"",//是否有车位,Y表示有,N表示无
  534. "communityName":"",//房屋所在小区名称
  535. "houseStatus":"",//房屋状态:1-自住,2-出租,3-空闲,4-待售
  536. "parkingNumber":'',//车位号
  537. }
  538. this.houseInfoRedidentList.push(obj)
  539. },
  540. getDelfb(idx){
  541. this.houseInfoRedidentList.splice(idx,1)
  542. },
  543. statusFormats(data, list,type) {
  544. var aite=selectValueKey(list, data);
  545. if(type=='qllx'){
  546. this.qllxidx=aite.key;
  547. }else if(type=='rylx'){
  548. this.rylxidx=aite.key;
  549. }else if(type=='hzgx'){
  550. this.hzgxidx=aite.key;
  551. }else if(type=='fwzt'){
  552. this.fwztidx=aite.key;
  553. }else if(type=='fwyt'){
  554. this.fwytidx=aite.key;
  555. }else if(type=='ywcw'){
  556. this.ywcwidx=aite.key;
  557. }else if(type=='tenant'){
  558. this.tenantName=aite.actions;
  559. }else if(type=='rymm'){
  560. this.rymmidx=aite.key;
  561. }else if(type=='dslx'){
  562. this.dslxidx=aite.key;
  563. }
  564. return aite.actions;
  565. },
  566. onClear(type){
  567. if(this.isdisabled){
  568. return
  569. }
  570. if(type=='hzgx'){
  571. this.datainfo.residentRelationship='';
  572. this.hzgx='';
  573. }else if(type=='rymm'){
  574. this.datainfo.residentAppearance='';
  575. this.rymm='';
  576. }else if(type=='dslx'){
  577. this.datainfo.specialType='';
  578. this.dslx='';
  579. }else if(type=='qllx'){
  580. this.houserinfo.rightType='';
  581. this.qllx='';
  582. }else if(type=='fwlx'){
  583. this.houserinfo.houseType='';
  584. this.fwlx='';
  585. }else if(type=='fwzt'){
  586. this.houserinfo.houseStatus='';
  587. this.fwzt='';
  588. }else if(type=='fwyt'){
  589. this.houserinfo.usageType='';
  590. this.fwyt='';
  591. }else if(type=='ywcw'){
  592. this.houserinfo.hasParkingSpace='';
  593. this.ywcw='';
  594. }
  595. },
  596. getchangea(e){
  597. var tenantId=this.datainfo.tenantId;
  598. this.datainfo.tenantId=e.dictValue;
  599. this.houserinfo.communityName=e.dictLabel;
  600. // 业主或租户
  601. if(this.datainfo.residentType!=3){
  602. this.listNoPageTenant(e.dictValue)
  603. }
  604. },
  605. getchange(e){
  606. this.datainfo.houseId=e.dictValue;
  607. this.datainfo.detailedAddress=e.dictLabel;
  608. this.houserinfo.detailedAddress=e.dictLabel;
  609. this.houserinfo.houseId=e.dictValue;
  610. this.houserinfo.location=e.location;
  611. },
  612. // 获取租户列表
  613. gettenantList(){
  614. gettenantList().then(res=>{
  615. if(res.code==200){
  616. if(res.data.voList&&res.data.voList.length){
  617. this.voList = res.data.voList.map(v => {
  618. return {
  619. dictLabel: v.companyName,
  620. dictValue: v.tenantId
  621. }
  622. })
  623. }
  624. }else{
  625. this.$toast(res.msg)
  626. }
  627. })
  628. },
  629. listNoPageTenant(id){
  630. var params={
  631. tenantId:id,
  632. }
  633. listNoPageTenant(params).then(res=>{
  634. if(res.code==200){
  635. this.fwlist= res.data.map(v => {
  636. return {
  637. dictLabel: v.detailedAddress,
  638. dictValue: v.houseId,
  639. location: v.location
  640. }
  641. })
  642. // if(res.rows&&res.rows.length<2){
  643. // var newObj=res.rows[0];
  644. // this.datainfo.houseId=newObj.houseId;
  645. // this.datainfo.detailedAddress=newObj.detailedAddress
  646. // }
  647. }
  648. })
  649. },
  650. init(){
  651. // 人员类型
  652. getDictionaryFn('resident_Type').then(res=>{
  653. if(res.code==200){
  654. this.rylxList = res.data.map(v => {
  655. return {
  656. dictLabel: v.dictLabel,
  657. dictValue: v.dictValue
  658. }
  659. })
  660. }
  661. })
  662. // 房屋类型
  663. getDictionaryFn('house_type').then(res=>{
  664. if(res.code==200){
  665. this.fwlxList = res.data.map(v => {
  666. return {
  667. dictLabel: v.dictLabel,
  668. dictValue: v.dictValue
  669. }
  670. })
  671. }
  672. })
  673. // 是否
  674. getDictionaryFn('sys_yes_no').then(res=>{
  675. if(res.code==200){
  676. this.sfList = res.data.map(v => {
  677. return {
  678. dictLabel: v.dictLabel,
  679. dictValue: v.dictValue
  680. }
  681. })
  682. }
  683. })
  684. //户主关系
  685. getDictionaryFn('relationship_householder').then(res=>{
  686. if(res.code==200){
  687. this.hzgxList = res.data.map(v => {
  688. return {
  689. dictLabel: v.dictLabel,
  690. dictValue: v.dictValue
  691. }
  692. })
  693. }
  694. })
  695. // 房屋状态
  696. getDictionaryFn('house_status').then(res=>{
  697. if(res.code==200){
  698. this.fwztList = res.data.map(v => {
  699. return {
  700. dictLabel: v.dictLabel,
  701. dictValue: v.dictValue
  702. }
  703. })
  704. }
  705. })
  706. //权利类型
  707. getDictionaryFn('types_rights').then(res=>{
  708. if(res.code==200){
  709. this.qllxList = res.data.map(v => {
  710. return {
  711. dictLabel: v.dictLabel,
  712. dictValue: v.dictValue
  713. }
  714. })
  715. }
  716. })
  717. //房屋用途
  718. getDictionaryFn('use_remises').then(res=>{
  719. if(res.code==200){
  720. this.fwytList = res.data.map(v => {
  721. return {
  722. dictLabel: v.dictLabel,
  723. dictValue: v.dictValue
  724. }
  725. })
  726. }
  727. })
  728. //人员面貌
  729. getDictionaryFn('affiliation_personnel').then(res=>{
  730. if(res.code==200){
  731. this.rymmList = res.data.map(v => {
  732. return {
  733. dictLabel: v.dictLabel,
  734. dictValue: v.dictValue
  735. }
  736. })
  737. }
  738. })
  739. // 特殊类型
  740. getDictionaryFn('special_type').then(res=>{
  741. if(res.code==200){
  742. this.dslxList = res.data.map(v => {
  743. return {
  744. dictLabel: v.dictLabel,
  745. dictValue: v.dictValue
  746. }
  747. })
  748. }
  749. })
  750. //性别
  751. getDictionaryFn('gender').then(res=>{
  752. if(res.code==200){
  753. this.xbList = res.data.map(v => {
  754. return {
  755. dictLabel: v.dictLabel,
  756. dictValue: Number(v.dictValue)
  757. }
  758. })
  759. }
  760. })
  761. },
  762. getBackFn(){
  763. uni.navigateBack({
  764. delta:1
  765. })
  766. },
  767. bindDateChange(e){
  768. var val=e.detail.value;
  769. this.houserinfo.rightType=this.qllxList[val].dictValue;
  770. this.qllx=this.qllxList[val].dictLabel;
  771. },
  772. bindDateChangea(e){
  773. var val=e.detail.value;
  774. this.houserinfo.registrationDate=val;
  775. },
  776. bindDateChangeb(e){
  777. var val=e.detail.value;
  778. this.houserinfo.houseStatus=this.fwztList[val].dictValue;
  779. this.fwzt=this.fwztList[val].dictLabel;
  780. },
  781. bindDateChangec(e){
  782. var val=e.detail.value;
  783. this.houserinfo.usageType=this.fwytList[val].dictValue;
  784. this.fwyt=this.fwytList[val].dictLabel;
  785. },
  786. bindDateChanged(e){
  787. var val=e.detail.value;
  788. this.houserinfo.hasParkingSpace=this.ywcwList[val].dictValue;
  789. this.ywcw=this.ywcwList[val].dictLabel;
  790. },
  791. bindDateChangee(e){
  792. var val=e.detail.value;
  793. this.datainfo.residentType=this.rylxList[val].dictValue;
  794. this.rylx=this.rylxList[val].dictLabel;
  795. },
  796. bindDateChangef(e){
  797. var val=e.detail.value;
  798. this.datainfo.residentAppearance=this.rymmList[val].dictValue;
  799. this.rymm=this.rymmList[val].dictLabel;
  800. },
  801. bindDateChangeg(e){
  802. var val=e.detail.value;
  803. this.datainfo.specialType=this.dslxList[val].dictValue;
  804. this.dslx=this.dslxList[val].dictLabel;
  805. },
  806. bindDateChangeh(e){
  807. var val=e.detail.value;
  808. this.houserinfo.houseType=this.fwlxList[val].dictValue;
  809. this.fwlx=this.fwlxList[val].dictLabel;
  810. },
  811. getDetail(){
  812. residentInfoDet(this.id).then(res=>{
  813. if(res.code==200){
  814. this.datainfo=res.data;
  815. if(res.data.facePhoto){
  816. this.phofile=res.data.facePhoto.split(',')
  817. }
  818. var data=JSON.parse(JSON.stringify(res.data))
  819. if(data.residentType!=3){
  820. this.listNoPageTenant(data.tenantId)
  821. }
  822. if(res.data.houseInfoRedidentList&&res.data.houseInfoRedidentList.length&&res.data.houseInfoRedidentList[0]){
  823. var houseinfo=res.data.houseInfoRedidentList[0]
  824. this.houserinfo=JSON.parse(JSON.stringify(houseinfo))
  825. }
  826. if(res.data.examine&&res.data.examine==1){
  827. this.isdisabled=true;
  828. }
  829. }
  830. })
  831. },
  832. getSubmit(){
  833. var that=this;
  834. this.$refs.form.validate().then(res => {
  835. var params=JSON.parse(JSON.stringify(this.datainfo))
  836. var phofile=JSON.parse(JSON.stringify(this.phofile))
  837. // if(phofile&&phofile.length){
  838. // params.facePhoto=this.phofile.join(',');
  839. // }
  840. params.facePhoto=this.phofile.join(',');
  841. if(!params.tenantId){
  842. this.$toast('请选择小区名称')
  843. return
  844. }
  845. if(params.residentType==1&&params.isHouseholder=='Y'){
  846. var houserinfo=JSON.parse(JSON.stringify(this.houserinfo))
  847. if(!houserinfo.location){
  848. this.$toast('请输入房屋坐落')
  849. return
  850. }
  851. if(!houserinfo.area){
  852. this.$toast('请输入房屋面积')
  853. return
  854. }
  855. if(!houserinfo.detailedAddress){
  856. this.$toast('请输入门牌号')
  857. return
  858. }
  859. if(!houserinfo.houseType){
  860. this.$toast('请选择房屋类型')
  861. return
  862. }
  863. houserinfo.tenantId=params.tenantId;
  864. var newarr=[]
  865. newarr.push(houserinfo)
  866. params.houseInfoRedidentList=JSON.parse(JSON.stringify(newarr))
  867. }
  868. if(params.residentType==2){
  869. params.isTenant='Y'
  870. }else{
  871. params.isTenant=''
  872. }
  873. // if(!params.detailedAddress){
  874. // this.$toast('请选择居住门户')
  875. // return
  876. // }
  877. // let _IDRe18 =
  878. // /^([1-6][1-9]|50)\d{4}(18|19|20)\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
  879. // let _IDre15 = /^([1-6][1-9]|50)\d{4}\d{2}((0[1-9])|10|11|12)(([0-2][1-9])|10|20|30|31)\d{3}$/
  880. // // 校验身份证:
  881. // if (params.residentIdCard&&!_IDRe18.test(params.residentIdCard) && !_IDre15.test(params.residentIdCard)) {
  882. // this.$toast("请输入正确身份证号")
  883. // return
  884. // }
  885. if(this.ptype=='add'){
  886. if(this.rzflag){
  887. addResidentInfo(params).then(res=>{
  888. if(res.code==200){
  889. this.$toast("新增成功")
  890. setTimeout(function(){
  891. uni.$emit("refHouseList")
  892. var initFace='';
  893. that.$store.dispatch('checkInitFace', initFace).then(() => {
  894. })
  895. uni.navigateBack({
  896. delta:1
  897. })
  898. },1500)
  899. }
  900. })
  901. }else{
  902. }
  903. }else{
  904. if(this.rzflag){
  905. params.isFilter=true;
  906. authenticationPut(params).then(res=>{
  907. if(res.code==200){
  908. this.$toast("修改成功")
  909. setTimeout(function(){
  910. uni.$emit("refHouseList")
  911. var initFace='';
  912. that.$store.dispatch('checkInitFace', initFace).then(() => {
  913. })
  914. uni.navigateBack({
  915. delta:1
  916. })
  917. },1500)
  918. }
  919. })
  920. }else{
  921. authenticationPut(params).then(res=>{
  922. if(res.code==200){
  923. this.$toast("修改成功")
  924. setTimeout(function(){
  925. uni.$emit("refHouseList")
  926. uni.navigateBack({
  927. delta:1
  928. })
  929. },1500)
  930. }
  931. })
  932. }
  933. }
  934. })
  935. },
  936. getPreviewa(idx,arr) {
  937. var newArr=[];
  938. arr.forEach(ite=>{
  939. var ds=this.baseUrl+ite
  940. newArr.push(ds)
  941. })
  942. uni.previewImage({
  943. urls: newArr,
  944. current:idx,
  945. success: function(data) {},
  946. fail: function(err) {}
  947. });
  948. },
  949. getPreview(img) {
  950. var newArr=[];
  951. var url=this.baseUrl+img
  952. newArr.push(url)
  953. uni.previewImage({
  954. urls: newArr,
  955. current:0,
  956. success: function(data) {},
  957. fail: function(err) {}
  958. });
  959. },
  960. getDelFn(idx,type){
  961. var that=this;
  962. uni.showModal({
  963. title: '确认删除',
  964. content: "是否确认删除",
  965. cancelText: '取消',
  966. confirmText: '确认',
  967. success: function(res) {
  968. if (res.confirm) {
  969. that.phofile.splice(idx,1)
  970. } else if (res.cancel) {
  971. }
  972. }
  973. });
  974. },
  975. getaddImageava(type){
  976. if(this.isdisabled){
  977. return
  978. }
  979. let that = this;
  980. let file =[],count=9
  981. uni.chooseImage({
  982. success:function(res){
  983. let img= res.tempFilePaths;
  984. if(img.length + file.length > count){
  985. uni.showToast({
  986. title: '最多上传'+count+'张图片',
  987. icon: 'none',
  988. duration: 2000
  989. })
  990. }else{
  991. let imglen = res.tempFilePaths.length;
  992. var fuwufile = [];
  993. uploadmore('/common/upload',img,0,0,0,imglen,fuwufile,function(rs){
  994. that.phofile = that.phofile.concat(rs);
  995. })
  996. }
  997. }
  998. });
  999. },
  1000. getaddImage(type){
  1001. if(this.isdisabled){
  1002. return
  1003. }
  1004. let that = this;
  1005. let file =[],count=9
  1006. uni.chooseImage({
  1007. count: 1,
  1008. success:function(res){
  1009. let img= res.tempFilePaths;
  1010. if(img.length + file.length > count){
  1011. uni.showToast({
  1012. title: '最多上传'+count+'张图片',
  1013. icon: 'none',
  1014. duration: 2000
  1015. })
  1016. }else{
  1017. let imglen = res.tempFilePaths.length;
  1018. var fuwufile = [];
  1019. uploadIdentify('/common/upload',img,0,0,0,imglen,fuwufile,function(rs){
  1020. var resurl=rs[0];
  1021. if(type=='front'){
  1022. that.datainfo.idCardBack = resurl.fileName;
  1023. if (rs && rs.length > 0) {
  1024. var obj = {
  1025. type:type,
  1026. url: resurl.urlOnline
  1027. }
  1028. that.getOcrIdCard(obj)
  1029. }
  1030. }else{
  1031. that.houserinfo.houseImage=resurl.fileName
  1032. }
  1033. // if(rs&&rs.length>0){
  1034. // var obj={
  1035. // url:resurl.urlOnline
  1036. // }
  1037. // that.getOcrIdCardfz(obj)
  1038. // }
  1039. })
  1040. }
  1041. }
  1042. });
  1043. },
  1044. getOcrIdCard(obj) {
  1045. var params = {
  1046. image: obj.url,
  1047. idCardSide: obj.type
  1048. }
  1049. getOcrIdCard(params).then(res => {
  1050. if (res.code == 200) {
  1051. var datainfo = res.data;
  1052. if (obj.type == 'front') {
  1053. this.datainfo.residentName = datainfo.realName;
  1054. this.datainfo.residentIdCard = datainfo.idCard;
  1055. this.datainfo.idCardAddress = datainfo.address;
  1056. // } else {
  1057. // this.datainfo.expirationDate = datainfo.expirationDate
  1058. }
  1059. }
  1060. })
  1061. },
  1062. getOcrIdCardfz(obj){
  1063. var params={
  1064. image:obj.url
  1065. }
  1066. getrealEstateCertificatee(params).then(res=>{
  1067. if(res.code==200){
  1068. var datainfo=res.data;
  1069. // var obj=JSON.parse(JSON.stringify(this.houseInfoRedidentList[idx]))
  1070. this.houserinfo.ownerName=datainfo.ownerName;
  1071. this.houserinfo.location=datainfo.location;
  1072. this.houserinfo.rightType=datainfo.rightType;
  1073. this.houserinfo.area=datainfo.area;
  1074. this.houserinfo.documentNumber=datainfo.documentNumber;
  1075. this.houserinfo.propertyUnitNumber=datainfo.propertyUnitNumber;
  1076. this.houserinfo.coOwnership=datainfo.coOwnership;
  1077. this.houserinfo.usageType=datainfo.usageType;
  1078. this.houserinfo.usagePeriod=datainfo.usagePeriod;
  1079. this.houserinfo.registrationDate=datainfo.registrationDate;
  1080. this.houserinfo.coOwner=datainfo.coOwner;
  1081. // this.houseInfoRedidentList.splice(idx,1,obj)
  1082. }
  1083. })
  1084. },
  1085. }
  1086. }
  1087. </script>
  1088. <style>
  1089. page{background: #F3F3F0;}
  1090. </style>
  1091. <style lang="scss" scoped>
  1092. .coa /deep/ .uni-date__x-input{text-align: right;color: #AAAAAA;}
  1093. .check /deep/ .select-wrap{border: none;width: 100%;}
  1094. .check /deep/ .uni-date-editor--x__disabled{opacity: 1;}
  1095. .mh35{min-height: 70rpx;display: flex;align-items: center;}
  1096. .check /deep/ .uni-forms-item{min-height: 106rpx;box-sizing: border-box;display: flex;align-items: center;margin-bottom: 0;border-bottom: 2rpx solid #E6E6E6;padding:10rpx 0;}
  1097. .check .cbox .chmain /deep/ .isnobor{border: none;}
  1098. .check /deep/ .uni-forms-item__label{font-weight: bold;font-size: 26rpx;color: #222327;flex: 0 0 auto;width: auto !important;}
  1099. .check /deep/ .uni-easyinput{flex: 1;text-align: right;font-size: 26rpx;color: #222327;}
  1100. .check /deep/ .uni-easyinput__content-textarea{min-height: 40rpx;font-size: 26rpx;}
  1101. .check /deep/ .uni-easyinput__placeholder-class{font-size: 26rpx;color: #AAAAAA;}
  1102. .check /deep/ .uni-input-input{font-size: 26rpx;}
  1103. .check /deep/ .uni-textarea-textarea{font-size: 26rpx;}
  1104. .check /deep/ .is-disabled{color: #222327;background-color: #ffffff !important;}
  1105. .check /deep/ .uni-data-checklist .checklist-group .checklist-box{margin:10rpx 8rpx 10rpx 16rpx;}
  1106. .check /deep/ .uni-data-checklist{flex: 0 0 auto;}
  1107. .check /deep/ .is-required{font-size: 26rpx;color: #F40027;margin-right: 4rpx;}
  1108. .check /deep/ .uni-collapse{background-color: transparent;}
  1109. // .check /deep/ .uni-collapse .chmain{margin-bottom: 24rpx;}
  1110. .check{min-height: 100vh;box-sizing: border-box;padding: 20rpx 6rpx 54rpx;}
  1111. .cbox{padding: 0 12rpx;
  1112. .chtit{font-weight: 500;font-size: 24rpx;color: #666666;padding:20rpx 14rpx;}
  1113. .chmain{
  1114. padding: 0rpx 28rpx;background: #FFFFFF;border-radius: 20rpx;
  1115. .rimg{width: 16rpx;height: 28rpx;flex: 0 0 auto;margin-left: 20rpx;
  1116. image{width: 100%;height: 100%;}
  1117. }
  1118. }
  1119. .hbtns{font-weight: bold;display: flex;align-items: center;justify-content: center;font-size: 26rpx;height: 88rpx;border-radius: 20rpx;box-sizing: border-box;
  1120. &.bga{border: 1px solid #0256FD;color: #FFFFFF;background: #0256FD;}
  1121. &.bgb{border: 1px solid #0256FD;color: #0256FD;background: #CADBFF;}
  1122. }
  1123. .sylist{background: #F0F0F0;border-radius: 26rpx;border:2rpx solid #DADADA;margin-left: 26rpx;font-weight: 500;min-width:112rpx;height: 54rpx;box-sizing: border-box;
  1124. font-size: 26rpx;
  1125. color: #666666;
  1126. &.act{border: 2rpx solid #0256FD;background: #DCE8FF;color: #0256FD;}
  1127. }
  1128. .cmico{width: 48rpx;height: 48rpx;margin-left: 16rpx;}
  1129. .delbox{padding: 12rpx 32rpx;
  1130. image{width: 26rpx;height: 26rpx;margin-right: 14rpx;}
  1131. view{font-weight: 500;font-size: 26rpx;color: #FF6969;}
  1132. }
  1133. }
  1134. .addbox{width: 160rpx;height: 128rpx;background: #F0F0F0;border-radius: 20rpx;display: flex;flex-direction: column;align-items: center;justify-content: center;margin-left: 24rpx;margin-bottom: 20rpx;flex: 0 0 auto;
  1135. image{width: 48rpx;height: 42rpx;margin-bottom: 12rpx;}
  1136. view{font-weight: 500;font-size: 24rpx;color: #666666;}
  1137. }
  1138. .addimgs{display: flex;align-items: center;flex-wrap: wrap;justify-content: flex-end;
  1139. .assimg{width: 128rpx;height: 128rpx;position: relative;overflow: hidden;margin: 0 0 20rpx 24rpx;
  1140. .img{width: 100%;height: 100%;}
  1141. .delimg{width: 24rpx;height: 24rpx;position: absolute;right: 0;top: 0;}
  1142. }
  1143. }
  1144. .hfbtns{margin-top: 60rpx;justify-content: space-between;
  1145. .btn{height: 88rpx;background: #FFF8F8;border-radius: 20rpx;display: flex;align-items: center;justify-content: center;font-weight: bold;
  1146. font-size: 26rpx;box-sizing: border-box;flex: 1;margin: 0 12rpx;
  1147. &.btn1{border: 2rpx solid #FF6969;background: #FFF8F8;color: #FF6969;}
  1148. &.btn2{background: #0256FD;color: #ffffff;}
  1149. &.btn3{border: 2rpx solid #0256FD;background: #ffffff;color: #0256FD;}
  1150. }
  1151. }
  1152. </style>