listHome.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759
  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. inputDialog.value.close()
  232. }
  233. // 确定撤销
  234. function dialogInputConfirm(){
  235. if(!recallValue.value){
  236. uni.showToast({
  237. icon: 'none',
  238. title: '撤销原因不能为空'
  239. });
  240. return
  241. }
  242. uni.showLoading({
  243. title: "加载中",
  244. mask: true,
  245. });
  246. let query={
  247. incident: {...dataItem.value, ...{cancelRemark: recallValue.value}}
  248. }
  249. api_repairCancel(query).then(res=>{
  250. uni.hideLoading();
  251. if(res.state==200){
  252. inputDialog.value.close()
  253. uni.showToast({
  254. icon: 'none',
  255. title: '撤销成功'
  256. });
  257. getList(0);
  258. }else{
  259. uni.showToast({
  260. icon: 'none',
  261. title: res.msg
  262. });
  263. }
  264. })
  265. }
  266. // 撤销
  267. function recall(data){
  268. dataItem.value = data
  269. inputDialog.value.open()
  270. }
  271. // 评价
  272. function handler(type, data){
  273. rowData.value = data
  274. popup.value.open()
  275. let postData = {
  276. key: "incident_degree",
  277. type: "list"
  278. };
  279. api_getDictionary(postData).then(res => {
  280. res = res || [];
  281. degreeDictionary.value = res
  282. })
  283. }
  284. function closePop(){
  285. rate.value = 3
  286. wxdegreeremark.value = null
  287. popup.value.close()
  288. }
  289. function submit(){
  290. if(!rate.value){
  291. uni.showToast({
  292. icon: 'none',
  293. title: '请选择星级'
  294. });
  295. return;
  296. }
  297. if(!wxdegreeremark.value){
  298. uni.showToast({
  299. icon: 'none',
  300. title: '请输入评价内容'
  301. });
  302. return;
  303. }
  304. let rateData = null
  305. if(rate.value==0){
  306. rateData=degreeDictionary.value[0].id
  307. }else if(rate.value==1){
  308. rateData=degreeDictionary.value[4].id
  309. }else if(rate.value==2){
  310. rateData=degreeDictionary.value[3].id
  311. }else if(rate.value==3){
  312. rateData=degreeDictionary.value[2].id
  313. }else if(rate.value==4){
  314. rateData=degreeDictionary.value[1].id
  315. }else if(rate.value==5){
  316. rateData=degreeDictionary.value[0].id
  317. }
  318. let postData = {
  319. ...rowData.value,
  320. wxdegree: rateData==0?degreeDictionary.value[0]:{id: rateData},
  321. wxdegreeremark: wxdegreeremark.value
  322. }
  323. api_taskresolve({incident:postData}).then(res => {
  324. uni.hideLoading();
  325. if(res.state == 200){
  326. getList(0);
  327. uni.showToast({
  328. icon: 'none',
  329. title: '评价成功',
  330. });
  331. }else{
  332. uni.showToast({
  333. icon: 'none',
  334. title: res.msg || '请求数据失败!'
  335. });
  336. }
  337. })
  338. closePop()
  339. }
  340. // 获取列表信息
  341. function getList(idx){
  342. uni.showLoading({
  343. title: "加载中",
  344. mask: true,
  345. });
  346. dataInfo.idx = idx === undefined ? dataInfo.idx : idx;
  347. if(dataInfo.idx === 0){
  348. dataInfo.list = [];
  349. }
  350. let postData = {
  351. "idx": dataInfo.idx,
  352. "sum": 20,
  353. incident: {
  354. requester: dataInfo.tabActiveId == 0 ? { id: loginUserStore.loginUser.user.id } : undefined,
  355. department: dataInfo.tabActiveId == 1 ? { id: loginUserStore.loginUser.user.dept.id } : undefined,
  356. statesValues: (dataInfo.stateValue === 'close0' || dataInfo.stateValue === 'close1') ? 'close' : (dataInfo.stateValue || undefined),
  357. hasWxdegree: dataInfo.stateValue === 'close0' ? 0 : (dataInfo.stateValue === 'close1' ? 1 : undefined),
  358. repairIncidentType:{
  359. id:''
  360. }
  361. }
  362. }
  363. if(dataInfo.tabActiveId == 1){
  364. postData.incident.repairIncidentType.id = repairIncident.value.id
  365. }
  366. if(JSON.stringify(postData.incident.statesValues) === '{}'){
  367. delete postData.incident.statesValues
  368. }
  369. api_incident(postData).then(res => {
  370. uni.hideLoading();
  371. uni.stopPullDownRefresh();
  372. if(res.status == 200){
  373. let list = res.list || [];
  374. if(list.length){
  375. dataInfo.hasMore = true;
  376. dataInfo.list = dataInfo.idx === 0 ? list : dataInfo.list.concat(list);
  377. }else{
  378. dataInfo.hasMore = false;
  379. }
  380. }else{
  381. uni.showToast({
  382. icon: 'none',
  383. title: res.msg || '请求数据失败!'
  384. });
  385. }
  386. })
  387. // getCount(postData.incident);
  388. }
  389. // 获取列表数量
  390. function getCount(incident = {}){
  391. let postData = {
  392. wxCount: 'true',
  393. incidentList: [],
  394. }
  395. dataInfo.tabs.forEach(v => {
  396. postData.incidentList.push({...incident, ...{statusId: v.id || undefined}});
  397. })
  398. api_incident_count(postData).then(res => {
  399. if(res.state == 200){
  400. let myData = res.data || [];
  401. dataInfo.tabs.forEach((v, i) => {
  402. v.num = myData[i];
  403. })
  404. }else{
  405. uni.showToast({
  406. icon: 'none',
  407. title: res.msg || '请求数据失败!'
  408. });
  409. }
  410. })
  411. }
  412. // 初始化
  413. function onLoadFn(){
  414. getTabs();
  415. }
  416. // 获取配置项
  417. function getConfig(){
  418. api_systemConfiguration({
  419. idx: 0,
  420. sum: 9999,
  421. }).then(res=>{
  422. let data = res.list
  423. deptRepair.value = data.find(i=>i.keyconfig=='deptRepair')
  424. publicRepair.value = data.find(i=>i.keyconfig=='publicRepair')
  425. onLoadFn();
  426. })
  427. }
  428. onLoad((option) => {
  429. getConfig();
  430. for(let i = 0; i<7; i++){
  431. setTabbar(i)
  432. }
  433. })
  434. onShow((option) =>{
  435. let data = uni.getStorageSync('homeRepairList')
  436. if(data){
  437. data = JSON.parse(data)
  438. dataInfo.tabActiveId = Number(data.type)
  439. dataInfo.stateValue = data.value
  440. dataInfo.evtFilter.category = data.value
  441. repositorySearchStore.setRepositoryListSearchData(dataInfo.evtFilter)
  442. }else{
  443. dataInfo.stateValue = 0
  444. repositorySearchStore.clearRepositoryListSearchData()
  445. }
  446. onLoadFn();
  447. })
  448. onHide(_=>{
  449. uni.setStorageSync('homeRepairList','')
  450. repositorySearchStore.clearRepositoryListSearchData()
  451. })
  452. onTabItemTap(e => {
  453. // onLoadFn();
  454. })
  455. onPullDownRefresh(() => {
  456. // getList(0)
  457. })
  458. onReachBottom(() => {
  459. dataInfo.idx += 1;
  460. if (dataInfo.hasMore) {
  461. getList(); // 当触底时加载更多数据
  462. }
  463. })
  464. </script>
  465. <style scoped>
  466. >>> .uni-popup__wrapper{
  467. width: 80%;
  468. padding: 40rpx;
  469. }
  470. </style>
  471. <style lang="scss" scoped>
  472. page{
  473. height: calc(100vh - var(--window-bottom));
  474. }
  475. .ch-class{
  476. text-align: center;
  477. font-size: 32rpx;
  478. }
  479. .popup-content{
  480. padding: 40rpx;
  481. }
  482. .incidentList{
  483. display: flex;
  484. flex-direction: column;
  485. justify-content: space-between;
  486. .head{
  487. height: 88rpx;
  488. display: flex;
  489. position: fixed;
  490. z-index: 99;
  491. width: 100%;
  492. background-color: #fff;
  493. font-size: 30rpx;
  494. .tab{
  495. flex: 1;
  496. display: flex;
  497. justify-content: center;
  498. align-items: center;
  499. border-bottom: 4rpx solid transparent;
  500. &.active{
  501. color: $uni-primary;
  502. border-color: $uni-primary;
  503. }
  504. }
  505. .filter{
  506. width: 84rpx;
  507. display: flex;
  508. justify-content: center;
  509. align-items: center;
  510. .newicon-shaixuan{
  511. font-size: 36rpx;
  512. color: #2C2C2C;
  513. }
  514. }
  515. }
  516. .body{
  517. margin-bottom: var(--window-bottom);
  518. margin-top: 88rpx;
  519. border-top: 6rpx solid #EBEBEB;
  520. .body_item{
  521. border-bottom: 8rpx solid #EBEBEB;
  522. position: relative;
  523. .sign-style{
  524. position: absolute;
  525. right: 0;
  526. top: -25rpx;
  527. .img-box{
  528. position: relative;
  529. .img-url1{
  530. width: 70rpx;
  531. height: 70rpx;
  532. background-image: url('../../static/img/jiaobiao1.png');
  533. }
  534. .img-url2{
  535. width: 70rpx;
  536. height: 70rpx;
  537. background-image: url('../../static/img/jiaobiao2.png');
  538. }
  539. .img-name{
  540. position: absolute;
  541. right: 8rpx;
  542. top: 0;
  543. color: #fff;
  544. font-size: 24rpx;
  545. }
  546. }
  547. }
  548. .body_item_head{
  549. word-break: break-all;
  550. text-align: justify;
  551. text-align: left;
  552. margin: 24rpx;
  553. font-size: 30rpx;
  554. }
  555. .body_item_content{
  556. border-top: 1rpx solid #D8D8D8;
  557. padding: 24rpx 24rpx 24rpx 48rpx;
  558. .body_item_content_p{
  559. color: #6A6A6A;
  560. font-size: 26rpx;
  561. display: flex;
  562. justify-content: space-between;
  563. align-items: center;
  564. margin-bottom: 24rpx;
  565. &:last-of-type{
  566. margin-bottom: 0;
  567. }
  568. .name{
  569. flex: 1;
  570. }
  571. .status{
  572. padding: 4rpx 10rpx;
  573. border-radius: 20rpx;
  574. background-color: #DBE8FE;
  575. font-size: 22rpx;
  576. color: #006CF9;
  577. }
  578. .icon_all{
  579. .mic-filled,
  580. .image-filled
  581. {
  582. margin-left: 16rpx;
  583. }
  584. }
  585. }
  586. }
  587. .body_item_foot{
  588. border-top: 1rpx solid #D8D8D8;
  589. font-size: 26rpx;
  590. padding: 24rpx;
  591. .foot_info{
  592. display: flex;
  593. justify-content: space-between;
  594. align-items: center;
  595. .phone-filled{
  596. margin-left: 5rpx;
  597. }
  598. }
  599. }
  600. }
  601. }
  602. .zanwu{
  603. box-sizing: border-box;
  604. margin-bottom: var(--window-bottom);
  605. margin-top: 88rpx;
  606. border-top: 6rpx solid #EBEBEB;
  607. height: calc(100vh - var(--window-bottom) - 88rpx);
  608. display: flex;
  609. justify-content: center;
  610. background-color: #F7F7F7;
  611. .newicon-zanwu{
  612. font-size: 256rpx;
  613. color: #D6D6D6;
  614. margin-top: 140rpx;
  615. }
  616. }
  617. .popup-content{
  618. .form_item{
  619. display: flex;
  620. align-items: center;
  621. padding-top: 24rpx;
  622. min-height: 86rpx;
  623. position: relative;
  624. .chunk{
  625. width: 100%;
  626. height: 70rpx;
  627. line-height: 70rpx;
  628. text-align: center;
  629. background: #F7F8FA;
  630. box-shadow: 0px 3px 6px 1px rgba(0,0,0,0.16);
  631. border-radius: 10rpx;
  632. }
  633. &.column{
  634. height: auto;
  635. flex-direction: column;
  636. align-items: flex-start;
  637. .import-rep{
  638. padding: 5rpx 10rpx;
  639. border-radius: 50rpx;
  640. background: #d1fcd5;
  641. color: #49b856;
  642. font-size: 24rpx;
  643. }
  644. .title{
  645. margin-right: 0;
  646. }
  647. .title-width{
  648. width: 100%;
  649. }
  650. .title-fl-sb{
  651. display: flex;
  652. justify-content: space-between;
  653. width: 100%;
  654. }
  655. .value{
  656. margin-top: 10rpx;
  657. // padding-left: 20rpx;
  658. box-sizing: border-box;
  659. }
  660. .tips{
  661. padding: 24rpx;
  662. text-align: center;
  663. font-size: 22rpx;
  664. color: #909399;
  665. width: 100%;
  666. box-sizing: border-box;
  667. }
  668. }
  669. .title{
  670. font-size: 26rpx;
  671. display: flex;
  672. align-items: center;
  673. margin-right: 12rpx;
  674. flex-shrink: 0;
  675. &.select{
  676. width: calc(5em + 20rpx);
  677. }
  678. }
  679. .value{
  680. width: 100%;
  681. &.category{
  682. width: 100%;
  683. display: flex;
  684. justify-content: space-between;
  685. align-items: center;
  686. .categoryName{
  687. font-size: 26rpx;
  688. color: #555;
  689. flex: 1;
  690. }
  691. .newicon-weibiaoti2010104{
  692. color: $uni-primary;
  693. margin-left: 24rpx;
  694. }
  695. }
  696. .imgTips{
  697. color: #909399;
  698. font-size: 22rpx;
  699. margin-top: 10rpx;
  700. }
  701. }
  702. .item-input{
  703. border: 1px solid #DBDBDB;
  704. height: 70rpx;
  705. line-height: 70rpx;
  706. padding: 0 10rpx;
  707. border-radius: 4rpx;
  708. width: 100%;
  709. font-size: 14px;
  710. }
  711. .icon{
  712. position: absolute;
  713. right: 20rpx;
  714. color: #49b856;
  715. }
  716. }
  717. }
  718. }
  719. </style>