authenadd.vue 39 KB

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