myRepair.vue 38 KB

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