Compare commits

..

No commits in common. "a9c291d3f74b8c51f9022446dbefc2703411bcb8" and "3f34c421320ef55a716268674c8cc69a99a0b37a" have entirely different histories.

2 changed files with 232 additions and 160 deletions

View File

@ -20,36 +20,37 @@
<view class="work-order-from"> <view class="work-order-from">
<view class="li"> <view class="li">
<view class="title flexs">工单编号</view> <view class="title">工单编号</view>
<input type="text" disabled class="input" value="GD20211203-001" />
</view>
<view class="li">
<view class="title">项目编号</view>
<input type="text" disabled class="input" value="GD20211203-001" /> <input type="text" disabled class="input" value="GD20211203-001" />
</view> </view>
<view class="li"> <view class="li">
<view class="title flexs">项目编号</view> <view class="title">项目名称</view>
<input type="text" disabled class="input" value="GD20211203-001" />
</view>
<view class="li">
<view class="title flexs">项目名称</view>
<input type="text" disabled class="input input-black" value="湖南省林业科学院11楼会议室P2.5" /> <input type="text" disabled class="input input-black" value="湖南省林业科学院11楼会议室P2.5" />
</view> </view>
<view class="li"> <view class="li">
<view class="title flexs">产品类型</view> <view class="title">产品类型</view>
<input type="text" class="input" v-model="productType" placeholder="请填写产品类型" :style="{color: productType!='' ? '#000' : ''}" /> <input type="text" class="input" v-model="productType" placeholder="请填写产品类型" :style="{color: productType!='' ? '#000' : ''}" />
</view> </view>
<view class="li"> <view class="li">
<view class="title flexs">安装位置</view> <view class="title">安装位置</view>
<input type="text" class="input" v-model="installLocation" placeholder="请填写安装位置(例:详细地址+某某栋11楼会议室)" :style="{color: installLocation!='' ? '#000' : ''}" /> <input type="text" class="input" v-model="installLocation" placeholder="请填写安装位置" :style="{color: installLocation!='' ? '#000' : ''}" />
</view> </view>
<view class="li"> <view class="li">
<view class="title flexs">故障类型</view> <view class="title">故障类型</view>
<input type="text" class="input" v-model="faultType" placeholder="请填写故障类型(例:供电不足)" :style="{color: faultType!='' ? '#000' : ''}" /> <input type="text" class="input" v-model="faultType" placeholder="请填写故障类型" :style="{color: faultType!='' ? '#000' : ''}" />
</view> </view>
<view class="li"> <view class="li">
<view class="title flexs">紧急程度</view> <view class="title">紧急程度</view>
<input type="text" disabled class="input" placeholder="" value="紧急" /> <input type="text" disabled class="input" placeholder="" value="紧急" />
</view> </view>
<view class="li"> <view class="li">
<view class="title flexs"> 故障说明</view> <view class="title"> 故障说明</view>
<textarea class="input line-h36" v-model="faultExplain" style="height: 110rpx;" placeholder="请输入故障说明" :style="{color: faultExplain!='' ? '#000' : ''}" /> <textarea auto-height class="input" v-model="faultExplain" placeholder="请输入故障说明" :style="{color: faultExplain!='' ? '#000' : ''}" />
</view> </view>
<view class="li"> <view class="li">
<view class="title flexs">故障图片</view> <view class="title flexs">故障图片</view>
@ -57,27 +58,25 @@
<view v-for="(item,index) in faultImgList" :key="index" v-if="faultImgList.length!=0"> <view v-for="(item,index) in faultImgList" :key="index" v-if="faultImgList.length!=0">
<image class="img" :src="item" mode="aspectFill" ></image> <image class="img" :src="item" mode="aspectFill" ></image>
</view> </view>
<view v-if="faultImgList.length!=2" @tap="chooseImg" class="img disjcac" style="background-color: #DDDDDD;"> <view v-if="faultImgList.length!=2" @tap="chooseImg" class="img disjcac fon70" style="background-color: #DDDDDD;color: #EEEEEE;">+</view>
<image src="/static/iocn/jia.png" style="width: 80rpx;height: 80rpx;position: relative!important;" lazy-load></image>
</view>
</view> </view>
</view> </view>
</view> </view>
<view class="work-order-from"> <view class="work-order-from">
<view class="li"> <view class="li">
<view class="title flexs"> </view> <view class="title"> </view>
<input type="text" disabled class="input" placeholder="" value="林某" /> <input type="text" disabled class="input" placeholder="" value="林某" />
</view> </view>
<view class="li"> <view class="li">
<view class="title flexs">报单时间</view> <view class="title">报单时间</view>
<input type="text" disabled disabled class="input" placeholder="" value="2021/12/3 12:00:05" /> <input type="text" disabled disabled class="input" placeholder="" value="2021/12/3 12:00:05" />
</view> </view>
<view class="li"> <view class="li">
<view class="title flexs">服务方式</view> <view class="title">服务方式</view>
<input type="text" v-model="serviceMode" class="input input-black" placeholder="请填写服务方式(例:上门服务)" :style="{color: serviceMode!='' ? '#000' : ''}" /> <input type="text" v-model="serviceMode" class="input input-black" placeholder="请填写服务方式" :style="{color: serviceMode!='' ? '#000' : ''}" />
</view> </view>
<view class="li"> <view class="li">
<view class="title flexs">定位地址</view> <view class="title">定位地址</view>
<input type="text" disabled class="input" placeholder="定位地址" /> <input type="text" disabled class="input" placeholder="定位地址" />
</view> </view>
</view> </view>
@ -99,13 +98,12 @@
}, },
data() { data() {
return { return {
productType:'', // productType:'Q2.5-E', //
installLocation:'', // installLocation:'详细地址+某某栋11楼会议室', //
faultType:'', // faultType:'供电不足', //
faultExplain:'', // faultExplain:'', //
faultImgList:[], // faultImgList:[],
serviceMode: '' ,// serviceMode: '' ,//
flag:true
} }
}, },
methods: { methods: {
@ -121,44 +119,10 @@
}) })
}, },
goWorkOrderThree() { goWorkOrderThree() {
if(this.checkEmpty()){ uni.navigateTo({
if(this.flag) { url: "/pages/workOrder/workorderTwo"
this.flag = false; })
let params = { }
a:this.productType,
b:this.installLocation,
c:this.faultType,
d:this.faultExplain,
f:this.faultImgList.join(','),
e:this.serviceMode
}
console.log(params);
uni.navigateTo({
url: "/pages/workOrder/workorderTwo"
})
}
}
},
//
checkEmpty(){
let result = false;
if(!this.productType) {
this.$toolAll.tools.showToast('请填写产品类型');
} else if(!this.installLocation) {
this.$toolAll.tools.showToast('请填写安装位置');
} else if(!this.faultType) {
this.$toolAll.tools.showToast('请填写故障类型');
} else if(!this.faultExplain) {
this.$toolAll.tools.showToast('请填写故障说明');
} else if(this.faultImgList.length==0) {
this.$toolAll.tools.showToast('请添加故障图片');
} else if(!this.serviceMode) {
this.$toolAll.tools.showToast('请填写服务方式');
} else {
result = true;
}
return result;
}
} }
} }
</script> </script>
@ -223,7 +187,9 @@
.work-order-from .li .title { .work-order-from .li .title {
font-size: 26rpx; font-size: 26rpx;
/* width: 150rpx; */ width: 133rpx;
} }
.work-order-from .li .input { .work-order-from .li .input {

View File

@ -5,155 +5,280 @@
<view slot="content" returnColor="#c2c2c2" style="margin: -20rpx -25rpx 0rpx;"> <view slot="content" returnColor="#c2c2c2" style="margin: -20rpx -25rpx 0rpx;">
<view class="work-order-schedule"> <view class="work-order-schedule">
<view class="li"> <view class="li">
<view class="icon icon-after">1</view> <view class="icon icon-after">
<view class="text">签到执行</view> 1
</view>
<view class="text">
签到执行
</view>
</view> </view>
<view class="li"> <view class="li">
<view class="icon on icon-after">2</view> <view class="icon on icon-after">
<view class="text">填写维保单</view> 2
</view>
<view class="text">
填写维保单
</view>
</view> </view>
<view class="li"> <view class="li">
<view class="icon">3</view> <view class="icon">
<view class="text">结算审核</view> 3
</view>
<view class="text">
结算审核
</view>
</view> </view>
</view> </view>
<view class="work-order-from"> <view class="work-order-from">
<view class="li"> <view class="li">
<view class="title">工单编号</view> <view class="title">
<input type="text" class="input" disabled value="GD20211203-001" /> 工单编号
</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="XM20211203-001" />
</view> </view>
<view class="li"> <view class="li">
<view class="title">项目编号</view> <view class="title">
<input type="text" class="input" disabled value="XM20211203-001" /> 项目名称
</view>
<input type="text" class="input input-black" placeholder="" value="湖南省林业科学院11楼会议室P2.5" />
</view> </view>
<view class="li"> <view class="li">
<view class="title">项目名称</view> <view class="title">
<input type="text" class="input input-black" disabled value="湖南省林业科学院11楼会议室P2.5" /> 产品类型
</view>
<input type="text" class="input input-black" placeholder="" value="Q2.5-E" />
</view> </view>
<view class="li"> <view class="li">
<view class="title">产品类型</view> <view class="title">
<input type="text" class="input input-black" disabled value="Q2.5-E" /> 安装位置
</view>
<input type="text" class="input input-black" placeholder="" value="详细地址+某某栋11楼会议室" />
</view> </view>
<view class="li"> <view class="li">
<view class="title">安装位置</view> <view class="title">
<input type="text" class="input input-black" disabled value="详细地址+某某栋11楼会议室" /> 故障类型
</view>
<input type="text" class="input input-black" placeholder="" value="供电不足" />
</view> </view>
<view class="li"> <view class="li">
<view class="title">故障类型</view> <view class="title">
<input type="text" class="input input-black" disabled value="供电不足" /> 服务方式
</view>
<input type="text" class="input input-black" placeholder="" value="上门服务" />
</view> </view>
<view class="li"> <view class="li">
<view class="title">服务方式</view> <view class="title">
<input type="text" class="input input-black" disabled value="上门服务" />
故障说明
</view>
<textarea auto-height class="input input-black"
value="*********************************************************************************************************"
placeholder="" />
</view> </view>
<view class="li"> <view class="li">
<view class="title">故障说明</view> <view class="title">
<textarea auto-height disabled class="input input-black" value="确实供电不足" /> 故障图片
</view> </view>
<view class="li">
<view class="title">故障图片</view>
<view class="input add-display"> <view class="input add-display">
<view class=""> <view class="">
<image class="img" src="../../static/del/img001.png" mode="aspectFill" lazy-load></image> <image class="img" src="../../static/del/img001.png" mode="aspectFill"></image>
<image class="img" src="../../static/del/img001.png" mode="aspectFill" lazy-load></image> <image class="img" src="../../static/del/img001.png" mode="aspectFill"></image>
</view>
<view class="add-img">
<image class="icon" src="../../static/iocn/jia.png" mode=""></image>
</view> </view>
<!-- <view class="add-img">
<image class="icon" src="../../static/iocn/jia.png" mode="" lazy-load></image>
</view> -->
</view> </view>
</view> </view>
<view class="li"> <view class="li">
<view class="title">开始时间</view> <view class="title">
<input type="text" disabled class="input" placeholder="请选择开始时间" /> 开始时间
</view>
<input type="text" class="input " placeholder="" value="2022-01-25 09:39" />
</view> </view>
<view class="li"> <view class="li">
<view class="title">结束时间</view> <view class="title">
<input type="text" class="input input-black" placeholder="请选择结束时间" /> 结束时间
</view>
<input type="text" class="input input-black" placeholder="" value="2022-01-25 15:30" />
</view> </view>
<view class="li"> <view class="li">
<view class="title">维保用时</view> <view class="title">
<input type="text" disabled class="input " placeholder="(例:5小时51分钟)" /> 维保用时
</view>
<input type="text" class="input " placeholder="" value="5小时51分钟" />
</view> </view>
<view class="li"> <view class="li">
<view class="title">维保费用</view> <view class="title">
<input type="digit" disabled class="input input-black" placeholder="" /> 维保费用
</view>
<input type="text" class="input input-black" placeholder="" value="¥500.00元" />
</view> </view>
<view class="li"> <view class="li">
<view class="title">等待时长</view> <view class="title">
<input type="text" disabled class="input" placeholder="请填写等待时长" /> 等待时长
</view>
<input type="text" class="input " placeholder="" value="1天6小时35分钟" />
</view> </view>
<view class="li"> <view class="li">
<view class="title">主维保人</view> <view class="title">
<input type="text" disabled class="input input-black" value="陈志远" /> 主维保人
</view>
<input type="text" class="input input-black" placeholder="" value="陈志远" />
</view> </view>
<view class="li"> <view class="li">
<view class="title">更换配件</view> <view class="title">
<view class="rideo" style="margin-left: 14rpx;"> 更换配件
</view>
<view class="rideo">
<view class="isrideo" @click="isrideoFun(true)"> <view class="isrideo" @click="isrideoFun(true)">
<view class="icon " :class="isrideo?'on':''"> <view class="icon " :class="isrideo?'on':''">
<view class="icon-content"></view> <view class="icon-content">
</view>
</view>
<view class="">
</view> </view>
<view class=""></view>
</view> </view>
<view class="isrideo" @click="isrideoFun(false)"> <view class="isrideo" @click="isrideoFun(false)">
<view class="icon" :class="isrideo?'':'on'"> <view class="icon" :class="isrideo?'':'on'">
<view class="icon-content"></view> <view class="icon-content">
</view>
</view>
<view class="">
</view> </view>
<view class=""></view>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view class="work-order-from"> <view class="work-order-from">
<view class="li"> <view class="li">
<view class="title">工作描述</view> <view class="title">
<textarea maxlength="-1" class="input input-black line-h36" placeholder="请填写工作描述" style="height: 110rpx;" />
工作描述
</view>
<textarea auto-height class="input input-black"
value="*********************************************************************************************************"
placeholder="" />
</view> </view>
<view class="li"> <view class="li">
<view class="title">维保图片</view> <view class="title">
维保图片
</view>
<view class="input add-display"> <view class="input add-display">
<view class="posir" v-if="maintenanceImgList.length!=0" v-for="(item,index) in maintenanceImgList" :key="index"> <view class="">
<image class="img" :src="item" mode="aspectFill" lazy-load></image> <image class="img" src="../../static/del/img001.png" mode="aspectFill"></image>
<i @tap="delImg(index)" class="icon icon-del-white posia" style="font-size: 24rpx;top: 10rpx;right: 20rpx;"></i> <image class="img" src="../../static/del/img001.png" mode="aspectFill"></image>
</view> </view>
<view class="add-img" @tap="chooseImg">
<view class="add-img">
<image class="icon" src="../../static/iocn/jia.png" mode=""></image> <image class="icon" src="../../static/iocn/jia.png" mode=""></image>
</view> </view>
</view> </view>
</view> </view>
<view class="li"> <view class="li">
<view class="title">故障原因</view> <view class="title">
<textarea maxlength="-1" class="input input-black line-h36" placeholder="请填写故障原因" style="height: 110rpx;" />
故障原因
</view>
<textarea auto-height class="input input-black"
value="*********************************************************************************************************"
placeholder="" />
</view> </view>
<view class="li"> <view class="li">
<view class="title">维保人员</view> <view class="title">
<input type="text" class="input input-black" placeholder="请填写维保人员" /> 维保人员
</view>
<input type="text" class="input input-black" placeholder="" value="罗帅 陈志远" />
</view> </view>
</view> </view>
<view class="cost-breakdown"> <view class="cost-breakdown">
<view class="cost-breakdown-title"> <view class="cost-breakdown-title">
<view class="title">费用明细</view> <view class="title">
<view @click="addMountingsList()" class="btn">添加配件</view> 费用明细
</view>
<view @click="addMountingsList()" class="btn">
添加配件
</view>
</view> </view>
</view> </view>
<view class="cost-breakdown-content"> <view class="cost-breakdown-content">
<view class="title"> <view class="title">
<view class="li">序号</view> <view class="li">
<view class="li">配件名称</view> 序号
<view class="li">数量</view> </view>
<view class="li">价格</view> <view class="li">
配件名称
</view>
<view class="li">
数量
</view>
<view class="li">
价格
</view>
</view> </view>
<view class="text" v-for="(item,index) in accessoriesData"> <view class="text" v-for="(item,index) in accessoriesData">
<view class="li">{{item.id}}</view> <view class="li">
<view class="li">{{item.title}}</view> {{item.id}}
<view class="li">{{item.num}}</view> </view>
<view class="li">{{item.price}}</view> <view class="li">
{{item.title}}
</view>
<view class="li">
{{item.num}}
</view>
<view class="li">
{{item.price}}
</view>
</view> </view>
</view> </view>
<button class="submit-button" @click="goWorkorderTwo()" type="default">下一步</button> <button class="submit-button" @click="goWorkorderTwo()" type="default">下一步</button>
</view> </view>
</container-subgroup-two> </container-subgroup-two>
</view> </view>
</template> </template>
@ -191,28 +316,10 @@
price: "430" price: "430"
}, },
], ]
maintenanceImgList:[]
} }
}, },
methods: { methods: {
//
chooseImg(){
uni.chooseImage({
count:9,
sourceType:['album','camera'],
success: (res) => {
let imgsrc = res.tempFilePaths;
imgsrc.forEach(item=>{
this.maintenanceImgList.push(item);
})
}
})
},
//
delImg(index) {
this.maintenanceImgList.splice(index,1);
},
isrideoFun(is) { isrideoFun(is) {
this.isrideo = is this.isrideo = is
}, },
@ -299,7 +406,9 @@
.work-order-from .li .title { .work-order-from .li .title {
font-size: 26rpx; font-size: 26rpx;
/* width: 133rpx; */ width: 133rpx;
} }
.work-order-from .li .input { .work-order-from .li .input {
@ -310,15 +419,13 @@
} }
.work-order-from .li .input .img { .work-order-from .li .input .img {
/* width: 169rpx; */ width: 169rpx;
width: 160rpx;
height: 127rpx; height: 127rpx;
margin-right: 10rpx; margin-right: 10rpx;
} }
.work-order-from .li .input .add-img { .work-order-from .li .input .add-img {
/* width: 136rpx; */ width: 136rpx;
width: 160rpx;
height: 127rpx; height: 127rpx;
display: flex; display: flex;
justify-content: center; justify-content: center;
@ -333,7 +440,6 @@
.work-order-from .li .add-display { .work-order-from .li .add-display {
display: flex; display: flex;
flex-wrap: wrap;
} }
.work-order-from .li .input-black { .work-order-from .li .input-black {