myRepair.vue 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535
  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. 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: String(userTypes.value.map(v => v.id))
  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. isDept.value = data.find(i=>i.keyconfig=='deptRepair')
  888. isRepair.value = data.find(i=>i.keyconfig=='cmdbRepair')
  889. isPublic.value = data.find(i=>i.keyconfig=='publicRepair')
  890. deptRepair.value = data.find(i=>i.keyconfig=='deptRepair')
  891. publicRepair.value = data.find(i=>i.keyconfig=='publicRepair')
  892. getBranch()
  893. if(option.type==2){
  894. tabsIndex0.value = 0
  895. tabsIndex1.value = 0
  896. tabsIndex2.value = 1
  897. if(option.data){
  898. let data = JSON.parse(option.data)
  899. commonDeptData.value = data.data.join(',')
  900. commonDeptName.value = data.name.join('/')
  901. commonDeptDTO.value = data.name
  902. dataForm.commonDeptData = data.data.join(',')
  903. dataForm.commonDeptName = data.name.join('/')
  904. let data2 = uni.getStorageSync('configData')
  905. if(data2){
  906. data2 = JSON.parse(data2)
  907. dataForm.dept = data2.dept
  908. dataForm.departmentName = data2.departmentName
  909. dataForm.branch = data2.branch
  910. }
  911. }else{
  912. getUserInfo()
  913. }
  914. }else if(option.type==1){
  915. tabsIndex0.value = 0
  916. tabsIndex1.value = 1
  917. tabsIndex2.value = 0
  918. getTabs()
  919. }else{
  920. tabsIndex0.value = 1
  921. tabsIndex1.value = 0
  922. tabsIndex2.value = 0
  923. getCount()
  924. }
  925. })
  926. }
  927. onHide(opt=>{
  928. dataConfigInfo.num = 0
  929. dataForm.branch = null
  930. })
  931. onLoad((option) => {
  932. console.log(777,option)
  933. getConfig(option)
  934. userTypes.value = JSON.parse(uni.getStorageSync('groupData'))
  935. dataConfigInfo.num = 1
  936. if(option && option.configType){
  937. operationType.value = option.configType
  938. }
  939. })
  940. onReachBottom(() => {
  941. if(tabsIndex1.value==1){
  942. dataInfo.idx += 1;
  943. if (dataInfo.hasMore) {
  944. getList(); // 当触底时加载更多数据
  945. }
  946. }
  947. })
  948. onPullDownRefresh(_=>{
  949. // uni.stopPullDownRefresh();
  950. })
  951. onShow((option) => {
  952. userTypes.value = JSON.parse(uni.getStorageSync('groupData'))
  953. if(dataConfigInfo.num==0){
  954. getUserInfo()
  955. }
  956. repositorySearchStore.clearRepositoryListSearchData()
  957. })
  958. </script>
  959. <style scoped>
  960. >>> .uni-popup__wrapper{
  961. width: 80%;
  962. padding: 40rpx;
  963. }
  964. >>> .uni-data-tree-input{
  965. width: 100% !important;
  966. }
  967. >>> .input-value-border{
  968. border: none !important;
  969. }
  970. >>> .input-value{
  971. padding:0 !important;
  972. flex-direction: row-reverse !important;
  973. }
  974. >>> .selected-list{
  975. flex-direction: row-reverse !important;
  976. }
  977. >>> .arrow-area{
  978. display: none !important;
  979. }
  980. >>>.uni-data-tree-dialog{
  981. z-index: 9999;
  982. }
  983. </style>
  984. <style lang="scss" scoped>
  985. page{
  986. height: calc(100vh - var(--window-bottom));
  987. }
  988. .ch-class{
  989. text-align: center;
  990. font-size: 32rpx;
  991. }
  992. .popup-content{
  993. padding: 40rpx;
  994. }
  995. .incidentList{
  996. display: flex;
  997. flex-direction: column;
  998. justify-content: space-between;
  999. .head{
  1000. height: 88rpx;
  1001. display: flex;
  1002. position: fixed;
  1003. z-index: 99;
  1004. width: 100%;
  1005. background-color: #fff;
  1006. font-size: 30rpx;
  1007. .tab{
  1008. flex: 1;
  1009. display: flex;
  1010. justify-content: center;
  1011. align-items: center;
  1012. border-bottom: 4rpx solid transparent;
  1013. &.active{
  1014. color: $uni-primary;
  1015. border-color: $uni-primary;
  1016. }
  1017. }
  1018. .filter{
  1019. width: 84rpx;
  1020. display: flex;
  1021. justify-content: center;
  1022. align-items: center;
  1023. .newicon-shaixuan{
  1024. font-size: 36rpx;
  1025. color: #2C2C2C;
  1026. }
  1027. }
  1028. }
  1029. .body{
  1030. margin-bottom: var(--window-bottom);
  1031. margin-top: 88rpx;
  1032. border-top: 6rpx solid #EBEBEB;
  1033. .body_item{
  1034. border-bottom: 8rpx solid #EBEBEB;
  1035. position: relative;
  1036. .sign-style{
  1037. position: absolute;
  1038. right: 0;
  1039. top: -25rpx;
  1040. .img-box{
  1041. position: relative;
  1042. .img-url1{
  1043. width: 70rpx;
  1044. height: 70rpx;
  1045. background-image: url('../../static/img/jiaobiao1.png');
  1046. }
  1047. .img-url2{
  1048. width: 70rpx;
  1049. height: 70rpx;
  1050. background-image: url('../../static/img/jiaobiao2.png');
  1051. }
  1052. .img-name{
  1053. position: absolute;
  1054. right: 8rpx;
  1055. top: 0;
  1056. color: #fff;
  1057. font-size: 24rpx;
  1058. }
  1059. }
  1060. }
  1061. .body_item_head{
  1062. word-break: break-all;
  1063. text-align: justify;
  1064. text-align: left;
  1065. margin: 24rpx;
  1066. font-size: 30rpx;
  1067. }
  1068. .body_item_content{
  1069. border-top: 1rpx solid #D8D8D8;
  1070. padding: 24rpx 24rpx 24rpx 48rpx;
  1071. .body_item_content_p{
  1072. color: #6A6A6A;
  1073. font-size: 26rpx;
  1074. display: flex;
  1075. justify-content: space-between;
  1076. align-items: center;
  1077. margin-bottom: 24rpx;
  1078. &:last-of-type{
  1079. margin-bottom: 0;
  1080. }
  1081. .name{
  1082. flex: 1;
  1083. }
  1084. .status{
  1085. padding: 4rpx 10rpx;
  1086. border-radius: 20rpx;
  1087. background-color: #DBE8FE;
  1088. font-size: 22rpx;
  1089. color: #006CF9;
  1090. }
  1091. .icon_all{
  1092. .mic-filled,
  1093. .image-filled
  1094. {
  1095. margin-left: 16rpx;
  1096. }
  1097. }
  1098. }
  1099. }
  1100. .body_item_foot{
  1101. border-top: 1rpx solid #D8D8D8;
  1102. font-size: 26rpx;
  1103. padding: 24rpx;
  1104. .foot_info{
  1105. display: flex;
  1106. justify-content: space-between;
  1107. align-items: center;
  1108. .phone-filled{
  1109. margin-left: 5rpx;
  1110. }
  1111. }
  1112. }
  1113. }
  1114. }
  1115. .body-height{
  1116. height: 88rpx;
  1117. }
  1118. .zanwu{
  1119. box-sizing: border-box;
  1120. margin-bottom: var(--window-bottom);
  1121. margin-top: 88rpx;
  1122. border-top: 6rpx solid #EBEBEB;
  1123. height: calc(100vh - var(--window-bottom) - 88rpx);
  1124. display: flex;
  1125. justify-content: center;
  1126. background-color: #F7F7F7;
  1127. .newicon-zanwu{
  1128. font-size: 256rpx;
  1129. color: #D6D6D6;
  1130. margin-top: 140rpx;
  1131. }
  1132. }
  1133. .popup-content{
  1134. .form_item{
  1135. display: flex;
  1136. align-items: center;
  1137. padding-top: 24rpx;
  1138. min-height: 86rpx;
  1139. position: relative;
  1140. .chunk{
  1141. width: 100%;
  1142. height: 70rpx;
  1143. line-height: 70rpx;
  1144. text-align: center;
  1145. background: #F7F8FA;
  1146. box-shadow: 0px 3px 6px 1px rgba(0,0,0,0.16);
  1147. border-radius: 10rpx;
  1148. }
  1149. &.column{
  1150. height: auto;
  1151. flex-direction: column;
  1152. align-items: flex-start;
  1153. .import-rep{
  1154. padding: 5rpx 10rpx;
  1155. border-radius: 50rpx;
  1156. background: #d1fcd5;
  1157. color: #49b856;
  1158. font-size: 24rpx;
  1159. }
  1160. .title{
  1161. margin-right: 0;
  1162. }
  1163. .title-width{
  1164. width: 100%;
  1165. }
  1166. .title-fl-sb{
  1167. display: flex;
  1168. justify-content: space-between;
  1169. width: 100%;
  1170. }
  1171. .value{
  1172. margin-top: 10rpx;
  1173. // padding-left: 20rpx;
  1174. box-sizing: border-box;
  1175. }
  1176. .tips{
  1177. padding: 24rpx;
  1178. text-align: center;
  1179. font-size: 22rpx;
  1180. color: #909399;
  1181. width: 100%;
  1182. box-sizing: border-box;
  1183. }
  1184. }
  1185. .title{
  1186. font-size: 26rpx;
  1187. display: flex;
  1188. align-items: center;
  1189. margin-right: 12rpx;
  1190. flex-shrink: 0;
  1191. &.select{
  1192. width: calc(5em + 20rpx);
  1193. }
  1194. }
  1195. .value{
  1196. width: 100%;
  1197. &.category{
  1198. width: 100%;
  1199. display: flex;
  1200. justify-content: space-between;
  1201. align-items: center;
  1202. .categoryName{
  1203. font-size: 26rpx;
  1204. color: #555;
  1205. flex: 1;
  1206. }
  1207. .newicon-weibiaoti2010104{
  1208. color: $uni-primary;
  1209. margin-left: 24rpx;
  1210. }
  1211. }
  1212. .imgTips{
  1213. color: #909399;
  1214. font-size: 22rpx;
  1215. margin-top: 10rpx;
  1216. }
  1217. }
  1218. .item-input{
  1219. border: 1px solid #DBDBDB;
  1220. height: 70rpx;
  1221. line-height: 70rpx;
  1222. padding: 0 10rpx;
  1223. border-radius: 4rpx;
  1224. width: 100%;
  1225. font-size: 14px;
  1226. }
  1227. .icon{
  1228. position: absolute;
  1229. right: 20rpx;
  1230. color: #49b856;
  1231. }
  1232. }
  1233. }
  1234. }
  1235. .home{
  1236. // height: 100vh;
  1237. // padding: 20rpx;
  1238. background: #fff;
  1239. .home_item{
  1240. padding: 20rpx;
  1241. box-shadow: 0px 3px 6px 1px rgba(0,0,0,0.16);
  1242. border-radius: 10rpx;
  1243. margin-bottom: 30rpx;
  1244. .title{
  1245. font-size: 26rpx;
  1246. color: $uni-primary;
  1247. padding-left: 18rpx;
  1248. position: relative;
  1249. margin-bottom: 20rpx;
  1250. &:before{
  1251. content: '';
  1252. width: 8rpx;
  1253. height: 25rpx;
  1254. background-color: $uni-primary;
  1255. position: absolute;
  1256. left: 0;
  1257. top: 50%;
  1258. transform: translateY(-50%);
  1259. }
  1260. }
  1261. .content{
  1262. display: flex;
  1263. align-items: center;
  1264. justify-content: space-around;
  1265. text-align: center;
  1266. .con-title{
  1267. color: #949494;
  1268. font-size: 24rpx;
  1269. margin-bottom: 15rpx;
  1270. }
  1271. .con-value{
  1272. color: #000;
  1273. font-size: 50rpx;
  1274. }
  1275. .con-value-gr{
  1276. color: #49B856;
  1277. font-size: 50rpx;
  1278. }
  1279. }
  1280. .uni-noticebar{
  1281. margin: 0 !important;
  1282. padding: 0 !important;
  1283. }
  1284. }
  1285. .home-disp{
  1286. display: flex;
  1287. justify-content: space-around;
  1288. .bottom-left{
  1289. height: 380rpx;
  1290. background: linear-gradient( 269deg, #54B99C 0%, #7AC481 100%);
  1291. border-radius: 10rpx;
  1292. flex: 1.5;
  1293. margin-right: 20rpx;
  1294. display: flex;
  1295. align-items: center;
  1296. justify-content: center;
  1297. color: #FFFFFF;
  1298. margin-top: 20rpx;
  1299. .bottom-left-box{
  1300. text-align: center;
  1301. .icon{
  1302. font-size: 100rpx;
  1303. position: relative;
  1304. top: -20rpx;
  1305. }
  1306. }
  1307. }
  1308. .mar-t-20{
  1309. margin-top: 20rpx;
  1310. }
  1311. .bottom-right{
  1312. flex: 2;
  1313. .bottom-right-item{
  1314. height: 175rpx;
  1315. background: #FFFFFF;
  1316. border-radius: 10rpx;
  1317. border: 2rpx solid #6FC073;
  1318. margin-bottom: 20rpx;
  1319. display: flex;
  1320. align-items: center;
  1321. justify-content: center;
  1322. position: relative;
  1323. .icon{
  1324. font-size: 50rpx;
  1325. color: #6FC073;
  1326. position: absolute;
  1327. left: 60rpx;
  1328. }
  1329. .name1{
  1330. font-size: 32rpx;
  1331. position: absolute;
  1332. right: 50rpx;
  1333. }
  1334. .name2{
  1335. font-size: 32rpx;
  1336. position: absolute;
  1337. right: 80rpx;
  1338. }
  1339. }
  1340. }
  1341. }
  1342. .bottom-tabs{
  1343. border-top:1px solid rgba(0, 0, 0, 0.33);
  1344. background: #fff;
  1345. position: fixed;
  1346. width: 100%;
  1347. left: var(--window-left);
  1348. right: var(--window-right);
  1349. display: flex;
  1350. bottom: 0;
  1351. .tabs-list{
  1352. height: 90rpx;
  1353. display: flex;
  1354. justify-content: center;
  1355. align-items: center;
  1356. flex-direction: column;
  1357. flex: 1;
  1358. font-size: 0;
  1359. text-align: center;
  1360. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  1361. img{
  1362. width: 48rpx;
  1363. height: 48rpx;
  1364. }
  1365. .tabs-title{
  1366. color: rgb(136, 136, 136);
  1367. font-size: 20rpx;
  1368. line-height: normal;
  1369. }
  1370. .active-class{
  1371. color: #49B856;
  1372. }
  1373. }
  1374. }
  1375. }
  1376. .mine{
  1377. height: 100%;
  1378. display: flex;
  1379. flex-direction: column;
  1380. justify-content: space-between;
  1381. .phone-filled{
  1382. margin-right: 5rpx;
  1383. }
  1384. .newicon-xinjian2,
  1385. .newicon-zhishiku{
  1386. margin-right: 10rpx;
  1387. }
  1388. .body{
  1389. width: 714rpx;
  1390. height: 100%;
  1391. margin: 16rpx auto var(--window-bottom) auto;
  1392. box-sizing: border-box;
  1393. border-radius: 8rpx;
  1394. .top{
  1395. padding: 30rpx;
  1396. background-color: #fff;
  1397. .top_name{
  1398. font-size: 28rpx;
  1399. font-weight: bold;
  1400. }
  1401. .top_count{
  1402. margin-top: 45rpx;
  1403. display: flex;
  1404. align-items: center;
  1405. justify-content: space-between;
  1406. .top_count_item{
  1407. text-align: center;
  1408. .name{
  1409. color: #949494;
  1410. font-size: 22rpx;
  1411. }
  1412. .value{
  1413. font-size: 50rpx;
  1414. font-weight: bold;
  1415. margin-top: 15rpx;
  1416. }
  1417. }
  1418. }
  1419. }
  1420. .bottom{
  1421. background-color: #fff;
  1422. margin-top: 15rpx;
  1423. .bottom_name{
  1424. font-size: 26rpx;
  1425. color: $uni-primary;
  1426. padding: 21rpx 24rpx;
  1427. }
  1428. .bottom_list{
  1429. .bottom_list_item{
  1430. border-top: 1rpx solid #DEDEDE;
  1431. padding: 30rpx 30rpx 30rpx 30rpx;
  1432. display: flex;
  1433. justify-content: space-between;
  1434. align-items: center;
  1435. font-size: 24rpx;
  1436. position: relative;
  1437. .value{
  1438. max-width: 380rpx;
  1439. color: #333;
  1440. display: flex;
  1441. align-items: center;
  1442. text-align: justify;
  1443. margin-right: 30rpx;
  1444. }
  1445. .no-mar{
  1446. margin-right:0 !important;
  1447. }
  1448. .icon{
  1449. position: absolute;
  1450. right: 20rpx;
  1451. }
  1452. }
  1453. }
  1454. }
  1455. }
  1456. .fixed-btn{
  1457. position: fixed;
  1458. bottom: 100rpx;
  1459. left: 0;
  1460. }
  1461. }
  1462. </style>