2024-10-09 13:34:36 +08:00
|
|
|
|
<template>
|
2024-10-13 23:24:23 +08:00
|
|
|
|
<view class="container">
|
|
|
|
|
<!--<VNavigationBar style="position: relative;z-index: 99;" leftTitle="true" backgroundColor="rgba(0,0,0,0)" title-color="#fff" title=" "></VNavigationBar>-->
|
|
|
|
|
<view class="bodyTopBg"></view>
|
|
|
|
|
<view class="body">
|
2024-11-15 15:39:21 +08:00
|
|
|
|
<view style="text-align: left;margin: 0 32rpx" >
|
|
|
|
|
<text class="company-text">{{ companyInfo.simpleName || companyInfo.corpName }}</text>
|
|
|
|
|
</view>
|
2024-10-24 18:14:26 +08:00
|
|
|
|
<view class="userInfoBox" >
|
|
|
|
|
<image @click="showUserDetail" style="width: 104rpx;height: 104rpx;border-radius: 50%;" v-if="''==userInfo.avatar || null == userInfo.avatar" :src="defaultAvatar" mode="scaleToFill" @error="avatarErr"></image>
|
|
|
|
|
<image @click="showUserDetail" style="width: 104rpx;height: 104rpx;border-radius: 50%;" v-else :src="imgUrlPrex+userInfo.avatar" mode="scaleToFill" @error="avatarErr"></image>
|
|
|
|
|
<view class="userInfo" @click="showUserDetail">
|
2024-10-16 17:14:49 +08:00
|
|
|
|
<text class="userName">{{ userInfo.nickname }}</text>
|
2024-10-16 18:35:15 +08:00
|
|
|
|
<text class="userType">{{ userInfo.roleNames }}</text>
|
2024-11-21 11:52:03 +08:00
|
|
|
|
<!-- <text class="userType" v-if="ifLeader">班组长</text>-->
|
2024-10-15 23:40:11 +08:00
|
|
|
|
</view>
|
2024-10-24 18:14:26 +08:00
|
|
|
|
<view class="msg-box" @click="gotoMsg">
|
|
|
|
|
<image mode="aspectFita" src="@/pages-home/static/msg.png" style="width: 48rpx;height: 48rpx"></image>
|
2024-12-09 18:10:47 +08:00
|
|
|
|
<view class="msg-num" >{{noReadNum}}</view>
|
2024-10-24 18:14:26 +08:00
|
|
|
|
</view>
|
|
|
|
|
<image @click="showUserDetail" style="width: 48rpx;height: 48rpx" src="/static/icons/more.png" mode="aspectFita"></image>
|
2024-10-15 23:40:11 +08:00
|
|
|
|
</view>
|
2024-10-24 15:06:24 +08:00
|
|
|
|
<!-- 服务顾问才能开单-->
|
|
|
|
|
<view class="body-top-grid" v-if="userInfo.roleCodes.includes('service_advisor')">
|
2024-10-13 23:24:23 +08:00
|
|
|
|
<view v-for="(item, index) in menuList" :key="index" class="body-top-item" @click="gotoPage(item)">
|
|
|
|
|
<view>
|
|
|
|
|
<view class="title">{{ item.title }}</view>
|
|
|
|
|
<view class="desc">{{ item.desc }}</view>
|
|
|
|
|
<image class="btn" mode="aspectFit" src="@/static/icons/homeMenuIcon/menuBtn.png"></image>
|
|
|
|
|
</view>
|
|
|
|
|
<image :src="item.icon" class="icon" mode="aspectFit"></image>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2024-10-22 15:06:49 +08:00
|
|
|
|
<!-- 维修工角色-->
|
2024-11-21 11:52:03 +08:00
|
|
|
|
<view class="body-card" v-if="userInfo.roleCodes.includes('repair_staff')" @click="workerTodo">
|
|
|
|
|
<view class="title">单据查看<text class="formValue" >全部</text><u-icon color="#999" name="arrow-right" size="12"></u-icon></view>
|
2024-10-22 15:06:49 +08:00
|
|
|
|
<view class="title-box">
|
|
|
|
|
<view class="title-box-item">
|
2024-11-21 11:52:03 +08:00
|
|
|
|
<view class="titleDesc">配件申请单</view>
|
2024-10-22 16:36:43 +08:00
|
|
|
|
<view class="titleNumber">{{ workerNumObj.submitNum }}</view>
|
2024-10-22 15:06:49 +08:00
|
|
|
|
<image class="titleImg" src="@/pages-home/static/up.png" ></image>
|
|
|
|
|
</view>
|
2024-11-21 11:52:03 +08:00
|
|
|
|
<!-- <view class="title-box-item">-->
|
|
|
|
|
<!-- <view class="titleDesc">未通过</view>-->
|
|
|
|
|
<!-- <view class="titleNumber">{{ workerNumObj.noAllowNum }}</view>-->
|
|
|
|
|
<!-- <image class="titleImg" src="@/pages-home/static/no.png" ></image>-->
|
|
|
|
|
<!-- </view>-->
|
2024-10-22 16:36:43 +08:00
|
|
|
|
<!-- <view class="title-box-item">-->
|
|
|
|
|
<!-- <view class="titleDesc">已通过</view>-->
|
|
|
|
|
<!-- <view class="titleNumber">{{ workerNumObj.allowNum }}</view>-->
|
|
|
|
|
<!-- <image class="titleImg" src="@/pages-home/static/alow.png" ></image>-->
|
|
|
|
|
<!-- </view>-->
|
2024-10-22 15:06:49 +08:00
|
|
|
|
<view class="title-box-item">
|
2024-10-22 16:36:43 +08:00
|
|
|
|
<view class="titleDesc">待确认领料</view>
|
|
|
|
|
<view class="titleNumber">{{ workerNumObj.waitingReceiveNum }}</view>
|
|
|
|
|
<image class="titleImg" src="@/pages-home/static/waitingReceiveNum.png" ></image>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="title-box-item">
|
|
|
|
|
<view class="titleDesc">待确认退料</view>
|
|
|
|
|
<view class="titleNumber">{{ workerNumObj.waitingBackNum }}</view>
|
|
|
|
|
<image class="titleImg" src="@/pages-home/static/waitingBackNum.png" ></image>
|
2024-10-22 15:06:49 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2024-10-24 18:14:26 +08:00
|
|
|
|
<!-- 通知公告 -->
|
|
|
|
|
<view class="notice-dom" v-if="noticeNum>0" @click="gotoNotice">
|
|
|
|
|
<view class="notice-box">
|
|
|
|
|
<image class="left-img" src="@/pages-home/static/notice.png" ></image>
|
|
|
|
|
<view class="center-text">你有{{noticeNum}}条来自平台的通知公告</view>
|
|
|
|
|
<u-icon style="width: 20rpx" color="#999" name="arrow-right" size="12"></u-icon>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2024-11-15 16:25:48 +08:00
|
|
|
|
<!-- 总检角色和维修业务管理员 -->
|
2024-11-18 18:05:20 +08:00
|
|
|
|
<view class="orderCount" v-if="userInfo.roleCodes.includes('general_inspection') || userInfo.roleCodes.includes('weixiu')">
|
2025-01-08 13:52:13 +08:00
|
|
|
|
<view class="dl-float-view">累计</view>
|
2024-12-12 14:08:40 +08:00
|
|
|
|
<view class="orderCountItem" @click="viewOrder(bossNum.workingIdList)">
|
2024-11-18 18:05:20 +08:00
|
|
|
|
<text class="label">维修中</text>
|
|
|
|
|
<text class="value">{{ bossNum.workingNum }}</text>
|
|
|
|
|
</view>
|
2024-12-09 18:10:47 +08:00
|
|
|
|
<!-- <view class="line"></view>-->
|
2024-12-12 14:08:40 +08:00
|
|
|
|
<view class="orderCountItem" @click="viewOrder(bossNum.noPayIdList)">
|
2024-12-09 18:10:47 +08:00
|
|
|
|
<text class="label">未结算</text>
|
|
|
|
|
<text class="value">{{ bossNum.noPayNum }}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- <view class="line"></view>-->
|
2024-12-12 14:08:40 +08:00
|
|
|
|
<view class="orderCountItem" @click="viewOrder(bossNum.inCompanyIdList)">
|
2024-11-18 18:05:20 +08:00
|
|
|
|
<text class="label">在厂数</text>
|
|
|
|
|
<text class="value">{{ bossNum.inCompanyNum }}</text>
|
|
|
|
|
</view>
|
2024-12-09 18:10:47 +08:00
|
|
|
|
<!-- <view class="orderCountItem">-->
|
|
|
|
|
<!-- <text class="label">进厂数</text>-->
|
|
|
|
|
<!-- <text class="value">{{ bossNum.newOrderNum }}</text>-->
|
|
|
|
|
<!-- </view>-->
|
|
|
|
|
<!-- <!– <view class="line"></view>–>-->
|
|
|
|
|
<!-- <view class="orderCountItem">-->
|
|
|
|
|
<!-- <text class="label">已竣工</text>-->
|
|
|
|
|
<!-- <text class="value">{{ bossNum.overNum }}</text>-->
|
|
|
|
|
<!-- </view>-->
|
|
|
|
|
<!-- <!– <view class="line"></view>–>-->
|
|
|
|
|
<!-- <view class="orderCountItem">-->
|
|
|
|
|
<!-- <text class="label">已交车</text>-->
|
|
|
|
|
<!-- <text class="value">{{ bossNum.giveCusNum }}</text>-->
|
|
|
|
|
<!-- </view>-->
|
2024-11-18 18:05:20 +08:00
|
|
|
|
</view>
|
2024-11-15 16:25:48 +08:00
|
|
|
|
<view v-if="userInfo.roleCodes.includes('general_inspection') || userInfo.roleCodes.includes('weixiu')">
|
2024-12-09 18:10:47 +08:00
|
|
|
|
<!-- <view class="body-top-tab" >-->
|
|
|
|
|
<!-- <view v-for="(item, index) in timePicker" @click="activeTab(index)" :key="index"-->
|
|
|
|
|
<!-- :class="{ active: active === index }"-->
|
|
|
|
|
<!-- class="body-top-tab-item" style="font-weight: bold">-->
|
|
|
|
|
<!-- {{ item }}-->
|
|
|
|
|
<!-- <view v-if="index === active" class="activeLine"></view>-->
|
|
|
|
|
<!-- </view>-->
|
|
|
|
|
<!-- </view>-->
|
|
|
|
|
<!-- <view class="orderCount" style="margin-bottom: 0" v-if="active==2">-->
|
|
|
|
|
<!-- <uni-datetime-picker v-model="range" type="daterange" @maskClick="maskClick" />-->
|
|
|
|
|
<!-- </view>-->
|
|
|
|
|
<!-- <view class="body-top-tab" style="margin-bottom: 0" v-if="active==2">-->
|
|
|
|
|
<!-- <view v-for="(item, index) in timePickerSon" @click="activeTabSon(index)" :key="index"-->
|
|
|
|
|
<!-- :class="{ active: activeSon === index }"-->
|
|
|
|
|
<!-- class="body-top-tab-item">-->
|
|
|
|
|
<!-- {{ item }}-->
|
|
|
|
|
<!-- <view v-if="index === activeSon" class="activeLine"></view>-->
|
|
|
|
|
<!-- </view>-->
|
|
|
|
|
<!-- </view>-->
|
2024-11-15 16:25:48 +08:00
|
|
|
|
<view class="orderCount" >
|
2025-01-08 13:52:13 +08:00
|
|
|
|
<view class="dl-float-view">当日</view>
|
2024-12-12 14:08:40 +08:00
|
|
|
|
<view class="orderCountItem" @click="viewOrder(bossNum.newOrderIdList)">
|
2024-12-09 18:10:47 +08:00
|
|
|
|
<text class="label">进厂数</text>
|
2024-11-18 18:05:20 +08:00
|
|
|
|
<text class="value">{{ bossNum.newOrderNum }}</text>
|
2024-11-15 16:25:48 +08:00
|
|
|
|
</view>
|
2024-12-09 18:10:47 +08:00
|
|
|
|
<!-- <view class="line"></view>-->
|
2024-12-12 14:08:40 +08:00
|
|
|
|
<view class="orderCountItem" @click="viewOrder(bossNum.overIdList)">
|
2024-12-09 18:10:47 +08:00
|
|
|
|
<text class="label">已竣工</text>
|
2024-11-18 18:05:20 +08:00
|
|
|
|
<text class="value">{{ bossNum.overNum }}</text>
|
|
|
|
|
</view>
|
2024-12-09 18:10:47 +08:00
|
|
|
|
<!-- <view class="line"></view>-->
|
2024-12-12 14:08:40 +08:00
|
|
|
|
<view class="orderCountItem" @click="viewOrder(bossNum.giveCusIdList)">
|
2024-11-18 18:05:20 +08:00
|
|
|
|
<text class="label">已交车</text>
|
|
|
|
|
<text class="value">{{ bossNum.giveCusNum }}</text>
|
2024-11-15 16:25:48 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2024-10-23 22:15:34 +08:00
|
|
|
|
<!-- 服务顾问角色 -->
|
2024-12-16 14:25:54 +08:00
|
|
|
|
<view class="orderCount" v-if="userInfo.roleCodes.includes('service_advisor') || userInfo.roleCodes.includes('weixiu')|| userInfo.roleCodes.includes('general_inspection')" >
|
|
|
|
|
<view class="orderCountItem" style="line-height: 90rpx" @click="serviceWork">
|
2024-12-12 14:08:40 +08:00
|
|
|
|
<view class="label">待审批配件单<view class="number-box">{{serviceNum}}</view></view>
|
2024-10-23 22:15:34 +08:00
|
|
|
|
</view>
|
2024-12-09 18:10:47 +08:00
|
|
|
|
<!-- <view class="orderCountItem">-->
|
|
|
|
|
<!-- <view class="label">待办工单<view class="number-box">{{total}}</view></view>-->
|
|
|
|
|
<!-- </view>-->
|
2024-10-23 22:15:34 +08:00
|
|
|
|
</view>
|
2024-12-09 18:10:47 +08:00
|
|
|
|
<view class="orderCount">
|
2024-12-16 14:25:54 +08:00
|
|
|
|
<view class="orderCountItem" style="line-height: 90rpx" @click="waitingWork">
|
2024-12-09 18:10:47 +08:00
|
|
|
|
<view class="label">待办工单<view class="number-box">{{total}}</view></view>
|
2024-10-13 23:24:23 +08:00
|
|
|
|
</view>
|
2024-12-09 18:10:47 +08:00
|
|
|
|
</view>
|
|
|
|
|
<view class="todoListBox">
|
|
|
|
|
<!-- <view class="title">-->
|
|
|
|
|
<!-- 待办工单-->
|
|
|
|
|
<!-- <text class="titleDesc">当前共-->
|
|
|
|
|
<!-- <text class="titleCount">{{total}}</text>-->
|
|
|
|
|
<!-- 个工单需要处理-->
|
|
|
|
|
<!-- </text>-->
|
|
|
|
|
<!-- </view>-->
|
2024-10-13 23:24:23 +08:00
|
|
|
|
<view class="todoList">
|
2024-12-09 18:10:47 +08:00
|
|
|
|
<!-- <view class="body-top-tab" v-if="userInfo.roleCodes.includes('general_inspection') || userInfo.roleCodes.includes('weixiu')">-->
|
|
|
|
|
<!-- <view class="body-top-tab-item">-->
|
|
|
|
|
<!-- <picker @change="bindCusFromChange" :value="cusFromIndex" :range="cusFromList">-->
|
|
|
|
|
<!-- <view class="uni-input">{{cusFromList[cusFromIndex]}}</view>-->
|
|
|
|
|
<!-- </picker>-->
|
|
|
|
|
<!-- </view>-->
|
|
|
|
|
<!-- <view class="line"></view>-->
|
|
|
|
|
<!-- <view class="body-top-tab-item">-->
|
|
|
|
|
<!-- <picker @change="bindRepairTypeChange" :value="repairTypeIndex" :range="repairTypeList">-->
|
|
|
|
|
<!-- <view class="uni-input">{{repairTypeList[repairTypeIndex]}}</view>-->
|
|
|
|
|
<!-- </picker>-->
|
|
|
|
|
<!-- </view>-->
|
|
|
|
|
<!-- </view>-->
|
|
|
|
|
<scroll-view v-if="userInfo.roleCodes.includes('general_inspection') || userInfo.roleCodes.includes('weixiu')" scroll-y="true" style="height:100%" class="itemContent" @scrolltolower="onReachBottomCus"
|
2024-11-18 20:02:18 +08:00
|
|
|
|
refresher-enabled @refresherrefresh="onRefresherrefresh" :refresher-triggered="isTriggered">
|
|
|
|
|
<order-card :userInfo="userInfo" v-for="(item, index) in orderList" :key="index" :order="item" @childEvent="onRefresherrefresh" @doVoid="doVoidReq" @getOrder="openFile" @startWork="startWork" @addProj="addProj"></order-card>
|
|
|
|
|
<view style="text-align: center" v-if="orderList.length==0">
|
|
|
|
|
<image class="" src="@/static/images/nothing.png" ></image>
|
|
|
|
|
</view>
|
|
|
|
|
</scroll-view>
|
|
|
|
|
<scroll-view v-else scroll-y="true" style="height: 100%" class="itemContent" @scrolltolower="onReachBottomCus"
|
2024-10-17 18:05:11 +08:00
|
|
|
|
refresher-enabled @refresherrefresh="onRefresherrefresh" :refresher-triggered="isTriggered">
|
2024-11-15 15:39:21 +08:00
|
|
|
|
<order-card :userInfo="userInfo" v-for="(item, index) in orderList" :key="index" :order="item" @childEvent="onRefresherrefresh" @doVoid="doVoidReq" @getOrder="openFile" @startWork="startWork" @addProj="addProj"></order-card>
|
2024-10-18 18:45:07 +08:00
|
|
|
|
<view style="text-align: center" v-if="orderList.length==0">
|
|
|
|
|
<image class="" src="@/static/images/nothing.png" ></image>
|
|
|
|
|
</view>
|
2024-10-17 18:05:11 +08:00
|
|
|
|
</scroll-view>
|
2024-10-13 23:24:23 +08:00
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
2024-11-04 17:05:12 +08:00
|
|
|
|
<project-picker ref="proj" @confirm="projConfirm"></project-picker>
|
2024-12-09 18:10:47 +08:00
|
|
|
|
<tabBarVue :title="myText" msg="1" ref="tarBar" @socketSuccess="socketSuccess"></tabBarVue>
|
2024-11-04 17:55:08 +08:00
|
|
|
|
<!-- 提示窗示例 -->
|
|
|
|
|
<uni-popup ref="alertDialog" type="dialog">
|
2024-12-09 18:10:47 +08:00
|
|
|
|
<uni-popup-dialog type="success" cancelText="线下告知" confirmText="去签字" title="系统提示" content="客户是否在厂进行签字确认?" @confirm="dialogConfirm"
|
2024-11-04 17:55:08 +08:00
|
|
|
|
@close="dialogClose"></uni-popup-dialog>
|
|
|
|
|
</uni-popup>
|
2024-11-12 19:14:21 +08:00
|
|
|
|
<!-- 提示窗示例 -->
|
|
|
|
|
<uni-popup ref="addProjDialog" type="dialog">
|
|
|
|
|
<uni-popup-dialog type="success" cancelText="修改已有项目" confirmText="新增项目" title="系统提示" content="是否需要新增项目?" @confirm="addProjDialogConfirm"
|
|
|
|
|
@close="cancelDialogClose"></uni-popup-dialog>
|
|
|
|
|
</uni-popup>
|
2024-11-04 17:55:08 +08:00
|
|
|
|
<!-- 输入框示例 -->
|
|
|
|
|
<uni-popup ref="inputDialog" type="dialog">
|
|
|
|
|
<uni-popup-dialog ref="inputClose" mode="input" title="线下告知" value=""
|
|
|
|
|
placeholder="请填入告知方式!" @confirm="dialogInputConfirm"></uni-popup-dialog>
|
|
|
|
|
</uni-popup>
|
2024-11-08 16:38:00 +08:00
|
|
|
|
<!-- 作废modal框-->
|
|
|
|
|
<view >
|
|
|
|
|
<u-modal showCancelButton @cancel="doVoidCancel" @confirm = "doVoidConfirm" :show="show" :title="title">
|
|
|
|
|
<input type="text" v-model="voidData.remark" placeholder="请输入作废原因" >
|
|
|
|
|
</u-modal>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- 普通弹窗---拍照上传 -->
|
|
|
|
|
<uni-popup ref="popup" background-color="#fff">
|
|
|
|
|
<view class="popup-content">
|
|
|
|
|
<view class="dl-avatar-box">
|
|
|
|
|
<uni-file-picker :value="fileList" :sizeType="sizeType" @select="afterRead" @delete="deleteFile" limit="9" title="请上传诊断维修单和车辆维修前照片"></uni-file-picker>
|
|
|
|
|
</view>
|
|
|
|
|
<button type="primary" @click="receiveOrder">保存</button>
|
|
|
|
|
</view>
|
|
|
|
|
</uni-popup>
|
2024-10-13 23:24:23 +08:00
|
|
|
|
</view>
|
2024-10-09 13:34:36 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2024-10-13 23:24:23 +08:00
|
|
|
|
import tabBarVue from '@/components/tabBar/tabBar.vue'
|
|
|
|
|
import VNavigationBar from '@/components/VNavigationBar.vue'
|
|
|
|
|
import OrderCard from "@/components/orderCard.vue";
|
2024-11-04 17:05:12 +08:00
|
|
|
|
import ProjectPicker from "@/components/projectPicker.vue";
|
2024-10-17 18:05:11 +08:00
|
|
|
|
import request from '@/utils/request';
|
2024-10-18 21:44:30 +08:00
|
|
|
|
import {formatTimestamp,getOrderStatusText,builderOrder,saveTicketsRecords} from "@/utils/utils";
|
2024-11-08 16:38:00 +08:00
|
|
|
|
import config from "@/config";
|
|
|
|
|
import upload from "@/utils/upload";
|
2024-10-16 17:14:49 +08:00
|
|
|
|
import {
|
|
|
|
|
getToken,
|
2024-10-17 15:22:37 +08:00
|
|
|
|
getUserInfo,
|
|
|
|
|
getStrData,
|
2024-11-04 17:05:12 +08:00
|
|
|
|
getTenantId,
|
2024-11-04 17:55:08 +08:00
|
|
|
|
setJSONData,
|
2024-11-18 20:02:18 +08:00
|
|
|
|
getJSONData,
|
|
|
|
|
getStorageWithExpiry,
|
|
|
|
|
setStorageWithExpiry
|
2024-10-16 17:14:49 +08:00
|
|
|
|
} from '@/utils/auth'
|
2024-10-13 23:24:23 +08:00
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
OrderCard,
|
|
|
|
|
tabBarVue,
|
2024-11-04 17:05:12 +08:00
|
|
|
|
ProjectPicker,
|
2024-10-13 23:24:23 +08:00
|
|
|
|
VNavigationBar
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
2024-11-08 16:38:00 +08:00
|
|
|
|
//上传的图片数组
|
|
|
|
|
fileList: [],
|
|
|
|
|
sizeType:['compressed'],
|
|
|
|
|
show:false,
|
|
|
|
|
title:'作废',
|
|
|
|
|
voidData:{},
|
|
|
|
|
takeOrderId:'',
|
2024-10-16 17:14:49 +08:00
|
|
|
|
imgUrlPrex:config.baseImageUrl,
|
2024-10-15 23:40:11 +08:00
|
|
|
|
userInfo: {
|
2024-10-16 17:14:49 +08:00
|
|
|
|
avatar: undefined,
|
2024-10-18 18:45:07 +08:00
|
|
|
|
nickname: ''
|
2024-10-15 23:40:11 +08:00
|
|
|
|
},
|
2024-11-18 18:05:20 +08:00
|
|
|
|
//时间可选项
|
|
|
|
|
timePicker:['当日','累计','自定义时间'],
|
|
|
|
|
//时间子可选项
|
|
|
|
|
timePickerSon:['当月','近三个月','近六个月'],
|
2024-11-15 16:25:48 +08:00
|
|
|
|
active:0,
|
2024-11-18 18:05:20 +08:00
|
|
|
|
activeSon:0,
|
2024-10-13 23:24:23 +08:00
|
|
|
|
menuList: [
|
|
|
|
|
{
|
|
|
|
|
title: '新建工单',
|
|
|
|
|
desc: '直接添加客户订单',
|
|
|
|
|
icon: require('@/static/icons/homeMenuIcon/menu1.png'),
|
|
|
|
|
path: '/pages-order/addOrder/addOrder'
|
|
|
|
|
},
|
2024-10-18 18:45:07 +08:00
|
|
|
|
{
|
|
|
|
|
title: '预约开单',
|
|
|
|
|
desc: '查询预约记录',
|
|
|
|
|
icon: require('@/static/icons/homeMenuIcon/menu1.png'),
|
|
|
|
|
path: '/pages-order/appointOrder/appointOrder'
|
|
|
|
|
}
|
2024-10-13 23:24:23 +08:00
|
|
|
|
],
|
|
|
|
|
bannerIndex: 0,
|
|
|
|
|
shopList: [],
|
|
|
|
|
bannerList: [],
|
|
|
|
|
richTextHtml: null,
|
2024-10-17 18:05:11 +08:00
|
|
|
|
pageNo: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
total: 0,
|
|
|
|
|
//下来刷新状态
|
2024-10-22 15:06:49 +08:00
|
|
|
|
isTriggered:true,
|
2024-10-13 23:24:23 +08:00
|
|
|
|
orderList: [
|
2024-10-15 23:40:11 +08:00
|
|
|
|
],
|
2024-10-22 16:36:43 +08:00
|
|
|
|
//维修工处理配件申请单数量
|
|
|
|
|
workerNumObj:{
|
|
|
|
|
submitNum:0,
|
|
|
|
|
allowNum:0,
|
|
|
|
|
noAllowNum:0,
|
|
|
|
|
waitingReceiveNum:0,
|
|
|
|
|
waitingBackNum:0,
|
|
|
|
|
},
|
2024-10-23 22:15:34 +08:00
|
|
|
|
//服务顾问待处理数量
|
|
|
|
|
serviceNum:0,
|
2024-12-09 18:10:47 +08:00
|
|
|
|
//总检查看维修中、已竣工的工单数量
|
2024-10-24 15:06:24 +08:00
|
|
|
|
bossNum:{
|
|
|
|
|
workingNum:0,
|
2024-12-12 14:08:40 +08:00
|
|
|
|
workingIdList:[],
|
2024-11-18 18:05:20 +08:00
|
|
|
|
inCompanyNum:0,
|
2024-12-12 14:08:40 +08:00
|
|
|
|
inCompanyIdList:[],
|
2024-11-18 18:05:20 +08:00
|
|
|
|
newOrderNum:0,
|
2024-12-12 14:08:40 +08:00
|
|
|
|
newOrderIdList:[],
|
2024-11-18 18:05:20 +08:00
|
|
|
|
overNum:0,
|
2024-12-12 14:08:40 +08:00
|
|
|
|
overIdList:[],
|
2024-12-09 18:10:47 +08:00
|
|
|
|
giveCusNum:0,
|
2024-12-12 14:08:40 +08:00
|
|
|
|
giveCusIdList:[],
|
|
|
|
|
noPayNum:0,
|
|
|
|
|
noPayIdList:0
|
2024-10-24 15:06:24 +08:00
|
|
|
|
},
|
2024-10-24 18:14:26 +08:00
|
|
|
|
defaultAvatar: require('@/static/icons/avatar.png'),
|
|
|
|
|
//未读消息数量
|
|
|
|
|
noReadNum:0,
|
|
|
|
|
//通知公告数量
|
|
|
|
|
noticeNum:0,
|
2024-11-04 17:05:12 +08:00
|
|
|
|
//选中的维修单id
|
|
|
|
|
ticketId: null,
|
|
|
|
|
//新加的维修项目
|
|
|
|
|
selectedProj: [],
|
2024-11-04 17:55:08 +08:00
|
|
|
|
//告知客户的内容
|
|
|
|
|
tellCusText:"",
|
2024-11-13 17:47:41 +08:00
|
|
|
|
ifLeader:false,
|
2024-11-15 15:39:21 +08:00
|
|
|
|
//企业信息
|
|
|
|
|
companyInfo:{},
|
2024-11-18 18:05:20 +08:00
|
|
|
|
//日期默认选中范围
|
|
|
|
|
range: ['2021-02-01', '2021-03-28'],
|
2024-11-18 20:02:18 +08:00
|
|
|
|
//维修项目可选值
|
|
|
|
|
repairTypeList:['按维修类别'],
|
|
|
|
|
//维修项目可选值--值
|
|
|
|
|
repairTypeValueList:[''],
|
|
|
|
|
// 维修项目选中下标
|
|
|
|
|
repairTypeIndex:0,
|
|
|
|
|
//客户来源可选值
|
|
|
|
|
cusFromList:['按客户来源'],
|
|
|
|
|
//客户来源可选值---值
|
|
|
|
|
cusFromValueList:[''],
|
|
|
|
|
// 客户来源选中下标
|
|
|
|
|
cusFromIndex:0,
|
2024-12-09 18:10:47 +08:00
|
|
|
|
//有下角菜单显示文字
|
|
|
|
|
myText:"工单",
|
2024-10-13 23:24:23 +08:00
|
|
|
|
}
|
|
|
|
|
},
|
2024-11-18 18:05:20 +08:00
|
|
|
|
watch: {
|
|
|
|
|
range(newval) {
|
|
|
|
|
if(this.active==2){
|
|
|
|
|
this.getBossTodo()
|
|
|
|
|
}
|
|
|
|
|
console.log('范围选:', this.range);
|
|
|
|
|
},
|
|
|
|
|
},
|
2024-10-17 15:22:37 +08:00
|
|
|
|
onLoad(){
|
|
|
|
|
if(!getToken()){
|
|
|
|
|
uni.reLaunch({
|
|
|
|
|
url: '/pages/login/login'
|
|
|
|
|
})
|
|
|
|
|
}else{
|
2024-11-15 15:39:21 +08:00
|
|
|
|
this.companyInfo = getJSONData("companyInfo")
|
2024-11-18 20:02:18 +08:00
|
|
|
|
//查2个数据字典备用---客户注册方式-cus_sign_type、维修业务分类-repair_type
|
|
|
|
|
this.initDict("repair_type")
|
|
|
|
|
this.initDict("cus_sign_type")
|
2024-10-17 15:22:37 +08:00
|
|
|
|
if(!this.$msgSocket){
|
|
|
|
|
this.$startMsgSocket(getTenantId(),getStrData("userId"))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-10-16 18:35:15 +08:00
|
|
|
|
onShow() {
|
2024-10-16 17:14:49 +08:00
|
|
|
|
if(!getToken()){
|
|
|
|
|
uni.reLaunch({
|
|
|
|
|
url: '/pages/login/login'
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
//直接取缓存中的用户信息
|
|
|
|
|
this.userInfo = getUserInfo()
|
2024-11-13 17:47:41 +08:00
|
|
|
|
this.ifLeader = getStrData('ifLeader')
|
2024-10-24 18:14:26 +08:00
|
|
|
|
this.getNoReadNum()
|
|
|
|
|
this.getNoticeList()
|
2024-10-18 18:45:07 +08:00
|
|
|
|
this.onRefresherrefresh()
|
2024-10-22 16:36:43 +08:00
|
|
|
|
if(this.userInfo.roleCodes.includes('repair_staff')){
|
|
|
|
|
//维修工
|
|
|
|
|
this.getWorkerTodo()
|
2024-10-23 22:15:34 +08:00
|
|
|
|
}else if(this.userInfo.roleCodes.includes('service_advisor')){
|
|
|
|
|
//服务顾问
|
|
|
|
|
this.getServiceTodo()
|
2024-10-24 15:06:24 +08:00
|
|
|
|
}else if(this.userInfo.roleCodes.includes('weixiu') ||this.userInfo.roleCodes.includes('general_inspection')){
|
|
|
|
|
//总检或管理员
|
2024-11-18 18:05:20 +08:00
|
|
|
|
this.setChooseDate("nowMonth")
|
2024-10-24 15:06:24 +08:00
|
|
|
|
this.getBossTodo()
|
2024-12-09 18:10:47 +08:00
|
|
|
|
this.myText="我的"
|
2024-11-15 16:58:06 +08:00
|
|
|
|
this.getServiceTodo()
|
2024-10-22 16:36:43 +08:00
|
|
|
|
}
|
2024-10-16 17:14:49 +08:00
|
|
|
|
}
|
2024-10-13 23:24:23 +08:00
|
|
|
|
},
|
|
|
|
|
methods: {
|
2024-12-12 14:08:40 +08:00
|
|
|
|
viewOrder(idList){
|
|
|
|
|
if(idList.length>0){
|
|
|
|
|
setJSONData("orderIdList",idList)
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: '/pages-order/orderList/orderSimpleList'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-11-18 20:02:18 +08:00
|
|
|
|
/**
|
|
|
|
|
* 切换客户来源
|
|
|
|
|
*/
|
|
|
|
|
bindCusFromChange(e){
|
|
|
|
|
this.cusFromIndex = e.detail.value
|
|
|
|
|
this.onRefresherrefresh()
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 切换维修项目类型
|
|
|
|
|
*/
|
|
|
|
|
bindRepairTypeChange(e){
|
|
|
|
|
this.repairTypeIndex = e.detail.value
|
|
|
|
|
this.onRefresherrefresh()
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 查2个数据字典备用---客户注册方式-cus_sign_type、维修业务分类-repair_type
|
|
|
|
|
*/
|
|
|
|
|
initDict(dictCode){
|
|
|
|
|
let dictArray = getStorageWithExpiry(dictCode);
|
|
|
|
|
if(null==dictArray || undefined==dictArray){
|
|
|
|
|
request({
|
|
|
|
|
url: '/admin-api/system/dict-data/type',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params:{type:dictCode}
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
setStorageWithExpiry(dictCode,res.data,3600)
|
|
|
|
|
this.$nextTick(()=>{
|
|
|
|
|
res.data.map(item=>{
|
|
|
|
|
this.setDictItem(dictCode,item)
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
this.$nextTick(()=>{
|
|
|
|
|
dictArray.map(item=>{
|
|
|
|
|
this.setDictItem(dictCode,item)
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
setDictItem(dictCode,item){
|
|
|
|
|
if("repair_type"==dictCode){
|
|
|
|
|
//维修项目
|
|
|
|
|
this.repairTypeList.push(item.label)
|
|
|
|
|
this.repairTypeValueList.push(item.value)
|
|
|
|
|
}else{
|
|
|
|
|
//客户来源
|
|
|
|
|
this.cusFromList.push(item.label)
|
|
|
|
|
this.cusFromValueList.push(item.value)
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-11-18 18:05:20 +08:00
|
|
|
|
maskClick(e){
|
|
|
|
|
console.log('maskClick事件:', e);
|
|
|
|
|
},
|
2024-11-15 16:25:48 +08:00
|
|
|
|
activeTab(index) {
|
|
|
|
|
this.active = index
|
|
|
|
|
this.getBossTodo()
|
|
|
|
|
},
|
2024-11-18 18:05:20 +08:00
|
|
|
|
activeTabSon(index) {
|
|
|
|
|
this.activeSon = index
|
|
|
|
|
//设置选中日期
|
|
|
|
|
if(0==this.activeSon){
|
|
|
|
|
//当月
|
|
|
|
|
this.setChooseDate("nowMonth")
|
|
|
|
|
}else if(1==this.activeSon){
|
|
|
|
|
//近3个月
|
|
|
|
|
this.setChooseDate("threeMonth")
|
|
|
|
|
}else if(2==this.activeSon){
|
|
|
|
|
//近半年
|
|
|
|
|
this.setChooseDate("sixMonth")
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
//设置选中日期
|
|
|
|
|
setChooseDate(type){
|
|
|
|
|
var currentDate = new Date();
|
|
|
|
|
var year = currentDate.getFullYear();
|
|
|
|
|
var month = currentDate.getMonth() + 1; // 返回的月份从0开始,需要加1
|
|
|
|
|
var startStr;
|
|
|
|
|
var endStr;
|
|
|
|
|
if("nowMonth"==type){
|
|
|
|
|
//当月
|
|
|
|
|
//当月第一天
|
|
|
|
|
startStr = year + "-" + month + "-01";
|
|
|
|
|
//当天
|
|
|
|
|
const day = currentDate.getDate();
|
|
|
|
|
endStr = year + "-" + month +"-"+ day;
|
|
|
|
|
this.range = [startStr,endStr]
|
|
|
|
|
}else{
|
|
|
|
|
//近3个月或近半年
|
|
|
|
|
request({
|
|
|
|
|
url: '/admin-api/repair/tickets/getDateRange',
|
|
|
|
|
method: 'GET',
|
|
|
|
|
params:{selectType:type}
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
if (res.code == 200){
|
|
|
|
|
this.range = [res.data.startDate,res.data.endDate]
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-11-08 16:38:00 +08:00
|
|
|
|
/**
|
|
|
|
|
* 作废
|
|
|
|
|
*/
|
|
|
|
|
doVoidReq(row){
|
|
|
|
|
this.show = true
|
|
|
|
|
this.voidData = {
|
|
|
|
|
id : row.id,
|
|
|
|
|
remark : '',
|
|
|
|
|
ticketsStatus : '03'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 作废请求后台方法
|
|
|
|
|
*/
|
|
|
|
|
doVoidConfirm(){
|
|
|
|
|
request({
|
|
|
|
|
url: '/admin-api/repair/tickets/void',
|
|
|
|
|
method: 'POST',
|
|
|
|
|
data:this.voidData
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
if (res.code == 200){
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: "操作成功",
|
|
|
|
|
icon: "success",
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
this.doVoidCancel()
|
|
|
|
|
this.onRefresherrefresh()
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
doVoidCancel(){
|
|
|
|
|
this.show = false
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 接单上传附件
|
|
|
|
|
*/
|
|
|
|
|
openFile(id){
|
|
|
|
|
this.takeOrderId = id
|
|
|
|
|
this.$refs.popup.open("bottom")
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 接单
|
|
|
|
|
*/
|
|
|
|
|
receiveOrder(){
|
|
|
|
|
let fileStr = this.fileList.map(item=>item.url.replace(config.baseImageUrl,"")).join(",")
|
|
|
|
|
request({
|
|
|
|
|
url: '/admin-api/repair/tickets/take',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params:{
|
|
|
|
|
id:this.takeOrderId,
|
|
|
|
|
image:fileStr
|
|
|
|
|
}
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
console.log(res)
|
|
|
|
|
this.$refs.popup.close()
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: 'none',
|
|
|
|
|
title: '接单成功,请尽快处理!'
|
|
|
|
|
})
|
|
|
|
|
this.onRefresherrefresh()
|
|
|
|
|
}else{
|
|
|
|
|
uni.showToast({
|
|
|
|
|
icon: 'none',
|
|
|
|
|
title: res.message
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
afterRead(file) {
|
|
|
|
|
for (let i = 0; i < file.tempFilePaths.length; i++) {
|
|
|
|
|
upload({
|
|
|
|
|
url:'/admin-api/infra/file/upload',
|
|
|
|
|
filePath: file.tempFilePaths[i]
|
|
|
|
|
}).then((res)=>{
|
|
|
|
|
this.fileList.push({
|
|
|
|
|
url: config.baseImageUrl+res.data
|
|
|
|
|
})
|
|
|
|
|
console.log(this.fileList)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
deleteFile(file, index) {
|
|
|
|
|
this.fileList.splice(index, 1);
|
|
|
|
|
},
|
2024-11-04 17:55:08 +08:00
|
|
|
|
/**
|
|
|
|
|
* 保存当前项目
|
|
|
|
|
*/
|
|
|
|
|
dialogInputConfirm(val) {
|
|
|
|
|
// 关闭窗口后,恢复默认内容
|
|
|
|
|
this.$refs.inputDialog.close()
|
|
|
|
|
const newData = {itemList:getJSONData("newProject"),remark:val}
|
|
|
|
|
request({
|
|
|
|
|
url: '/admin-api/repair/titem/addNewProj',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data:newData
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: '添加维修项目成功!',
|
|
|
|
|
icon: 'success'
|
|
|
|
|
})
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: `/pages-order/orderDetail/orderDetail?id=${res.data}&isDetail=0`
|
|
|
|
|
});
|
|
|
|
|
}else{
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: '操作失败,请联系管理员',
|
|
|
|
|
icon: 'none'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 去签字
|
|
|
|
|
*/
|
|
|
|
|
dialogConfirm() {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: '/pages-home/service/sign-agin'
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
/**
|
2024-12-09 18:10:47 +08:00
|
|
|
|
* 客户不在厂,手动输入
|
2024-11-04 17:55:08 +08:00
|
|
|
|
*/
|
|
|
|
|
dialogClose() {
|
|
|
|
|
this.$refs.inputDialog.open()
|
|
|
|
|
},
|
2024-11-04 17:05:12 +08:00
|
|
|
|
/**
|
2024-11-12 19:14:21 +08:00
|
|
|
|
* 卡片的 修改项目 按钮点击
|
2024-11-04 17:05:12 +08:00
|
|
|
|
*/
|
|
|
|
|
addProj(order){
|
|
|
|
|
this.ticketId = order.id
|
2024-11-12 19:14:21 +08:00
|
|
|
|
this.$refs.addProjDialog.open()
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 新增项目
|
|
|
|
|
*/
|
|
|
|
|
addProjDialogConfirm(){
|
2024-11-04 17:05:12 +08:00
|
|
|
|
this.$refs.proj.open()
|
|
|
|
|
},
|
2024-11-12 19:14:21 +08:00
|
|
|
|
/**
|
|
|
|
|
* 修改已有项目
|
|
|
|
|
*/
|
|
|
|
|
cancelDialogClose(){
|
|
|
|
|
this.$refs.addProjDialog.close()
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: `/pages-order/orderDetail/orderDetail?id=${this.ticketId}&isDetail=0`
|
|
|
|
|
});
|
|
|
|
|
},
|
2024-11-04 17:05:12 +08:00
|
|
|
|
/**
|
|
|
|
|
* 添加项目回调
|
|
|
|
|
*/
|
|
|
|
|
projConfirm(proj) {
|
|
|
|
|
this.selectedProj = proj
|
|
|
|
|
if(this.selectedProj.length>0){
|
2024-11-04 17:55:08 +08:00
|
|
|
|
setJSONData("newProject",this.formatItem(this.selectedProj))
|
|
|
|
|
this.$refs.alertDialog.open()
|
2024-11-04 17:05:12 +08:00
|
|
|
|
}
|
|
|
|
|
console.log(this.selectedProj,"selectedProj")
|
|
|
|
|
console.log(this.ticketId,"this.ticketId")
|
|
|
|
|
},
|
|
|
|
|
// 子表信息预处理
|
|
|
|
|
formatItem(list) {
|
|
|
|
|
if (!(list && list.length > 0)) {
|
|
|
|
|
return []
|
|
|
|
|
}
|
|
|
|
|
return list.map(item => {
|
|
|
|
|
const temp = {
|
|
|
|
|
...item,
|
|
|
|
|
ticketId:this.ticketId,
|
|
|
|
|
itemName: item.name,
|
|
|
|
|
itemCount: 1,
|
|
|
|
|
itemUnit: item.unit,
|
|
|
|
|
itemPrice: item.price,
|
|
|
|
|
itemDiscount:1,
|
|
|
|
|
itemMoney: item.price,
|
|
|
|
|
itemTypeId: item.type,
|
|
|
|
|
remark: item.remark,
|
|
|
|
|
itemType: "01",
|
|
|
|
|
itemStatus:"01",
|
|
|
|
|
projectId: item.id,
|
|
|
|
|
id: null
|
|
|
|
|
}
|
|
|
|
|
return temp;
|
|
|
|
|
})
|
|
|
|
|
},
|
2024-10-31 17:14:15 +08:00
|
|
|
|
socketSuccess(){
|
|
|
|
|
this.getNoReadNum()
|
|
|
|
|
this.onRefresherrefresh()
|
|
|
|
|
console.log('通知并刷新成功')
|
|
|
|
|
},
|
|
|
|
|
|
2024-10-24 18:14:26 +08:00
|
|
|
|
gotoMsg(){
|
|
|
|
|
//去消息中心
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: '/pages-home/msg/message'
|
|
|
|
|
})
|
|
|
|
|
},
|
2024-10-17 18:05:11 +08:00
|
|
|
|
/**
|
|
|
|
|
* 上滑加载数据
|
|
|
|
|
*/
|
2024-10-22 15:06:49 +08:00
|
|
|
|
onReachBottomCus() {
|
2024-10-17 18:05:11 +08:00
|
|
|
|
//判断 如果页码*页容量大于等于总条数,提示该页数据加载完毕
|
|
|
|
|
if (this.pageNo * this.pageSize >= this.total) {
|
|
|
|
|
uni.$u.toast('没有更多数据了')
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
//页码+1,调用获取数据的方法获取第二页数据
|
|
|
|
|
this.pageNo++
|
|
|
|
|
//此处调用自己获取数据列表的方法
|
|
|
|
|
this.getOrderList()
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 下拉刷新数据
|
|
|
|
|
*/
|
|
|
|
|
onRefresherrefresh(){
|
|
|
|
|
this.isTriggered = true
|
|
|
|
|
this.pageNo = 1
|
|
|
|
|
this.total = 0
|
|
|
|
|
this.orderList = []
|
|
|
|
|
this.getOrderList()
|
|
|
|
|
},
|
2024-10-18 21:44:30 +08:00
|
|
|
|
/**
|
|
|
|
|
* 开始施工
|
|
|
|
|
*/
|
|
|
|
|
startWork(id){
|
|
|
|
|
let paramsObj = {ticketId:id}
|
|
|
|
|
//先查当前用户在本工单下有几个维修项目
|
|
|
|
|
request({
|
|
|
|
|
url: '/admin-api/repair/titem/listProject',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params:paramsObj
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
console.log(res)
|
|
|
|
|
if (res.code == 200 && res.data.length>0) {
|
|
|
|
|
if(res.data.length==1){
|
|
|
|
|
//只有1个,直接开始施工
|
|
|
|
|
this.startWorkRequest(id,"02",res.data[0].id,"02","kssg","开始施工")
|
|
|
|
|
}else{
|
|
|
|
|
uni.showActionSheet({
|
|
|
|
|
itemList: res.data.map(m => m.itemName),
|
|
|
|
|
success: ({
|
|
|
|
|
tapIndex
|
|
|
|
|
}) => {
|
|
|
|
|
this.startWorkRequest(id,"02",res.data[tapIndex].id,"02","kssg","开始施工")
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: '操作失败,请联系管理员',
|
|
|
|
|
icon: 'none'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 开始施工请求后台
|
|
|
|
|
*/
|
|
|
|
|
async startWorkRequest(id,ticketsWorkStatus,itemId,itemStatus,recordType,remark){
|
|
|
|
|
try {
|
|
|
|
|
const result = await saveTicketsRecords(id,ticketsWorkStatus,itemId,itemStatus,recordType,remark,null);
|
|
|
|
|
console.error("result",result);
|
|
|
|
|
this.onRefresherrefresh()
|
|
|
|
|
} catch (error) {
|
|
|
|
|
console.error(error);
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-10-22 16:36:43 +08:00
|
|
|
|
/**
|
|
|
|
|
* 维修工的角度查提交的配件申请单 待处理数量
|
|
|
|
|
*/
|
|
|
|
|
getWorkerTodo(){
|
|
|
|
|
request({
|
|
|
|
|
url: '/admin-api/repair/tw/getWorkerTodo',
|
|
|
|
|
method: 'get',
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
console.log(res)
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.workerNumObj = res.data
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
2024-10-24 15:06:24 +08:00
|
|
|
|
/**
|
2024-12-09 18:10:47 +08:00
|
|
|
|
* 从总检的角度差维修中、已竣工的工单数量
|
2024-10-24 15:06:24 +08:00
|
|
|
|
*/
|
|
|
|
|
getBossTodo(){
|
2024-11-18 18:05:20 +08:00
|
|
|
|
let params={}
|
|
|
|
|
if(this.active==0){
|
|
|
|
|
//当日
|
|
|
|
|
params.selectType="today"
|
|
|
|
|
}else if(this.active==1){
|
|
|
|
|
//累计
|
|
|
|
|
params.selectType="all"
|
|
|
|
|
}else{
|
|
|
|
|
//自定义时间
|
|
|
|
|
params.selectType="customer"
|
|
|
|
|
if(this.range.length==2){
|
|
|
|
|
params.startDate = this.range[0]
|
|
|
|
|
params.endDate = this.range[1]
|
|
|
|
|
}else{
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: '请选择查询日期范围',
|
|
|
|
|
icon: 'none'
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
2024-11-15 16:25:48 +08:00
|
|
|
|
}
|
2024-10-24 15:06:24 +08:00
|
|
|
|
request({
|
|
|
|
|
url: '/admin-api/repair/tickets/getBossNum',
|
|
|
|
|
method: 'get',
|
2024-11-15 16:25:48 +08:00
|
|
|
|
params:params
|
2024-10-24 15:06:24 +08:00
|
|
|
|
}).then((res) => {
|
|
|
|
|
console.log(res)
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.bossNum = res.data
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
2024-10-23 22:15:34 +08:00
|
|
|
|
/**
|
|
|
|
|
* 服务顾问的角度查待处理的配件申请单数量
|
|
|
|
|
*/
|
|
|
|
|
getServiceTodo(){
|
|
|
|
|
let params = {
|
|
|
|
|
pageNo:this.pageNo,
|
|
|
|
|
pageSize:this.pageSize,
|
|
|
|
|
type:"01",
|
|
|
|
|
status:"01"
|
|
|
|
|
}
|
|
|
|
|
request({
|
|
|
|
|
url: '/admin-api/repair/tw/page',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params:params
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
console.log(res)
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
this.serviceNum = res.data.total
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
2024-10-17 18:05:11 +08:00
|
|
|
|
/**
|
|
|
|
|
* 查本人待处理工单
|
|
|
|
|
*/
|
|
|
|
|
getOrderList(){
|
2024-11-18 20:02:18 +08:00
|
|
|
|
let paramsObj = {pageNo: this.pageNo, pageSize: this.pageSize, isFinish: "0",cusFrom:this.cusFromValueList[this.cusFromIndex],repairType:this.repairTypeValueList[this.repairTypeIndex]}
|
2024-10-17 18:05:11 +08:00
|
|
|
|
request({
|
|
|
|
|
url: '/admin-api/repair/tickets/pageType',
|
|
|
|
|
method: 'get',
|
2024-10-18 18:45:07 +08:00
|
|
|
|
params:paramsObj
|
2024-10-17 18:05:11 +08:00
|
|
|
|
}).then((res) => {
|
|
|
|
|
console.log(res)
|
|
|
|
|
if (res.code == 200) {
|
|
|
|
|
let thisPageRecords = []
|
|
|
|
|
if(res.data && res.data.hasOwnProperty("records")){
|
|
|
|
|
for (let i = 0; i < res.data.records.length; i++) {
|
|
|
|
|
let order = res.data.records[i]
|
2024-10-18 20:03:26 +08:00
|
|
|
|
let viewOrder = builderOrder(order)
|
2024-10-17 18:05:11 +08:00
|
|
|
|
if(order.booking){
|
|
|
|
|
viewOrder['appointDate'] = formatTimestamp(order.createTime)
|
|
|
|
|
}
|
|
|
|
|
let projectList = []
|
|
|
|
|
if(order.itemList){
|
|
|
|
|
for (let j = 0; j < order.itemList.length; j++) {
|
|
|
|
|
let itemObj = order.itemList[j]
|
|
|
|
|
if("01"==itemObj.itemType){
|
|
|
|
|
projectList.push({
|
|
|
|
|
id:itemObj.id,
|
|
|
|
|
name:itemObj.itemName
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
viewOrder['projectList'] = projectList
|
|
|
|
|
thisPageRecords.push(viewOrder)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//判断 如果获取的数据的页码不是第一页,就让之前赋值获取过的数组数据 concat连接 刚获取的第n页数据
|
|
|
|
|
if (this.pageNo != 1) {
|
|
|
|
|
this.orderList = this.orderList.concat(thisPageRecords)
|
|
|
|
|
} else {
|
|
|
|
|
this.orderList = thisPageRecords
|
|
|
|
|
}
|
|
|
|
|
//将获取的总条数赋值
|
|
|
|
|
this.total = res.data.total
|
|
|
|
|
this.isTriggered = false
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
2024-10-13 23:24:23 +08:00
|
|
|
|
gotoPage(menu) {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: menu.path
|
|
|
|
|
})
|
|
|
|
|
},
|
2024-10-15 23:40:11 +08:00
|
|
|
|
avatarErr(err) {
|
|
|
|
|
console.log('err', err)
|
2024-10-16 17:14:49 +08:00
|
|
|
|
this.userInfo.avatar = this.defaultAvatar
|
2024-10-15 23:40:11 +08:00
|
|
|
|
},
|
|
|
|
|
showUserDetail() {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: '/pages/my/myInfo'
|
|
|
|
|
})
|
2024-10-22 16:36:43 +08:00
|
|
|
|
},
|
|
|
|
|
workerTodo() {
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: '/pages-repair/applyList/applyList'
|
|
|
|
|
})
|
|
|
|
|
},
|
2024-10-23 22:15:34 +08:00
|
|
|
|
/**
|
|
|
|
|
* 服务顾问待办
|
|
|
|
|
*/
|
|
|
|
|
serviceWork(){
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: '/pages-home/service/applyList'
|
|
|
|
|
})
|
2024-10-24 18:14:26 +08:00
|
|
|
|
},
|
2024-12-16 14:25:54 +08:00
|
|
|
|
/**
|
|
|
|
|
* 待办工单
|
|
|
|
|
*/
|
|
|
|
|
waitingWork(){
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: '/pages-order/orderList/orderList'
|
|
|
|
|
})
|
|
|
|
|
},
|
2024-10-24 18:14:26 +08:00
|
|
|
|
/**
|
|
|
|
|
* 获取未读消息数量
|
|
|
|
|
* @returns {Promise<void>}
|
|
|
|
|
*/
|
|
|
|
|
async getNoReadNum(){
|
|
|
|
|
await request({
|
|
|
|
|
url: "/admin-api/system/notify-message/get-unread-count",
|
|
|
|
|
method: "GET"
|
|
|
|
|
}).then((res) => {
|
|
|
|
|
if(res.code==200){
|
|
|
|
|
this.noReadNum = res.data>99?99:res.data
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 跳转通知公告列表页
|
|
|
|
|
*/
|
|
|
|
|
gotoNotice(){
|
|
|
|
|
uni.navigateTo({
|
|
|
|
|
url: '/pages-home/notice/notice'
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
/**
|
|
|
|
|
* 查通知公告--查数量
|
|
|
|
|
*/
|
|
|
|
|
async getNoticeList(){
|
|
|
|
|
const res = await request({
|
|
|
|
|
url: "/admin-api/base/notice/page",
|
|
|
|
|
method: "get",
|
|
|
|
|
params: {
|
|
|
|
|
pageNo:1,
|
|
|
|
|
pageSize:1,
|
|
|
|
|
type:1,
|
|
|
|
|
parentServer: "weixiu",
|
|
|
|
|
server: "app"
|
|
|
|
|
},
|
|
|
|
|
tenantIdFlag:false
|
|
|
|
|
})
|
|
|
|
|
if(res.code==200){
|
|
|
|
|
this.noticeNum = res.data.total
|
|
|
|
|
}
|
|
|
|
|
},
|
2024-10-13 23:24:23 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2024-10-09 13:34:36 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
2024-10-13 23:24:23 +08:00
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
* {
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-08 16:38:00 +08:00
|
|
|
|
.popup-content {
|
|
|
|
|
@include flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
padding: 30rpx;
|
|
|
|
|
height: auto;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
}
|
2024-10-13 23:24:23 +08:00
|
|
|
|
.container {
|
|
|
|
|
height: 100%;
|
|
|
|
|
//background: linear-gradient(180deg, #0174F6 0%, rgba(1, 116, 246, 0) 100%);
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
position: relative;
|
2024-12-16 14:25:54 +08:00
|
|
|
|
padding-top: 80rpx;
|
2024-10-13 23:24:23 +08:00
|
|
|
|
background-color: #F3F5F7;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.bodyTopBg {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 500rpx;
|
2024-10-15 23:40:11 +08:00
|
|
|
|
background-image: url("@/static/bg.png");
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
background-repeat: no-repeat;
|
2024-10-13 23:24:23 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.body {
|
|
|
|
|
position: relative;
|
|
|
|
|
z-index: 10;
|
|
|
|
|
flex: 1;
|
|
|
|
|
height: 0;
|
|
|
|
|
overflow: auto;
|
2024-12-09 18:10:47 +08:00
|
|
|
|
//padding-bottom: 30rpx;
|
2024-10-13 23:24:23 +08:00
|
|
|
|
}
|
2024-11-15 15:39:21 +08:00
|
|
|
|
.company-text {
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
padding: 8rpx 16rpx;
|
|
|
|
|
}
|
2024-10-13 23:24:23 +08:00
|
|
|
|
|
2024-10-15 23:40:11 +08:00
|
|
|
|
.userInfoBox {
|
|
|
|
|
margin: 0 32rpx 40rpx;
|
|
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
column-gap: 20rpx;
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
.userInfo {
|
|
|
|
|
flex: 1;
|
|
|
|
|
width: 0;
|
|
|
|
|
.userName {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
font-size: 36rpx;
|
|
|
|
|
color: #333333;
|
|
|
|
|
display: block;
|
|
|
|
|
margin-bottom: 16rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.userType {
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #0174F6;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
border-radius: 24rpx 24rpx 24rpx 24rpx;
|
|
|
|
|
border: 1rpx solid #0174F6;
|
|
|
|
|
padding: 8rpx 16rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-10-24 18:14:26 +08:00
|
|
|
|
|
|
|
|
|
.msg-box{
|
|
|
|
|
position: relative;
|
|
|
|
|
margin-right: 40rpx;
|
|
|
|
|
.msg-num{
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: -15rpx;
|
|
|
|
|
color: white;
|
|
|
|
|
background: #d74a43;
|
|
|
|
|
width: 35rpx;
|
|
|
|
|
height: 35rpx;
|
|
|
|
|
line-height: 35rpx;
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
top: -15rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-10-15 23:40:11 +08:00
|
|
|
|
}
|
2024-10-13 23:24:23 +08:00
|
|
|
|
.body-top-grid {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: 1fr 1fr;
|
|
|
|
|
column-gap: 30rpx;
|
2024-10-21 22:08:30 +08:00
|
|
|
|
margin: 0 32rpx 40rpx;
|
2024-10-13 23:24:23 +08:00
|
|
|
|
|
|
|
|
|
.body-top-item {
|
|
|
|
|
position: relative;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 30rpx 0 30rpx 20rpx;
|
|
|
|
|
background: linear-gradient(360deg, #FFFFFF 0%, #D7EAFF 100%);
|
|
|
|
|
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
|
|
|
|
border: 2rpx solid;
|
|
|
|
|
border-image: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(202, 223, 247, 1)) 2 2;
|
|
|
|
|
|
|
|
|
|
& > view:first-child {
|
|
|
|
|
flex: 1;
|
|
|
|
|
width: 0;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
row-gap: 30rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
color: #113A68;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.desc {
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #858BA0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
|
width: 40rpx;
|
|
|
|
|
height: 30rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
|
width: 136rpx;
|
|
|
|
|
height: 136rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-22 15:06:49 +08:00
|
|
|
|
.body-card {
|
|
|
|
|
border-radius: 6px 6px 6px 6px;
|
|
|
|
|
margin: 18px;
|
|
|
|
|
padding: 15px;
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
.title {
|
|
|
|
|
margin-bottom: 30rpx;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
color: #113A68;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
column-gap: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
.formValue {
|
|
|
|
|
flex: 1;
|
|
|
|
|
width: 0;
|
|
|
|
|
text-align: right;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
color: #858BA0;
|
|
|
|
|
}
|
|
|
|
|
.title-box{
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-around;
|
|
|
|
|
.title-box-item{
|
|
|
|
|
width: 33%;
|
|
|
|
|
text-align: center;
|
|
|
|
|
.titleDesc {
|
|
|
|
|
font-weight: 500;
|
2024-11-18 18:05:20 +08:00
|
|
|
|
font-size: 28rpx;
|
2024-10-22 15:06:49 +08:00
|
|
|
|
color: #858BA0;
|
|
|
|
|
}
|
|
|
|
|
.titleNumber{
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-size: 40rpx;
|
|
|
|
|
color: #333333;
|
|
|
|
|
margin: 4px;
|
|
|
|
|
}
|
|
|
|
|
.titleImg{
|
|
|
|
|
width: 48rpx;
|
|
|
|
|
height: 48rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-10-24 18:14:26 +08:00
|
|
|
|
.notice-dom {
|
|
|
|
|
margin: 40rpx 32rpx;
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
|
|
|
|
padding: 20rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2024-10-22 15:06:49 +08:00
|
|
|
|
|
2024-10-24 18:14:26 +08:00
|
|
|
|
.notice-box{
|
|
|
|
|
display: flex;
|
|
|
|
|
width: 100%;
|
|
|
|
|
.left-img{
|
|
|
|
|
width: 48rpx;
|
|
|
|
|
height: 48rpx;
|
|
|
|
|
}
|
|
|
|
|
.center-text{
|
|
|
|
|
width: calc(100% - 70rpx);
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
padding:0 20rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-10-21 22:08:30 +08:00
|
|
|
|
.orderCount {
|
2024-11-18 18:05:20 +08:00
|
|
|
|
margin: 0 40rpx 18rpx;
|
2024-10-21 22:08:30 +08:00
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
2024-12-09 18:10:47 +08:00
|
|
|
|
padding: 15rpx;
|
2024-10-21 22:08:30 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2025-01-08 13:52:13 +08:00
|
|
|
|
position: relative;
|
|
|
|
|
.dl-float-view{
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 5rpx;
|
|
|
|
|
top: 5rpx;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: rgb(232, 163, 33);
|
|
|
|
|
}
|
2024-10-21 22:08:30 +08:00
|
|
|
|
.orderCountItem {
|
|
|
|
|
flex: 1;
|
|
|
|
|
width: 0;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
.label {
|
|
|
|
|
color: #858BA0;
|
|
|
|
|
}
|
|
|
|
|
.value {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
font-size: 40rpx;
|
|
|
|
|
color: #333333;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.line {
|
|
|
|
|
height: 84rpx;
|
|
|
|
|
width: 1rpx;
|
|
|
|
|
background-color: #DDDDDD;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-13 23:24:23 +08:00
|
|
|
|
.todoListBox {
|
2024-12-09 18:10:47 +08:00
|
|
|
|
margin: 20rpx 32rpx;
|
|
|
|
|
height: calc(100vh - 370rpx);
|
2024-10-13 23:24:23 +08:00
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
margin-bottom: 30rpx;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
color: #113A68;
|
|
|
|
|
|
|
|
|
|
.titleDesc {
|
|
|
|
|
margin-left: 20rpx;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #858BA0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.titleCount {
|
|
|
|
|
color: #0174F6;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.todoList {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
2024-11-18 20:02:18 +08:00
|
|
|
|
//row-gap: 20rpx;
|
2024-12-09 18:10:47 +08:00
|
|
|
|
height: 100%;
|
2024-10-13 23:24:23 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.body-top-banner {
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.banner {
|
|
|
|
|
margin: 24rpx 0 0;
|
|
|
|
|
width: 686rpx;
|
|
|
|
|
height: 100%;
|
|
|
|
|
border-radius: 12rpx 12rpx 12rpx 12rpx;
|
|
|
|
|
background-color: #0174F6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.menus {
|
|
|
|
|
margin: 30rpx auto 0;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
width: 686rpx;
|
|
|
|
|
padding: 40rpx 38rpx;
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
box-shadow: 0rpx 0rpx 16rpx 0rpx rgba(10, 54, 104, 0.1);
|
|
|
|
|
border-radius: 12rpx 12rpx 12rpx 12rpx;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.menu-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
row-gap: 22rpx;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
|
|
|
|
|
.menu-icon {
|
|
|
|
|
width: 48rpx;
|
|
|
|
|
height: 48rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.info {
|
|
|
|
|
width: 686rpx;
|
|
|
|
|
margin: 38rpx auto 0;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
column-gap: 20rpx;
|
|
|
|
|
|
|
|
|
|
.info-icon {
|
|
|
|
|
width: 80rpx;
|
|
|
|
|
height: 80rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.infoList {
|
|
|
|
|
flex: 1;
|
|
|
|
|
width: 0;
|
|
|
|
|
|
|
|
|
|
.infoItem {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
column-gap: 10rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.infoIndex {
|
|
|
|
|
width: 12rpx;
|
|
|
|
|
height: 12rpx;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
background-color: #333;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.infoText {
|
|
|
|
|
flex: 1;
|
|
|
|
|
width: 0;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.more-icon {
|
|
|
|
|
width: 24rpx;
|
|
|
|
|
height: 24rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-15 16:25:48 +08:00
|
|
|
|
.body-top-tab {
|
|
|
|
|
display: flex;
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
margin: 0 32rpx;
|
|
|
|
|
|
2024-11-18 20:02:18 +08:00
|
|
|
|
.line {
|
|
|
|
|
width: 2rpx;
|
|
|
|
|
height: 60rpx;
|
|
|
|
|
background-color: #DDDDDD;
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-15 16:25:48 +08:00
|
|
|
|
.body-top-tab-item {
|
|
|
|
|
flex: 1;
|
|
|
|
|
width: 0;
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding: 16rpx 20rpx;
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
|
color: #0174F6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.activeLine {
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
left: 50%;
|
|
|
|
|
transform: translateX(-50%);
|
|
|
|
|
width: 96rpx;
|
|
|
|
|
height: 6rpx;
|
|
|
|
|
background: #0174F6;
|
|
|
|
|
border-radius: 4rpx 4rpx 0rpx 0rpx;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-13 23:24:23 +08:00
|
|
|
|
.repairShop {
|
|
|
|
|
width: 686rpx;
|
|
|
|
|
margin: 38rpx auto 0;
|
|
|
|
|
|
|
|
|
|
.title {
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
color: #333333;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.shopList {
|
|
|
|
|
.shopItem {
|
|
|
|
|
padding: 30rpx 0;
|
|
|
|
|
border-bottom: 1rpx solid #DDDDDD;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
column-gap: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.shopImg {
|
|
|
|
|
width: 160rpx;
|
|
|
|
|
height: 100rpx;
|
|
|
|
|
border-radius: 8rpx 8rpx 8rpx 8rpx;
|
|
|
|
|
background-color: #999;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.shopInfo {
|
|
|
|
|
flex: 1;
|
|
|
|
|
width: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.shopTitle {
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
color: #333333;
|
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.shopDetail {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
color: #666666;
|
|
|
|
|
column-gap: 10rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.shopAddress {
|
|
|
|
|
flex: 1;
|
|
|
|
|
width: 0;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.line {
|
|
|
|
|
width: 2rpx;
|
|
|
|
|
height: 24rpx;
|
|
|
|
|
background-color: #858BA0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.shopDistance {
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-11-18 20:02:18 +08:00
|
|
|
|
|
2024-12-09 18:10:47 +08:00
|
|
|
|
.number-box{
|
|
|
|
|
width: 45rpx;
|
|
|
|
|
height: 45rpx;
|
|
|
|
|
line-height: 45rpx;
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
font-size: 26rpx;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
background: #d74a43;
|
|
|
|
|
color: white;
|
|
|
|
|
}
|
2024-10-13 23:24:23 +08:00
|
|
|
|
}
|
2024-10-09 13:34:36 +08:00
|
|
|
|
</style>
|