myRepair.vue 40 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540
  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.value=='dept'">
  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.value=='public'">
  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. recallValue.value = null
  443. inputDialog.value.open()
  444. }
  445. // 评价
  446. function handler(type, data){
  447. rowData.value = data
  448. popup.value.open()
  449. let postData = {
  450. key: "incident_degree",
  451. type: "list"
  452. };
  453. api_getDictionary(postData).then(res => {
  454. res = res || [];
  455. degreeDictionary.value = res
  456. })
  457. }
  458. function closePop(){
  459. rate.value = 3
  460. wxdegreeremark.value = null
  461. popup.value.close()
  462. }
  463. function submit(){
  464. if(!rate.value){
  465. uni.showToast({
  466. icon: 'none',
  467. title: '请选择星级'
  468. });
  469. return;
  470. }
  471. if(!wxdegreeremark.value){
  472. uni.showToast({
  473. icon: 'none',
  474. title: '请输入评价内容'
  475. });
  476. return;
  477. }
  478. let rateData = null
  479. if(rate.value==0){
  480. rateData=degreeDictionary.value[0].id
  481. }else if(rate.value==1){
  482. rateData=degreeDictionary.value[4].id
  483. }else if(rate.value==2){
  484. rateData=degreeDictionary.value[3].id
  485. }else if(rate.value==3){
  486. rateData=degreeDictionary.value[2].id
  487. }else if(rate.value==4){
  488. rateData=degreeDictionary.value[1].id
  489. }else if(rate.value==5){
  490. rateData=degreeDictionary.value[0].id
  491. }
  492. let postData = {
  493. ...rowData.value,
  494. wxdegree: rateData==0?degreeDictionary.value[0]:{id: rateData},
  495. wxdegreeremark: wxdegreeremark.value
  496. }
  497. api_taskresolve({incident:postData}).then(res => {
  498. uni.hideLoading();
  499. if(res.state == 200){
  500. getList(0);
  501. uni.showToast({
  502. icon: 'none',
  503. title: '评价成功',
  504. });
  505. }else{
  506. uni.showToast({
  507. icon: 'none',
  508. title: res.msg || '请求数据失败!'
  509. });
  510. }
  511. })
  512. closePop()
  513. }
  514. // 获取列表信息
  515. function getList(idx){
  516. uni.showLoading({
  517. title: "加载中",
  518. mask: true,
  519. });
  520. dataInfo.idx = idx === undefined ? dataInfo.idx : idx;
  521. if(dataInfo.idx === 0){
  522. dataInfo.list = [];
  523. }
  524. let postData = {
  525. "idx": dataInfo.idx,
  526. "sum": 20,
  527. incident: {
  528. requester: dataInfo.tabActiveId == 0 ? { id: loginUserStore.loginUser.user.id } : undefined,
  529. department: dataInfo.tabActiveId == 1 ? { id: loginUserStore.loginUser.user.dept.id } : undefined,
  530. statesValues: (dataInfo.stateValue === 'close0' || dataInfo.stateValue === 'close1') ? 'close' : (dataInfo.stateValue || undefined),
  531. hasWxdegree: dataInfo.stateValue === 'close0' ? 0 : (dataInfo.stateValue === 'close1' ? 1 : undefined),
  532. repairIncidentType:{
  533. id:''
  534. }
  535. }
  536. }
  537. if(dataInfo.tabActiveId == 1){
  538. postData.incident.repairIncidentType.id = repairIncident.value.id
  539. }
  540. if(JSON.stringify(postData.incident.statesValues) === '{}'){
  541. delete postData.incident.statesValues
  542. }
  543. api_incident(postData).then(res => {
  544. uni.hideLoading();
  545. uni.stopPullDownRefresh();
  546. if(res.status == 200){
  547. let list = res.list || [];
  548. if(list.length){
  549. dataInfo.hasMore = true;
  550. dataInfo.list = dataInfo.idx === 0 ? list : dataInfo.list.concat(list);
  551. }else{
  552. dataInfo.hasMore = false;
  553. }
  554. }else{
  555. uni.showToast({
  556. icon: 'none',
  557. title: res.msg || '请求数据失败!'
  558. });
  559. }
  560. })
  561. // getCount(postData.incident);
  562. }
  563. // 获取列表数量
  564. // function getCount(incident = {}){
  565. // let postData = {
  566. // wxCount: 'true',
  567. // incidentList: [],
  568. // }
  569. // dataInfo.tabs.forEach(v => {
  570. // postData.incidentList.push({...incident, ...{statusId: v.id || undefined}});
  571. // })
  572. // api_incident_count(postData).then(res => {
  573. // if(res.state == 200){
  574. // let myData = res.data || [];
  575. // dataInfo.tabs.forEach((v, i) => {
  576. // v.num = myData[i];
  577. // })
  578. // }else{
  579. // uni.showToast({
  580. // icon: 'none',
  581. // title: res.msg || '请求数据失败!'
  582. // });
  583. // }
  584. // })
  585. // }
  586. // 知识库
  587. function repository(){
  588. uni.navigateTo({
  589. url: `/pages/repository/repository?type=view&entranceType=repairs`
  590. })
  591. }
  592. // 报修列表
  593. function repairsView(type,value){
  594. tabsIndex0.value = 0
  595. tabsIndex1.value = 1
  596. tabsIndex2.value = 0
  597. dataInfo.tabActiveId = type
  598. dataInfo.stateValue = value
  599. dataInfo.evtFilter.category = value
  600. repositorySearchStore.setRepositoryListSearchData(dataInfo.evtFilter)
  601. getTabs()
  602. }
  603. // 获取报修数量
  604. function getCount(){
  605. uni.showLoading({
  606. title: "加载中",
  607. mask: true,
  608. });
  609. api_getCount({}).then(res=>{
  610. uni.hideLoading();
  611. repairData.value = res.data
  612. })
  613. }
  614. // 快速报修
  615. function addRepairs(){
  616. // if(isDept.value.valueconfig==0 && isPublic.value.valueconfig==0){
  617. // uni.showToast({
  618. // icon: 'none',
  619. // title: '请先开启科室报修或公共报修'
  620. // });
  621. // return
  622. // }
  623. uni.setStorageSync('repairsType','subpage')
  624. uni.navigateTo({
  625. url: '/pages/repair/rapidRep'
  626. })
  627. }
  628. // 扫资产报修
  629. function scanCodes(){
  630. uni.showLoading({
  631. title: "加载中",
  632. mask: true,
  633. });
  634. SM().then((res) => {
  635. api_repairScanCode({
  636. code:res
  637. }).then((res2) => {
  638. uni.hideLoading();
  639. if (res2.state == 200) {
  640. uni.setStorageSync('repairsType','subpage')
  641. uni.navigateTo({
  642. url: `/pages/repair/rapidRep?property=${res2.data.name}&assetId=${res2.data.id}`
  643. })
  644. } else {
  645. uni.showToast({
  646. icon: 'none',
  647. title: res2.msg || '请求数据失败!'
  648. });
  649. }
  650. });
  651. })
  652. }
  653. // 保存
  654. function addInfo(){
  655. if(!dataForm.branch){
  656. uni.showToast({
  657. icon: 'none',
  658. title: '院区不能为空'
  659. });
  660. return
  661. }
  662. if(!dataForm.dept){
  663. uni.showToast({
  664. icon: 'none',
  665. title: '报修科室不能为空'
  666. });
  667. return
  668. }
  669. uni.showLoading({
  670. title: "加载中",
  671. mask: true,
  672. });
  673. isSubmit.value = true
  674. userData.currentHospital.id = dataForm.branch
  675. userData.commonDeptName = commonDeptName.value
  676. userData.dept={
  677. id:dataForm.dept
  678. }
  679. let arr = []
  680. for(let i of commonDeptDTO.value){
  681. arr.push({
  682. dept:i
  683. })
  684. }
  685. let postData = {
  686. ...loginUserStore.loginUser.user,
  687. // ...userData,
  688. hospital:{
  689. id:dataForm.branch
  690. },
  691. dept:{
  692. id:dataForm.dept
  693. },
  694. commonDept:commonDeptData.value,
  695. commonDeptDTO:arr,
  696. upType: "changeDept"
  697. }
  698. api_userSave({
  699. user: postData,
  700. }).then(res => {
  701. uni.hideLoading();
  702. if(res.status == 200){
  703. loginUserStore.setLoginUser(postData);
  704. uni.showToast({
  705. icon: 'none',
  706. title: '保存成功'
  707. });
  708. }else{
  709. uni.showToast({
  710. icon: 'none',
  711. title: res.msg || '请求数据失败!'
  712. });
  713. }
  714. })
  715. }
  716. // 选择院区
  717. function branchChange(){
  718. dataForm.dept = null
  719. dataForm.departmentName = null
  720. dataForm.commonDeptName = null
  721. dataForm.commonDeptData = null
  722. commonDeptName.value = null
  723. commonDeptData.value = null
  724. // getRepairTypes()
  725. }
  726. // 跳转到科室
  727. function selectDepartment(){
  728. if(commonDeptName.value){
  729. dataForm.dataType = true
  730. }else{
  731. dataForm.dataType = false
  732. }
  733. uni.setStorageSync('configData',JSON.stringify(dataForm))
  734. uni.navigateTo({
  735. url: `/pages/searchDept/searchDept?type=config&branchId=${dataForm.branch}`
  736. })
  737. }
  738. // 获取科室列表
  739. function getRepairTypes(){
  740. uni.showLoading({
  741. title: "加载中",
  742. mask: true,
  743. });
  744. let postData = {
  745. department: {
  746. hospital: dataForm.branch?dataForm.branch:loginUserStore.loginUser.user.currentHospital.id,
  747. },
  748. idx:0,
  749. sum:9999
  750. }
  751. api_department(postData).then(res => {
  752. uni.hideLoading();
  753. res = res.list || [];
  754. deptData.value = res.map(v => ({
  755. text: v.dept,
  756. value: v.id,
  757. }));
  758. })
  759. }
  760. // 获取院区列表
  761. function getBranch(){
  762. let arr = loginUserStore.loginUser.hospital.filter(i=>i.parent==undefined)
  763. branchData.value = arr.map(v => ({
  764. text: v.hosName,
  765. value: v.id,
  766. }));
  767. }
  768. // 选择常用科室
  769. function deptSelect(){
  770. uni.setStorageSync('configData',JSON.stringify(dataForm))
  771. let data = commonDeptData.value
  772. // ? commonDeptData.value : loginUserStore.loginUser.user.commonDept
  773. if(!data){
  774. data = 'none'
  775. }
  776. let deptId = dataForm.branch?dataForm.branch:loginUserStore.loginUser.user.currentHospital.id
  777. uni.navigateTo({
  778. url: `/pages/repair/deptSelect?data=${JSON.stringify(data)}&commonDeptName=${commonDeptName.value}&deptId=${deptId}&type=home`
  779. })
  780. }
  781. function getUserInfo(){
  782. let user = loginUserStore.loginUser.user
  783. let userId = null
  784. if(user.currentHospital.parent){
  785. userId = user.currentHospital.parent.id
  786. }else{
  787. userId = user.currentHospital.id
  788. }
  789. let postData = {
  790. idx: 0,
  791. sum: 999,
  792. user: {
  793. hospital:{
  794. id:userId
  795. },
  796. name: user.name,
  797. userTypeIds: userTypes.value ? String(userTypes.value.map(v => v.id)) : undefined
  798. }
  799. }
  800. api_user(postData).then(res => {
  801. if(res.status == 200){
  802. let item = res.list.find(i=>i.id==user.id)
  803. let data = uni.getStorageSync('configData')
  804. if(operationType.value=='selectDept'){
  805. if(data){
  806. data = JSON.parse(data)
  807. dataForm.name = data.name
  808. dataForm.account = data.account
  809. dataForm.phone = data.phone
  810. dataForm.dept = data.dept
  811. dataForm.departmentName = data.departmentName
  812. dataForm.branch = Number(data.branch)
  813. dataForm.commonDeptName = data.commonDeptName
  814. dataForm.commonDeptData = data.commonDeptData
  815. if(data.dataType){
  816. commonDeptData.value = data.commonDeptData
  817. commonDeptName.value = data.commonDeptName
  818. }
  819. }
  820. }else if(item){
  821. if(item.hospital.parent){
  822. dataForm.branch = item.hospital.parent.id
  823. }else{
  824. dataForm.branch = item.hospital.id
  825. }
  826. if(item.dept){
  827. dataForm.dept = item.dept.id
  828. dataForm.departmentName = item.dept.dept
  829. }
  830. // getRepairTypes()
  831. let id = []
  832. let name = []
  833. if(item.commonDeptDTO){
  834. for(let i of item.commonDeptDTO){
  835. id.push(i.id)
  836. name.push(i.dept)
  837. }
  838. commonDeptData.value = id.join(',')
  839. commonDeptName.value = name.join('/')
  840. dataForm.commonDeptName = commonDeptName.value
  841. dataForm.commonDeptData = commonDeptData.value
  842. }
  843. }else{
  844. // let data = uni.getStorageSync('configData')
  845. // if(data){
  846. // data = JSON.parse(data)
  847. // dataForm.dept = data.dept
  848. // dataForm.branch = data.branch
  849. // }else{
  850. if(user.currentHospital.parent){
  851. dataForm.branch = user.currentHospital.parent.id
  852. }else{
  853. dataForm.branch = user.currentHospital.id
  854. }
  855. if(user.dept){
  856. dataForm.dept = user.dept.id
  857. dataForm.departmentName = user.dept.dept
  858. }
  859. // }
  860. if(user.commonDeptDTO){
  861. let name = []
  862. for(let i of user.commonDeptDTO){
  863. name.push(i.dept)
  864. }
  865. commonDeptData.value = user.commonDept
  866. commonDeptName.value = name.join('/')
  867. dataForm.commonDeptName = commonDeptName.value
  868. dataForm.commonDeptData = commonDeptData.value
  869. }
  870. // getRepairTypes()
  871. }
  872. }else{
  873. uni.showToast({
  874. icon: 'none',
  875. title: res.msg || '请求数据失败!'
  876. });
  877. }
  878. })
  879. }
  880. // 获取配置项
  881. function getConfig(option){
  882. api_systemConfiguration({
  883. idx: 0,
  884. sum: 9999,
  885. }).then(res=>{
  886. let data = res.list
  887. uni.setStorageSync('sysData',JSON.stringify(res.list))
  888. isDept.value = data.find(i=>i.keyconfig=='deptRepair')
  889. isRepair.value = data.find(i=>i.keyconfig=='cmdbRepair')
  890. isPublic.value = data.find(i=>i.keyconfig=='publicRepair')
  891. deptRepair.value = data.find(i=>i.keyconfig=='deptRepair')
  892. publicRepair.value = data.find(i=>i.keyconfig=='publicRepair')
  893. getBranch()
  894. if(option.type==2){
  895. tabsIndex0.value = 0
  896. tabsIndex1.value = 0
  897. tabsIndex2.value = 1
  898. if(option.data){
  899. let data = JSON.parse(option.data)
  900. commonDeptData.value = data.data.join(',')
  901. commonDeptName.value = data.name.join('/')
  902. commonDeptDTO.value = data.name
  903. dataForm.commonDeptData = data.data.join(',')
  904. dataForm.commonDeptName = data.name.join('/')
  905. let data2 = uni.getStorageSync('configData')
  906. if(data2){
  907. data2 = JSON.parse(data2)
  908. dataForm.dept = data2.dept
  909. dataForm.departmentName = data2.departmentName
  910. dataForm.branch = data2.branch
  911. }
  912. }else{
  913. getUserInfo()
  914. }
  915. }else if(option.type==1){
  916. tabsIndex0.value = 0
  917. tabsIndex1.value = 1
  918. tabsIndex2.value = 0
  919. getTabs()
  920. }else{
  921. tabsIndex0.value = 1
  922. tabsIndex1.value = 0
  923. tabsIndex2.value = 0
  924. getCount()
  925. }
  926. })
  927. }
  928. onHide(opt=>{
  929. dataConfigInfo.num = 0
  930. dataForm.branch = null
  931. })
  932. onLoad((option) => {
  933. console.log(777,option)
  934. getConfig(option)
  935. if(uni.getStorageSync('groupData')){
  936. userTypes.value = JSON.parse(uni.getStorageSync('groupData'))
  937. }
  938. dataConfigInfo.num = 1
  939. if(option && option.configType){
  940. operationType.value = option.configType
  941. }
  942. })
  943. onReachBottom(() => {
  944. if(tabsIndex1.value==1){
  945. dataInfo.idx += 1;
  946. if (dataInfo.hasMore) {
  947. getList(); // 当触底时加载更多数据
  948. }
  949. }
  950. })
  951. onPullDownRefresh(_=>{
  952. // uni.stopPullDownRefresh();
  953. })
  954. onShow((option) => {
  955. if(uni.getStorageSync('groupData')){
  956. userTypes.value = JSON.parse(uni.getStorageSync('groupData'))
  957. }
  958. if(dataConfigInfo.num==0){
  959. getUserInfo()
  960. }
  961. repositorySearchStore.clearRepositoryListSearchData()
  962. })
  963. </script>
  964. <style scoped>
  965. >>> .uni-popup__wrapper{
  966. width: 80%;
  967. padding: 40rpx;
  968. }
  969. >>> .uni-data-tree-input{
  970. width: 100% !important;
  971. }
  972. >>> .input-value-border{
  973. border: none !important;
  974. }
  975. >>> .input-value{
  976. padding:0 !important;
  977. flex-direction: row-reverse !important;
  978. }
  979. >>> .selected-list{
  980. flex-direction: row-reverse !important;
  981. }
  982. >>> .arrow-area{
  983. display: none !important;
  984. }
  985. >>>.uni-data-tree-dialog{
  986. z-index: 9999;
  987. }
  988. </style>
  989. <style lang="scss" scoped>
  990. page{
  991. height: calc(100vh - var(--window-bottom));
  992. }
  993. .ch-class{
  994. text-align: center;
  995. font-size: 32rpx;
  996. }
  997. .popup-content{
  998. padding: 40rpx;
  999. }
  1000. .incidentList{
  1001. display: flex;
  1002. flex-direction: column;
  1003. justify-content: space-between;
  1004. .head{
  1005. height: 88rpx;
  1006. display: flex;
  1007. position: fixed;
  1008. z-index: 99;
  1009. width: 100%;
  1010. background-color: #fff;
  1011. font-size: 30rpx;
  1012. .tab{
  1013. flex: 1;
  1014. display: flex;
  1015. justify-content: center;
  1016. align-items: center;
  1017. border-bottom: 4rpx solid transparent;
  1018. &.active{
  1019. color: $uni-primary;
  1020. border-color: $uni-primary;
  1021. }
  1022. }
  1023. .filter{
  1024. width: 84rpx;
  1025. display: flex;
  1026. justify-content: center;
  1027. align-items: center;
  1028. .newicon-shaixuan{
  1029. font-size: 36rpx;
  1030. color: #2C2C2C;
  1031. }
  1032. }
  1033. }
  1034. .body{
  1035. margin-bottom: var(--window-bottom);
  1036. margin-top: 88rpx;
  1037. border-top: 6rpx solid #EBEBEB;
  1038. .body_item{
  1039. border-bottom: 8rpx solid #EBEBEB;
  1040. position: relative;
  1041. .sign-style{
  1042. position: absolute;
  1043. right: 0;
  1044. top: -25rpx;
  1045. .img-box{
  1046. position: relative;
  1047. .img-url1{
  1048. width: 70rpx;
  1049. height: 70rpx;
  1050. background-image: url('../../static/img/jiaobiao1.png');
  1051. }
  1052. .img-url2{
  1053. width: 70rpx;
  1054. height: 70rpx;
  1055. background-image: url('../../static/img/jiaobiao2.png');
  1056. }
  1057. .img-name{
  1058. position: absolute;
  1059. right: 8rpx;
  1060. top: 0;
  1061. color: #fff;
  1062. font-size: 24rpx;
  1063. }
  1064. }
  1065. }
  1066. .body_item_head{
  1067. word-break: break-all;
  1068. text-align: justify;
  1069. text-align: left;
  1070. margin: 24rpx;
  1071. font-size: 30rpx;
  1072. }
  1073. .body_item_content{
  1074. border-top: 1rpx solid #D8D8D8;
  1075. padding: 24rpx 24rpx 24rpx 48rpx;
  1076. .body_item_content_p{
  1077. color: #6A6A6A;
  1078. font-size: 26rpx;
  1079. display: flex;
  1080. justify-content: space-between;
  1081. align-items: center;
  1082. margin-bottom: 24rpx;
  1083. &:last-of-type{
  1084. margin-bottom: 0;
  1085. }
  1086. .name{
  1087. flex: 1;
  1088. }
  1089. .status{
  1090. padding: 4rpx 10rpx;
  1091. border-radius: 20rpx;
  1092. background-color: #DBE8FE;
  1093. font-size: 22rpx;
  1094. color: #006CF9;
  1095. }
  1096. .icon_all{
  1097. .mic-filled,
  1098. .image-filled
  1099. {
  1100. margin-left: 16rpx;
  1101. }
  1102. }
  1103. }
  1104. }
  1105. .body_item_foot{
  1106. border-top: 1rpx solid #D8D8D8;
  1107. font-size: 26rpx;
  1108. padding: 24rpx;
  1109. .foot_info{
  1110. display: flex;
  1111. justify-content: space-between;
  1112. align-items: center;
  1113. .phone-filled{
  1114. margin-left: 5rpx;
  1115. }
  1116. }
  1117. }
  1118. }
  1119. }
  1120. .body-height{
  1121. height: 88rpx;
  1122. }
  1123. .zanwu{
  1124. box-sizing: border-box;
  1125. margin-bottom: var(--window-bottom);
  1126. margin-top: 88rpx;
  1127. border-top: 6rpx solid #EBEBEB;
  1128. height: calc(100vh - var(--window-bottom) - 88rpx);
  1129. display: flex;
  1130. justify-content: center;
  1131. background-color: #F7F7F7;
  1132. .newicon-zanwu{
  1133. font-size: 256rpx;
  1134. color: #D6D6D6;
  1135. margin-top: 140rpx;
  1136. }
  1137. }
  1138. .popup-content{
  1139. .form_item{
  1140. display: flex;
  1141. align-items: center;
  1142. padding-top: 24rpx;
  1143. min-height: 86rpx;
  1144. position: relative;
  1145. .chunk{
  1146. width: 100%;
  1147. height: 70rpx;
  1148. line-height: 70rpx;
  1149. text-align: center;
  1150. background: #F7F8FA;
  1151. box-shadow: 0px 3px 6px 1px rgba(0,0,0,0.16);
  1152. border-radius: 10rpx;
  1153. }
  1154. &.column{
  1155. height: auto;
  1156. flex-direction: column;
  1157. align-items: flex-start;
  1158. .import-rep{
  1159. padding: 5rpx 10rpx;
  1160. border-radius: 50rpx;
  1161. background: #d1fcd5;
  1162. color: #49b856;
  1163. font-size: 24rpx;
  1164. }
  1165. .title{
  1166. margin-right: 0;
  1167. }
  1168. .title-width{
  1169. width: 100%;
  1170. }
  1171. .title-fl-sb{
  1172. display: flex;
  1173. justify-content: space-between;
  1174. width: 100%;
  1175. }
  1176. .value{
  1177. margin-top: 10rpx;
  1178. // padding-left: 20rpx;
  1179. box-sizing: border-box;
  1180. }
  1181. .tips{
  1182. padding: 24rpx;
  1183. text-align: center;
  1184. font-size: 22rpx;
  1185. color: #909399;
  1186. width: 100%;
  1187. box-sizing: border-box;
  1188. }
  1189. }
  1190. .title{
  1191. font-size: 26rpx;
  1192. display: flex;
  1193. align-items: center;
  1194. margin-right: 12rpx;
  1195. flex-shrink: 0;
  1196. &.select{
  1197. width: calc(5em + 20rpx);
  1198. }
  1199. }
  1200. .value{
  1201. width: 100%;
  1202. &.category{
  1203. width: 100%;
  1204. display: flex;
  1205. justify-content: space-between;
  1206. align-items: center;
  1207. .categoryName{
  1208. font-size: 26rpx;
  1209. color: #555;
  1210. flex: 1;
  1211. }
  1212. .newicon-weibiaoti2010104{
  1213. color: $uni-primary;
  1214. margin-left: 24rpx;
  1215. }
  1216. }
  1217. .imgTips{
  1218. color: #909399;
  1219. font-size: 22rpx;
  1220. margin-top: 10rpx;
  1221. }
  1222. }
  1223. .item-input{
  1224. border: 1px solid #DBDBDB;
  1225. height: 70rpx;
  1226. line-height: 70rpx;
  1227. padding: 0 10rpx;
  1228. border-radius: 4rpx;
  1229. width: 100%;
  1230. font-size: 14px;
  1231. }
  1232. .icon{
  1233. position: absolute;
  1234. right: 20rpx;
  1235. color: #49b856;
  1236. }
  1237. }
  1238. }
  1239. }
  1240. .home{
  1241. // height: 100vh;
  1242. // padding: 20rpx;
  1243. background: #fff;
  1244. .home_item{
  1245. padding: 20rpx;
  1246. box-shadow: 0px 3px 6px 1px rgba(0,0,0,0.16);
  1247. border-radius: 10rpx;
  1248. margin-bottom: 30rpx;
  1249. .title{
  1250. font-size: 26rpx;
  1251. color: $uni-primary;
  1252. padding-left: 18rpx;
  1253. position: relative;
  1254. margin-bottom: 20rpx;
  1255. &:before{
  1256. content: '';
  1257. width: 8rpx;
  1258. height: 25rpx;
  1259. background-color: $uni-primary;
  1260. position: absolute;
  1261. left: 0;
  1262. top: 50%;
  1263. transform: translateY(-50%);
  1264. }
  1265. }
  1266. .content{
  1267. display: flex;
  1268. align-items: center;
  1269. justify-content: space-around;
  1270. text-align: center;
  1271. .con-title{
  1272. color: #949494;
  1273. font-size: 24rpx;
  1274. margin-bottom: 15rpx;
  1275. }
  1276. .con-value{
  1277. color: #000;
  1278. font-size: 50rpx;
  1279. }
  1280. .con-value-gr{
  1281. color: #49B856;
  1282. font-size: 50rpx;
  1283. }
  1284. }
  1285. .uni-noticebar{
  1286. margin: 0 !important;
  1287. padding: 0 !important;
  1288. }
  1289. }
  1290. .home-disp{
  1291. display: flex;
  1292. justify-content: space-around;
  1293. .bottom-left{
  1294. height: 380rpx;
  1295. background: linear-gradient( 269deg, #54B99C 0%, #7AC481 100%);
  1296. border-radius: 10rpx;
  1297. flex: 1.5;
  1298. margin-right: 20rpx;
  1299. display: flex;
  1300. align-items: center;
  1301. justify-content: center;
  1302. color: #FFFFFF;
  1303. margin-top: 20rpx;
  1304. .bottom-left-box{
  1305. text-align: center;
  1306. .icon{
  1307. font-size: 100rpx;
  1308. position: relative;
  1309. top: -20rpx;
  1310. }
  1311. }
  1312. }
  1313. .mar-t-20{
  1314. margin-top: 20rpx;
  1315. }
  1316. .bottom-right{
  1317. flex: 2;
  1318. .bottom-right-item{
  1319. height: 175rpx;
  1320. background: #FFFFFF;
  1321. border-radius: 10rpx;
  1322. border: 2rpx solid #6FC073;
  1323. margin-bottom: 20rpx;
  1324. display: flex;
  1325. align-items: center;
  1326. justify-content: center;
  1327. position: relative;
  1328. .icon{
  1329. font-size: 50rpx;
  1330. color: #6FC073;
  1331. position: absolute;
  1332. left: 60rpx;
  1333. }
  1334. .name1{
  1335. font-size: 32rpx;
  1336. position: absolute;
  1337. right: 50rpx;
  1338. }
  1339. .name2{
  1340. font-size: 32rpx;
  1341. position: absolute;
  1342. right: 80rpx;
  1343. }
  1344. }
  1345. }
  1346. }
  1347. .bottom-tabs{
  1348. border-top:1px solid rgba(0, 0, 0, 0.33);
  1349. background: #fff;
  1350. position: fixed;
  1351. width: 100%;
  1352. left: var(--window-left);
  1353. right: var(--window-right);
  1354. display: flex;
  1355. bottom: 0;
  1356. .tabs-list{
  1357. height: 90rpx;
  1358. display: flex;
  1359. justify-content: center;
  1360. align-items: center;
  1361. flex-direction: column;
  1362. flex: 1;
  1363. font-size: 0;
  1364. text-align: center;
  1365. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  1366. img{
  1367. width: 48rpx;
  1368. height: 48rpx;
  1369. }
  1370. .tabs-title{
  1371. color: rgb(136, 136, 136);
  1372. font-size: 20rpx;
  1373. line-height: normal;
  1374. }
  1375. .active-class{
  1376. color: #49B856;
  1377. }
  1378. }
  1379. }
  1380. }
  1381. .mine{
  1382. height: 100%;
  1383. display: flex;
  1384. flex-direction: column;
  1385. justify-content: space-between;
  1386. .phone-filled{
  1387. margin-right: 5rpx;
  1388. }
  1389. .newicon-xinjian2,
  1390. .newicon-zhishiku{
  1391. margin-right: 10rpx;
  1392. }
  1393. .body{
  1394. width: 714rpx;
  1395. height: 100%;
  1396. margin: 16rpx auto var(--window-bottom) auto;
  1397. box-sizing: border-box;
  1398. border-radius: 8rpx;
  1399. .top{
  1400. padding: 30rpx;
  1401. background-color: #fff;
  1402. .top_name{
  1403. font-size: 28rpx;
  1404. font-weight: bold;
  1405. }
  1406. .top_count{
  1407. margin-top: 45rpx;
  1408. display: flex;
  1409. align-items: center;
  1410. justify-content: space-between;
  1411. .top_count_item{
  1412. text-align: center;
  1413. .name{
  1414. color: #949494;
  1415. font-size: 22rpx;
  1416. }
  1417. .value{
  1418. font-size: 50rpx;
  1419. font-weight: bold;
  1420. margin-top: 15rpx;
  1421. }
  1422. }
  1423. }
  1424. }
  1425. .bottom{
  1426. background-color: #fff;
  1427. margin-top: 15rpx;
  1428. .bottom_name{
  1429. font-size: 26rpx;
  1430. color: $uni-primary;
  1431. padding: 21rpx 24rpx;
  1432. }
  1433. .bottom_list{
  1434. .bottom_list_item{
  1435. border-top: 1rpx solid #DEDEDE;
  1436. padding: 30rpx 30rpx 30rpx 30rpx;
  1437. display: flex;
  1438. justify-content: space-between;
  1439. align-items: center;
  1440. font-size: 24rpx;
  1441. position: relative;
  1442. .value{
  1443. max-width: 380rpx;
  1444. color: #333;
  1445. display: flex;
  1446. align-items: center;
  1447. text-align: justify;
  1448. margin-right: 30rpx;
  1449. }
  1450. .no-mar{
  1451. margin-right:0 !important;
  1452. }
  1453. .icon{
  1454. position: absolute;
  1455. right: 20rpx;
  1456. }
  1457. }
  1458. }
  1459. }
  1460. }
  1461. .fixed-btn{
  1462. position: fixed;
  1463. bottom: 100rpx;
  1464. left: 0;
  1465. }
  1466. }
  1467. </style>