修改设备工单

This commit is contained in:
2024-04-30 16:08:07 +08:00
parent 2b8797a1ac
commit 162ef0ef26
23 changed files with 1629 additions and 363 deletions

View File

@ -1,6 +1,6 @@
<template>
<view class="page_padding">
<view class="detail_list contentboxsty ">
<view class="detail_list contentboxsty">
<view class="list_top">
<view class="top_left">
工单号 <text class="padd_left12">{{form.order_sn}}</text>
@ -13,11 +13,11 @@
<view class="content_left font13">
<view class="content_row">
<text class="name">生产开始时间</text>
<text class="data">{{form.created_at}}</text>
<text class="data">{{form.time_start==''?'-':form.time_start}}</text>
</view>
<view class="content_row">
<text class="name">生产结束时间</text>
<text class="data">{{form.updated_at}}</text>
<text class="data">{{form.time_end==''?'-':form.time_end}}</text>
</view>
<view class="content_row">
<text class="name">工单耗时</text>

View File

@ -5,7 +5,6 @@
<searchView placeholder=" 搜索工单" />
</view>
<view class="flexBox">
<!-- <scroll-view scroll-y="true" class="scrollView"> -->
<view v-for="(item,index) in list" :key="index" class="detail_list contentboxsty font13">
<view @click="toDetail(item.id)">
<view class="list_top">
@ -67,7 +66,6 @@
</view>
</view>
<loadMore :noData="loadParams.noData" :loading="loadParams.loading" :loadEnd="loadParams.loadEnd" />
<!-- </scroll-view> -->
</view>
</view>
</template>
@ -108,6 +106,11 @@
// 上拉刷新
onPullDownRefresh(){
this.params.page = 1;
this.loadParams = {
noData:false,
loading:false,
loadEnd:false
};
this.listData(2);
},
// 加载下一页
@ -127,11 +130,10 @@
})
}
this.$api.request('/order.list',this.params).then(res=>{
console.log(res,566)
if(type ==2){
uni.stopPullDownRefresh();
}
setTimeout(function () {
setTimeout( ()=> {
uni.hideLoading();
}, 200);
@ -147,10 +149,8 @@
}else{
this.list = this.list.concat(res.data.rows);
}
}).catch(err=>{
console.log('err',err)
setTimeout(function () {
setTimeout( ()=> {
uni.hideLoading();
}, 200);
})
@ -175,7 +175,7 @@
.percentage{color: $uni-text-color-primary;margin: 10px 0 0 0;}
}
.list_below{padding-bottom: 12px;
.row{display: flex;padding-top: 10px;
.row{display: flex;padding-top: 12px;
.row_left{
white-space: nowrap;overflow: hidden;text-overflow: ellipsis;
padding-right: 4px;