| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157 |
- <template>
- <view class="container">
- <view class="top_bg"></view>
- <!-- 状态统计区域 后勤管理端 -->
- <view class="top_types2" v-if="btns.includes('工单管理分段器')">
- <view class="top">
- <uni-segmented-control :current="current" :values="items" @clickItem="onClickItem" styleType="text" activeColor="#6FB6B8"></uni-segmented-control>
- </view>
- <view class="bottom">
- <view class="bottom_box">
- <view class="box_num">100</view>
- <view class="box_info">待接单</view>
- </view>
- <view class="bottom_box">
- <view class="box_num">10</view>
- <view class="box_info">维修中</view>
- </view>
- <view class="bottom_box">
- <view class="box_num">50</view>
- <view class="box_info">已超时</view>
- </view>
- <view class="bottom_box">
- <view class="box_num">60</view>
- <view class="box_info">待审核</view>
- </view>
- <view class="bottom_box">
- <view class="box_num">60</view>
- <view class="box_info">已完成</view>
- </view>
- <view class="bottom_box">
- <view class="box_num">60</view>
- <view class="box_info">已关单</view>
- </view>
- </view>
- </view>
- <!-- 状态统计区域 维修师傅端 -->
- <view class="top_types" v-else>
- <view class="types_box">
- <view class="box_num">100</view>
- <view class="box_info">待接单</view>
- </view>
- <view class="types_box">
- <view class="box_num">10</view>
- <view class="box_info">维修中</view>
- </view>
- <view class="types_box">
- <view class="box_num">50</view>
- <view class="box_info">已超时</view>
- </view>
- <view class="types_box">
- <view class="box_num">60</view>
- <view class="box_info">待审核</view>
- </view>
- <view class="types_box" v-if="btns.includes('分段器按钮')">
- <view class="box_num">50</view>
- <view class="box_info">已完成</view>
- </view>
- <view class="types_box" v-if="btns.includes('分段器按钮')">
- <view class="box_num">60</view>
- <view class="box_info">已关单</view>
- </view>
- </view>
- <!-- 订单列表区域 -->
- <view class="body">
- <!-- 每一个订单区域 -->
- <view class="body_item" v-for="item in dataList" :key="item.id">
- <!-- 工单编号 -->
- <view class="item_title">
- <img src="../../static/images/repairsImg/order.png" />
- <view class="title_info">工单编号:{{ item.order }}</view>
- </view>
- <!-- 报修时间 -->
- <view class="item_time">
- <view class="time_msg">
- 报修时间:
- <text>{{ item.time }}</text>
- </view>
- <view class="time_type" v-if="item.type === 1">待接单</view>
- <view class="time_type color_type" v-if="item.type === 2">维修中</view>
- <view class="time_type color_type2" v-if="item.type === 3">待审核</view>
- <view class="time_type color_type3" v-if="item.type === 4">已完成</view>
- <view class="time_type" v-if="item.type === 5">待确认</view>
- <view class="time_type color_type4" v-if="item.type === 6">已关单</view>
- </view>
- <!-- 报修姓名 -->
- <view class="item_box">
- <view class="box_key">报修姓名:</view>
- <view class="box_value">{{ item.name }}</view>
- <view class="box_type" v-if="item.overtime">超时未接</view>
- </view>
- <!-- 报修电话 -->
- <view class="item_box">
- <view class="box_key">报修电话:</view>
- <view class="box_value phone" @click="handleCallPhone(item.phone)">
- {{ item.phone }}
- <img src="../../static/images/repairsImg/phone.png" />
- </view>
- </view>
- <!-- 报修区域 -->
- <view class="item_box">
- <view class="box_key">报修区域:</view>
- <view class="box_value">{{ item.area }}</view>
- </view>
- <!-- 详细地址 -->
- <view class="item_box">
- <view class="box_key">详细地址:</view>
- <view class="box_value">{{ item.address }}</view>
- </view>
- <!-- 报修物品 -->
- <view class="item_box">
- <view class="box_key">报修物品:</view>
- <view class="box_value">{{ item.goods }}</view>
- </view>
- <!-- 故障描述 -->
- <view class="item_box">
- <view class="box_key">故障描述:</view>
- <view class="box_value">{{ item.description }}</view>
- </view>
- <!-- 上传图片 -->
- <view class="item_img">
- <view class="img_key">上传图片:</view>
- <img class="img_value" mode="aspectFill" :src="item.img[0]" @click="handleLookImgs(item.img)" />
- </view>
- <!-- 维修师傅 -->
- <view class="item_time" v-if="item.type === 2 || item.type === 3 || item.type === 4 || item.type === 6 || item.type === 5">
- <view class="time_msg">
- 维修师傅:
- <text>{{ item.workerName }}</text>
- </view>
- </view>
- <!-- 师傅电话 -->
- <view class="item_box" v-if="item.type === 2 || item.type === 3 || item.type === 4 || item.type === 6 || item.type === 5">
- <view class="box_key">师傅电话:</view>
- <view class="box_value phone" @click="handleCallPhone(item.workerPhone)">
- {{ item.workerPhone }}
- <img src="../../static/images/repairsImg/phone.png" />
- </view>
- </view>
- <!-- 维修费用 -->
- <view class="item_box" v-if="item.type === 3 || item.type === 4 || item.type === 5">
- <view class="box_key">维修费用:</view>
- <view class="box_value2 phone" @click="checkFeeDetail(item)">
- {{ item.money }}元
- <img src="../../static/images/repairsImg/eye.png" />
- </view>
- </view>
- <!-- 按钮区域 -->
- <view class="item_btn">
- <img v-if="item.type < 3" src="../../static/images/repairsImg/close.png" @click="handleClose" />
- <img class="img" src="../../static/images/repairsImg/help.png" v-if="item.type === 1 && btns.includes('协作')" @click="handleHelp" />
- <view class="btn_box type" v-if="item.type < 3 && btns.includes('延时')" @click="handleDelay">延时</view>
- <view class="btn_box type" v-if="item.type === 1 && btns.includes('接单')" @click="handleOrderReceiving">接单</view>
- <view class="btn_box type2" v-if="item.type === 1 && btns.includes('转单')" @click="handleTransferOrder">转单</view>
- <view class="btn_box type2" v-if="item.type === 1 && btns.includes('派单')" @click="handleSendOrder">派单</view>
- <view class="btn_box type" v-if="item.type === 2 && btns.includes('报价')" @click="handleOffer(item)">报价</view>
- <view class="btn_box type2" v-if="item.type === 2 && btns.includes('维修完成')" @click="handleFinish">维修完成</view>
- <view class="btn_box type" v-if="item.type === 3 && btns.includes('审核')" @click="handleAudit(item.status)">审核</view>
- <view class="btn_box type" v-if="item.type === 5" @click="handleChangeOffer(item)">改价</view>
- <view class="btn_box type2" v-if="item.type === 5" @click="handleLeaveWords">留言</view>
- </view>
- <!-- 关闭按钮弹窗 -->
- <uni-popup ref="popup_close" :is-mask-click="false">
- <view class="popup_close">
- <view
- :class="[{ active: activeIndex === index }, { radius: index === 0 }]"
- class="close_box"
- v-for="(ele, index) in closeList"
- :key="index"
- @click="handleChangeItem(index)"
- >
- {{ ele }}
- </view>
- <view class="close_btn">
- <view class="btn_box cancel" @click="$refs.popup_close[0].close()">取消</view>
- <view class="btn_box confirm" @click="handleCloseConfirm">确定</view>
- </view>
- </view>
- </uni-popup>
- <!-- 留言弹窗 -->
- <uni-popup ref="popup_leaveWords" :is-mask-click="false">
- <view class="pop_leaveWords">
- <view class="leaveWords_title">留言</view>
- <view class="leaveWords_body">
- <textarea placeholder-style="color:#CCCCCC" placeholder="请输入您宝贵的留言" v-model="leaveWords"></textarea>
- </view>
- <view class="leaveWords_btn">
- <view class="btn_box cancel" @click="$refs.popup_leaveWords[0].close()">取消</view>
- <view class="btn_box confirm" @click="handleLeaveWordsConfirm">确定</view>
- </view>
- </view>
- </uni-popup>
- <!-- 维修费用弹窗 -->
- <uni-popup :is-mask-click="false" ref="popup_fee">
- <view class="pop_fee">
- <view class="fee_title">
- 维修费用
- <text @click="$refs.popup_fee[0].close()">×</text>
- </view>
- <view class="fee_content">
- <view class="fee_item" v-for="(element, index2) in goodsList" :key="index2">
- <view class="fee_box">
- 耗材:
- <text>{{ element.name }}</text>
- </view>
- <view class="fee_box">
- 耗材单价:
- <text>{{ element.price }}元</text>
- </view>
- <view class="fee_box">
- 耗材数量:
- <text>{{ element.num }}</text>
- </view>
- <view class="fee_box">
- 耗材费用:
- <text>{{ element.count }}元</text>
- </view>
- </view>
- </view>
- </view>
- </uni-popup>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- // 按钮权限
- btns: [],
- // 留言弹窗输入框绑定数据
- leaveWords: '',
- // 顶部分段器数组
- items: ['团队工单', '个人工单'],
- // 顶部分段器数组当前索引
- current: 0,
- // 关闭按钮弹窗当前索引
- activeIndex: 0,
- // 关闭按钮弹窗选项数组
- closeList: ['重复报单', '不属于维修范围', '已维修完成'],
- // type为 1 是 待接单,type为 2 是维修中,
- // type为 3 是 待审核,type为 4 是已完成,
- // type为 5 是 待确认,type为 6 是已关单,
- dataList: [],
- temList: [
- {
- id: 1,
- order: '656262219626262',
- overtime: true,
- time: '2023.07.05 09:25:26',
- type: 1,
- name: '张三',
- phone: '13659585689',
- area: '行政楼',
- address: '3楼309',
- goods: '电脑',
- description: '水龙头坏了',
- img: [
- 'https://img1.baidu.com/it/u=920310517,1559263161&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
- 'https://13lz.cn/d/file/2021-06-12/f54cce5a0208c756c112407ec6ca1ac0.jpg',
- 'https://inews.gtimg.com/newsapp_bt/0/12555654161/1000'
- ]
- },
- {
- id: 2,
- order: '956262219626262',
- overtime: false,
- time: '2023.07.05 09:25:26',
- type: 2,
- name: '李四',
- phone: '13659585689',
- area: '行政楼',
- address: '3楼309',
- goods: '电脑',
- description: '电脑坏了',
- img: [
- 'https://img1.baidu.com/it/u=920310517,1559263161&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
- 'https://13lz.cn/d/file/2021-06-12/f54cce5a0208c756c112407ec6ca1ac0.jpg',
- 'https://inews.gtimg.com/newsapp_bt/0/12555654161/1000'
- ],
- workerName: '老张',
- workerPhone: '13659585689'
- },
- {
- id: 3,
- order: '956262219626262',
- overtime: false,
- time: '2023.07.05 09:25:26',
- type: 3,
- name: '李四',
- phone: '13659585689',
- area: '行政楼',
- address: '3楼309',
- goods: '电脑',
- description: '电脑坏了',
- img: [
- 'https://img1.baidu.com/it/u=920310517,1559263161&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
- 'https://13lz.cn/d/file/2021-06-12/f54cce5a0208c756c112407ec6ca1ac0.jpg',
- 'https://inews.gtimg.com/newsapp_bt/0/12555654161/1000'
- ],
- workerName: '老张',
- workerPhone: '13659585689',
- money: 10,
- status: 1,
- goodsList: [
- {
- name: '螺丝刀',
- price: 5,
- num: 2,
- count: 10
- }
- ]
- },
- {
- id: 369,
- order: '956262219626262',
- overtime: false,
- time: '2023.07.05 09:25:26',
- type: 3,
- name: '李四',
- phone: '13659585689',
- area: '行政楼',
- address: '3楼309',
- goods: '电脑',
- description: '电脑坏了',
- img: [
- 'https://img1.baidu.com/it/u=920310517,1559263161&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
- 'https://13lz.cn/d/file/2021-06-12/f54cce5a0208c756c112407ec6ca1ac0.jpg',
- 'https://inews.gtimg.com/newsapp_bt/0/12555654161/1000'
- ],
- workerName: '老张',
- workerPhone: '13659585689',
- money: 12,
- status: 2,
- goodsList: [
- {
- name: '螺丝刀',
- price: 5,
- num: 2,
- count: 10
- },
- {
- name: '螺丝',
- price: 1,
- num: 2,
- count: 2
- }
- ]
- }
- ],
- temList2: [
- {
- id: 1,
- order: '656262219626262',
- overtime: true,
- time: '2023.07.05 09:25:26',
- type: 1,
- name: '张三',
- phone: '13659585689',
- area: '行政楼',
- address: '3楼309',
- goods: '电脑',
- description: '水龙头坏了',
- img: [
- 'https://img1.baidu.com/it/u=920310517,1559263161&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
- 'https://13lz.cn/d/file/2021-06-12/f54cce5a0208c756c112407ec6ca1ac0.jpg',
- 'https://inews.gtimg.com/newsapp_bt/0/12555654161/1000'
- ]
- },
- {
- id: 2,
- order: '956262219626262',
- overtime: false,
- time: '2023.07.05 09:25:26',
- type: 2,
- name: '李四',
- phone: '13659585689',
- area: '行政楼',
- address: '3楼309',
- goods: '电脑',
- description: '电脑坏了',
- img: [
- 'https://img1.baidu.com/it/u=920310517,1559263161&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
- 'https://13lz.cn/d/file/2021-06-12/f54cce5a0208c756c112407ec6ca1ac0.jpg',
- 'https://inews.gtimg.com/newsapp_bt/0/12555654161/1000'
- ],
- workerName: '老张',
- workerPhone: '13659585689'
- },
- {
- id: 3,
- order: '956262219626262',
- overtime: false,
- time: '2023.07.05 09:25:26',
- type: 3,
- name: '李四',
- phone: '13659585689',
- area: '行政楼',
- address: '3楼309',
- goods: '电脑',
- description: '电脑坏了',
- img: [
- 'https://img1.baidu.com/it/u=920310517,1559263161&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
- 'https://13lz.cn/d/file/2021-06-12/f54cce5a0208c756c112407ec6ca1ac0.jpg',
- 'https://inews.gtimg.com/newsapp_bt/0/12555654161/1000'
- ],
- workerName: '老张',
- workerPhone: '13659585689',
- money: 50,
- status: 1,
- goodsList: [
- {
- name: '螺丝刀',
- price: 5,
- num: 2,
- count: 10
- }
- ]
- },
- {
- id: 369,
- order: '956262219626262',
- overtime: false,
- time: '2023.07.05 09:25:26',
- type: 3,
- name: '李四',
- phone: '13659585689',
- area: '行政楼',
- address: '3楼309',
- goods: '电脑',
- description: '电脑坏了',
- img: [
- 'https://img1.baidu.com/it/u=920310517,1559263161&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
- 'https://13lz.cn/d/file/2021-06-12/f54cce5a0208c756c112407ec6ca1ac0.jpg',
- 'https://inews.gtimg.com/newsapp_bt/0/12555654161/1000'
- ],
- workerName: '老张',
- workerPhone: '13659585689',
- money: 50,
- status: 2,
- goodsList: [
- {
- name: '螺丝刀',
- price: 5,
- num: 2,
- count: 10
- }
- ]
- },
- {
- id: 4,
- order: '956262219626262',
- overtime: false,
- time: '2023.07.05 09:25:26',
- type: 4,
- name: '李四',
- phone: '13659585689',
- area: '行政楼',
- address: '3楼309',
- goods: '电脑',
- description: '电脑坏了',
- img: [
- 'https://img1.baidu.com/it/u=920310517,1559263161&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
- 'https://13lz.cn/d/file/2021-06-12/f54cce5a0208c756c112407ec6ca1ac0.jpg',
- 'https://inews.gtimg.com/newsapp_bt/0/12555654161/1000'
- ],
- workerName: '老张',
- workerPhone: '13659585689',
- money: 50,
- goodsList: [
- {
- name: '螺丝刀',
- price: 5,
- num: 2,
- count: 10
- },
- {
- name: '螺丝',
- price: 1,
- num: 2,
- count: 2
- }
- ]
- },
- {
- id: 5,
- order: '956262219626262',
- overtime: false,
- time: '2023.07.05 09:25:26',
- type: 5,
- name: '李四',
- phone: '13659585689',
- area: '行政楼',
- address: '3楼309',
- goods: '电脑',
- description: '电脑坏了',
- img: [
- 'https://img1.baidu.com/it/u=920310517,1559263161&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
- 'https://13lz.cn/d/file/2021-06-12/f54cce5a0208c756c112407ec6ca1ac0.jpg',
- 'https://inews.gtimg.com/newsapp_bt/0/12555654161/1000'
- ],
- workerName: '老张',
- workerPhone: '13659585689',
- money: 50,
- goodsList: [
- {
- name: '螺丝刀',
- price: 5,
- num: 2,
- count: 10
- }
- ]
- },
- {
- id: 6,
- order: '956262219626262',
- overtime: false,
- time: '2023.07.05 09:25:26',
- type: 6,
- name: '李四',
- phone: '13659585689',
- area: '行政楼',
- address: '3楼309',
- goods: '电脑',
- description: '电脑坏了',
- img: [
- 'https://img1.baidu.com/it/u=920310517,1559263161&fm=253&fmt=auto&app=138&f=JPEG?w=889&h=500',
- 'https://13lz.cn/d/file/2021-06-12/f54cce5a0208c756c112407ec6ca1ac0.jpg',
- 'https://inews.gtimg.com/newsapp_bt/0/12555654161/1000'
- ],
- workerName: '老张',
- workerPhone: '13659585689',
- money: 50,
- goodsList: [
- {
- name: '螺丝刀',
- price: 5,
- num: 2,
- count: 10
- },
- {
- name: '螺丝',
- price: 1,
- num: 2,
- count: 2
- }
- ]
- }
- ],
- // 维修费用弹窗数组
- goodsList: []
- }
- },
- mounted() {
- console.log('工单管理页面加载')
- const repairsUserInfo = uni.getStorageSync('repairsUserInfo')
- this.btns = repairsUserInfo.btns
- console.log(this.btns)
- if (this.btns.includes('工单管理分段器')) {
- this.dataList = this.temList2
- } else {
- this.dataList = this.temList
- }
- },
- methods: {
- // 留言弹窗确定按钮回调
- handleLeaveWordsConfirm() {
- if (this.leaveWords) {
- uni.showToast({
- title: '留言成功',
- icon: 'success'
- })
- this.$refs.popup_leaveWords[0].close()
- } else {
- uni.showToast({
- title: '请输入留言内容',
- icon: 'none'
- })
- }
- },
- // 关闭弹窗确定按钮回调
- handleCloseConfirm() {
- uni.showModal({
- title: '提示',
- content: '确定关闭订单吗?',
- success: (res) => {
- if (res.confirm) {
- uni.showToast({
- title: '关单成功',
- icon: 'success'
- })
- console.log(this.closeList[this.activeIndex])
- this.$refs.popup_close[0].close()
- }
- }
- })
- },
- // 接单按钮回调
- handleOrderReceiving() {
- uni.showModal({
- content: '确定接单吗?',
- title: '提示',
- success: (res) => {
- if (res.confirm) {
- uni.showToast({
- title: '接单成功',
- icon: 'success'
- })
- }
- }
- })
- },
- // 关闭图标点击回调
- handleClose() {
- this.activeIndex = 0
- this.$refs.popup_close[0].open('center')
- },
- // 关闭按钮弹窗选中按钮时回调
- handleChangeItem(val) {
- this.activeIndex = val
- },
- // 报价按钮回调
- handleOffer(item) {
- let info = encodeURIComponent(JSON.stringify(item))
- uni.navigateTo({
- url: `/pagesRepairs/offer/offer?info=${info}`
- })
- },
- // 改价按钮回调
- handleChangeOffer(item) {
- let info = encodeURIComponent(JSON.stringify(item))
- uni.navigateTo({
- url: `/pagesRepairs/offer/offer?info=${info}&type=1`
- })
- },
- // 维修完成按钮回调
- handleFinish() {
- uni.navigateTo({
- url: '/pagesRepairs/repairRecord/repairRecord'
- })
- },
- // 转单按钮回调
- handleTransferOrder() {
- uni.navigateTo({
- url: '/pagesRepairs/transferOrder/transferOrder'
- })
- },
- // 协作图标点击回调
- handleHelp() {
- uni.navigateTo({
- url: '/pagesRepairs/help/help'
- })
- },
- // 分段器切换回调
- onClickItem(e) {
- if (this.current != e.currentIndex) {
- this.current = e.currentIndex
- console.log(this.current)
- }
- },
- // 留言按钮回调
- handleLeaveWords() {
- this.$refs.popup_leaveWords[0].open('center')
- },
- // 延时按钮回调
- handleDelay() {
- uni.navigateTo({
- url: '/pagesRepairs/delay/delay'
- })
- },
- // 派单按钮回调
- handleSendOrder() {
- uni.navigateTo({
- url: '/pagesRepairs/helpPeople/helpPeople?type=1'
- })
- },
- // 审核按钮回调
- handleAudit(status) {
- console.log(status)
- // 1为转单审核,2为协作审核
- if (status === 1) {
- uni.navigateTo({
- url: '/pagesRepairs/transferOrder/transferOrder?type=1'
- })
- } else if (status === 2) {
- uni.navigateTo({
- url: '/pagesRepairs/help/help?type=1'
- })
- }
- },
- // 查看维修费用回调
- checkFeeDetail(item) {
- // console.log(item)
- this.goodsList = item.goodsList
- this.$refs.popup_fee[0].open('center')
- },
- // 点击电话号码回调
- handleCallPhone(phone) {
- uni.makePhoneCall({
- phoneNumber: phone
- })
- },
- // 点击图片回调
- handleLookImgs(img) {
- // console.log(img)
- uni.previewImage({
- urls: img
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .container {
- width: 100vw;
- height: calc(100vh - 152rpx);
- font-size: 32rpx;
- overflow-y: auto;
- .top_bg {
- height: 165rpx;
- background-color: #6fb6b8;
- }
- .top_types {
- display: flex;
- flex-wrap: wrap;
- justify-content: space-evenly;
- margin: auto;
- margin-top: -100rpx;
- width: 690rpx;
- border-radius: 10rpx;
- box-shadow: 0px 0px 4rpx rgba(0, 0, 0, 0.25);
- background-color: #fff;
- .types_box {
- width: 25%;
- height: 188rpx;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- .box_num {
- font-size: 46rpx;
- color: #ff5733;
- }
- .box_info {
- margin-top: 10rpx;
- font-size: 34rpx;
- }
- }
- }
- .top_types2 {
- box-sizing: border-box;
- margin: auto;
- margin-top: -100rpx;
- padding: 0 30rpx;
- width: 690rpx;
- height: 402rpx;
- border-radius: 10rpx;
- box-shadow: 0px 0px 4rpx rgba(0, 0, 0, 0.25);
- background-color: #fff;
- .top {
- height: 112rpx;
- border-bottom: 1rpx solid #e6e6e6;
- }
- .bottom {
- display: flex;
- flex-wrap: wrap;
- justify-content: space-evenly;
- height: 290rpx;
- .bottom_box {
- width: 25%;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- .box_num {
- font-size: 46rpx;
- color: #ff5733;
- }
- .box_info {
- margin-top: 10rpx;
- font-size: 34rpx;
- }
- }
- }
- }
- .body {
- box-sizing: border-box;
- padding: 0 30rpx 30rpx 30rpx;
- .body_item {
- margin-top: 20rpx;
- border-radius: 11rpx;
- box-shadow: 0 0 8rpx #d9d9d9;
- .item_title {
- display: flex;
- align-items: center;
- padding: 0 30rpx;
- height: 87rpx;
- border-bottom: 1rpx solid #e6e6e6;
- img {
- width: 30rpx;
- height: 30rpx;
- }
- .title_info {
- margin-left: 16rpx;
- // font-size: 28rpx;
- font-size: 32rpx;
- }
- }
- .item_time {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0 30rpx;
- height: 79rpx;
- .time_msg {
- // font-size: 28rpx;
- color: #808080;
- text {
- color: #000000;
- }
- }
- .time_type {
- font-size: 32rpx;
- color: #ff5733;
- }
- .color_type {
- color: #1e7dfb;
- }
- .color_type2 {
- color: #d43030;
- }
- .color_type3 {
- color: #6fb6b8;
- }
- .color_type4 {
- color: #a6a6a6;
- }
- }
- .item_box {
- display: flex;
- padding: 0 30rpx;
- height: 60rpx;
- // font-size: 28rpx;
- .box_key {
- color: #808080;
- }
- .box_value {
- display: flex;
- img {
- margin-left: 10rpx;
- width: 45rpx;
- height: 45rpx;
- }
- }
- .box_type {
- margin-left: auto;
- width: 137rpx;
- height: 47rpx;
- line-height: 47rpx;
- text-align: center;
- border-radius: 136rpx;
- color: #ff5733;
- // font-size: 24rpx;
- font-size: 24rpx;
- border: 1rpx solid #ff5733;
- }
- .box_value2 {
- display: flex;
- img {
- margin-top: -2rpx;
- margin-left: 14rpx;
- width: 46rpx;
- height: 46rpx;
- }
- }
- .phone {
- color: #6fb6b8;
- }
- }
- .item_img {
- display: flex;
- align-items: center;
- padding: 0 30rpx;
- height: 120rpx;
- color: #808080;
- // font-size: 28rpx;
- .img_key {
- }
- .img_value {
- width: 120rpx;
- height: 120rpx;
- border-radius: 14rpx;
- }
- }
- .item_btn {
- display: flex;
- align-items: center;
- justify-content: flex-end;
- padding: 0 30rpx;
- line-height: 153rpx;
- img {
- margin-right: auto;
- margin-top: 45rpx;
- margin-bottom: 40rpx;
- width: 56rpx;
- height: 56rpx;
- }
- .img {
- margin-right: auto;
- margin-left: -55rpx;
- margin-top: 45rpx;
- margin-bottom: 40rpx;
- width: 62rpx;
- height: 62rpx;
- }
- .btn_box {
- display: flex;
- justify-content: center;
- align-items: center;
- margin-left: 16rpx;
- margin-top: 45rpx;
- margin-bottom: 40rpx;
- width: 174rpx;
- height: 68rpx;
- // font-size: 28rpx;
- border-radius: 11rpx;
- }
- .type {
- color: #fff;
- background-color: #6fb6b8;
- }
- .type2 {
- color: #6fb6b8;
- background-color: #fff;
- border: 1rpx solid #6fb6b8;
- }
- }
- .popup_close {
- width: 690rpx;
- border-radius: 19rpx;
- background-color: #fff;
- .close_box {
- height: 100rpx;
- line-height: 100rpx;
- text-align: center;
- font-size: 32rpx;
- border: 1rpx solid #e6e6e6;
- }
- .radius {
- border-radius: 19rpx 19rpx 0 0;
- }
- .active {
- color: #fff;
- background-color: #6fb6b8;
- }
- .close_btn {
- display: flex;
- align-items: center;
- justify-content: space-evenly;
- margin-top: 100rpx;
- height: 121rpx;
- .btn_box {
- display: flex;
- justify-content: center;
- align-items: center;
- width: 203rpx;
- height: 72rpx;
- border-radius: 9rpx;
- font-size: 32rpx;
- }
- .cancel {
- background-color: #e5e5e5;
- color: #6fb6b8;
- }
- .confirm {
- background-color: #6fb6b8;
- color: #fff;
- }
- }
- }
- .pop_leaveWords {
- border-radius: 19rpx;
- background-color: #fff;
- .leaveWords_title {
- display: flex;
- justify-content: center;
- align-items: center;
- width: 690rpx;
- height: 110rpx;
- font-size: 32rpx;
- font-weight: bold;
- border-radius: 19rpx 19rpx 0 0;
- border-bottom: 1rpx solid #e6e6e6;
- }
- .leaveWords_body {
- height: 320rpx;
- textarea {
- box-sizing: border-box;
- margin: 35rpx 40rpx;
- padding: 20rpx;
- width: 610rpx;
- height: 312rpx;
- // font-size: 28rpx;
- border-radius: 14rpx;
- border: 1rpx solid #e6e6e6;
- }
- }
- .leaveWords_btn {
- display: flex;
- align-items: center;
- justify-content: space-evenly;
- height: 121rpx;
- .btn_box {
- display: flex;
- justify-content: center;
- align-items: center;
- width: 203rpx;
- height: 72rpx;
- border-radius: 9rpx;
- font-size: 32rpx;
- }
- .cancel {
- background-color: #e5e5e5;
- color: #6fb6b8;
- }
- .confirm {
- background-color: #6fb6b8;
- color: #fff;
- }
- }
- }
- .pop_fee {
- padding-bottom: 50rpx;
- border-radius: 19rpx;
- background-color: #fff;
- .fee_title {
- display: flex;
- justify-content: space-between;
- align-items: center;
- box-sizing: border-box;
- padding: 0 31rpx 0 42rpx;
- width: 690rpx;
- height: 110rpx;
- font-size: 32rpx;
- font-weight: bold;
- border-radius: 19rpx 19rpx 0 0;
- border-bottom: 1rpx solid #e6e6e6;
- text {
- font-size: 45rpx;
- font-weight: 400;
- color: #808080;
- }
- }
- .fee_content {
- max-height: 50vh;
- overflow-y: auto;
- .fee_item {
- border-bottom: 1rpx solid #e6e6e6;
- .fee_box {
- display: flex;
- align-items: center;
- padding-left: 42rpx;
- height: 80rpx;
- // font-size: 28rpx;
- color: #808080;
- text {
- color: #000000;
- }
- }
- }
- }
- }
- }
- }
- }
- </style>
|