listHome.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762
  1. <template>
  2. <view class="incidentList">
  3. <view class="head">
  4. <view class="tab" :class="{active: tab.id === dataInfo.tabActiveId}" v-for="tab in dataInfo.tabs" :key="tab.id" @click="clickTab(tab.id)">
  5. {{tab.name}}<text v-if="tab.num !== ''">({{tab.num}})</text>
  6. </view>
  7. <view class="filter" @click="filterClick">
  8. <text class="newicon newicon-shaixuan"></text>
  9. </view>
  10. </view>
  11. <view class="body" v-if="dataInfo.list.length">
  12. <view class="body_item" v-for="data in dataInfo.list" :key="data.id" @click.stop="toIncidentDetail(data)">
  13. <view class="body_item_head ellipsis-multiline">
  14. {{data.description}}
  15. </view>
  16. <view class="body_item_content">
  17. <view class="body_item_content_p" v-if="data.place || data.houseNumber">
  18. <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>
  19. <view class="status" :style="stateStyle(data.state)">{{data.state ? data.state.name : ''}}</view>
  20. </view>
  21. <view class="body_item_content_p" v-if="data.rsPrice">
  22. <text class="name ellipsis">维修总价:{{data.rsPrice}}</text>
  23. </view>
  24. <view class="body_item_content_p">
  25. <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>
  26. </view>
  27. <view class="body_item_content_p" v-if="data.currentLog && data.currentLog.logType.value=='overtime'">
  28. <text class="name ellipsis">维修说明:{{data.overtimeRemark}}</text>
  29. </view>
  30. </view>
  31. <view class="body_item_foot">
  32. <view class="foot_info">
  33. <view class="name">维修人员:{{data.assigneeName || '暂无'}}</view>
  34. <text class="date">{{formatDate(data.startDate, 'yyyy-MM-dd HH:mm')}}</text>
  35. </view>
  36. <view class="btns">
  37. <button v-if="!data.wxdegree && (data.state.name=='待评价'|| data.state.name=='已关闭')" @click.stop="handler('changeUser', data)" type="default" class="primaryButton btn">评价</button>
  38. <button v-if="data.state.value=='accept'" @click.stop="recall(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. <repairsFilter v-if="dataInfo.isFilter" @cancelEmit="cancelFilter" @confirmEmit="conformFilter" :evt="dataInfo.evtFilter"></repairsFilter>
  57. <IncidentAttachment v-if="dataInfo.isAttachment" @knowEmit="knowAttachment" :incidentData="dataInfo.incidentData"></IncidentAttachment>
  58. <uni-popup ref="popup" background-color="#fff" type="center" :before-close="true">
  59. <view class="popup-content">
  60. <view class="form_item column">
  61. <view class="title"><text class="required newicon newicon-bitian"></text>星级:</view>
  62. <uni-rate class="value" v-model="rate" />
  63. </view>
  64. <view class="form_item column">
  65. <view class="title"><text class="required newicon newicon-bitian"></text>内容:</view>
  66. <uni-easyinput class="value" type="textarea" v-model="wxdegreeremark" placeholder="请输入评价内容"/>
  67. </view>
  68. </view>
  69. <view class="foot_common_btns">
  70. <button @click="closePop" type="default" class="cancelButton btn">取消</button>
  71. <button @click="submit" type="default" class="primaryButton btn">提交</button>
  72. </view>
  73. </uni-popup>
  74. <uni-popup ref="inputDialog" background-color="#fff" type="center" :before-close="true">
  75. <view class="ch-class">撤销原因</view>
  76. <view class="popup-content">
  77. <input type="text" focus placeholder="请输入撤销原因" v-model="recallValue">
  78. </view>
  79. <view class="foot_common_btns">
  80. <button @click="closeDialog" size="mini" type="default" class="primaryButton btn">取消</button>
  81. <button @click="dialogInputConfirm" size="mini" type="default" class="primaryButton btn">确定</button>
  82. </view>
  83. </uni-popup>
  84. </view>
  85. </template>
  86. <script setup>
  87. import repairsFilter from '@/components/repairsFilter.vue';
  88. import IncidentAttachment from '@/components/IncidentAttachment.vue';
  89. import { startOfDay, endOfDay, format, add } from 'date-fns'
  90. import { ref, reactive, computed } from 'vue'
  91. import { onLoad, onShow, onHide, onPullDownRefresh, onReachBottom, onTabItemTap } from '@dcloudio/uni-app'
  92. import { api_getDictionary, api_incident, api_incident_count, api_systemConfiguration, api_incidentTask, api_taskresolve, api_repairCancel } from "@/http/api.js"
  93. import { filterFormatDate } from '@/filters/filterFormatDate.js'
  94. import { computedPriorityStyle } from '@/filters/computedPriorityStyle.js'
  95. import { computedStateStyle } from '@/filters/computedStateStyle.js'
  96. import { computedCurrentLogOverTime } from '@/filters/computedCurrentLogOverTime.js'
  97. import { defaultColor } from '@/static/js/theme.js'
  98. import { useSetTitle } from '@/share/useSetTitle.js'
  99. import { useMakePhoneCall } from '@/share/useMakePhoneCall.js'
  100. import { useLoginUserStore } from '@/stores/loginUser'
  101. import { useIncidentNumStore } from '@/stores/incidentNum'
  102. import { useIncidentListSearchStore } from '@/stores/incidentListSearch'
  103. import { repositoryListSearchStore } from '@/stores/repositorySearch'
  104. import { useSetTabbar } from '@/share/useSetTabbar.js'
  105. useSetTitle();
  106. const repositorySearchStore = repositoryListSearchStore();
  107. const loginUserStore = useLoginUserStore();
  108. const incidentNumStore = useIncidentNumStore();
  109. const incidentListSearchStore = useIncidentListSearchStore();
  110. const { formatDate } = filterFormatDate();
  111. const { priorityStyle } = computedPriorityStyle();
  112. const { stateStyle } = computedStateStyle();
  113. const { currentLogOverTime } = computedCurrentLogOverTime();
  114. const { makePhoneCall } = useMakePhoneCall();
  115. const { setTabbar } = useSetTabbar();
  116. // 主题颜色
  117. const primaryColor = ref(defaultColor)
  118. const popup = ref(null);//弹框
  119. const assignFlag = ref(false);//指派权限
  120. const qiangdan = ref(false);//接单权限
  121. const deptRepair = ref({});//科内报修
  122. const publicRepair = ref({});//公共报修
  123. const recallValue = ref(null) //撤销原因
  124. const inputDialog = ref(null)
  125. const dataItem = ref(null)
  126. const degreeDictionary = ref(null); //星级字典
  127. const rowData = ref(null); //选择的数据
  128. const isSubmit = ref(false);
  129. const rate = ref(3);//星级
  130. const wxdegreeremark = ref(null);//评价内容
  131. // 判断是否显示接单按钮
  132. const computedReceive = computed(() => (data) => {
  133. let inUser = data.currentLog && data.currentLog.workerId == loginUserStore.loginUser.user.id;
  134. let inGroup = false;
  135. loginUserStore.loginUser.user.group.forEach(item => {
  136. if(data.currentLog){
  137. if (item.id == data.currentLog.groupId) {
  138. inGroup = true;
  139. }
  140. }
  141. })
  142. return data.state.value === 'pending' && (inUser || inGroup) && qiangdan.value;
  143. })
  144. // 转换协同人
  145. const computedSynergetic = computed(() => (synergetic) => {
  146. return (synergetic && synergetic.length) ? synergetic.map(v => v.name).join(',') : ''
  147. })
  148. const repairIncident = ref(null);
  149. // 数据
  150. const dataInfo = reactive({
  151. tabs: [{id: 0, name: '我的报修', value: 'all', num: ''},],
  152. tabActiveId: 0,//当前选择的tab
  153. list: [],//工单列表
  154. idx: 0,//页码
  155. hasMore: true,//是否有更多数据
  156. isFilter: false,//筛选框开关
  157. isAttachment: false,//图片和录音开关
  158. incidentId: undefined,
  159. stateValue:0,
  160. evtFilter: {
  161. hospital: {},
  162. selected: 'todoingAll',
  163. area: {id: 0, area: '全部'},
  164. category: {id: 0, category: '全部'},
  165. acceptDate: [],
  166. },//筛选框数据
  167. })
  168. // 工单详情
  169. function toIncidentDetail(data){
  170. uni.navigateTo({
  171. url: `/pages/repair/repairsDetail?incidentId=${data.id}`
  172. })
  173. }
  174. // 获取tab选项
  175. function getTabs(){
  176. uni.showLoading({
  177. title: "加载中",
  178. mask: true,
  179. });
  180. let postData = {
  181. "key": 'repair_incident_type',
  182. "type": "list",
  183. };
  184. if(deptRepair.value.valueconfig==1){
  185. api_getDictionary(postData).then(res => {
  186. res = res || [];
  187. repairIncident.value = res.find(i=>i.value=='dept')
  188. getList(0);
  189. })
  190. dataInfo.tabs = [
  191. {id: 0, name: '我的报修', value: 'all', num: ''},
  192. {id: 1, name: '科内报修', value: '2', num: ''}
  193. ]
  194. }else{
  195. getList(0);
  196. dataInfo.tabs = [
  197. {id: 0, name: '我的报修', value: 'all', num: ''},
  198. ]
  199. }
  200. }
  201. // 点击tab
  202. function clickTab(tabId){
  203. dataInfo.tabActiveId = tabId;
  204. getList(0);
  205. }
  206. // 点击筛选
  207. function filterClick(){
  208. dataInfo.isFilter = true;
  209. }
  210. // 确认筛选
  211. function conformFilter(evtFilter){
  212. dataInfo.stateValue = evtFilter.category;
  213. dataInfo.isFilter = false;
  214. getList(0);
  215. }
  216. // 关闭筛选
  217. function cancelFilter(){
  218. dataInfo.isFilter = false;
  219. }
  220. // 点击图片和录音
  221. function attachmentClick(incidentData){
  222. dataInfo.incidentData = incidentData;
  223. dataInfo.isAttachment = true;
  224. }
  225. // 返回图片和录音
  226. function knowAttachment(){
  227. dataInfo.isAttachment = false;
  228. }
  229. // 关闭撤销
  230. function closeDialog(){
  231. recallValue.value = null
  232. inputDialog.value.close()
  233. }
  234. // 确定撤销
  235. function dialogInputConfirm(){
  236. if(!recallValue.value){
  237. uni.showToast({
  238. icon: 'none',
  239. title: '撤销原因不能为空'
  240. });
  241. return
  242. }
  243. uni.showLoading({
  244. title: "加载中",
  245. mask: true,
  246. });
  247. let query={
  248. incident: {...dataItem.value, ...{cancelRemark: recallValue.value}}
  249. }
  250. api_repairCancel(query).then(res=>{
  251. uni.hideLoading();
  252. if(res.state==200){
  253. inputDialog.value.close()
  254. recallValue.value = null
  255. uni.showToast({
  256. icon: 'none',
  257. title: '撤销成功'
  258. });
  259. getList(0);
  260. }else{
  261. uni.showToast({
  262. icon: 'none',
  263. title: res.msg
  264. });
  265. }
  266. })
  267. }
  268. // 撤销
  269. function recall(data){
  270. dataItem.value = data
  271. recallValue.value = null
  272. inputDialog.value.open()
  273. }
  274. // 评价
  275. function handler(type, data){
  276. rowData.value = data
  277. popup.value.open()
  278. let postData = {
  279. key: "incident_degree",
  280. type: "list"
  281. };
  282. api_getDictionary(postData).then(res => {
  283. res = res || [];
  284. degreeDictionary.value = res
  285. })
  286. }
  287. function closePop(){
  288. rate.value = 3
  289. wxdegreeremark.value = null
  290. popup.value.close()
  291. }
  292. function submit(){
  293. if(!rate.value){
  294. uni.showToast({
  295. icon: 'none',
  296. title: '请选择星级'
  297. });
  298. return;
  299. }
  300. if(!wxdegreeremark.value){
  301. uni.showToast({
  302. icon: 'none',
  303. title: '请输入评价内容'
  304. });
  305. return;
  306. }
  307. let rateData = null
  308. if(rate.value==0){
  309. rateData=degreeDictionary.value[0].id
  310. }else if(rate.value==1){
  311. rateData=degreeDictionary.value[4].id
  312. }else if(rate.value==2){
  313. rateData=degreeDictionary.value[3].id
  314. }else if(rate.value==3){
  315. rateData=degreeDictionary.value[2].id
  316. }else if(rate.value==4){
  317. rateData=degreeDictionary.value[1].id
  318. }else if(rate.value==5){
  319. rateData=degreeDictionary.value[0].id
  320. }
  321. let postData = {
  322. ...rowData.value,
  323. wxdegree: rateData==0?degreeDictionary.value[0]:{id: rateData},
  324. wxdegreeremark: wxdegreeremark.value
  325. }
  326. api_taskresolve({incident:postData}).then(res => {
  327. uni.hideLoading();
  328. if(res.state == 200){
  329. getList(0);
  330. uni.showToast({
  331. icon: 'none',
  332. title: '评价成功',
  333. });
  334. }else{
  335. uni.showToast({
  336. icon: 'none',
  337. title: res.msg || '请求数据失败!'
  338. });
  339. }
  340. })
  341. closePop()
  342. }
  343. // 获取列表信息
  344. function getList(idx){
  345. uni.showLoading({
  346. title: "加载中",
  347. mask: true,
  348. });
  349. dataInfo.idx = idx === undefined ? dataInfo.idx : idx;
  350. if(dataInfo.idx === 0){
  351. dataInfo.list = [];
  352. }
  353. let postData = {
  354. "idx": dataInfo.idx,
  355. "sum": 20,
  356. incident: {
  357. requester: dataInfo.tabActiveId == 0 ? { id: loginUserStore.loginUser.user.id } : undefined,
  358. department: dataInfo.tabActiveId == 1 ? { id: loginUserStore.loginUser.user.dept.id } : undefined,
  359. statesValues: (dataInfo.stateValue === 'close0' || dataInfo.stateValue === 'close1') ? 'close' : (dataInfo.stateValue || undefined),
  360. hasWxdegree: dataInfo.stateValue === 'close0' ? 0 : (dataInfo.stateValue === 'close1' ? 1 : undefined),
  361. repairIncidentType:{
  362. id:''
  363. }
  364. }
  365. }
  366. if(dataInfo.tabActiveId == 1){
  367. postData.incident.repairIncidentType.id = repairIncident.value.id
  368. }
  369. if(JSON.stringify(postData.incident.statesValues) === '{}'){
  370. delete postData.incident.statesValues
  371. }
  372. api_incident(postData).then(res => {
  373. uni.hideLoading();
  374. uni.stopPullDownRefresh();
  375. if(res.status == 200){
  376. let list = res.list || [];
  377. if(list.length){
  378. dataInfo.hasMore = true;
  379. dataInfo.list = dataInfo.idx === 0 ? list : dataInfo.list.concat(list);
  380. }else{
  381. dataInfo.hasMore = false;
  382. }
  383. }else{
  384. uni.showToast({
  385. icon: 'none',
  386. title: res.msg || '请求数据失败!'
  387. });
  388. }
  389. })
  390. // getCount(postData.incident);
  391. }
  392. // 获取列表数量
  393. function getCount(incident = {}){
  394. let postData = {
  395. wxCount: 'true',
  396. incidentList: [],
  397. }
  398. dataInfo.tabs.forEach(v => {
  399. postData.incidentList.push({...incident, ...{statusId: v.id || undefined}});
  400. })
  401. api_incident_count(postData).then(res => {
  402. if(res.state == 200){
  403. let myData = res.data || [];
  404. dataInfo.tabs.forEach((v, i) => {
  405. v.num = myData[i];
  406. })
  407. }else{
  408. uni.showToast({
  409. icon: 'none',
  410. title: res.msg || '请求数据失败!'
  411. });
  412. }
  413. })
  414. }
  415. // 初始化
  416. function onLoadFn(){
  417. getTabs();
  418. }
  419. // 获取配置项
  420. function getConfig(){
  421. api_systemConfiguration({
  422. idx: 0,
  423. sum: 9999,
  424. }).then(res=>{
  425. let data = res.list
  426. deptRepair.value = data.find(i=>i.keyconfig=='deptRepair')
  427. publicRepair.value = data.find(i=>i.keyconfig=='publicRepair')
  428. onLoadFn();
  429. })
  430. }
  431. onLoad((option) => {
  432. getConfig();
  433. for(let i = 0; i<7; i++){
  434. setTabbar(i)
  435. }
  436. })
  437. onShow((option) =>{
  438. let data = uni.getStorageSync('homeRepairList')
  439. if(data){
  440. data = JSON.parse(data)
  441. dataInfo.tabActiveId = Number(data.type)
  442. dataInfo.stateValue = data.value
  443. dataInfo.evtFilter.category = data.value
  444. repositorySearchStore.setRepositoryListSearchData(dataInfo.evtFilter)
  445. }else{
  446. dataInfo.stateValue = 0
  447. repositorySearchStore.clearRepositoryListSearchData()
  448. }
  449. onLoadFn();
  450. })
  451. onHide(_=>{
  452. uni.setStorageSync('homeRepairList','')
  453. repositorySearchStore.clearRepositoryListSearchData()
  454. })
  455. onTabItemTap(e => {
  456. // onLoadFn();
  457. })
  458. onPullDownRefresh(() => {
  459. // getList(0)
  460. })
  461. onReachBottom(() => {
  462. dataInfo.idx += 1;
  463. if (dataInfo.hasMore) {
  464. getList(); // 当触底时加载更多数据
  465. }
  466. })
  467. </script>
  468. <style scoped>
  469. >>> .uni-popup__wrapper{
  470. width: 80%;
  471. padding: 40rpx;
  472. }
  473. </style>
  474. <style lang="scss" scoped>
  475. page{
  476. height: calc(100vh - var(--window-bottom));
  477. }
  478. .ch-class{
  479. text-align: center;
  480. font-size: 32rpx;
  481. }
  482. .popup-content{
  483. padding: 40rpx;
  484. }
  485. .incidentList{
  486. display: flex;
  487. flex-direction: column;
  488. justify-content: space-between;
  489. .head{
  490. height: 88rpx;
  491. display: flex;
  492. position: fixed;
  493. z-index: 99;
  494. width: 100%;
  495. background-color: #fff;
  496. font-size: 30rpx;
  497. .tab{
  498. flex: 1;
  499. display: flex;
  500. justify-content: center;
  501. align-items: center;
  502. border-bottom: 4rpx solid transparent;
  503. &.active{
  504. color: $uni-primary;
  505. border-color: $uni-primary;
  506. }
  507. }
  508. .filter{
  509. width: 84rpx;
  510. display: flex;
  511. justify-content: center;
  512. align-items: center;
  513. .newicon-shaixuan{
  514. font-size: 36rpx;
  515. color: #2C2C2C;
  516. }
  517. }
  518. }
  519. .body{
  520. margin-bottom: var(--window-bottom);
  521. margin-top: 88rpx;
  522. border-top: 6rpx solid #EBEBEB;
  523. .body_item{
  524. border-bottom: 8rpx solid #EBEBEB;
  525. position: relative;
  526. .sign-style{
  527. position: absolute;
  528. right: 0;
  529. top: -25rpx;
  530. .img-box{
  531. position: relative;
  532. .img-url1{
  533. width: 70rpx;
  534. height: 70rpx;
  535. background-image: url('../../static/img/jiaobiao1.png');
  536. }
  537. .img-url2{
  538. width: 70rpx;
  539. height: 70rpx;
  540. background-image: url('../../static/img/jiaobiao2.png');
  541. }
  542. .img-name{
  543. position: absolute;
  544. right: 8rpx;
  545. top: 0;
  546. color: #fff;
  547. font-size: 24rpx;
  548. }
  549. }
  550. }
  551. .body_item_head{
  552. word-break: break-all;
  553. text-align: justify;
  554. text-align: left;
  555. margin: 24rpx;
  556. font-size: 30rpx;
  557. }
  558. .body_item_content{
  559. border-top: 1rpx solid #D8D8D8;
  560. padding: 24rpx 24rpx 24rpx 48rpx;
  561. .body_item_content_p{
  562. color: #6A6A6A;
  563. font-size: 26rpx;
  564. display: flex;
  565. justify-content: space-between;
  566. align-items: center;
  567. margin-bottom: 24rpx;
  568. &:last-of-type{
  569. margin-bottom: 0;
  570. }
  571. .name{
  572. flex: 1;
  573. }
  574. .status{
  575. padding: 4rpx 10rpx;
  576. border-radius: 20rpx;
  577. background-color: #DBE8FE;
  578. font-size: 22rpx;
  579. color: #006CF9;
  580. }
  581. .icon_all{
  582. .mic-filled,
  583. .image-filled
  584. {
  585. margin-left: 16rpx;
  586. }
  587. }
  588. }
  589. }
  590. .body_item_foot{
  591. border-top: 1rpx solid #D8D8D8;
  592. font-size: 26rpx;
  593. padding: 24rpx;
  594. .foot_info{
  595. display: flex;
  596. justify-content: space-between;
  597. align-items: center;
  598. .phone-filled{
  599. margin-left: 5rpx;
  600. }
  601. }
  602. }
  603. }
  604. }
  605. .zanwu{
  606. box-sizing: border-box;
  607. margin-bottom: var(--window-bottom);
  608. margin-top: 88rpx;
  609. border-top: 6rpx solid #EBEBEB;
  610. height: calc(100vh - var(--window-bottom) - 88rpx);
  611. display: flex;
  612. justify-content: center;
  613. background-color: #F7F7F7;
  614. .newicon-zanwu{
  615. font-size: 256rpx;
  616. color: #D6D6D6;
  617. margin-top: 140rpx;
  618. }
  619. }
  620. .popup-content{
  621. .form_item{
  622. display: flex;
  623. align-items: center;
  624. padding-top: 24rpx;
  625. min-height: 86rpx;
  626. position: relative;
  627. .chunk{
  628. width: 100%;
  629. height: 70rpx;
  630. line-height: 70rpx;
  631. text-align: center;
  632. background: #F7F8FA;
  633. box-shadow: 0px 3px 6px 1px rgba(0,0,0,0.16);
  634. border-radius: 10rpx;
  635. }
  636. &.column{
  637. height: auto;
  638. flex-direction: column;
  639. align-items: flex-start;
  640. .import-rep{
  641. padding: 5rpx 10rpx;
  642. border-radius: 50rpx;
  643. background: #d1fcd5;
  644. color: #49b856;
  645. font-size: 24rpx;
  646. }
  647. .title{
  648. margin-right: 0;
  649. }
  650. .title-width{
  651. width: 100%;
  652. }
  653. .title-fl-sb{
  654. display: flex;
  655. justify-content: space-between;
  656. width: 100%;
  657. }
  658. .value{
  659. margin-top: 10rpx;
  660. // padding-left: 20rpx;
  661. box-sizing: border-box;
  662. }
  663. .tips{
  664. padding: 24rpx;
  665. text-align: center;
  666. font-size: 22rpx;
  667. color: #909399;
  668. width: 100%;
  669. box-sizing: border-box;
  670. }
  671. }
  672. .title{
  673. font-size: 26rpx;
  674. display: flex;
  675. align-items: center;
  676. margin-right: 12rpx;
  677. flex-shrink: 0;
  678. &.select{
  679. width: calc(5em + 20rpx);
  680. }
  681. }
  682. .value{
  683. width: 100%;
  684. &.category{
  685. width: 100%;
  686. display: flex;
  687. justify-content: space-between;
  688. align-items: center;
  689. .categoryName{
  690. font-size: 26rpx;
  691. color: #555;
  692. flex: 1;
  693. }
  694. .newicon-weibiaoti2010104{
  695. color: $uni-primary;
  696. margin-left: 24rpx;
  697. }
  698. }
  699. .imgTips{
  700. color: #909399;
  701. font-size: 22rpx;
  702. margin-top: 10rpx;
  703. }
  704. }
  705. .item-input{
  706. border: 1px solid #DBDBDB;
  707. height: 70rpx;
  708. line-height: 70rpx;
  709. padding: 0 10rpx;
  710. border-radius: 4rpx;
  711. width: 100%;
  712. font-size: 14px;
  713. }
  714. .icon{
  715. position: absolute;
  716. right: 20rpx;
  717. color: #49b856;
  718. }
  719. }
  720. }
  721. }
  722. </style>