authenadd.vue 42 KB

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