vadd.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680
  1. <template>
  2. <view class="check">
  3. <uni-forms ref="form" :model="datainfo" :rules="rules">
  4. <view class="cbox" style="padding-bottom: 24rpx;">
  5. <view class="chtop flexc" @click="zhanflag=!zhanflag">
  6. <view class="line"></view>
  7. <view>常用访客</view>
  8. <view class="flex1"></view>
  9. <image :src="upimg" class="upimg" :class="zhanflag?'act':''"></image>
  10. </view>
  11. <view class="peobox flexc" v-if="zhanflag">
  12. <view class="plists flexcc">
  13. <view class="tit overtwo">爷爷奶奶</view>
  14. <view class="addimg flexcc">
  15. <image :src="addimg"></image>
  16. </view>
  17. </view>
  18. <view class="plists flexcc">
  19. <view class="tit overtwo">王一</view>
  20. <view class="addimg flexcc">
  21. <image :src="addimg"></image>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="cbox">
  27. <view class="chtop flexc">
  28. <view class="line"></view>
  29. <view>访客信息</view>
  30. </view>
  31. <view class="chmain">
  32. <!-- 选择房屋 -->
  33. <uni-forms-item label="访客姓名" name="name">
  34. <view class="flexc">
  35. <uni-easyinput :disabled="isdisabled" v-model="datainfo.name" :inputBorder='false' placeholder="请输入访客姓名" />
  36. <!-- <uni-data-checkbox selectedColor="#0156FE" selectedTextColor="#272727" v-model="datainfo.sex" :localdata="sexs" /> -->
  37. </view>
  38. </uni-forms-item>
  39. <uni-forms-item label="来访人数" name="num">
  40. <view class="flexc">
  41. <!-- <uni-easyinput :disabled="isdisabled" v-model="datainfo.num" type="Number" :inputBorder='false' placeholder="请输入来访人数" /> -->
  42. <view class="flex1"></view>
  43. <view class="libox flexcw rslist">
  44. <view class="sylist flexcc" :class="rsidx==ite.value?'act':''" v-for="(ite,idx) in rslist" :key="idx" @click="getRsFn(ite)">{{ite.label}}</view>
  45. </view>
  46. <view class="rimg"><image :src="rimg"></image></view>
  47. </view>
  48. </uni-forms-item>
  49. <uni-forms-item label="来访时间" name="visitorTime">
  50. <!-- :hide-second='true' -->
  51. <view class="flexc">
  52. <uni-datetime-picker type="datetime" :disabled="isdisabled" :class="datainfo.visitorTime?'co27':'coa'" placeholder="请选择来访时间" :border="false" v-model="datainfo.visitorTime" @change="changeLog" />
  53. <view class="rimg"><image :src="rimg"></image></view>
  54. </view>
  55. <!-- <picker range-key='dictLabel' :value="vxlbidx" :range="vxlbList" @change='bindDateChangea'>
  56. <view class="flexc">
  57. <view class="flex1 txr f13 co27" v-if="datainfo.maintenanceCategory&&!vxlb">{{statusFormats(datainfo.maintenanceCategory,vxlbList,'vxlb')}}</view>
  58. <view class="flex1 txr f13" v-else :class="vxlb?'co27':'coa'">{{vxlb||"请选择来访时间"}}</view>
  59. <view class="rimg"><image :src="rimg"></image></view>
  60. </view>
  61. </picker> -->
  62. </uni-forms-item>
  63. <uni-forms-item label="来访事由" name="reason">
  64. <view class="flexc ">
  65. <view class="flex1"></view>
  66. <view class="sylist flexcc" :class="syidx==ite.dictValue?'act':''" v-for="(ite,idx) in sylist" :key="idx" @click="getSyFn(ite.dictValue)">{{ite.dictLabel}}</view>
  67. <!-- <uni-easyinput :disabled="isdisabled" v-model="datainfo.reason" :inputBorder='false' placeholder="请输入来访事由" /> -->
  68. <view class="rimg"><image :src="rimg"></image></view>
  69. <!-- <picker range-key='dictLabel' :value="syqxidx" :range="sexs" @change='bindDateChange'>
  70. <view class="rimg"><image :src="rimg"></image></view>
  71. </picker> -->
  72. </view>
  73. </uni-forms-item>
  74. <uni-forms-item label="来访门户" name="houseId">
  75. <w-select
  76. style="margin-left: 20rpx;"
  77. v-model="chooseValue"
  78. :list='fwlist'
  79. valueName='label'
  80. keyName="value"
  81. :chosevalue="datainfo.houseAddress"
  82. :filterable='filterable'
  83. @change='getchange'
  84. >
  85. </w-select>
  86. </uni-forms-item>
  87. </view>
  88. </view>
  89. <view class="cbox">
  90. <view class="chtop flexc">
  91. <view class="line"></view>
  92. <view>驾车信息</view>
  93. </view>
  94. <view class="chmain">
  95. <uni-forms-item label="是否驾车" name="isCar">
  96. <view class="flexc" @click="getChangeFn">
  97. <view class="flex1"></view>
  98. <image :src="check" v-if="datainfo.isCar=='Y'" class="checkimg"></image>
  99. <image :src="ncheck" v-else class="checkimg"></image>
  100. </view>
  101. </uni-forms-item>
  102. <uni-forms-item label="车牌号码" name="plateNumber" v-if="datainfo.isCar=='Y'">
  103. <view class="flexc">
  104. <!-- disabled -->
  105. <!-- <uni-easyinput :disabled="isdisabled" v-model="datainfo.plateNumber" :inputBorder='false' placeholder="请输入车牌号" /> -->
  106. <view class="flex1"></view>
  107. <view class="carinput-input">
  108. <view class="carinput-input-i" :class="{'input-active':carIndex == i}" @tap.stop="inputKey" :data-index="i" v-for="(v,i) in carInput" :key="i" v-if="i < 2">
  109. {{carInput[i].val}}
  110. </view>
  111. <!-- 塞个点 -->
  112. <view class="cir"></view>
  113. <view class="carinput-input-i" :class="{'input-active':carIndex == i}" @tap.stop="inputKey" :data-index="i" v-for="(v,i) in carInput" :key="i" v-if="i < 7&&i>1">
  114. {{carInput[i].val}}
  115. </view>
  116. <view class="carinput-input-i " :class="{'input-active':carIndex == 7}" @tap.stop="inputKey" data-index="7">
  117. <block v-if="carInput[7].val">{{carInput[7].val}}</block>
  118. <view v-else class="newtit flexccc">
  119. <image :src="addnew"></image>
  120. 新能源
  121. </view>
  122. <!-- {{carInput[7].val?carInput[7].val:'+新能源'}} -->
  123. </view>
  124. </view>
  125. </view>
  126. </uni-forms-item>
  127. <uni-forms-item label="手机号码" name="mobileNumber">
  128. <view class="flexc">
  129. <uni-easyinput :disabled="isdisabled" v-model="datainfo.mobileNumber" :inputBorder='false' placeholder="请输入手机号码" />
  130. <view class="rimg"></view>
  131. </view>
  132. </uni-forms-item>
  133. <view class="tips">
  134. 如驾车,填写车牌后,访客到访时,车闸机自动打开
  135. </view>
  136. </view>
  137. </view>
  138. </uni-forms>
  139. <view class="pdlr12 mt34">
  140. <view class="rhbtnw mb20" @click="getVisAdd">设为常用访客</view>
  141. <view class="rhbtn" @click="getEditFn" v-if="isdisabled">修改</view>
  142. <view class="rhbtn" @click="getSubmit" v-else>确定</view>
  143. </view>
  144. <tki-float-keyboard ref="keybd" :mode="'car'" :type="keyType" :title="'车牌键盘'" @del="keyCbDel" @val="keyCbVal" @hide="keyCbHide"></tki-float-keyboard>
  145. <loading></loading>
  146. </view>
  147. </template>
  148. <script>
  149. import config from '@/config'
  150. import {checkPermi,checkRole} from "@/utils/permission"; // 权限判断函数
  151. import {uploadIdentify,uploadmore,geocodeAddress} from '@/utils/common.js'
  152. import {reservAdd,reservDet,reservPut} from "@/api/work/people.js"
  153. import {getDictionaryFn} from "@/api/system/user.js"
  154. import {houseInfolistNoPage} from "@/api/work/work.js"
  155. import wSelect from "@/work/components/w-select/w-select.vue"
  156. import tkiFloatKeyboard from "@/mine/components/tki-float-keyboard/tki-float-keyboard.vue";
  157. var key='';
  158. // #ifdef H5
  159. key='8de52b560193f01932ad997dba3e76c0'
  160. // #endif
  161. // #ifdef APP-PLUS
  162. key='8de52b560193f01932ad997dba3e76c0'
  163. // #endif
  164. // #ifdef MP-WEIXIN
  165. key='8de52b560193f01932ad997dba3e76c0'
  166. // #endif
  167. export default {
  168. components: {wSelect,tkiFloatKeyboard},
  169. data() {
  170. return {
  171. rimg: require('@/static/images/rimg.png'),
  172. aphoto: require('@/work/static/visitor/aphoto.png'),
  173. upimg: require('@/work/static/manage/up.png'),
  174. addimg: require('@/work/static/manage/add.png'),
  175. check: require('@/mine/static/check.png'),
  176. ncheck: require('@/mine/static/ncheck.png'),
  177. baseUrl: config.baseUrl,
  178. checkflag:true,
  179. datainfo: {
  180. // "visitorManageId":"",//来访主键
  181. "houseId":"",//门户id
  182. "houseAddress":"",//详细门牌号
  183. "name":"",//访客姓名
  184. "num":"",//来访人数
  185. "reason":"",//来访事由
  186. "mobileNumber":"",//手机号码
  187. "isCar":"N",//是否驾车 N:否 Y:是
  188. "plateNumber":"",//车牌号码
  189. // "reserveTime":"",//预约时间
  190. "visitorTime":"",//来访时间
  191. // "status":"",//状态 1:预约成功 2:已来访 3:已过期
  192. // "photo":""//人脸信息
  193. },
  194. syqxidx:'',
  195. sexs: [{
  196. text: '男',
  197. value: 0
  198. }, {
  199. text: '女',
  200. value: 1
  201. }],
  202. rules:{name: {rules: [{required: true,errorMessage: '请输入访客姓名' }]},
  203. houseId: {rules: [{required: true,errorMessage: '请选择来访门户' }]},
  204. mobileNumber: {rules: [{required: true,errorMessage: '请输入手机号'}, {pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,errorMessage:'请输入正确的手机号码'}]},},
  205. phofile:[],
  206. filterable:true,
  207. chooseValue:'',
  208. fwlist:[],
  209. id:'',
  210. zhanflag:false,
  211. isdisabled:false,
  212. ptype:'add',
  213. userId:this.$store.state.user.userId,
  214. syidx:'',
  215. rsidx:'',
  216. sylist:[],
  217. rslist:[{label:'1',value:'1'},{label:'2',value:'2'},{label:'3',value:'3'},{label:'4',value:'4'},{label:'5',value:'5'},{label:'6',value:'6'},{label:'7',value:'7'},{label:'8',value:'8'},{label:'9',value:'9'},{label:'10及以上',value:'10'}],
  218. carIndex: -1,
  219. carInput: [
  220. { type: 2, val: "皖" },
  221. { type: 4, val: "A" },
  222. { type: 1, val: "" },
  223. { type: 1, val: "" },
  224. { type: 1, val: "" },
  225. { type: 1, val: "" },
  226. { type: 3, val: "" },
  227. { type: 1, val: "" }
  228. ],
  229. keyType: 0,
  230. isPower: false, // 新能源
  231. addnew:require('@/mine/static/house/add.png'),
  232. }
  233. },
  234. onLoad: function(e) {
  235. if(e.id){
  236. this.id=e.id;
  237. this.ptype="edit";
  238. // this.isdisabled=true;
  239. this.getDetail()
  240. }
  241. this.init()
  242. if(this.ptype=='add'){
  243. this.time()
  244. }
  245. },
  246. methods: {
  247. checkPermi,
  248. checkRole,
  249. getEditFn(){
  250. this.isdisabled=false;
  251. },
  252. changeLog(){
  253. },
  254. async getLocation(address) {
  255. var that=this;
  256. if (!address) {
  257. uni.showToast({ title: '请输入地址', icon: 'none' });
  258. return;
  259. }
  260. try {
  261. const { latitude, longitude } = await geocodeAddress(address, key);
  262. this.datainfo.lat=latitude;
  263. this.datainfo.lgt=longitude;
  264. } catch (error) {
  265. // uni.showToast({ title: '获取经纬度失败', icon: 'none' });
  266. }
  267. },
  268. time() {
  269. var date = new Date();
  270. var y = date.getFullYear();
  271. var m = date.getMonth() + 1;
  272. var d = date.getDate();
  273. var h = date.getHours();
  274. var min = date.getMinutes();
  275. var s = date.getSeconds();
  276. var yearStr = y + '-' + (m < 10 ? ('0' + m) : m) + '-' + (d < 10 ? ('0' + d) : d)
  277. var timeStr = (h < 10 ? ('0' + h) : h) + ':' + (min < 10 ? ('0' + min) : min) + ':' + (s < 10 ? (
  278. '0' + s) : s);
  279. var kaTime = yearStr + ' ' + timeStr;
  280. console.log(kaTime)
  281. this.datainfo.visitorTime=kaTime
  282. },
  283. getSyFn(e){
  284. this.syidx=e;
  285. this.datainfo.reason=e;
  286. },
  287. getRsFn(e){
  288. this.rsidx=e.value;
  289. this.datainfo.num=e.label;
  290. },
  291. init(){
  292. // 自己的房屋
  293. var params={
  294. userId:this.userId,
  295. pageSize: 100,
  296. pageNum: 1,
  297. }
  298. houseInfolistNoPage(params).then(res=>{
  299. if(res.code==200){
  300. this.fwlist= res.rows.map(v => {
  301. return {
  302. label: v.detailedAddress,
  303. value: v.houseId,
  304. location: v.location
  305. }
  306. })
  307. }
  308. })
  309. // 获取事由
  310. getDictionaryFn('visit_reason').then(res=>{
  311. if(res.code==200){
  312. this.sylist = res.data.map(v => {
  313. return {
  314. dictLabel: v.dictLabel,
  315. dictValue: v.dictValue
  316. }
  317. })
  318. }
  319. })
  320. },
  321. bindDateChange(e){
  322. var val=e.detail.value;
  323. // this.datainfo.applicationBank=this.sdyhlist[val].value;
  324. // this.applicationBank=this.sdyhlist[val].label;
  325. },
  326. getChangeFn(){
  327. if(this.isdisabled){
  328. return
  329. }
  330. if(this.datainfo.isCar=='Y'){
  331. this.datainfo.isCar='N'
  332. }else{
  333. this.datainfo.isCar='Y'
  334. }
  335. },
  336. getDetail(){
  337. reservDet(this.id).then(res=>{
  338. if(res.code==200){
  339. this.datainfo=res.data;
  340. this.chooseValue=res.data.houseId
  341. }
  342. })
  343. },
  344. getSubmit(){
  345. var num=this.toBind()
  346. this.$refs.form.validate().then(res => {
  347. var params=JSON.parse(JSON.stringify(this.datainfo))
  348. if(!params.houseId){
  349. this.$toast("请选择来访门户")
  350. return
  351. }
  352. if(!params.visitorTime){
  353. this.$toast("请选择来访时间")
  354. return
  355. }
  356. if(params.isCar=='Y'&&!params.plateNumber){
  357. this.$toast("请输入车牌号")
  358. return
  359. }
  360. if(params.isCar!='Y'){
  361. params.plateNumber=''
  362. }else{
  363. if(num=='-1'){
  364. this.$toast('请输入完整的车牌号')
  365. return
  366. }
  367. }
  368. if(this.ptype=='add'){
  369. reservAdd(params).then(res=>{
  370. if(res.code==200){
  371. this.$toast("新增成功")
  372. setTimeout(function(){
  373. // uni.$emit("refComelist")
  374. uni.navigateBack({
  375. delta:1
  376. })
  377. },1500)
  378. }
  379. })
  380. }else{
  381. reservPut(params).then(res=>{
  382. if(res.code==200){
  383. this.$toast("修改成功")
  384. setTimeout(function(){
  385. // uni.$emit("refComelist")
  386. uni.navigateBack({
  387. delta:1
  388. })
  389. },1500)
  390. }
  391. })
  392. }
  393. })
  394. },
  395. getchange(e){
  396. this.datainfo.houseId=e.value;
  397. this.datainfo.houseAddress=e.label;
  398. this.datainfo.detailAddress=e.location;
  399. this.getLocation(e.location)
  400. },
  401. getaddImage(e) {
  402. let that = this;
  403. let file = [],
  404. count = 9
  405. uni.chooseImage({
  406. success: function(res) {
  407. let img = res.tempFilePaths;
  408. if (img.length + file.length > count) {
  409. uni.showToast({
  410. title: '最多上传' + count + '张图片',
  411. icon: 'none',
  412. duration: 2000
  413. })
  414. } else {
  415. let imglen = res.tempFilePaths.length;
  416. var fuwufile = [];
  417. uploadmore('/common/upload', img, 0, 0, 0, imglen, fuwufile, function(rs) {
  418. that.phofile = that.phofile.concat(rs);
  419. })
  420. }
  421. }
  422. });
  423. },
  424. // 车牌
  425. // 判定是否为空
  426. empty(v) {
  427. let tp = typeof v,
  428. rt = false;
  429. if (tp == "number" && String(v) == "") {
  430. rt = true
  431. } else if (tp == "undefined") {
  432. rt = true
  433. } else if (tp == "object") {
  434. if (JSON.stringify(v) == "{}" || JSON.stringify(v) == "[]" || v == null) rt = true
  435. } else if (tp == "string") {
  436. if (v == "" || v == "undefined" || v == "null" || v == "{}" || v == "[]") rt = true
  437. } else if (tp == "function") {
  438. rt = false
  439. }
  440. return rt
  441. },
  442. inputKey(e) {
  443. let that = this;
  444. let data = e.currentTarget.dataset;
  445. that.carIndex = data.index;
  446. if (data.index >= 7) {
  447. that.isPower=true;
  448. that.carIndex = 7;
  449. // if (!that.isPower) {
  450. // return false;
  451. // } else {
  452. // that.carIndex = 7;
  453. // }
  454. } else {
  455. that.carIndex = data.index;
  456. }
  457. that.upKeyType();
  458. that.keyShow();
  459. },
  460. keyCbVal(e) {
  461. let that = this;
  462. let index = Number(that.carIndex);
  463. if (index >= 0 && index < 6) {
  464. that.carInput[index].val = e;
  465. that.carIndex = index + 1;
  466. } else if (index == 6) {
  467. that.carInput[index].val = e;
  468. if (that.isPower) {
  469. // 新能源
  470. that.carIndex = 7;
  471. } else {
  472. // 不是新能源出输入结束
  473. that.keyHide();
  474. that.carIndex = -2;
  475. console.log('非新能源车输入完毕')
  476. }
  477. } else if (index == 7) {
  478. // 新能源车输入完毕
  479. that.carInput[index].val = e;
  480. that.keyHide();
  481. that.carIndex = -3;
  482. console.log('新能源车输入完毕')
  483. }
  484. that.upKeyType();
  485. },
  486. keyCbDel(e) {
  487. let index = this.carIndex;
  488. console.log(index,1)
  489. if (index > 0) {
  490. if (!this.empty(this.carInput[index].val)) {
  491. this.carInput[index].val = "";
  492. this.carIndex = index;
  493. } else {
  494. this.carInput[index - 1].val = "";
  495. this.carIndex = index - 1;
  496. }
  497. if(index==7){
  498. var obj={ type: 1, val: "" }
  499. this.carInput.splice(index,1,obj)
  500. this.isPower=false;
  501. }
  502. console.log(this.carInput)
  503. }
  504. this.upKeyType();
  505. },
  506. upKeyType() {
  507. if (!this.empty(this.carInput[this.carIndex])) {
  508. this.keyType = this.carInput[this.carIndex].type;
  509. }
  510. },
  511. keyShow() {
  512. this.$refs.keybd._keyShow();
  513. },
  514. keyHide() {
  515. this.$refs.keybd._keyHide();
  516. },
  517. keyCbHide() {
  518. if (this.carIndex != -3 || this.carIndex != -2) {
  519. this.carIndex = -1;
  520. }
  521. },
  522. powerChange(e) {
  523. let that = this
  524. let i = that.checkCar().i
  525. if (e.detail.value.length > 0) {
  526. that.isPower = true;
  527. if (i == -1) {
  528. that.carIndex = 7;
  529. } else {
  530. that.carIndex = i;
  531. }
  532. that.keyShow();
  533. } else {
  534. that.isPower = false;
  535. that.carInput[7].val = "";
  536. if (that.carIndex == 7) {
  537. that.keyHide();
  538. that.carIndex = -2;
  539. }
  540. }
  541. that.upKeyType();
  542. },
  543. checkCar() {
  544. // 检查车牌是否输入完成
  545. let that = this;
  546. let i = 7;
  547. let rt = { i: -1, isempty: false, val: "" };
  548. if (that.isPower) {
  549. i = 8;
  550. }
  551. for (let index = 0; index < i; index++) {
  552. const obj = that.carInput[index];
  553. if (this.empty(String(obj.val))) {
  554. rt.i = index;
  555. rt.isempty = true;
  556. rt.val = "";
  557. break;
  558. }
  559. rt.val += that.carInput[index].val;
  560. }
  561. return rt;
  562. },
  563. toBind() {
  564. let that = this
  565. let ck = that.checkCar();
  566. if (ck.i == -1 && !ck.isempty) {
  567. that.datainfo.plateNumber=ck.val;
  568. // if(this.isPower){
  569. // this.datainfo.vehicleEnergy='新能源'
  570. // }else{
  571. // this.datainfo.vehicleEnergy='燃油车'
  572. // }
  573. return ck.val
  574. } else {
  575. // 显示键盘输入
  576. // that.keyShow();
  577. // that.carIndex = ck.i;
  578. // that.keyType = that.carInput[ck.i].type;
  579. return '-1'
  580. }
  581. },
  582. //分解车牌
  583. toCarCode(code){
  584. var list=JSON.parse(JSON.stringify(this.carInput))
  585. var newArr=[]
  586. if(code){
  587. newArr=code.split('')
  588. }
  589. list.forEach((ite,idx)=>{
  590. ite.val=newArr[idx]
  591. })
  592. if(newArr.length==8){
  593. this.isPower=true;
  594. }
  595. this.carInput=JSON.parse(JSON.stringify(list))
  596. }
  597. }
  598. }
  599. </script>
  600. <style>
  601. page{background: #F3F3F0;}
  602. </style>
  603. <style lang="scss" scoped>
  604. .carinput-input{display: flex;justify-content: center;align-items: center;
  605. .input-active {color: #0256FD;border: 2rpx solid #0256FD;}
  606. .cir{width: 14rpx;height: 14rpx;background: #8D8D8D;border-radius: 50%;margin-right: 4rpx;}
  607. }
  608. .carinput-input-i{width: 52rpx;height: 80rpx;background: #F5F4F7;border-radius: 10rpx;font-weight: bold;font-size: 26rpx;color: #272727;margin-right: 4rpx;text-align: center;box-sizing: border-box;display: flex;flex-direction: column;align-items: center;justify-content: center;
  609. .newtit{
  610. font-weight: bold;font-size: 16rpx;color: #0256FD;
  611. image{width: 20rpx;height: 20rpx;margin-bottom: 4rpx;}
  612. }
  613. }
  614. .check /deep/ .uni-date-editor--x__disabled{opacity: 1;}
  615. .carinput-input-i:nth-last-child(1) {margin-right: 0}
  616. .coa /deep/ .uni-date__x-input{text-align: right;color: #AAAAAA;}
  617. .check /deep/ .select-wrap{border: none;width: 100%;}
  618. .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;}
  619. .check .cbox /deep/ .uni-forms-item:last-child{border: none;}
  620. .check /deep/ .uni-forms-item__label{font-weight: bold;font-size: 26rpx;color: #222327;flex: 0 0 auto;width: auto !important;}
  621. .check /deep/ .uni-easyinput{flex: 1;text-align: right;font-size: 26rpx;color: #222327;}
  622. .check /deep/ .uni-easyinput__content-textarea{min-height: 40rpx;font-size: 26rpx;}
  623. .check /deep/ .uni-easyinput__placeholder-class{font-size: 26rpx;color: #AAAAAA;}
  624. .check /deep/ .uni-input-input{font-size: 26rpx;}
  625. .check /deep/ .uni-textarea-textarea{font-size: 26rpx;}
  626. .check /deep/ .is-disabled{color: #222327;background-color: #ffffff !important;}
  627. .check /deep/ .uni-data-checklist .checklist-group .checklist-box{margin:10rpx 8rpx 10rpx 16rpx;}
  628. .check /deep/ .uni-data-checklist{flex: 0 0 auto;}
  629. .check{min-height: 100vh;padding: 20rpx 18rpx 24rpx;box-sizing: border-box;}
  630. .cbox{background: #FFFFFF;border-radius: 20rpx;flex: 1;margin-bottom: 24rpx;
  631. .chtop{padding-top: 32rpx;margin-bottom: 8rpx;
  632. // image{width: 14rpx;height: 48rpx;margin-right: 20rpx;}
  633. view{font-weight: bold;font-size: 32rpx;color: #272727;}
  634. .upimg{width: 22rpx;height: 14rpx;margin-right: 36rpx;transform: rotate(180deg);transition: all 0.3s;
  635. &.act{transform: rotate(0deg);}
  636. }
  637. }
  638. .chmain{
  639. padding: 0 32rpx;
  640. .upbox{height: 224rpx;background: #EFF4FF;border-radius: 20rpx;display: flex;align-items: center;justify-content: center;flex-direction: column;margin-bottom: 8rpx;overflow: auto;
  641. .img{width: 100%;height: 100%;}
  642. .addimg{width: 70rpx;height: 70rpx;margin-bottom: 16rpx;}
  643. view{font-weight: bold;font-size: 26rpx;color: #4C6686;}
  644. }
  645. .rimg{width: 16rpx;height: 28rpx;flex: 0 0 auto;margin-left: 20rpx;
  646. image{width: 100%;height: 100%;}
  647. }
  648. .checkimg{width: 80rpx;height: 40rpx;margin-right: 8rpx;}
  649. .aphoto{padding: 0 24rpx;border-left: 2rpx solid #e6e6e6;margin-left: 26rpx;
  650. image{width: 40rpx;height: 38rpx;}
  651. }
  652. }
  653. .peobox{padding:24rpx 16rpx 0;
  654. .plists{position: relative;background: #EEF4FF;position: relative;
  655. border-radius: 50%;width: 94rpx;height: 94rpx;margin: 0 20rpx 20rpx;padding: 4rpx;box-sizing: border-box;
  656. .tit{font-weight: 500;font-size: 22rpx;color: #0256FD;}
  657. .addimg{width: 36rpx;height: 36rpx;background: #FFFFFF;box-shadow: 0px 3px 5px 0px rgba(147,147,147,0.35);border-radius: 50%;position: absolute;bottom: -4rpx;right: 4rpx;
  658. image{width: 18rpx;height: 18rpx;}
  659. }
  660. }
  661. }
  662. }
  663. .libox{
  664. &.rslist{
  665. .sylist{min-width:40rpx;height: 40rpx;margin-left: 14rpx;margin-top: 14rpx;}
  666. }
  667. }
  668. .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;
  669. font-size: 26rpx;
  670. color: #666666;
  671. &.act{border: 2rpx solid #0256FD;background: #DCE8FF;color: #0256FD;}
  672. }
  673. .line{width: 14rpx;height: 48rpx;background: #0256FD;border-radius:0 12rpx 12rpx 0;margin-right: 18rpx;}
  674. .tips{font-weight: 500;font-size: 22rpx;color: #0256FD;padding: 20rpx 0;}
  675. </style>