myRepair.vue 40 KB

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