myRepair.vue 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459
  1. <template>
  2. <view class="home">
  3. <view class="incidentList" v-if="tabsIndex0==1">
  4. <view class="head">
  5. <view class="tab" :class="{active: tab.id === dataInfo.tabActiveId}" v-for="tab in dataInfo.tabs" :key="tab.id" @click="clickTab(tab.id)">
  6. {{tab.name}}<text v-if="tab.num !== ''">({{tab.num}})</text>
  7. </view>
  8. <view class="filter" @click="filterClick">
  9. <text class="newicon newicon-shaixuan"></text>
  10. </view>
  11. </view>
  12. <view class="body" v-if="dataInfo.list.length">
  13. <view class="body_item" v-for="data in dataInfo.list" :key="data.id" @click.stop="toIncidentDetail(data)">
  14. <view class="body_item_head ellipsis-multiline">
  15. {{data.description}}
  16. </view>
  17. <view class="body_item_content">
  18. <view class="body_item_content_p" v-if="data.place || data.houseNumber">
  19. <text class="name ellipsis">详细地址:{{data.place ? data.place.building.buildingName : ''}}{{data.place ? data.place.floorName : ''}}<text v-if="data.place && data.place.floorName">层</text> {{data.houseNumber}}</text>
  20. <view class="status" :style="stateStyle(data.state)">{{data.state ? data.state.name : ''}}</view>
  21. </view>
  22. <view class="body_item_content_p" v-if="data.rsPrice">
  23. <text class="name ellipsis">维修总价:{{data.rsPrice}}</text>
  24. </view>
  25. <view class="body_item_content_p">
  26. <view class="name ellipsis" @click.stop="makePhoneCall(data.contactsInformation)">维修人员电话:{{data.contactsInformation || '暂无'}}<uni-icons v-if="data.contactsInformation" type="phone-filled" class="phone-filled" :size="18" :color="primaryColor"></uni-icons></view>
  27. </view>
  28. <view class="body_item_content_p" v-if="data.currentLog && data.currentLog.logType.value=='overtime'">
  29. <text class="name ellipsis">维修说明:{{data.overtimeRemark}}</text>
  30. </view>
  31. </view>
  32. <view class="body_item_foot">
  33. <view class="foot_info">
  34. <view class="name">维修人员:{{data.assigneeName || '暂无'}}</view>
  35. <text class="date">{{formatDate(data.startDate, 'yyyy-MM-dd HH:mm')}}</text>
  36. </view>
  37. <view class="btns">
  38. <button v-if="!data.wxdegree && (data.state.name=='待评价'|| data.state.name=='已关闭')" @click.stop="handler('changeUser', data)" type="default" class="primaryButton btn">评价</button>
  39. </view>
  40. </view>
  41. <div class="sign-style" v-if="deptRepair && publicRepair">
  42. <view class="img-box" v-if="data.repairIncidentType && data.repairIncidentType.name=='科室报修'">
  43. <view class="img-url1"></view>
  44. <view class="img-name">科</view>
  45. </view>
  46. <view class="img-box" v-if="data.repairIncidentType && data.repairIncidentType.name=='公共报修'">
  47. <view class="img-url2"></view>
  48. <view class="img-name">公</view>
  49. </view>
  50. </div>
  51. </view>
  52. </view>
  53. <view class="zanwu" v-else>
  54. <text class="newicon newicon-zanwu"></text>
  55. </view>
  56. <view class="body-height"></view>
  57. <repairsFilter v-if="dataInfo.isFilter" @cancelEmit="cancelFilter" @confirmEmit="conformFilter" :evt="dataInfo.evtFilter"></repairsFilter>
  58. <IncidentAttachment v-if="dataInfo.isAttachment" @knowEmit="knowAttachment" :incidentData="dataInfo.incidentData"></IncidentAttachment>
  59. <uni-popup ref="popup" background-color="#fff" type="center" :before-close="true">
  60. <view class="popup-content">
  61. <view class="form_item column">
  62. <view class="title"><text class="required newicon newicon-bitian"></text>星级:</view>
  63. <uni-rate class="value" v-model="rate" />
  64. </view>
  65. <view class="form_item column">
  66. <view class="title"><text class="required newicon newicon-bitian"></text>内容:</view>
  67. <uni-easyinput class="value" type="textarea" v-model="wxdegreeremark" placeholder="请输入评价内容"/>
  68. </view>
  69. </view>
  70. <view class="foot_common_btns">
  71. <button @click="closePop" type="default" class="cancelButton btn">取消</button>
  72. <button @click="submit" type="default" class="primaryButton btn">提交</button>
  73. </view>
  74. </uni-popup>
  75. </view>
  76. <view v-if="tabsIndex1==1">
  77. <view class="home_item" v-if="isDept.valueconfig==1">
  78. <view class="title">科室报修</view>
  79. <view class="content">
  80. <view @click="repairsView(1,'pending,handler,reassign')">
  81. <view class="con-title">处理中</view>
  82. <view class="con-value">{{repairData.deptHandlerCount}}</view>
  83. </view>
  84. <view @click="repairsView(1,'close0')">
  85. <view class="con-title">待评价</view>
  86. <view class="con-value">{{repairData.deptCloseCount}}</view>
  87. </view>
  88. <view>
  89. <view class="con-title">本月维修费用(元)</view>
  90. <view class="con-value-gr">{{repairData.deptCurrentMonthPrice || 0}}</view>
  91. </view>
  92. </view>
  93. </view>
  94. <view class="home_item">
  95. <view class="title">我的报修</view>
  96. <view class="content">
  97. <view @click="repairsView(0,'pending,handler,reassign')">
  98. <view class="con-title">处理中</view>
  99. <view class="con-value">{{repairData.userHandlerCount}}</view>
  100. </view>
  101. <view @click="repairsView(0,'close0')">
  102. <view class="con-title">待评价</view>
  103. <view class="con-value">{{repairData.userCloseCount}}</view>
  104. </view>
  105. </view>
  106. </view>
  107. <!-- <view class="home_item">
  108. <uni-notice-bar show-icon scrollable background-color="#ffffff" color="#000"
  109. :text="noticeData" />
  110. </view> -->
  111. <view class="home_item home-disp">
  112. <view class="bottom-left" @click="addRepairs">
  113. <view class="bottom-left-box">
  114. <text class="newicon newicon-kuaisubaoxiu icon"></text>
  115. <view>快速报修</view>
  116. </view>
  117. </view>
  118. <view class="bottom-right mar-t-20">
  119. <view class="bottom-right-item" v-if="isRepair.valueconfig==1" @click="scanCodes">
  120. <text class="newicon newicon-saoma icon"></text>
  121. <view class="name1">扫资产报修</view>
  122. </view>
  123. <view class="bottom-right-item" @click="repository">
  124. <text class="newicon newicon-zhishiku1 icon"></text>
  125. <view class="name2">知识库</view>
  126. </view>
  127. </view>
  128. </view>
  129. </view>
  130. <view v-if="tabsIndex2==1" class="mine">
  131. <view class="body">
  132. <view class="bottom">
  133. <view class="bottom_name">个人信息</view>
  134. <view class="bottom_list">
  135. <view class="bottom_list_item">
  136. <view class="name"><text class="required newicon newicon-bitian"></text>工号</view>
  137. <view class="value no-mar">{{dataForm.account}}</view>
  138. </view>
  139. <view class="bottom_list_item">
  140. <view class="name"><text class="required newicon newicon-bitian"></text>姓名</view>
  141. <view class="value no-mar">{{dataForm.name}}</view>
  142. </view>
  143. <view class="bottom_list_item">
  144. <view class="name"><text class="required newicon newicon-bitian"></text>院区名称</view>
  145. <uni-data-picker class="value" placeholder="请选择院区名称"
  146. v-model="dataForm.branch" :localdata="branchData" @change="branchChange"
  147. :clear-icon="false" :class="{formRed: isSubmit && !dataForm.branch}">
  148. </uni-data-picker>
  149. <text class="newicon newicon-youjiantou icon"></text>
  150. </view>
  151. <view class="bottom_list_item" v-if="deptRepair.valueconfig==1" @click="selectDepartment">
  152. <!-- <view class="name"><text class="required newicon newicon-bitian"></text>科室名称</view>
  153. <uni-data-picker class="value" placeholder="请选择报修科室"
  154. v-model="dataForm.dept" :localdata="deptData"
  155. :clear-icon="false" :class="{formRed: isSubmit && !dataForm.dept}">
  156. </uni-data-picker> -->
  157. <text class="newicon newicon-youjiantou icon"></text>
  158. <!-- <view class="form_item"> -->
  159. <view class="title select"><text class="required newicon newicon-bitian"></text>报修科室:</view>
  160. <view class="value category">
  161. <text class="categoryName ellipsis-multiline">{{dataForm.departmentName}}</text>
  162. <!-- <text class="newicon newicon-weibiaoti2010104"></text> -->
  163. </view>
  164. <!-- </view> -->
  165. </view>
  166. <view class="bottom_list_item" v-if="deptRepair.valueconfig==1" @click="deptSelect">
  167. <view class="name">常用科室</view>
  168. <view class="value">{{commonDeptName}}</view>
  169. <text class="newicon newicon-youjiantou icon"></text>
  170. </view>
  171. <view class="bottom_list_item">
  172. <view class="name"><text class="required newicon newicon-bitian"></text>联系电话</view>
  173. <view class="value no-mar" @click="makePhoneCall(dataForm.phone)">{{dataForm.phone}}</view>
  174. </view>
  175. </view>
  176. </view>
  177. </view>
  178. <view class="foot_common_btns fixed-btn">
  179. <button @click="addInfo" type="default" class="primaryButton btn">保存</button>
  180. </view>
  181. </view>
  182. <view class="bottom-tabs">
  183. <view class="tabs-list" @click="tabsClick0">
  184. <img src="/static/img/icon_index.png" v-if="tabsIndex0==0" alt="">
  185. <img src="/static/img/icon_index_active.png" v-if="tabsIndex0==1" alt="">
  186. <view class="tabs-title" :class="tabsIndex0==1?'active-class':''">首页</view>
  187. </view>
  188. <view class="tabs-list" @click="tabsClick1">
  189. <img src="/static/img/icon_incidentList.png" v-if="tabsIndex1==0" alt="">
  190. <img src="/static/img/icon_incidentList_active.png" v-if="tabsIndex1==1" alt="">
  191. <view class="tabs-title" :class="tabsIndex1==1?'active-class':''">我的报修</view>
  192. </view>
  193. <view class="tabs-list" @click="tabsClick2">
  194. <img src="/static/img/icon_my.png" v-if="tabsIndex2==0" alt="">
  195. <img src="/static/img/icon_my_active.png" v-if="tabsIndex2==1" alt="">
  196. <view class="tabs-title" :class="tabsIndex2==1?'active-class':''">设置</view>
  197. </view>
  198. </view>
  199. </view>
  200. </template>
  201. <script setup>
  202. import { SM } from "@/http/http.js"
  203. import { api_getDictionary, api_incident, api_incident_count, api_incidentTask, api_taskresolve, api_systemConfiguration, api_userSave, api_user, api_department, api_repairScanCode, api_getNotice, api_getCount } from "@/http/api.js"
  204. import repairsFilter from '@/components/repairsFilter.vue';
  205. import IncidentAttachment from '@/components/IncidentAttachment.vue';
  206. import { startOfDay, endOfDay, format, add } from 'date-fns'
  207. import { ref, reactive, computed } from 'vue'
  208. import { onLoad, onShow, onHide, onPullDownRefresh, onReachBottom, onTabItemTap } from '@dcloudio/uni-app'
  209. import { filterFormatDate } from '@/filters/filterFormatDate.js'
  210. import { computedPriorityStyle } from '@/filters/computedPriorityStyle.js'
  211. import { computedStateStyle } from '@/filters/computedStateStyle.js'
  212. import { computedCurrentLogOverTime } from '@/filters/computedCurrentLogOverTime.js'
  213. import { defaultColor } from '@/static/js/theme.js'
  214. import { useSetTitle } from '@/share/useSetTitle.js'
  215. import { useMakePhoneCall } from '@/share/useMakePhoneCall.js'
  216. import { useLoginUserStore } from '@/stores/loginUser'
  217. import { useIncidentNumStore } from '@/stores/incidentNum'
  218. import { useIncidentListSearchStore } from '@/stores/incidentListSearch'
  219. import { repositoryListSearchStore } from '@/stores/repositorySearch'
  220. import { useSetTabbar } from '@/share/useSetTabbar.js'
  221. useSetTitle();
  222. // 数据
  223. const incidentListSearchStore = useIncidentListSearchStore();
  224. const { formatDate } = filterFormatDate();
  225. const { priorityStyle } = computedPriorityStyle();
  226. const { stateStyle } = computedStateStyle();
  227. const { currentLogOverTime } = computedCurrentLogOverTime();
  228. const { setTabbar } = useSetTabbar();
  229. // 主题颜色
  230. const primaryColor = ref(defaultColor)
  231. const popup = ref(null);//弹框
  232. const assignFlag = ref(false);//指派权限
  233. const qiangdan = ref(false);//接单权限
  234. const publicRepair = ref({});//公共报修
  235. const degreeDictionary = ref(null); //星级字典
  236. const rowData = ref(null); //选择的数据
  237. const rate = ref(3);//星级
  238. const wxdegreeremark = ref(null);//评价内容
  239. const repairIncident = ref(null);
  240. // 数据
  241. const dataInfo = reactive({
  242. tabs: [{id: 0, name: '我的报修', value: 'all', num: ''},],
  243. tabActiveId: 0,//当前选择的tab
  244. list: [],//工单列表
  245. idx: 0,//页码
  246. hasMore: true,//是否有更多数据
  247. isFilter: false,//筛选框开关
  248. isAttachment: false,//图片和录音开关
  249. incidentId: undefined,
  250. stateValue:0,
  251. evtFilter: {
  252. hospital: {},
  253. selected: 'todoingAll',
  254. area: {id: 0, area: '全部'},
  255. category: {id: 0, category: '全部'},
  256. acceptDate: [],
  257. },//筛选框数据
  258. })
  259. const isDept = ref({})
  260. const isRepair = ref({})
  261. const isPublic = ref({})
  262. const noticeData = ref('')
  263. const repairData = ref({})
  264. const tabsIndex0 = ref(1)
  265. const tabsIndex1 = ref(0)
  266. const tabsIndex2 = ref(0)
  267. const repositorySearchStore = repositoryListSearchStore();
  268. const loginUserStore = useLoginUserStore();
  269. const incidentNumStore = useIncidentNumStore();
  270. const { makePhoneCall } = useMakePhoneCall();
  271. const deptRepair = ref(null)
  272. const deptData = ref([])
  273. const branchData = ref([])
  274. const commonDeptName = ref(null)
  275. const commonDeptData = ref(null)
  276. const dataForm = reactive({
  277. name:loginUserStore.loginUser.user.name,
  278. account:loginUserStore.loginUser.user.account,
  279. phone:loginUserStore.loginUser.user.phone,
  280. dept: '',
  281. departmentName:'',
  282. branch:'',
  283. commonDeptName:'',
  284. commonDeptData:'',
  285. dataType:false
  286. })
  287. const operationType = ref(null)
  288. const userTypes = ref(null)
  289. const userData = reactive(loginUserStore.loginUser.user)
  290. const commonDeptDTO = ref([])
  291. // 是否提交
  292. const isSubmit = ref(false)
  293. // 数据
  294. const dataConfigInfo = reactive({
  295. num: 0,
  296. })
  297. function tabsClick0(){
  298. tabsIndex0.value=1
  299. tabsIndex2.value=0
  300. tabsIndex1.value=0
  301. dataInfo.stateValue = 0
  302. getTabs();
  303. }
  304. function tabsClick1(){
  305. tabsIndex0.value=0
  306. tabsIndex1.value=1
  307. tabsIndex2.value=0
  308. getCount()
  309. repositorySearchStore.clearRepositoryListSearchData()
  310. }
  311. function tabsClick2(){
  312. tabsIndex2.value=1
  313. tabsIndex1.value=0
  314. tabsIndex0.value=0
  315. getUserInfo()
  316. repositorySearchStore.clearRepositoryListSearchData()
  317. }
  318. // 工单详情
  319. function toIncidentDetail(data){
  320. uni.navigateTo({
  321. url: `/pages/repair/repairsDetail?incidentId=${data.id}`
  322. })
  323. }
  324. // 获取tab选项
  325. function getTabs(){
  326. uni.showLoading({
  327. title: "加载中",
  328. mask: true,
  329. });
  330. let postData = {
  331. "key": 'repair_incident_type',
  332. "type": "list",
  333. };
  334. if(deptRepair.value.valueconfig==1){
  335. api_getDictionary(postData).then(res => {
  336. res = res || [];
  337. repairIncident.value = res.find(i=>i.value=='dept')
  338. getList(0);
  339. })
  340. dataInfo.tabs = [
  341. {id: 0, name: '我的报修', value: 'all', num: ''},
  342. {id: 1, name: '科内报修', value: '2', num: ''}
  343. ]
  344. }else{
  345. getList(0);
  346. dataInfo.tabs = [
  347. {id: 0, name: '我的报修', value: 'all', num: ''},
  348. ]
  349. }
  350. }
  351. // 点击tab
  352. function clickTab(tabId){
  353. dataInfo.tabActiveId = tabId;
  354. uni.pageScrollTo({
  355. scrollTop: 0,
  356. duration: 300 // 动画时长,默认300ms
  357. });
  358. dataInfo.idx=0
  359. getList(0);
  360. }
  361. // 点击筛选
  362. function filterClick(){
  363. dataInfo.isFilter = true;
  364. }
  365. // 确认筛选
  366. function conformFilter(evtFilter){
  367. dataInfo.stateValue = evtFilter.category;
  368. dataInfo.isFilter = false;
  369. getList(0);
  370. }
  371. // 关闭筛选
  372. function cancelFilter(){
  373. dataInfo.isFilter = false;
  374. }
  375. // 点击图片和录音
  376. function attachmentClick(incidentData){
  377. dataInfo.incidentData = incidentData;
  378. dataInfo.isAttachment = true;
  379. }
  380. // 知道了图片和录音
  381. function knowAttachment(){
  382. dataInfo.isAttachment = false;
  383. }
  384. // 评价
  385. function handler(type, data){
  386. rowData.value = data
  387. popup.value.open()
  388. let postData = {
  389. key: "incident_degree",
  390. type: "list"
  391. };
  392. api_getDictionary(postData).then(res => {
  393. res = res || [];
  394. degreeDictionary.value = res
  395. })
  396. }
  397. function closePop(){
  398. rate.value = 3
  399. wxdegreeremark.value = null
  400. popup.value.close()
  401. }
  402. function submit(){
  403. if(!rate.value){
  404. uni.showToast({
  405. icon: 'none',
  406. title: '请选择星级'
  407. });
  408. return;
  409. }
  410. if(!wxdegreeremark.value){
  411. uni.showToast({
  412. icon: 'none',
  413. title: '请输入评价内容'
  414. });
  415. return;
  416. }
  417. let rateData = null
  418. if(rate.value==0){
  419. rateData=degreeDictionary.value[0].id
  420. }else if(rate.value==1){
  421. rateData=degreeDictionary.value[4].id
  422. }else if(rate.value==2){
  423. rateData=degreeDictionary.value[3].id
  424. }else if(rate.value==3){
  425. rateData=degreeDictionary.value[2].id
  426. }else if(rate.value==4){
  427. rateData=degreeDictionary.value[1].id
  428. }else if(rate.value==5){
  429. rateData=degreeDictionary.value[0].id
  430. }
  431. let postData = {
  432. ...rowData.value,
  433. wxdegree: rateData==0?degreeDictionary.value[0]:{id: rateData},
  434. wxdegreeremark: wxdegreeremark.value
  435. }
  436. api_taskresolve({incident:postData}).then(res => {
  437. uni.hideLoading();
  438. if(res.state == 200){
  439. getList(0);
  440. uni.showToast({
  441. icon: 'none',
  442. title: '评价成功',
  443. });
  444. }else{
  445. uni.showToast({
  446. icon: 'none',
  447. title: res.msg || '请求数据失败!'
  448. });
  449. }
  450. })
  451. closePop()
  452. }
  453. // 获取列表信息
  454. function getList(idx){
  455. uni.showLoading({
  456. title: "加载中",
  457. mask: true,
  458. });
  459. dataInfo.idx = idx === undefined ? dataInfo.idx : idx;
  460. if(dataInfo.idx === 0){
  461. dataInfo.list = [];
  462. }
  463. let postData = {
  464. "idx": dataInfo.idx,
  465. "sum": 20,
  466. incident: {
  467. requester: dataInfo.tabActiveId == 0 ? { id: loginUserStore.loginUser.user.id } : undefined,
  468. department: dataInfo.tabActiveId == 1 ? { id: loginUserStore.loginUser.user.dept.id } : undefined,
  469. statesValues: (dataInfo.stateValue === 'close0' || dataInfo.stateValue === 'close1') ? 'close' : (dataInfo.stateValue || undefined),
  470. hasWxdegree: dataInfo.stateValue === 'close0' ? 0 : (dataInfo.stateValue === 'close1' ? 1 : undefined),
  471. repairIncidentType:{
  472. id:''
  473. }
  474. }
  475. }
  476. if(dataInfo.tabActiveId == 1){
  477. postData.incident.repairIncidentType.id = repairIncident.value.id
  478. }
  479. if(JSON.stringify(postData.incident.statesValues) === '{}'){
  480. delete postData.incident.statesValues
  481. }
  482. api_incident(postData).then(res => {
  483. uni.hideLoading();
  484. uni.stopPullDownRefresh();
  485. if(res.status == 200){
  486. let list = res.list || [];
  487. if(list.length){
  488. dataInfo.hasMore = true;
  489. dataInfo.list = dataInfo.idx === 0 ? list : dataInfo.list.concat(list);
  490. }else{
  491. dataInfo.hasMore = false;
  492. }
  493. }else{
  494. uni.showToast({
  495. icon: 'none',
  496. title: res.msg || '请求数据失败!'
  497. });
  498. }
  499. })
  500. // getCount(postData.incident);
  501. }
  502. // 获取列表数量
  503. // function getCount(incident = {}){
  504. // let postData = {
  505. // wxCount: 'true',
  506. // incidentList: [],
  507. // }
  508. // dataInfo.tabs.forEach(v => {
  509. // postData.incidentList.push({...incident, ...{statusId: v.id || undefined}});
  510. // })
  511. // api_incident_count(postData).then(res => {
  512. // if(res.state == 200){
  513. // let myData = res.data || [];
  514. // dataInfo.tabs.forEach((v, i) => {
  515. // v.num = myData[i];
  516. // })
  517. // }else{
  518. // uni.showToast({
  519. // icon: 'none',
  520. // title: res.msg || '请求数据失败!'
  521. // });
  522. // }
  523. // })
  524. // }
  525. // 知识库
  526. function repository(){
  527. uni.navigateTo({
  528. url: `/pages/repository/repository?type=view&entranceType=repairs`
  529. })
  530. }
  531. // 报修列表
  532. function repairsView(type,value){
  533. uni.navigateTo({
  534. url: `/pages/repair/repairsList?type=${type}&value=${value}`
  535. })
  536. }
  537. // 获取报修数量
  538. function getCount(){
  539. uni.showLoading({
  540. title: "加载中",
  541. mask: true,
  542. });
  543. api_getCount({}).then(res=>{
  544. uni.hideLoading();
  545. repairData.value = res.data
  546. })
  547. }
  548. // 快速报修
  549. function addRepairs(){
  550. if(isDept.value.valueconfig==0 && isPublic.value.valueconfig==0){
  551. uni.showToast({
  552. icon: 'none',
  553. title: '请先开启科室报修或公共报修'
  554. });
  555. return
  556. }
  557. uni.setStorageSync('repairsType','subpage')
  558. uni.navigateTo({
  559. url: '/pages/repair/rapidRep'
  560. })
  561. }
  562. // 扫资产报修
  563. function scanCodes(){
  564. uni.showLoading({
  565. title: "加载中",
  566. mask: true,
  567. });
  568. SM().then((res) => {
  569. api_repairScanCode({
  570. code:res
  571. }).then((res2) => {
  572. uni.hideLoading();
  573. if (res2.state == 200) {
  574. uni.setStorageSync('repairsType','subpage')
  575. uni.navigateTo({
  576. url: `/pages/repair/rapidRep?property=${res2.data.name}&assetId=${res2.data.id}`
  577. })
  578. } else {
  579. uni.showToast({
  580. icon: 'none',
  581. title: res2.msg || '请求数据失败!'
  582. });
  583. }
  584. });
  585. })
  586. }
  587. // 保存
  588. function addInfo(){
  589. if(!dataForm.branch){
  590. uni.showToast({
  591. icon: 'none',
  592. title: '院区不能为空'
  593. });
  594. return
  595. }
  596. if(!dataForm.dept){
  597. uni.showToast({
  598. icon: 'none',
  599. title: '报修科室不能为空'
  600. });
  601. return
  602. }
  603. uni.showLoading({
  604. title: "加载中",
  605. mask: true,
  606. });
  607. isSubmit.value = true
  608. userData.currentHospital.id = dataForm.branch
  609. userData.commonDeptName = commonDeptName.value
  610. userData.dept={
  611. id:dataForm.dept
  612. }
  613. let arr = []
  614. for(let i of commonDeptDTO.value){
  615. arr.push({
  616. dept:i
  617. })
  618. }
  619. let postData = {
  620. ...loginUserStore.loginUser.user,
  621. // ...userData,
  622. hospital:{
  623. id:dataForm.branch
  624. },
  625. dept:{
  626. id:dataForm.dept
  627. },
  628. commonDept:commonDeptData.value,
  629. commonDeptDTO:arr
  630. }
  631. api_userSave({
  632. user: postData,
  633. }).then(res => {
  634. uni.hideLoading();
  635. if(res.status == 200){
  636. loginUserStore.setLoginUser(postData);
  637. uni.showToast({
  638. icon: 'none',
  639. title: '保存成功'
  640. });
  641. }else{
  642. uni.showToast({
  643. icon: 'none',
  644. title: res.msg || '请求数据失败!'
  645. });
  646. }
  647. })
  648. }
  649. // 选择院区
  650. function branchChange(){
  651. dataForm.dept = null
  652. dataForm.departmentName = null
  653. dataForm.commonDeptName = null
  654. dataForm.commonDeptData = null
  655. commonDeptName.value = null
  656. commonDeptData.value = null
  657. // getRepairTypes()
  658. }
  659. // 跳转到科室
  660. function selectDepartment(){
  661. if(commonDeptName.value){
  662. dataForm.dataType = true
  663. }else{
  664. dataForm.dataType = false
  665. }
  666. uni.setStorageSync('configData',JSON.stringify(dataForm))
  667. uni.navigateTo({
  668. url: `/pages/searchDept/searchDept?type=config&branchId=${dataForm.branch}`
  669. })
  670. }
  671. // 获取科室列表
  672. function getRepairTypes(){
  673. uni.showLoading({
  674. title: "加载中",
  675. mask: true,
  676. });
  677. let postData = {
  678. department: {
  679. hospital: dataForm.branch?dataForm.branch:loginUserStore.loginUser.user.currentHospital.id,
  680. },
  681. idx:0,
  682. sum:9999
  683. }
  684. api_department(postData).then(res => {
  685. uni.hideLoading();
  686. res = res.list || [];
  687. deptData.value = res.map(v => ({
  688. text: v.dept,
  689. value: v.id,
  690. }));
  691. })
  692. }
  693. // 获取院区列表
  694. function getBranch(){
  695. let arr = loginUserStore.loginUser.hospital.filter(i=>i.parent==undefined)
  696. branchData.value = arr.map(v => ({
  697. text: v.hosName,
  698. value: v.id,
  699. }));
  700. }
  701. // 选择常用科室
  702. function deptSelect(){
  703. uni.setStorageSync('configData',JSON.stringify(dataForm))
  704. let data = commonDeptData.value
  705. // ? commonDeptData.value : loginUserStore.loginUser.user.commonDept
  706. if(!data){
  707. data = 'none'
  708. }
  709. let deptId = dataForm.branch?dataForm.branch:loginUserStore.loginUser.user.currentHospital.id
  710. uni.navigateTo({
  711. url: `/pages/repair/deptSelect?data=${JSON.stringify(data)}&commonDeptName=${commonDeptName.value}&deptId=${deptId}&type=home`
  712. })
  713. }
  714. function getUserInfo(){
  715. let user = loginUserStore.loginUser.user
  716. let userId = null
  717. if(user.currentHospital.parent){
  718. userId = user.currentHospital.parent.id
  719. }else{
  720. userId = user.currentHospital.id
  721. }
  722. let postData = {
  723. idx: 0,
  724. sum: 999,
  725. user: {
  726. hospital:{
  727. id:userId
  728. },
  729. name: user.name,
  730. userTypeIds: String(userTypes.value.map(v => v.id))
  731. }
  732. }
  733. api_user(postData).then(res => {
  734. if(res.status == 200){
  735. let item = res.list.find(i=>i.id==user.id)
  736. let data = uni.getStorageSync('configData')
  737. if(operationType.value=='selectDept'){
  738. if(data){
  739. data = JSON.parse(data)
  740. dataForm.name = data.name
  741. dataForm.account = data.account
  742. dataForm.phone = data.phone
  743. dataForm.dept = data.dept
  744. dataForm.departmentName = data.departmentName
  745. dataForm.branch = Number(data.branch)
  746. dataForm.commonDeptName = data.commonDeptName
  747. dataForm.commonDeptData = data.commonDeptData
  748. if(data.dataType){
  749. commonDeptData.value = data.commonDeptData
  750. commonDeptName.value = data.commonDeptName
  751. }
  752. }
  753. }else if(item){
  754. if(item.hospital.parent){
  755. dataForm.branch = item.hospital.parent.id
  756. }else{
  757. dataForm.branch = item.hospital.id
  758. }
  759. if(item.dept){
  760. dataForm.dept = item.dept.id
  761. dataForm.departmentName = item.dept.dept
  762. }
  763. // getRepairTypes()
  764. let id = []
  765. let name = []
  766. if(item.commonDeptDTO){
  767. for(let i of item.commonDeptDTO){
  768. id.push(i.id)
  769. name.push(i.dept)
  770. }
  771. commonDeptData.value = id.join(',')
  772. commonDeptName.value = name.join('/')
  773. dataForm.commonDeptName = commonDeptName.value
  774. dataForm.commonDeptData = commonDeptData.value
  775. }
  776. }else{
  777. // let data = uni.getStorageSync('configData')
  778. // if(data){
  779. // data = JSON.parse(data)
  780. // dataForm.dept = data.dept
  781. // dataForm.branch = data.branch
  782. // }else{
  783. if(user.currentHospital.parent){
  784. dataForm.branch = user.currentHospital.parent.id
  785. }else{
  786. dataForm.branch = user.currentHospital.id
  787. }
  788. if(user.dept){
  789. dataForm.dept = user.dept.id
  790. dataForm.departmentName = user.dept.dept
  791. }
  792. // }
  793. if(user.commonDeptDTO){
  794. let name = []
  795. for(let i of user.commonDeptDTO){
  796. name.push(i.dept)
  797. }
  798. commonDeptData.value = user.commonDept
  799. commonDeptName.value = name.join('/')
  800. dataForm.commonDeptName = commonDeptName.value
  801. dataForm.commonDeptData = commonDeptData.value
  802. }
  803. // getRepairTypes()
  804. }
  805. }else{
  806. uni.showToast({
  807. icon: 'none',
  808. title: res.msg || '请求数据失败!'
  809. });
  810. }
  811. })
  812. }
  813. // 获取配置项
  814. function getConfig(option){
  815. api_systemConfiguration({
  816. idx: 0,
  817. sum: 9999,
  818. }).then(res=>{
  819. let data = res.list
  820. isDept.value = data.find(i=>i.keyconfig=='deptRepair')
  821. isRepair.value = data.find(i=>i.keyconfig=='cmdbRepair')
  822. isPublic.value = data.find(i=>i.keyconfig=='publicRepair')
  823. deptRepair.value = data.find(i=>i.keyconfig=='deptRepair')
  824. publicRepair.value = data.find(i=>i.keyconfig=='publicRepair')
  825. getBranch()
  826. if(option.type==2){
  827. tabsIndex0.value = 0
  828. tabsIndex1.value = 0
  829. tabsIndex2.value = 1
  830. if(option.data){
  831. let data = JSON.parse(option.data)
  832. commonDeptData.value = data.data.join(',')
  833. commonDeptName.value = data.name.join('/')
  834. commonDeptDTO.value = data.name
  835. dataForm.commonDeptData = data.data.join(',')
  836. dataForm.commonDeptName = data.name.join('/')
  837. let data2 = uni.getStorageSync('configData')
  838. if(data2){
  839. data2 = JSON.parse(data2)
  840. dataForm.dept = data2.dept
  841. dataForm.departmentName = data2.departmentName
  842. dataForm.branch = data2.branch
  843. }
  844. }else{
  845. getUserInfo()
  846. }
  847. }else if(option.type==1){
  848. tabsIndex0.value = 0
  849. tabsIndex1.value = 1
  850. tabsIndex2.value = 0
  851. getCount()
  852. }else{
  853. tabsIndex0.value = 1
  854. tabsIndex1.value = 0
  855. tabsIndex2.value = 0
  856. getTabs()
  857. }
  858. })
  859. }
  860. onHide(opt=>{
  861. dataConfigInfo.num = 0
  862. dataForm.branch = null
  863. })
  864. onLoad((option) => {
  865. console.log(777,option)
  866. getConfig(option)
  867. userTypes.value = JSON.parse(uni.getStorageSync('groupData'))
  868. dataConfigInfo.num = 1
  869. if(option && option.configType){
  870. operationType.value = option.configType
  871. }
  872. })
  873. onReachBottom(() => {
  874. if(tabsIndex0.value==1){
  875. dataInfo.idx += 1;
  876. if (dataInfo.hasMore) {
  877. getList(); // 当触底时加载更多数据
  878. }
  879. }
  880. })
  881. onPullDownRefresh(_=>{
  882. // uni.stopPullDownRefresh();
  883. })
  884. onShow((option) => {
  885. userTypes.value = JSON.parse(uni.getStorageSync('groupData'))
  886. if(dataConfigInfo.num==0){
  887. getUserInfo()
  888. }
  889. repositorySearchStore.clearRepositoryListSearchData()
  890. })
  891. </script>
  892. <style scoped>
  893. >>> .uni-popup__wrapper{
  894. width: 80%;
  895. padding: 40rpx;
  896. }
  897. >>> .uni-data-tree-input{
  898. width: 100% !important;
  899. }
  900. >>> .input-value-border{
  901. border: none !important;
  902. }
  903. >>> .input-value{
  904. padding:0 !important;
  905. flex-direction: row-reverse !important;
  906. }
  907. >>> .selected-list{
  908. flex-direction: row-reverse !important;
  909. }
  910. >>> .arrow-area{
  911. display: none !important;
  912. }
  913. >>>.uni-data-tree-dialog{
  914. z-index: 9999;
  915. }
  916. </style>
  917. <style lang="scss" scoped>
  918. page{
  919. height: calc(100vh - var(--window-bottom));
  920. }
  921. .incidentList{
  922. display: flex;
  923. flex-direction: column;
  924. justify-content: space-between;
  925. .head{
  926. height: 88rpx;
  927. display: flex;
  928. position: fixed;
  929. z-index: 99;
  930. width: 100%;
  931. background-color: #fff;
  932. font-size: 30rpx;
  933. .tab{
  934. flex: 1;
  935. display: flex;
  936. justify-content: center;
  937. align-items: center;
  938. border-bottom: 4rpx solid transparent;
  939. &.active{
  940. color: $uni-primary;
  941. border-color: $uni-primary;
  942. }
  943. }
  944. .filter{
  945. width: 84rpx;
  946. display: flex;
  947. justify-content: center;
  948. align-items: center;
  949. .newicon-shaixuan{
  950. font-size: 36rpx;
  951. color: #2C2C2C;
  952. }
  953. }
  954. }
  955. .body{
  956. margin-bottom: var(--window-bottom);
  957. margin-top: 88rpx;
  958. border-top: 6rpx solid #EBEBEB;
  959. .body_item{
  960. border-bottom: 8rpx solid #EBEBEB;
  961. position: relative;
  962. .sign-style{
  963. position: absolute;
  964. right: 0;
  965. top: -25rpx;
  966. .img-box{
  967. position: relative;
  968. .img-url1{
  969. width: 70rpx;
  970. height: 70rpx;
  971. background-image: url('../../static/img/jiaobiao1.png');
  972. }
  973. .img-url2{
  974. width: 70rpx;
  975. height: 70rpx;
  976. background-image: url('../../static/img/jiaobiao2.png');
  977. }
  978. .img-name{
  979. position: absolute;
  980. right: 8rpx;
  981. top: 0;
  982. color: #fff;
  983. font-size: 24rpx;
  984. }
  985. }
  986. }
  987. .body_item_head{
  988. word-break: break-all;
  989. text-align: justify;
  990. text-align: left;
  991. margin: 24rpx;
  992. font-size: 30rpx;
  993. }
  994. .body_item_content{
  995. border-top: 1rpx solid #D8D8D8;
  996. padding: 24rpx 24rpx 24rpx 48rpx;
  997. .body_item_content_p{
  998. color: #6A6A6A;
  999. font-size: 26rpx;
  1000. display: flex;
  1001. justify-content: space-between;
  1002. align-items: center;
  1003. margin-bottom: 24rpx;
  1004. &:last-of-type{
  1005. margin-bottom: 0;
  1006. }
  1007. .name{
  1008. flex: 1;
  1009. }
  1010. .status{
  1011. padding: 4rpx 10rpx;
  1012. border-radius: 20rpx;
  1013. background-color: #DBE8FE;
  1014. font-size: 22rpx;
  1015. color: #006CF9;
  1016. }
  1017. .icon_all{
  1018. .mic-filled,
  1019. .image-filled
  1020. {
  1021. margin-left: 16rpx;
  1022. }
  1023. }
  1024. }
  1025. }
  1026. .body_item_foot{
  1027. border-top: 1rpx solid #D8D8D8;
  1028. font-size: 26rpx;
  1029. padding: 24rpx;
  1030. .foot_info{
  1031. display: flex;
  1032. justify-content: space-between;
  1033. align-items: center;
  1034. .phone-filled{
  1035. margin-left: 5rpx;
  1036. }
  1037. }
  1038. }
  1039. }
  1040. }
  1041. .body-height{
  1042. height: 88rpx;
  1043. }
  1044. .zanwu{
  1045. box-sizing: border-box;
  1046. margin-bottom: var(--window-bottom);
  1047. margin-top: 88rpx;
  1048. border-top: 6rpx solid #EBEBEB;
  1049. height: calc(100vh - var(--window-bottom) - 88rpx);
  1050. display: flex;
  1051. justify-content: center;
  1052. background-color: #F7F7F7;
  1053. .newicon-zanwu{
  1054. font-size: 256rpx;
  1055. color: #D6D6D6;
  1056. margin-top: 140rpx;
  1057. }
  1058. }
  1059. .popup-content{
  1060. .form_item{
  1061. display: flex;
  1062. align-items: center;
  1063. padding-top: 24rpx;
  1064. min-height: 86rpx;
  1065. position: relative;
  1066. .chunk{
  1067. width: 100%;
  1068. height: 70rpx;
  1069. line-height: 70rpx;
  1070. text-align: center;
  1071. background: #F7F8FA;
  1072. box-shadow: 0px 3px 6px 1px rgba(0,0,0,0.16);
  1073. border-radius: 10rpx;
  1074. }
  1075. &.column{
  1076. height: auto;
  1077. flex-direction: column;
  1078. align-items: flex-start;
  1079. .import-rep{
  1080. padding: 5rpx 10rpx;
  1081. border-radius: 50rpx;
  1082. background: #d1fcd5;
  1083. color: #49b856;
  1084. font-size: 24rpx;
  1085. }
  1086. .title{
  1087. margin-right: 0;
  1088. }
  1089. .title-width{
  1090. width: 100%;
  1091. }
  1092. .title-fl-sb{
  1093. display: flex;
  1094. justify-content: space-between;
  1095. width: 100%;
  1096. }
  1097. .value{
  1098. margin-top: 10rpx;
  1099. // padding-left: 20rpx;
  1100. box-sizing: border-box;
  1101. }
  1102. .tips{
  1103. padding: 24rpx;
  1104. text-align: center;
  1105. font-size: 22rpx;
  1106. color: #909399;
  1107. width: 100%;
  1108. box-sizing: border-box;
  1109. }
  1110. }
  1111. .title{
  1112. font-size: 26rpx;
  1113. display: flex;
  1114. align-items: center;
  1115. margin-right: 12rpx;
  1116. flex-shrink: 0;
  1117. &.select{
  1118. width: calc(5em + 20rpx);
  1119. }
  1120. }
  1121. .value{
  1122. width: 100%;
  1123. &.category{
  1124. width: 100%;
  1125. display: flex;
  1126. justify-content: space-between;
  1127. align-items: center;
  1128. .categoryName{
  1129. font-size: 26rpx;
  1130. color: #555;
  1131. flex: 1;
  1132. }
  1133. .newicon-weibiaoti2010104{
  1134. color: $uni-primary;
  1135. margin-left: 24rpx;
  1136. }
  1137. }
  1138. .imgTips{
  1139. color: #909399;
  1140. font-size: 22rpx;
  1141. margin-top: 10rpx;
  1142. }
  1143. }
  1144. .item-input{
  1145. border: 1px solid #DBDBDB;
  1146. height: 70rpx;
  1147. line-height: 70rpx;
  1148. padding: 0 10rpx;
  1149. border-radius: 4rpx;
  1150. width: 100%;
  1151. font-size: 14px;
  1152. }
  1153. .icon{
  1154. position: absolute;
  1155. right: 20rpx;
  1156. color: #49b856;
  1157. }
  1158. }
  1159. }
  1160. }
  1161. .home{
  1162. // height: 100vh;
  1163. // padding: 20rpx;
  1164. background: #fff;
  1165. .home_item{
  1166. padding: 20rpx;
  1167. box-shadow: 0px 3px 6px 1px rgba(0,0,0,0.16);
  1168. border-radius: 10rpx;
  1169. margin-bottom: 30rpx;
  1170. .title{
  1171. font-size: 26rpx;
  1172. color: $uni-primary;
  1173. padding-left: 18rpx;
  1174. position: relative;
  1175. margin-bottom: 20rpx;
  1176. &:before{
  1177. content: '';
  1178. width: 8rpx;
  1179. height: 25rpx;
  1180. background-color: $uni-primary;
  1181. position: absolute;
  1182. left: 0;
  1183. top: 50%;
  1184. transform: translateY(-50%);
  1185. }
  1186. }
  1187. .content{
  1188. display: flex;
  1189. align-items: center;
  1190. justify-content: space-around;
  1191. text-align: center;
  1192. .con-title{
  1193. color: #949494;
  1194. font-size: 24rpx;
  1195. margin-bottom: 15rpx;
  1196. }
  1197. .con-value{
  1198. color: #000;
  1199. font-size: 50rpx;
  1200. }
  1201. .con-value-gr{
  1202. color: #49B856;
  1203. font-size: 50rpx;
  1204. }
  1205. }
  1206. .uni-noticebar{
  1207. margin: 0 !important;
  1208. padding: 0 !important;
  1209. }
  1210. }
  1211. .home-disp{
  1212. display: flex;
  1213. justify-content: space-around;
  1214. .bottom-left{
  1215. height: 380rpx;
  1216. background: linear-gradient( 269deg, #54B99C 0%, #7AC481 100%);
  1217. border-radius: 10rpx;
  1218. flex: 1.5;
  1219. margin-right: 20rpx;
  1220. display: flex;
  1221. align-items: center;
  1222. justify-content: center;
  1223. color: #FFFFFF;
  1224. margin-top: 20rpx;
  1225. .bottom-left-box{
  1226. text-align: center;
  1227. .icon{
  1228. font-size: 100rpx;
  1229. position: relative;
  1230. top: -20rpx;
  1231. }
  1232. }
  1233. }
  1234. .mar-t-20{
  1235. margin-top: 20rpx;
  1236. }
  1237. .bottom-right{
  1238. flex: 2;
  1239. .bottom-right-item{
  1240. height: 175rpx;
  1241. background: #FFFFFF;
  1242. border-radius: 10rpx;
  1243. border: 2rpx solid #6FC073;
  1244. margin-bottom: 20rpx;
  1245. display: flex;
  1246. align-items: center;
  1247. justify-content: center;
  1248. position: relative;
  1249. .icon{
  1250. font-size: 50rpx;
  1251. color: #6FC073;
  1252. position: absolute;
  1253. left: 60rpx;
  1254. }
  1255. .name1{
  1256. font-size: 32rpx;
  1257. position: absolute;
  1258. right: 50rpx;
  1259. }
  1260. .name2{
  1261. font-size: 32rpx;
  1262. position: absolute;
  1263. right: 80rpx;
  1264. }
  1265. }
  1266. }
  1267. }
  1268. .bottom-tabs{
  1269. border-top:1px solid rgba(0, 0, 0, 0.33);
  1270. background: #fff;
  1271. position: fixed;
  1272. width: 100%;
  1273. left: var(--window-left);
  1274. right: var(--window-right);
  1275. display: flex;
  1276. bottom: 0;
  1277. .tabs-list{
  1278. height: 90rpx;
  1279. display: flex;
  1280. justify-content: center;
  1281. align-items: center;
  1282. flex-direction: column;
  1283. flex: 1;
  1284. font-size: 0;
  1285. text-align: center;
  1286. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  1287. img{
  1288. width: 48rpx;
  1289. height: 48rpx;
  1290. }
  1291. .tabs-title{
  1292. color: rgb(136, 136, 136);
  1293. font-size: 20rpx;
  1294. line-height: normal;
  1295. }
  1296. .active-class{
  1297. color: #49B856;
  1298. }
  1299. }
  1300. }
  1301. }
  1302. .mine{
  1303. height: 100%;
  1304. display: flex;
  1305. flex-direction: column;
  1306. justify-content: space-between;
  1307. .phone-filled{
  1308. margin-right: 5rpx;
  1309. }
  1310. .newicon-xinjian2,
  1311. .newicon-zhishiku{
  1312. margin-right: 10rpx;
  1313. }
  1314. .body{
  1315. width: 714rpx;
  1316. height: 100%;
  1317. margin: 16rpx auto var(--window-bottom) auto;
  1318. box-sizing: border-box;
  1319. border-radius: 8rpx;
  1320. .top{
  1321. padding: 30rpx;
  1322. background-color: #fff;
  1323. .top_name{
  1324. font-size: 28rpx;
  1325. font-weight: bold;
  1326. }
  1327. .top_count{
  1328. margin-top: 45rpx;
  1329. display: flex;
  1330. align-items: center;
  1331. justify-content: space-between;
  1332. .top_count_item{
  1333. text-align: center;
  1334. .name{
  1335. color: #949494;
  1336. font-size: 22rpx;
  1337. }
  1338. .value{
  1339. font-size: 50rpx;
  1340. font-weight: bold;
  1341. margin-top: 15rpx;
  1342. }
  1343. }
  1344. }
  1345. }
  1346. .bottom{
  1347. background-color: #fff;
  1348. margin-top: 15rpx;
  1349. .bottom_name{
  1350. font-size: 26rpx;
  1351. color: $uni-primary;
  1352. padding: 21rpx 24rpx;
  1353. }
  1354. .bottom_list{
  1355. .bottom_list_item{
  1356. border-top: 1rpx solid #DEDEDE;
  1357. padding: 30rpx 30rpx 30rpx 30rpx;
  1358. display: flex;
  1359. justify-content: space-between;
  1360. align-items: center;
  1361. font-size: 24rpx;
  1362. position: relative;
  1363. .value{
  1364. max-width: 380rpx;
  1365. color: #333;
  1366. display: flex;
  1367. align-items: center;
  1368. text-align: justify;
  1369. margin-right: 30rpx;
  1370. }
  1371. .no-mar{
  1372. margin-right:0 !important;
  1373. }
  1374. .icon{
  1375. position: absolute;
  1376. right: 20rpx;
  1377. }
  1378. }
  1379. }
  1380. }
  1381. }
  1382. .fixed-btn{
  1383. position: fixed;
  1384. bottom: 100rpx;
  1385. left: 0;
  1386. }
  1387. }
  1388. </style>