chen 2022-03-18 19:01:34 +08:00
commit b226936708
17 changed files with 1952 additions and 92 deletions

View File

@ -139,6 +139,33 @@
}
}
,{
"path" : "pages/workOrder/workOrderThree",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/workOrder/details",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/workOrder/payReturnVisit ",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
],
"subPackages": [{ //A
"root": "pagesA",

821
pages/workOrder/details.vue Normal file
View File

@ -0,0 +1,821 @@
<template>
<view class="content">
<statusNav navBarTitle="工单详情"></statusNav>
<view class="details-nav">
<view class="li" @click="detailsNavpa(index)" :class="item.state?'on':''"
v-for="(item,index) in detailsNav">
{{item.title}}
</view>
</view>
<swiper class="swiper" @change="swiperCurrentFun" :current="swiperCurrent" :style="'height:'+swiHeight+'px'">
<swiper-item>
<view class="swiper-item uni-bg-red">
<view id="swi1">
<view class="work-order-from">
<view class="state">
状态待维修
</view>
<view class="li">
<view class="title">
工单编号
</view>
<input type="text" class="input" placeholder="" value="GD20211203-001" />
</view>
<view class="li">
<view class="title">
项目编号
</view>
<input type="text" class="input" placeholder="" value="GD20211203-001" />
</view>
<view class="li">
<view class="title">
项目名称
</view>
<input type="text" class="input input-black" placeholder=""
value="湖南省林业科学院11楼会议室P2.5" />
</view>
<view class="li">
<view class="title">
产品类型
</view>
<input type="text" class="input" placeholder="" value="Q2.5-E" />
</view>
<view class="li">
<view class="title">
安装位置
</view>
<input type="text" class="input" placeholder="" value="详细地址+某某栋11楼会议室" />
</view>
<view class="li">
<view class="title">
故障类型
</view>
<input type="text" class="input" placeholder="" value="供电不足" />
</view>
<view class="li">
<view class="title">
紧急程度
</view>
<input type="text" class="input" placeholder="" value="紧急" />
</view>
<view class="li">
<view class="title">
故障说明
</view>
<textarea auto-height class="input"
value="*********************************************************************************************************"
placeholder="" />
</view>
<view class="li">
<view class="title">
故障图片
</view>
<view class="input">
<image class="img" src="../../static/del/微信图片_20220113152400.png" mode="aspectFill">
</image>
<image class="img" src="../../static/del/微信图片_20220113152400.png" mode="aspectFill">
</image>
</view>
</view>
</view>
<view class="work-order-from">
<view class="li">
<view class="title">
</view>
<input type="text" class="input" placeholder="" value="林某" />
</view>
<view class="li">
<view class="title">
报单时间
</view>
<input type="text" class="input" placeholder="" value="2021/12/3 12:00:05" />
</view>
<view class="li">
<view class="title">
服务方式
</view>
<input type="text" class="input" placeholder="" value="上门服务" />
</view>
<view class="li">
<view class="title">
定位地址
</view>
<input type="text" class="input" placeholder=""
value="*******************************" />
</view>
</view>
</view>
</view>
</swiper-item>
<swiper-item>
<view class="swiper-item uni-bg-green">
<view id="swi2">
<view class="work-order-from">
<view class="state" style="background-image: url(../../static/iocn/swi2.png);">
状态已完成
</view>
<view class="li">
<view class="title">
开始时间
</view>
<input type="text" class="input " placeholder="" value="2022-01-25 09:39" />
</view>
<view class="li">
<view class="title">
结束时间
</view>
<input type="text" class="input " placeholder="" value="2022-01-25 15:30" />
</view>
<view class="li">
<view class="title">
维保用时
</view>
<input type="text" class="input input-black" placeholder="" value="5小时51分钟" />
</view>
<view class="li">
<view class="title">
维保费用
</view>
<input type="text" class="input " placeholder="" value="¥500.00元" />
</view>
<view class="li">
<view class="title">
等待时长
</view>
<input type="text" class="input " placeholder="" value="1天6小时35分钟" />
</view>
<view class="li">
<view class="title">
主维保人
</view>
<input type="text" class="input " placeholder="" value="陈志远" />
</view>
<view class="li">
<view class="title">
更换配件
</view>
<view class="rideo">
</view>
</view>
<view class="li">
<view class="title">
工作描述
</view>
<textarea auto-height class="input "
value="*********************************************************************************************************"
placeholder="" />
</view>
<view class="li">
<view class="title">
维保图片
</view>
<view class="input add-display">
<view class="">
<image class="img" src="../../static/del/微信图片_20220113152400.png" mode="aspectFill"></image>
<image class="img" src="../../static/del/微信图片_20220113152400.png" mode="aspectFill"></image>
</view>
</view>
</view>
<view class="li">
<view class="title">
故障原因
</view>
<textarea auto-height class="input "
value="*********************************************************************************************************"
placeholder="" />
</view>
<view class="li">
<view class="title">
主维保人
</view>
<input type="text" class="input " placeholder="" value="罗帅 陈志远" />
</view>
</view>
</view>
</view>
</swiper-item>
<swiper-item>
<view class="swiper-item uni-bg-blue">
<view id="swi3">
<view class="change-accessory">
<view class="state" style="background-image: url(../../static/iocn/siw3.png);">
状态待结算
</view>
<view class="list">
<view class="li">
<image class="img" src="../../static/del/QQ截图20220210213041.png" mode="aspectFill"></image>
<view class="text-content">
<view class="title">
<view class="text clips1">
全彩LED显示屏电源
</view>
<view class="date">
1011-1
</view>
</view>
<view class="text">
配件品牌华鑫电源
</view>
<view class="text">
规格型号5A-75B
</view>
<view class="text">
使用数量1
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</swiper-item>
<swiper-item>
<view class="swiper-item uni-bg-blue">
<view id="swi4">
<view class="course-nav">
<view class="state">
状态待维修
</view>
<view class="date">
报修时间2022年02月10日
</view>
<view class="code">
<view class="">
工单编号1254635996212345
</view>
<view class="btn" @click="copy('1254635996212345')">
复制
</view>
</view>
</view>
<view class="course-content">
<view class="record-content">
<view class="title">
过程追踪
</view>
<view class="list">
<view class="li on">
<view class="icon">
<view class="icon-con">
</view>
</view>
<view class="con">
<view class="text clips2">
维修中工号00234工程师将于16:00到达现场为您 服务
</view>
<view class="date">
2020-06-15 1530
</view>
</view>
</view>
<view class="li">
<view class="icon">
</view>
<view class="con">
<view class="text clips1">
工程师已接单工号00234工程师已接单
</view>
<view class="date">
2020-06-15 14:30
</view>
</view>
</view>
<view class="li">
<view class="icon">
</view>
<view class="con">
<view class="text">
黑屏故障 某某已处理
</view>
<view class="date">
2020-05-15 16:00
</view>
</view>
</view>
<view class="li">
<view class="icon">
</view>
<view class="con">
<view class="text">
黑屏故障 某某已处理
</view>
<view class="date">
2020-05-15 16:00
</view>
</view>
</view>
<view class="li">
<view class="icon">
</view>
<view class="con">
<view class="text">
黑屏故障 某某已处理
</view>
<view class="date">
2020-05-15 16:00
</view>
</view>
</view>
<view class="li">
<view class="icon">
</view>
<view class="con">
<view class="text">
黑屏故障 某某已处理
</view>
<view class="date">
2020-05-15 16:00
</view>
</view>
</view>
<view class="li">
<view class="icon">
</view>
<view class="con">
<view class="text">
黑屏故障 某某已处理
</view>
<view class="date">
2020-05-15 16:00
</view>
</view>
</view>
</view>
</view>
<view class="button">
我要评价
</view>
</view>
</view>
</view>
</swiper-item>
</swiper>
</view>
</template>
<script>
import statusNav from '../../components/status-nav.vue';
import footTabOne from "../../components/foot-tabs/foot-tab-one.vue"
export default {
components: {
footTabOne,
statusNav
},
data() {
return {
swiHeight: 700,
swiperCurrent: 0,
detailsNav: [{
title: "基础信息",
state: true
},
{
title: "处理详情",
state: false
},
{
title: "更换配件",
state: false
},
{
title: "处理过程",
state: false
},
],
}
},
mounted() {
const query = uni.createSelectorQuery().in(this);
query.select('#swi1').boundingClientRect(data => {
this.swiHeight = data.height
}).exec();
this.detailsNavFun(0)
},
methods: {
copy(value) {
//
uni.showModal({
content: value, //
confirmText: '复制内容',
success: () => { //
//uni.setClipboardData
uni.setClipboardData({
data: value, //
success: () => { //
uni.showToast({ //
title: '复制成功'
})
}
});
}
});
},
swiperCurrentFun(data) {
console.log(data.detail.current)
if(data.detail.current==0){
const query = uni.createSelectorQuery().in(this);
query.select('#swi1').boundingClientRect(data => {
this.swiHeight = data.height
}).exec();
}else if(data.detail.current==1){
const query = uni.createSelectorQuery().in(this);
query.select('#swi2').boundingClientRect(data => {
this.swiHeight = data.height
}).exec();
}else if(data.detail.current==2){
const query = uni.createSelectorQuery().in(this);
query.select('#swi3').boundingClientRect(data => {
this.swiHeight = data.height
}).exec();
}else if(data.detail.current==3){
const query = uni.createSelectorQuery().in(this);
query.select('#swi4').boundingClientRect(data => {
this.swiHeight = data.height
}).exec();
}
this.detailsNavFun(data.detail.current)
},
detailsNavFun(index) {
for (var i = 0; i < this.detailsNav.length; i++) {
this.detailsNav[i].state = false
}
this.detailsNav[index].state = true
},
detailsNavpa(index) {
this.swiperCurrent = index
}
}
}
</script>
<style>
.content {
padding-top: 80rpx;
}
.swiper {
min-height: 88vh;
width: 100%;
}
.submit-button {
width: 686rpx;
border-radius: 50rpx;
height: 90rpx;
background-color: #02A2ea;
line-height: 90rpx;
color: #FFFFFF;
margin-top: 60rpx;
text-align: center;
font-size: 30rpx;
}
.work-order-from {
margin-top: 10rpx;
background-color: #FFFFFF;
}
.work-order-from .li {
display: flex;
padding: 20rpx 40rpx;
border-bottom: 2rpx solid #ececec;
}
.work-order-from .li .title {
font-size: 26rpx;
width: 133rpx;
}
.work-order-from .li .input {
font-size: 24rpx;
color: #8b8b8b;
flex: 1;
padding-left: 15rpx;
}
.work-order-from .li .input .img {
width: 169rpx;
height: 127rpx;
margin-right: 10rpx;
}
.state {
/* background-color:
*/
text-align: center;
line-height: 48rpx;
width: 164rpx;
height: 54rpx;
background-image: url(../../static/iocn/sta.png);
border-radius: 0 20rpx 20rpx 0;
background-size: 100% 100%;
font-size: 24rpx;
color: #ffffff;
}
.work-order-from .li .input-black {
color: #292929;
}
.details-nav {
display: flex;
justify-content: space-between;
border-bottom: solid #D5D4D4 2rpx;
padding: 0 24rpx;
margin-bottom: 20rpx;
}
.details-nav .li {
width: 130rpx;
padding-top: 30rpx;
font-size: 30rpx;
padding-bottom: 35rpx;
}
.details-nav .on {
color: #00A2E9;
position: relative;
}
.details-nav .on::after {
content: "";
width: 100%;
position: absolute;
left: 0rpx;
bottom: 0rpx;
height: 6rpx;
background-color: #00A2E9;
}
.course-nav {
background-color: #fff;
}
.course-nav .date {
font-size: 28rpx;
color: #333333;
padding: 20rpx 34rpx;
}
.course-nav .code {
display: flex;
font-size: 28rpx;
padding: 20rpx 34rpx;
padding-top: 0rpx;
align-items: center;
}
.course-nav .code .btn {
background-color: #eeeeee;
width: 73rpx;
height: 40rpx;
border-radius: 10rpx;
text-align: center;
line-height: 40rpx;
margin-left: 28rpx;
border: solid #999999 2rpx;
}
.record-content {
margin-top: 33rpx;
padding: 0 34rpx;
}
.course-content{
background-color: #FFFFFF;
padding-top: 30rpx;
margin-top: 16rpx;
padding-bottom: 60rpx;
}
.record-content .title {
color: #333333;
margin-left: 12rpx;
font-size: 30rpx;
margin-bottom: 33rpx;
}
.record-content .list .li {
display: flex;
align-items: center;
margin-bottom: 40rpx;
}
.record-content .list .li .icon {
width: 14rpx;
height: 14rpx;
margin-right: 50rpx;
border-radius: 50%;
background-color: #999999;
margin-left: 5rpx;
position: relative;
}
.record-content .list .li .icon::after {
content: "";
width: 1rpx;
position: absolute;
left: 7rpx;
height: 106rpx;
background-color: #999999;
top: 14rpx;
}
.record-content .list .li .con {
font-size: 26rpx;
color: #999999;
flex: 1;
}
.record-content .list .on .icon {
background-color: #5caefb;
width: 21rpx;
height: 21rpx;
margin-left: 1rpx;
display: flex;
align-items: center;
justify-content: center;
position: relative;
z-index: 1;
}
.record-content .list .on .icon .icon-con {
background-color: #0084ff;
width: 13rpx;
height: 13rpx;
border-radius: 50%;
}
.record-content .list .on .icon::after {
content: "";
width: 1rpx;
position: absolute;
left: 9rpx;
height: 167rpx;
z-index: -1;
background-color: #0084ff;
top: 20rpx;
}
.record-content .list .on .con {
display: block;
color: #0084ff;
}
.record-content .list .on .con .text {
margin-bottom: 35rpx;
}
.record-content .list .li .con .text {
margin-bottom: 10rpx;
}
.record-content .list .on {
align-items: flex-start;
}
.button {
width: 315rpx;
height: 88rpx;
background-color: #00A2E9;
border-radius: 44rpx;
text-align: center;
line-height: 88rpx;
margin: auto;
margin-top: 101rpx;
color: #FFFFFF;
}
.work-order-from .li .input .add-img {
width: 136rpx;
height: 127rpx;
display: flex;
justify-content: center;
background-color: #DCDCDC;
align-items: center;
}
.work-order-from .li .input .add-img .icon {
width: 64rpx;
height: 64rpx;
}
.work-order-from .li .add-display {
display: flex;
}
.change-accessory .li .img{
width: 185rpx;
height: 185rpx;
margin-right: 30rpx;
}
.change-accessory .li{
padding: 34rpx;
display: flex;
border-bottom: 2rpx solid #EEEEEE;
}
.change-accessory .li .text-content {
flex: 1;
}
.change-accessory .li .text-content .title{
font-size: 30rpx;
display: flex;
justify-content: space-between;
margin-bottom: 16rpx;
}
.change-accessory .li .text-content .title .text{
width: 77%;
font-size: 30rpx;
color: #333333;
}
.change-accessory .li .text-content .date{
color: #ff0000;
font-size: 24rpx;font-weight: bold;
}
.change-accessory .li .text-content .text{
width: auto;
font-size: 26rpx;
margin-bottom: 12rpx;
color: #666666;
}
</style>

View File

@ -0,0 +1,32 @@
<template>
<view>
<view class="hint">
客户服务重在回访仔细倾听以服务质量求发展
</view>
<view class="123123">
12312313
</view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style>
.hint{
color: #358ff0;
padding:30rpx;
}
</style>

View File

@ -1,6 +1,6 @@
<template>
<view class="content">
<statusNav navBarTitle="项目列表"></statusNav>
<statusNav navBarTitle="工单列表"></statusNav>
<view class="project-list-input">
<input type="text" class="int" value="" placeholder="请输入关键字" />
<image class="search" src="../../static/ss.png" mode=""></image>
@ -8,20 +8,20 @@
<view class="screen">
<picker @change="bindPickerChange" :value="index" :range="array">
<view class="li">
<view class="text">
产品类型
</view>
<image class="img" src="../../static/iocn/xla.png" mode="aspectFill"></image>
</view>
</picker>
<picker mode="date" :value="date" @change="bindDateChange">
<picker @change="bindPickerChange" :value="index" :range="array">
<view class="li">
<view class="text">
竣工日期
工单状态
</view>
<image class="img" src="../../static/iocn/xla.png" mode="aspectFill"></image>
</view>
</picker>
<picker mode="date" :value="date" @change="bindDateChange">
<view class="li">
<view class="text">
工单日期
</view>
<image class="img" src="../../static/iocn/xla.png" mode="aspectFill"></image>
</view>
@ -38,92 +38,176 @@
<view class="project-list">
<view class="li" @click="projectDetailsFun()">
<view class="work-order-code">
工单编号222226666558
</view>
<view class="message">
<image class="img" src="../../static/del/项目图片.png" mode="aspectFill"></image>
<view class="text">
<view class="title">
湖南工业大学化工学院会议室P2.5全彩LED显示屏
<view class="text clips1">
长沙市望城区xxxxxx项目名称
</view>
<view class="icon">
待维修
</view>
</view>
<view class="serial-number">
项目编号20220108-1001
<view class="type">
#网络故障#
</view>
<view class="date">
已故障2小时37分
</view>
</view>
<view class="specification">
规格型号DS-CK25FI/H
紧急程度<view class="text"> 加急
</view>
</view>
<view class="specification">
产品尺寸3.94*2.02
主负责人陈志远
</view>
<view class="installation-site">
安装位置xxx综合楼2楼会议室
<view class="installation-site clips2">
故障描述LED显示屏开机后闪屏不显示内容主控电
脑提示网络不通
</view>
</view>
</view>
<view class="project-list-address">
<view class="address">
<view class="address clips2">
<image class="img" src="../../static/iocn/im.png" mode="aspectFill"></image>
<view class="text">
湖南省长沙市高新开发区谷园路109号像素大厦1205
</view>
</view>
<view class="date">
2022/01/08
催一催 <image class="img" src="../../static/iocn/ld.png" mode=""></image>
</view>
</view>
<view class="icon iconBer">
质保到期
</view>
</view>
<view class="li">
<view class="li" @click="projectDetailsFun()">
<view class="work-order-code">
工单编号222226666558
</view>
<view class="message">
<image class="img" src="../../static/del/项目图片.png" mode="aspectFill"></image>
<view class="text">
<view class="title">
湖南工业大学化工学院会议室P2.5全彩LED显示屏
<view class="text clips1">
长沙市望城区xxxxxx项目名称
</view>
<view class="icon icon1">
已完成
</view>
</view>
<view class="serial-number">
项目编号20220108-1001
<view class="type">
#网络故障#
</view>
<view class="date">
已故障2小时37分
</view>
</view>
<view class="specification">
规格型号DS-CK25FI/H
紧急程度<view class="text"> 加急
</view>
</view>
<view class="specification">
产品尺寸3.94*2.02
主负责人陈志远
</view>
<view class="installation-site">
安装位置xxx综合楼2楼会议室
<view class="installation-site clips2">
故障描述LED显示屏开机后闪屏不显示内容主控电
脑提示网络不通
</view>
</view>
</view>
<view class="project-list-address">
<view class="address">
<view class="address clips2">
<image class="img" src="../../static/iocn/im.png" mode="aspectFill"></image>
<view class="text">
湖南省长沙市高新开发区谷园路109号像素大厦1205
</view>
</view>
<view class="date">
2022/01/08
催一催 <image class="img" src="../../static/iocn/ld.png" mode=""></image>
</view>
</view>
<view class="icon iconBera">
质保中
</view>
</view>
<view class="li" @click="projectDetailsFun()">
<view class="work-order-code">
工单编号222226666558
</view>
<view class="message">
<image class="img" src="../../static/del/项目图片.png" mode="aspectFill"></image>
<view class="text">
<view class="title">
<view class="text clips1">
长沙市望城区xxxxxx项目名称
</view>
<view class="icon icon3">
等待派工
</view>
</view>
<view class="serial-number">
<view class="type">
#网络故障#
</view>
<view class="date">
已故障2小时37分
</view>
</view>
<view class="specification">
紧急程度<view class="text"> 加急
</view>
</view>
<view class="specification">
主负责人陈志远
</view>
<view class="installation-site clips2">
故障描述LED显示屏开机后闪屏不显示内容主控电
脑提示网络不通
</view>
</view>
</view>
<view class="project-list-address">
<view class="address clips2">
<image class="img" src="../../static/iocn/im.png" mode="aspectFill"></image>
<view class="text">
湖南省长沙市高新开发区谷园路109号像素大厦1205
</view>
</view>
<view class="date">
催一催 <image class="img" src="../../static/iocn/ld.png" mode=""></image>
</view>
</view>
</view>
</view>
<footTabOne :current="1"></footTabOne>
<footTabOne :current="1"></footTabOne>
</view>
</template>
<script>
import statusNav from '../../components/status-nav.vue';
import footTabOne from "../../components/foot-tabs/foot-tab-one.vue"
import footTabOne from "../../components/foot-tabs/foot-tab-one.vue"
export default {
components:{
components: {
footTabOne,
statusNav
},
@ -134,20 +218,22 @@
return {
date: currentDate,
array: ['类型', '类型', '类型', '类型'],
index: 0,
index: 0,
}
},
methods: {
projectDetailsFun(){
uni.navigateTo({
url:"/pages/project/details"
})
projectDetailsFun() {
// uni.navigateTo({
// url: "/pages/project/details"
// })
},
bindPickerChange(data){
console.log(data)
bindPickerChange(data) {
console.log(data)
},
bindDateChange(date){
console.log(date)
bindDateChange(date) {
console.log(date)
},
getDate(type) {
const date = new Date();
@ -162,7 +248,7 @@
}
month = month > 9 ? month : '0' + month;
day = day > 9 ? day : '0' + day;
console.log(year,month,day)
console.log(year, month, day)
return `${year}-${month}-${day}`;
}
}
@ -173,10 +259,11 @@
page {
background-color: #F7F7F7;
}
.content{
padding-top: 76rpx;
}
.content {
padding-top: 76rpx;
}
.project-list-input {
width: 100%;
height: 114rpx;
@ -243,21 +330,8 @@
padding: 33rpx 23rpx;
}
.project-list .li .icon {
width: 135rpx;
height: 40rpx;
position: absolute;
font-size: 24rpx;
color: #FFFFFF;
right: 23rpx;
line-height: 40rpx;
text-align: center;
background-size: 100% 100%;
top: -10rpx;
}
.project-list .li .iconBer {
background-image: url(../../static/iocn/za.png);
}
@ -292,50 +366,95 @@
word-break: break-all;
margin-bottom: 15rpx;
font-size: 28rpx;
display: flex;
align-items: center;
line-height: 29rpx;
color: #333333;
font-weight: bold;
}
.project-list .li .message .text .title .text {
width: 60%;
}
.project-list .li .message .text .title .icon {
font-size: 24rpx;
width: 120rpx;
height: 40rpx;
background-color: #ff5400;
border-radius: 50rpx;
color: #FFFFFF;
text-align: center;
line-height: 40rpx;
}
.project-list .li .message .text .title .icon1{
background-color: #00a2e9;
}
.project-list .li .message .text .title .icon1{
background-color: #009a44;
}
.project-list .li .message .serial-number {
color: #ff8800;
color: #9b9ba3;
font-size: 24rpx;
margin-bottom: 15rpx;
line-height: 24rpx;
display: flex;
}
.project-list .li .message .serial-number .type {
margin-right: 60rpx;
}
.project-list .li .message .specification {
color: #00b1ff;
color: #9b9ba3;
font-size: 24rpx;
margin-bottom: 15rpx;
display: flex;
line-height: 24rpx;
}
.project-list .li .message .specification .text {
color: #f5b0b0;
}
.project-list .li .message .installation-site {
color: #6b6a6a;
color: #9b9ba3;
font-size: 24rpx;
margin-bottom: 15rpx;
line-height: 24rpx;
line-height: 30rpx;
}
.project-list-address {
display: flex;
/* justify-content: space-between; */
color: #9b9ba3;
justify-content: space-between;
width: 100%;
}
.project-list-address .text {
font-size: 24rpx;
flex: 1;
}
.project-list-address .date {
font-size: 24rpx;
text-align: right;
margin-left: 20rpx;
align-items: center;
display: flex;
color: #e90000;
margin-top: 12rpx;
}
.project-list-address .img {
width: 23rpx;
.project-list-address .date .img {
width: 26rpx;
height: 24rpx;
margin-left: 5rpx;
}
.project-list-address .address .img {
width: 22rpx;
height: 28rpx;
margin-right: 10rpx;
}
@ -343,7 +462,15 @@
.project-list-address .address {
display: flex;
align-items: center;
width: 60%;
}
.project-list .work-order-code {
font-size: 24rpx;
color: #9b9ba3;
margin-bottom: 26rpx;
}
.pickerDate {

View File

@ -0,0 +1,703 @@
<template>
<view class="content">
<statusNav navBarTitle="处理工单"></statusNav>
<view class="work-order-schedule">
<view class="li">
<view class="icon icon-after">
1
</view>
<view class="text">
签到执行
</view>
</view>
<view class="li">
<view class="icon icon-after">
2
</view>
<view class="text">
填写维保单
</view>
</view>
<view class="li">
<view class="icon on">
3
</view>
<view class="text">
结算审核
</view>
</view>
</view>
<view class="clearing-form">
<view class="title">
结算方式
</view>
<view class="clearing-form-content">
<view class="li" @click="clearingFormFun(index)" v-for="(item,index) in clearingForm">
<image class="icon" v-if="item.state" src="../../static/iocn/xuanz.png" mode=""></image>
<image class="icon" v-else src="../../static/iocn/xuan.png" mode=""></image>
{{item.title}}
</view>
</view>
</view>
<view class="work-order-from">
<picker mode="date" :value="date" @change="serveDate">
<view class="serve-date">
<view class="text">
请选择服务时间
</view>
<image class="icon" src="../../static/iocn/jt.png" mode=""></image>
</view>
</picker>
<view class="total-cost">
<view class="li">
<view class="text">
上门费
</view>
<view class="price">
120.00
</view>
</view>
<view class="li">
<view class="text on">
税金
</view>
<view class="price">
120.00
</view>
</view>
<view class="li">
<view class="text">
材料费
</view>
<view class="price">
120.00
</view>
</view>
<view class="li">
<view class="text">
其他费用
</view>
<view class="price">
120.00
</view>
</view>
</view>
<view class="total-price">
费用合计<text class="money">580.00</text>
</view>
<picker @change="bindPickerChange" :value="index" :range="array">
<view class="serve-date">
<view class="text">
请选择付款方式
</view>
<image class="icon" src="../../static/iocn/jt.png" mode=""></image>
</view>
</picker>
<view class="is-invoice">
<view class="text">
是否开票
</view>
<view class="radio" @click="isInvoiceFun(true)">
<image v-if="isInvoice" src="../../static/iocn/xz.png" class="icon" mode=""></image>
<view v-else class="icon1">
</view>
<text></text>
</view>
<view class="radio" @click="isInvoiceFun(false)">
<image v-if="!isInvoice" src="../../static/iocn/xz.png" class="icon" mode=""></image>
<view v-else class="icon1">
</view>
<text></text>
</view>
</view>
<view class="is-invoice">
<view class="text">
是否收款
</view>
<view class="radio" @click="isMoneyFun(true)">
<image v-if="isMoney" src="../../static/iocn/xz.png" class="icon" mode=""></image>
<view v-else class="icon1">
</view>
<text></text>
</view>
<view class="radio" @click="isMoneyFun(false)">
<image v-if="!isMoney" src="../../static/iocn/xz.png" class="icon" mode=""></image>
<view v-else class="icon1">
</view>
<text></text>
</view>
</view>
<view class="customerSignature">
<view class="title">
客户签名
</view>
<view class='contents'>
<canvas class='firstCanvas' canvas-id="firstCanvas" @touchmove='move' @touchstart='start($event)'
@touchend='end' @touchcancel='cancel' @longtap='tap' disable-scroll='true' @error='error'>
</canvas>
<!-- <button @click='clearClick'>清除</button> -->
<!-- <button @click='saveClick'>保存图片</button> -->
</view>
<view class="text" v-if="isCanvas">
请在此签名
</view>
</view>
<view class="money-receiving-code">
<view class="title">
<image src="../../static/iocn/shoukuan.png" class="icon" mode=""></image>
<view class="text">
微信支付宝等收款码
</view>
</view>
<image src="../../static/iocn/jt.png" mode="" class="img"></image>
</view>
<view class="address">
<image class="icon" src="../../static/iocn/dizi.png" mode=""></image>
<view class="text ">
湖南省株洲市荷塘区红旗中路456号(五矿二十三冶)
</view>
</view>
<view class="remark">
<view class="title">
备注内容
</view>
<textarea class="textarea" value="" placeholder="请输入备注内容" />
</view>
</view>
<button class="submit-button" type="default">提交审核</button>
</view>
</template>
<script>
import statusNav from '../../components/status-nav.vue';
import footTabOne from "../../components/foot-tabs/foot-tab-one.vue"
var content = null;
var touchs = [];
var canvasw = 0;
var canvash = 0;
//
uni.getSystemInfo({
success: function(res) {
canvasw = res.windowWidth;
canvash = canvasw * 9 / 16;
},
})
export default {
components: {
footTabOne,
statusNav,
},
data() {
return {
signImage: '',
date: "",
clearingForm: [{
title: '单次付费',
state: true,
},
{
title: '质保免费',
state: false,
},
{
title: '验收扫尾',
state: false,
},
{
title: '包年签单',
state: false,
},
],
isCanvas: true,
array: ['微信', '支付宝', '现金', '类型'],
isInvoice: true,
isMoney: true,
}
},
onLoad: function(options) {
//Canvas
content = uni.createCanvasContext('firstCanvas')
//线
content.setStrokeStyle("#000")
//线
content.setLineWidth(5)
//线
content.setLineCap('round')
//线
content.setLineJoin('round')
},
methods: {
clearingFormFun(index) {
for (var i = 0; i < this.clearingForm.length; i++) {
this.clearingForm[i].state = false
}
this.clearingForm[index].state = true
},
serveDate(data) {
console.log(data)
},
isInvoiceFun(is) {
this.isInvoice = is
},
isMoneyFun(is) {
this.isMoney = is
},
//
//
start: function(e) {
this.isCanvas = false
let point = {
x: e.touches[0].x,
y: e.touches[0].y,
}
touchs.push(point);
},
//
move: function(e) {
let point = {
x: e.touches[0].x,
y: e.touches[0].y
}
touchs.push(point)
if (touchs.length >= 2) {
this.draw(touchs)
}
},
//
end: function(e) {
console.log("触摸结束" + e)
//
for (let i = 0; i < touchs.length; i++) {
touchs.pop()
}
},
//
cancel: function(e) {
console.log("触摸取消" + e)
},
//
tap: function(e) {
console.log("长按手势" + e)
},
error: function(e) {
console.log("画布触摸错误" + e)
},
//
draw: function(touchs) {
let point1 = touchs[0]
let point2 = touchs[1]
touchs.shift()
content.moveTo(point1.x, point1.y)
content.lineTo(point2.x, point2.y)
content.stroke()
content.draw(true)
},
//
clearClick: function() {
//
content.clearRect(0, 0, canvasw, canvash)
content.draw(true)
},
//
saveClick: function() {
var that = this
uni.canvasToTempFilePath({
canvasId: 'firstCanvas',
success: function(res) {
//
console.log(res.tempFilePath)
//
that.signImage = res.tempFilePath
}
})
}
}
}
</script>
<style>
.content {
padding-top: 80rpx;
}
.submit-button {
width: 686rpx;
border-radius: 50rpx;
height: 90rpx;
background-color: #02A2ea;
line-height: 90rpx;
color: #FFFFFF;
margin-top: 60rpx;
text-align: center;
font-size: 30rpx;
}
.work-order-schedule {
display: flex;
padding: 22rpx 29rpx;
margin-top: 10rpx;
background-color: #FFFFFF;
justify-content: space-between;
}
.work-order-schedule .icon {
width: 38rpx;
height: 38rpx;
color: #FFFFFF;
margin: auto;
position: relative;
font-size: 24rpx;
margin-bottom: 10rpx;
text-align: center;
line-height: 38rpx;
background-color: #999999;
border-radius: 50%;
}
.work-order-schedule .on {
background-color: #5391F3
}
.work-order-schedule .text {
font-size: 24rpx;
color: #333333;
}
.work-order-schedule .icon-after::after {
content: "";
width: 265rpx;
height: 2rpx;
background-color: #999999;
position: absolute;
top: 19rpx;
left: 38rpx;
}
.clearing-form-content {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
padding: 0 30rpx;
background-color: #FFFFFF;
padding-top: 28rpx;
}
.clearing-form-content .li .icon {
width: 32rpx;
height: 32rpx;
margin-right: 18rpx;
}
.clearing-form-content .li {
width: 26%;
display: flex;
align-items: center;
margin-bottom: 33rpx;
font-size: 28rpx;
}
.clearing-form .title {
font-size: 28rpx;
color: #4d4b4b;
padding: 20rpx 30rpx;
font-size: 28rpx;
color: #333333;
}
.serve-date {
width: 100%;
height: 80rpx;
background-color: #FFFFFF;
display: flex;
justify-content: space-between;
padding: 0 20rpx;
box-sizing: border-box;
align-items: center;
margin-top: 14rpx;
}
.serve-date .text {
font-size: 28rpx;
color: #999999;
}
.serve-date .icon {
font-size: 28rpx;
color: #999999;
width: 22rpx;
height: 12rpx;
}
.work-order-from {
padding: 0 13rpx;
}
.total-cost {
margin-top: 14rpx;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.total-cost .li {
width: 355rpx;
height: 80rpx;
padding: 0 14rpx;
background-color: #FFFFFF;
line-height: 80rpx;
display: flex;
justify-content: space-between;
border-radius: 8rpx;
margin-bottom: 14rpx;
box-sizing: border-box;
}
.total-cost .li .text {
color: #999999;
font-size: 26rpx;
}
.total-cost .li .on {
letter-spacing: 45rpx;
}
.total-cost .li .price {
color: #333333;
font-size: 26rpx;
}
.total-price {
width: 100%;
height: 80rpx;
background-color: #fff;
font-size: 30rpx;
line-height: 80rpx;
text-align: center;
color: #333333;
}
.total-price .money {
color: #e52e2e;
font-weight: bold;
}
.is-invoice {
width: 100%;
height: 80rpx;
background-color: #fff;
display: flex;
align-items: center;
padding: 0 20rpx;
margin-top: 13rpx;
box-sizing: border-box;
}
.is-invoice .text {
font-size: 26rpx;
margin-right: 60rpx
}
.is-invoice .radio .icon {
width: 26rpx;
height: 26rpx;
background-color: #00A2E9;
border-radius: 50%;
margin-right: 20rpx;
}
.is-invoice .radio .icon1 {
width: 26rpx;
height: 26rpx;
border-radius: 50%;
box-sizing: border-box;
margin-right: 20rpx;
border: solid 2rpx #eeeeee;
}
.is-invoice .radio {
display: flex;
font-size: 26rpx;
align-items: center;
margin-right: 40rpx;
}
.customerSignature .title {
font-size: 30rpx;
font-weight: bold;
margin-bottom: 20rpx;
}
.customerSignature {
margin-top: 13rpx;
padding: 24rpx 13rpx;
background-color: #FFFFFF;
position: relative;
}
content {
width: 100%;
}
.customerSignature .text {
position: absolute;
top: 50%;
width: 100%;
text-align: center;
color: #cccccc;
}
.firstCanvas {
background-color: #FFFFFF;
width: 100%;
height: 250rpx;
}
.contents image {
width: 100%;
height: 200px;
background-color: orange;
}
.firstCanvas {
border: 2rpx dashed #cccccc;
border-radius: 10rpx;
}
.money-receiving-code {
width: 100%;
height: 80rpx;
display: flex;
padding: 0rpx 13rpx;
align-items: center;
margin-top: 13rpx;
box-sizing: border-box;
background-color: #FFFFFF;
justify-content: space-between;
}
.money-receiving-code .title{
display: flex;
align-items: center;
}
.money-receiving-code .title .icon{
width: 22rpx;
height: 22rpx;
margin-right: 30rpx;
}
.money-receiving-code .title .text{
font-size: 26rpx;
color: #333333;
}
.money-receiving-code .img{
width: 22rpx;
height: 12rpx;
}
.address{
width: 100%;
height: 80rpx;
background-color: #FFFFFF;
display: flex;
align-items: center;
margin-top: 13rpx;
box-sizing: border-box;
padding: 0rpx 13rpx;
}
.address .icon{
width: 24rpx;
height: 32rpx;
margin-right: 30rpx;
}
.address .text{
font-size: 26rpx;
color: #5d5c5c;
}
.remark{
width: 100%;
margin-top: 13rpx;
background-color: #FFFFFF;
padding: 20rpx 14rpx;
height: 360rpx;
box-sizing: border-box;
}
.remark .title{
margin-bottom: 30rpx;
font-size: 28rpx;
font-weight: bold;
}
.remark .textarea{
width: 100%;
box-sizing: border-box;
background-color: #f5f5f5;
height: 193rpx;
border-radius: 10rpx;
padding: 23rpx;
}
</style>

View File

@ -175,34 +175,34 @@
placeholder="" />
</view>
<view class="li">
<view class="li">
<view class="title">
维保图片
维保图片
</view>
<view class="input add-display">
<view class="">
<view class="input add-display">
<view class="">
<image class="img" src="../../static/del/微信图片_20220113152400.png" mode="aspectFill"></image>
<image class="img" src="../../static/del/微信图片_20220113152400.png" mode="aspectFill"></image>
</view>
<view class="add-img">
<image class="icon" src="../../static/iocn/jia.png" mode=""></image>
</view>
</view>
<image class="img" src="../../static/del/微信图片_20220113152400.png" mode="aspectFill"></image>
</view>
<view class="add-img">
<image class="icon" src="../../static/iocn/jia.png" mode=""></image>
</view>
</view>
</view>
<view class="li">
<view class="li">
<view class="title">
故障原因
故障原因
</view>
<textarea auto-height class="input input-black"
value="*********************************************************************************************************"
placeholder="" />
</view>
<view class="li">
<view class="li">
<view class="title">
主维保人
</view>
@ -210,8 +210,48 @@
</view>
</view>
<view class="cost-breakdown">
<view class="cost-breakdown-title">
<view class="title">
费用明细
</view>
<view class="btn">
添加配件
</view>
</view>
</view>
<button class="submit-button" type="default">签到</button>
<view class="cost-breakdown-content">
<view class="title">
<view class="li">
序号
</view>
<view class="li">
配件名称
</view>
<view class="li">
数量
</view>
<view class="li">
价格
</view>
</view>
<view class="text" v-for="(item,index) in accessoriesData">
<view class="li">
{{item.id}}
</view>
<view class="li">
{{item.title}}
</view>
<view class="li">
{{item.num}}
</view>
<view class="li">
{{item.price}}
</view>
</view>
</view>
<button class="submit-button" type="default">下一步</button>
</view>
</template>
@ -225,7 +265,28 @@
},
data() {
return {
accessoriesData: [{
id: 1,
title: "全彩LED显示屏接收卡",
num: 1,
price: "430"
},
{
id: 1,
title: "上门服务费",
num: 1,
price: "4310"
},
{
id: 1,
title: "全彩LED显示屏接收卡",
num: 1,
price: "430"
},
]
}
},
methods: {
@ -345,4 +406,93 @@
.work-order-from .li .input-black {
color: #292929;
}
.cost-breakdown-title {
padding: 0rpx 40rpx;
display: flex;
justify-content: space-between;
margin-top: 40rpx;
}
.cost-breakdown-title .title {
font-size: 30rpx;
color: #222222;
display: flex;
margin-bottom: 28rpx;
align-items: center;
}
.cost-breakdown-title .title::before {
content: "";
display: block;
width: 4rpx;
height: 30rpx;
margin-right: 22rpx;
background-color: #00a2e9;
}
.cost-breakdown-title .btn {
color: #00a2e9;
text-align: center;
width: 118rpx;
height: 50rpx;
border-radius: 14rpx;
line-height: 50rpx;
text-align: center;
font-size: 26rpx;
border: 2rpx solid #00a2e9;
}
.cost-breakdown-content{
padding: 0rpx 40rpx;
}
.cost-breakdown-content .title{
display: flex;
margin-bottom: 40rpx;
justify-content: space-between;
}
.cost-breakdown-content .title .li{
font-size: 28rpx;
font-weight: bold;
color: #222222;
text-align: center;
}
.cost-breakdown-content .text{
display: flex;
margin-bottom: 40rpx;
justify-content: space-between;
}
.cost-breakdown-content .text .li{
color: #4c4c4c;
font-size: 28rpx;
text-align: center;
}
.cost-breakdown-content .text .li:nth-child(1){
width: 80rpx;
}
.cost-breakdown-content .text .li:nth-child(2){
flex: 1;
}
.cost-breakdown-content .text .li:nth-child(3){
width: 80rpx;
}
.cost-breakdown-content .text .li:nth-child(4){
width: 120rpx;
}
.cost-breakdown-content .title .li:nth-child(1){
width: 80rpx;
}
.cost-breakdown-content .title .li:nth-child(2){
flex: 1;
}
.cost-breakdown-content .title .li:nth-child(3){
width: 80rpx;
}
.cost-breakdown-content .title .li:nth-child(4){
width: 120rpx;
}
</style>

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

BIN
static/iocn/dizi.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 667 B

BIN
static/iocn/jt.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 B

BIN
static/iocn/ld.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 716 B

BIN
static/iocn/shoukuan.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 768 B

BIN
static/iocn/siw3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
static/iocn/sta.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
static/iocn/swi2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
static/iocn/xuan.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
static/iocn/xuanz.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 660 B

BIN
static/iocn/xz.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 632 B