authenadd.vue 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140
  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='detailedAddress'
  48. keyName="houseId"
  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&&!isdisabled" 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&&!isdisabled" 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&&!isdisabled" 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" v-if="!isdisabled" 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&&!isdisabled" 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&&!isdisabled" 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&&!isdisabled" 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&&!isdisabled" 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&&!isdisabled" 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" v-if="!isdisabled">
  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(this.isdisabled){
  491. return
  492. }
  493. if(type=='hzgx'){
  494. this.datainfo.residentRelationship='';
  495. this.hzgx='';
  496. }else if(type=='rymm'){
  497. this.datainfo.residentAppearance='';
  498. this.rymm='';
  499. }else if(type=='dslx'){
  500. this.datainfo.specialType='';
  501. this.dslx='';
  502. }else if(type=='qllx'){
  503. this.houserinfo.rightType='';
  504. this.qllx='';
  505. }else if(type=='fwlx'){
  506. this.houserinfo.houseType='';
  507. this.fwlx='';
  508. }else if(type=='fwzt'){
  509. this.houserinfo.houseStatus='';
  510. this.fwzt='';
  511. }else if(type=='fwyt'){
  512. this.houserinfo.usageType='';
  513. this.fwyt='';
  514. }else if(type=='ywcw'){
  515. this.houserinfo.hasParkingSpace='';
  516. this.ywcw='';
  517. }
  518. },
  519. getSyFn(e){
  520. if(this.isdisabled){
  521. return
  522. }
  523. this.datainfo.isHouseholder=e
  524. console.log(this.datainfo.isHouseholder)
  525. },
  526. getChose(idx){
  527. this.choseidx=idx;
  528. },
  529. getAddfb(){
  530. var obj={
  531. "ownerName":"",//权利人姓名
  532. "location":"",//房屋坐落位置
  533. "rightType":"",//权利类型,如所有权、使用权等
  534. "area":"",//房屋面积,单位为平方米
  535. "documentNumber":"",//房屋相关的字第号
  536. "propertyUnitNumber":"",//不动产单元号
  537. "coOwnership":"",//房屋的共有情况,如共有比例等
  538. "usageType":"",//房屋用途,如住宅、商业等
  539. "usagePeriod":"",//房屋使用期限
  540. "registrationDate":"",//房屋登记日期
  541. "coOwner":"",//共有人姓名,多个共有人可以用逗号分隔
  542. "detailedAddress":"",//房屋的详细门牌号
  543. "hasParkingSpace":"",//是否有车位,Y表示有,N表示无
  544. "communityName":"",//房屋所在小区名称
  545. "houseStatus":"",//房屋状态:1-自住,2-出租,3-空闲,4-待售
  546. "parkingNumber":'',//车位号
  547. }
  548. this.houseInfoRedidentList.push(obj)
  549. },
  550. getDelfb(idx){
  551. this.houseInfoRedidentList.splice(idx,1)
  552. },
  553. statusFormats(data, list,type) {
  554. var aite=selectValueKey(list, data);
  555. if(type=='qllx'){
  556. this.qllxidx=aite.key;
  557. }else if(type=='rylx'){
  558. this.rylxidx=aite.key;
  559. }else if(type=='hzgx'){
  560. this.hzgxidx=aite.key;
  561. }else if(type=='fwzt'){
  562. this.fwztidx=aite.key;
  563. }else if(type=='fwyt'){
  564. this.fwytidx=aite.key;
  565. }else if(type=='ywcw'){
  566. this.ywcwidx=aite.key;
  567. }else if(type=='tenant'){
  568. this.tenantName=aite.actions;
  569. }else if(type=='rymm'){
  570. this.rymmidx=aite.key;
  571. }else if(type=='dslx'){
  572. this.dslxidx=aite.key;
  573. }else if(type=='fwlx'){
  574. this.fwlxidx=aite.key;
  575. }
  576. return aite.actions;
  577. },
  578. getchangea(e){
  579. var tenantId=this.datainfo.tenantId;
  580. this.datainfo.tenantId=e.dictValue;
  581. this.houserinfo.communityName=e.dictLabel;
  582. this.datainfo.houseId="";
  583. this.datainfo.detailedAddress='';
  584. this.houserinfo.detailedAddress='';
  585. this.houserinfo.houseId="";
  586. this.houserinfo.location='';
  587. // 业主或租户
  588. this.listNoPageTenant(e.dictValue)
  589. },
  590. getchange(e){
  591. this.datainfo.houseId=e.houseId;
  592. this.datainfo.detailedAddress=e.detailedAddress;
  593. // this.houserinfo.detailedAddress=e.dictLabel;
  594. // this.houserinfo.houseId=e.dictValue;
  595. // this.houserinfo.location=e.location;
  596. this.houserinfo=JSON.parse(JSON.stringify(e))
  597. },
  598. // 获取租户列表
  599. gettenantList(){
  600. gettenantList().then(res=>{
  601. if(res.code==200){
  602. if(res.data.voList&&res.data.voList.length){
  603. this.voList = res.data.voList.map(v => {
  604. return {
  605. dictLabel: v.companyName,
  606. dictValue: v.tenantId
  607. }
  608. })
  609. }
  610. }else{
  611. this.$toast(res.msg)
  612. }
  613. })
  614. },
  615. listNoPageTenant(id){
  616. var params={
  617. tenantId:id,
  618. }
  619. listNoPageTenant(params).then(res=>{
  620. if(res.code==200){
  621. // this.fwlist= res.data.map(v => {
  622. // return {
  623. // dictLabel: v.detailedAddress,
  624. // dictValue: v.houseId,
  625. // location: v.location
  626. // }
  627. // })
  628. this.fwlist=JSON.parse(JSON.stringify(res.data))
  629. // if(res.rows&&res.rows.length<2){
  630. // var newObj=res.rows[0];
  631. // this.datainfo.houseId=newObj.houseId;
  632. // this.datainfo.detailedAddress=newObj.detailedAddress
  633. // }
  634. }
  635. })
  636. },
  637. init(){
  638. // 人员类型
  639. getDictionaryFn('resident_Type').then(res=>{
  640. if(res.code==200){
  641. this.rylxList = res.data.map(v => {
  642. return {
  643. dictLabel: v.dictLabel,
  644. dictValue: v.dictValue
  645. }
  646. })
  647. }
  648. })
  649. // 房屋类型
  650. getDictionaryFn('house_type').then(res=>{
  651. if(res.code==200){
  652. this.fwlxList = res.data.map(v => {
  653. return {
  654. dictLabel: v.dictLabel,
  655. dictValue: v.dictValue
  656. }
  657. })
  658. }
  659. })
  660. // 是否
  661. getDictionaryFn('sys_yes_no').then(res=>{
  662. if(res.code==200){
  663. this.sfList = res.data.map(v => {
  664. return {
  665. dictLabel: v.dictLabel,
  666. dictValue: v.dictValue
  667. }
  668. })
  669. }
  670. })
  671. //户主关系
  672. getDictionaryFn('relationship_householder').then(res=>{
  673. if(res.code==200){
  674. this.hzgxList = res.data.map(v => {
  675. return {
  676. dictLabel: v.dictLabel,
  677. dictValue: v.dictValue
  678. }
  679. })
  680. }
  681. })
  682. // 房屋状态
  683. getDictionaryFn('house_status').then(res=>{
  684. if(res.code==200){
  685. this.fwztList = res.data.map(v => {
  686. return {
  687. dictLabel: v.dictLabel,
  688. dictValue: v.dictValue
  689. }
  690. })
  691. }
  692. })
  693. //权利类型
  694. getDictionaryFn('types_rights').then(res=>{
  695. if(res.code==200){
  696. this.qllxList = res.data.map(v => {
  697. return {
  698. dictLabel: v.dictLabel,
  699. dictValue: v.dictValue
  700. }
  701. })
  702. }
  703. })
  704. //房屋用途
  705. getDictionaryFn('use_remises').then(res=>{
  706. if(res.code==200){
  707. this.fwytList = res.data.map(v => {
  708. return {
  709. dictLabel: v.dictLabel,
  710. dictValue: v.dictValue
  711. }
  712. })
  713. }
  714. })
  715. //人员面貌
  716. getDictionaryFn('affiliation_personnel').then(res=>{
  717. if(res.code==200){
  718. this.rymmList = res.data.map(v => {
  719. return {
  720. dictLabel: v.dictLabel,
  721. dictValue: v.dictValue
  722. }
  723. })
  724. }
  725. })
  726. // 特殊类型
  727. getDictionaryFn('special_type').then(res=>{
  728. if(res.code==200){
  729. this.dslxList = res.data.map(v => {
  730. return {
  731. dictLabel: v.dictLabel,
  732. dictValue: v.dictValue
  733. }
  734. })
  735. }
  736. })
  737. //性别
  738. getDictionaryFn('gender').then(res=>{
  739. if(res.code==200){
  740. this.xbList = res.data.map(v => {
  741. return {
  742. dictLabel: v.dictLabel,
  743. dictValue: Number(v.dictValue)
  744. }
  745. })
  746. }
  747. })
  748. },
  749. getBackFn(){
  750. uni.navigateBack({
  751. delta:1
  752. })
  753. },
  754. bindDateChange(e){
  755. var val=e.detail.value;
  756. this.houserinfo.rightType=this.qllxList[val].dictValue;
  757. this.qllx=this.qllxList[val].dictLabel;
  758. },
  759. bindDateChangea(e){
  760. var val=e.detail.value;
  761. this.datainfo.residentRelationship=this.hzgxList[val].dictValue;
  762. this.hzgx=this.hzgxList[val].dictLabel
  763. },
  764. bindDateChangeb(e){
  765. var val=e.detail.value;
  766. this.houserinfo.houseStatus=this.fwztList[val].dictValue;
  767. this.fwzt=this.fwztList[val].dictLabel;
  768. },
  769. bindDateChangec(e){
  770. var val=e.detail.value;
  771. this.houserinfo.usageType=this.fwytList[val].dictValue;
  772. this.fwyt=this.fwytList[val].dictLabel;
  773. },
  774. bindDateChanged(e){
  775. var val=e.detail.value;
  776. this.houserinfo.hasParkingSpace=this.ywcwList[val].dictValue;
  777. this.ywcw=this.ywcwList[val].dictLabel;
  778. },
  779. bindDateChangee(e){
  780. var val=e.detail.value;
  781. this.datainfo.residentType=this.rylxList[val].dictValue;
  782. this.rylx=this.rylxList[val].dictLabel;
  783. },
  784. bindDateChangef(e){
  785. var val=e.detail.value;
  786. this.datainfo.residentAppearance=this.rymmList[val].dictValue;
  787. this.rymm=this.rymmList[val].dictLabel;
  788. },
  789. bindDateChangeg(e){
  790. var val=e.detail.value;
  791. this.datainfo.specialType=this.dslxList[val].dictValue;
  792. this.dslx=this.dslxList[val].dictLabel;
  793. },
  794. bindDateChangeh(e){
  795. var val=e.detail.value;
  796. this.houserinfo.houseType=this.fwlxList[val].dictValue;
  797. this.fwlx=this.fwlxList[val].dictLabel;
  798. },
  799. getDetail(){
  800. authentication(this.id).then(res=>{
  801. if(res.code==200){
  802. this.datainfo=res.data;
  803. if(res.data.facePhoto){
  804. this.phofile=res.data.facePhoto.split(',')
  805. }
  806. var data=JSON.parse(JSON.stringify(res.data))
  807. if(data.residentType!=3){
  808. this.listNoPageTenant(data.tenantId)
  809. }
  810. if(res.data.houseInfoRedidentList&&res.data.houseInfoRedidentList.length&&res.data.houseInfoRedidentList[0]){
  811. var houseinfo=res.data.houseInfoRedidentList[0]
  812. this.houserinfo=JSON.parse(JSON.stringify(houseinfo))
  813. }
  814. // if(res.data.examine==2){
  815. // this.isdisabled=true
  816. // }
  817. }
  818. })
  819. },
  820. getSubmit(){
  821. var that=this;
  822. this.$refs.form.validate().then(res => {
  823. var params=JSON.parse(JSON.stringify(this.datainfo))
  824. var phofile=JSON.parse(JSON.stringify(this.phofile))
  825. // if(phofile&&phofile.length){
  826. // params.facePhoto=this.phofile.join(',');
  827. // }
  828. params.facePhoto=this.phofile.join(',');
  829. if(!params.tenantId){
  830. this.$toast('请选择小区名称')
  831. return
  832. }
  833. if((params.residentType==1||params.residentType==2)&&!params.houseId){
  834. this.$toast('请选择房屋号')
  835. return
  836. }
  837. if(params.residentType==1&&params.isHouseholder=='Y'){
  838. var houserinfo=JSON.parse(JSON.stringify(this.houserinfo))
  839. if(!houserinfo.location){
  840. this.$toast('请输入房屋坐落')
  841. return
  842. }
  843. if(!houserinfo.area){
  844. this.$toast('请输入房屋面积')
  845. return
  846. }
  847. if(!houserinfo.detailedAddress){
  848. this.$toast('请输入详细门牌号')
  849. return
  850. }
  851. if(!houserinfo.houseType){
  852. this.$toast('请选择房屋类型')
  853. return
  854. }
  855. houserinfo.tenantId=params.tenantId;
  856. var newarr=[]
  857. newarr.push(houserinfo)
  858. params.houseInfoRedidentList=JSON.parse(JSON.stringify(newarr))
  859. }
  860. if(params.residentType==2){
  861. params.isTenant='Y';
  862. }else{
  863. params.isTenant=''
  864. }
  865. // if(!params.detailedAddress){
  866. // this.$toast('请选择居住门户')
  867. // return
  868. // }
  869. let _IDRe18 =
  870. /^([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]$/
  871. 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}$/
  872. // 校验身份证:
  873. if (params.residentIdCard&&!_IDRe18.test(params.residentIdCard) && !_IDre15.test(params.residentIdCard)) {
  874. this.$toast("请输入正确身份证号")
  875. return
  876. }
  877. if(this.ptype=='add'){
  878. if(this.rzflag){
  879. residentInfoAdd(params).then(res=>{
  880. if(res.code==200){
  881. this.$toast("新增成功")
  882. setTimeout(function(){
  883. uni.$emit("residentInfoList")
  884. var initFace='';
  885. that.$store.dispatch('checkInitFace', initFace).then(() => {
  886. })
  887. uni.navigateBack({
  888. delta:1
  889. })
  890. },1500)
  891. }
  892. })
  893. }
  894. }else{
  895. if(this.rzflag){
  896. params.isFilter=true;
  897. residentInfoPut(params).then(res=>{
  898. if(res.code==200){
  899. this.$toast("修改成功")
  900. setTimeout(function(){
  901. uni.$emit("residentInfoList")
  902. var initFace='';
  903. that.$store.dispatch('checkInitFace', initFace).then(() => {
  904. })
  905. uni.navigateBack({
  906. delta:1
  907. })
  908. },1500)
  909. }
  910. })
  911. }
  912. }
  913. })
  914. },
  915. getPreviewa(idx,arr) {
  916. var newArr=[];
  917. arr.forEach(ite=>{
  918. var ds=this.baseUrl+ite
  919. newArr.push(ds)
  920. })
  921. uni.previewImage({
  922. urls: newArr,
  923. current:idx,
  924. success: function(data) {},
  925. fail: function(err) {}
  926. });
  927. },
  928. getPreview(img) {
  929. var newArr=[];
  930. var url=this.baseUrl+img
  931. newArr.push(url)
  932. uni.previewImage({
  933. urls: newArr,
  934. current:0,
  935. success: function(data) {},
  936. fail: function(err) {}
  937. });
  938. },
  939. getDelFn(idx,type){
  940. var that=this;
  941. uni.showModal({
  942. title: '确认删除',
  943. content: "是否确认删除",
  944. cancelText: '取消',
  945. confirmText: '确认',
  946. success: function(res) {
  947. if (res.confirm) {
  948. that.phofile.splice(idx,1)
  949. } else if (res.cancel) {
  950. }
  951. }
  952. });
  953. },
  954. getaddImageava(type){
  955. if(this.isdisabled){
  956. return
  957. }
  958. let that = this;
  959. let file =[],count=9
  960. uni.chooseImage({
  961. success:function(res){
  962. let img= res.tempFilePaths;
  963. if(img.length + file.length > count){
  964. uni.showToast({
  965. title: '最多上传'+count+'张图片',
  966. icon: 'none',
  967. duration: 2000
  968. })
  969. }else{
  970. let imglen = res.tempFilePaths.length;
  971. var fuwufile = [];
  972. uploadmore('/common/upload',img,0,0,0,imglen,fuwufile,function(rs){
  973. that.phofile = that.phofile.concat(rs);
  974. })
  975. }
  976. }
  977. });
  978. },
  979. getaddImage(type){
  980. if(this.isdisabled){
  981. return
  982. }
  983. let that = this;
  984. let file =[],count=9
  985. uni.chooseImage({
  986. count: 1,
  987. success:function(res){
  988. let img= res.tempFilePaths;
  989. if(img.length + file.length > count){
  990. uni.showToast({
  991. title: '最多上传'+count+'张图片',
  992. icon: 'none',
  993. duration: 2000
  994. })
  995. }else{
  996. let imglen = res.tempFilePaths.length;
  997. var fuwufile = [];
  998. uploadIdentify('/common/upload',img,0,0,0,imglen,fuwufile,function(rs){
  999. var resurl=rs[0];
  1000. if(type=='front'){
  1001. that.datainfo.idCardBack = resurl.fileName;
  1002. if (rs && rs.length > 0) {
  1003. var obj = {
  1004. type:type,
  1005. url: resurl.urlOnline
  1006. }
  1007. that.getOcrIdCard(obj)
  1008. }
  1009. }else{
  1010. that.houserinfo.houseImage=resurl.fileName;
  1011. if(rs&&rs.length>0){
  1012. var obj={
  1013. url:resurl.urlOnline
  1014. }
  1015. that.getOcrIdCardfz(obj)
  1016. }
  1017. }
  1018. })
  1019. }
  1020. }
  1021. });
  1022. },
  1023. getOcrIdCard(obj) {
  1024. var params = {
  1025. image: obj.url,
  1026. idCardSide: obj.type
  1027. }
  1028. getOcrIdCard(params).then(res => {
  1029. if (res.code == 200) {
  1030. var datainfo = res.data;
  1031. if (obj.type == 'front') {
  1032. this.datainfo.residentName = datainfo.realName;
  1033. this.datainfo.residentIdCard = datainfo.idCard;
  1034. this.datainfo.idCardAddress = datainfo.address;
  1035. // } else {
  1036. // this.datainfo.expirationDate = datainfo.expirationDate
  1037. }
  1038. }
  1039. })
  1040. },
  1041. getOcrIdCardfz(obj){
  1042. var params={
  1043. image:obj.url
  1044. }
  1045. getrealEstateCertificatee(params).then(res=>{
  1046. if(res.code==200){
  1047. var datainfo=res.data;
  1048. // var obj=JSON.parse(JSON.stringify(this.houseInfoRedidentList[idx]))
  1049. this.houserinfo.ownerName=datainfo.ownerName;
  1050. this.houserinfo.location=datainfo.location;
  1051. this.houserinfo.rightType=datainfo.rightType;
  1052. this.houserinfo.area=datainfo.area;
  1053. this.houserinfo.documentNumber=datainfo.documentNumber;
  1054. this.houserinfo.propertyUnitNumber=datainfo.propertyUnitNumber;
  1055. this.houserinfo.coOwnership=datainfo.coOwnership;
  1056. this.houserinfo.usageType=datainfo.usageType;
  1057. this.houserinfo.usagePeriod=datainfo.usagePeriod;
  1058. this.houserinfo.registrationDate=datainfo.registrationDate;
  1059. this.houserinfo.coOwner=datainfo.coOwner;
  1060. // this.houseInfoRedidentList.splice(idx,1,obj)
  1061. }
  1062. })
  1063. },
  1064. }
  1065. }
  1066. </script>
  1067. <style>
  1068. page{background: #F3F3F0;}
  1069. </style>
  1070. <style lang="scss" scoped>
  1071. .coa /deep/ .uni-date__x-input{text-align: right;color: #AAAAAA;}
  1072. .check /deep/ .select-wrap{border: none;width: 100%;}
  1073. .mh35{min-height: 70rpx;display: flex;align-items: center;}
  1074. .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;}
  1075. .check .cbox .chmain /deep/ .isnobor{border: none;}
  1076. .check /deep/ .uni-forms-item__label{font-weight: bold;font-size: 26rpx;color: #222327;flex: 0 0 auto;width: auto !important;}
  1077. .check /deep/ .uni-easyinput{flex: 1;text-align: right;font-size: 26rpx;color: #222327;}
  1078. .check /deep/ .uni-easyinput__content-textarea{min-height: 40rpx;font-size: 26rpx;}
  1079. .check /deep/ .uni-easyinput__placeholder-class{font-size: 26rpx;color: #AAAAAA;}
  1080. .check /deep/ .uni-input-input{font-size: 26rpx;}
  1081. .check /deep/ .uni-textarea-textarea{font-size: 26rpx;}
  1082. .check /deep/ .is-disabled{color: #222327;background-color: #ffffff !important;}
  1083. .check /deep/ .uni-data-checklist .checklist-group .checklist-box{margin:10rpx 8rpx 10rpx 16rpx;}
  1084. .check /deep/ .uni-data-checklist{flex: 0 0 auto;}
  1085. .check /deep/ .is-required{font-size: 26rpx;color: #F40027;margin-right: 4rpx;}
  1086. .check /deep/ .uni-collapse{background-color: transparent;}
  1087. // .check /deep/ .uni-collapse .chmain{margin-bottom: 24rpx;}
  1088. .check{min-height: 100vh;box-sizing: border-box;padding: 20rpx 18rpx 54rpx;}
  1089. .cbox{
  1090. .chtit{font-weight: 500;font-size: 24rpx;color: #666666;padding:20rpx 14rpx;}
  1091. .chmain{
  1092. padding: 0rpx 28rpx;background: #FFFFFF;border-radius: 20rpx;
  1093. .rimg{width: 16rpx;height: 28rpx;flex: 0 0 auto;margin-left: 20rpx;
  1094. image{width: 100%;height: 100%;}
  1095. }
  1096. }
  1097. .hbtns{font-weight: bold;display: flex;align-items: center;justify-content: center;font-size: 26rpx;height: 88rpx;border-radius: 20rpx;box-sizing: border-box;
  1098. &.bga{border: 1px solid #0256FD;color: #FFFFFF;background: #0256FD;}
  1099. &.bgb{border: 1px solid #0256FD;color: #0256FD;background: #CADBFF;}
  1100. }
  1101. .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;
  1102. font-size: 26rpx;
  1103. color: #666666;
  1104. &.act{border: 2rpx solid #0256FD;background: #DCE8FF;color: #0256FD;}
  1105. }
  1106. .cmico{width: 48rpx;height: 48rpx;margin-left: 16rpx;}
  1107. .delbox{padding: 12rpx 32rpx;
  1108. image{width: 26rpx;height: 26rpx;margin-right: 14rpx;}
  1109. view{font-weight: 500;font-size: 26rpx;color: #FF6969;}
  1110. }
  1111. }
  1112. .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;
  1113. image{width: 48rpx;height: 42rpx;margin-bottom: 12rpx;}
  1114. view{font-weight: 500;font-size: 24rpx;color: #666666;}
  1115. }
  1116. .addimgs{display: flex;align-items: center;flex-wrap: wrap;justify-content: flex-end;
  1117. .assimg{width: 128rpx;height: 128rpx;position: relative;overflow: hidden;margin: 0 0 20rpx 24rpx;
  1118. .img{width: 100%;height: 100%;}
  1119. .delimg{width: 24rpx;height: 24rpx;position: absolute;right: 0;top: 0;}
  1120. }
  1121. }
  1122. </style>