main
liudan 2 years ago
parent ad52d35b7d
commit 7629a5706b
  1. 4
      pages/checkList/checkList.vue
  2. 12
      pages/processList/processList.vue
  3. 10
      pages/taskDetail/taskDetail.vue
  4. 6
      pages/taskList/taskList.vue

@ -64,7 +64,7 @@
<view> <view>
不良品数量{{i.rejects_num}} 不良品数量{{i.rejects_num}}
</view> </view>
<view class="lookdetails" v-if="isCheck==2" @click="checkHandle(i)"> <view class="lookdetails" v-if="i.is_check==1" @click="checkHandle(i)">
检测 检测
</view> </view>
</view> </view>
@ -105,7 +105,6 @@
return { return {
taskList:[], taskList:[],
show:false, show:false,
isCheck:0,
checkDialog:false, checkDialog:false,
qualified_num:'', qualified_num:'',
selectedId:null selectedId:null
@ -147,7 +146,6 @@
checkList().then(res=>{ checkList().then(res=>{
console.log(res) console.log(res)
this.taskList = res.data.list this.taskList = res.data.list
this.isCheck = res.data.is_check
}) })
}, },
changeUser(){ changeUser(){

@ -38,7 +38,7 @@
</view> </view>
</view> </view>
<view class="rowItem"> <view class="rowItem">
<view :class="item.status == 1?'status right':'status right finish'"> <view :class="item.status == 1?'status unfinish right':item.status == 2?'status right':'status right finish'">
状态<text>{{ item.status == 1 ? '未完成' : (item.status == 2 ? '进行中' : '已完成')}}</text> 状态<text>{{ item.status == 1 ? '未完成' : (item.status == 2 ? '进行中' : '已完成')}}</text>
</view> </view>
<view class="lookdetails right" @click="goProgress(item)" v-if="item.is_info == 1&&item.is_start == 1"> <view class="lookdetails right" @click="goProgress(item)" v-if="item.is_info == 1&&item.is_start == 1">
@ -104,7 +104,7 @@
}, },
goProgress(item){ goProgress(item){
uni.navigateTo({ uni.navigateTo({
url:'/pages/taskDetail/taskDetail?id='+item.id + '&status='+item.status + '&is_start='+ item.is_start +'&heat_num=' +this.info.heat_num +'&taskId='+this.info.id url:'/pages/taskDetail/taskDetail?id='+item.id + '&status='+item.status + '&is_start='+ item.is_start +'&heat_num=' +this.info.heat_num +'&taskId='+this.info.id+'&code='+this.info.code
}) })
} }
@ -190,8 +190,16 @@
color:#FFAD0F; color:#FFAD0F;
} }
} }
.unfinish{
text{
color:red !important;
}
}
.finish{ .finish{
color:#0DC0F4 !important; color:#0DC0F4 !important;
text{
color:green !important;
}
} }
.planTime{ .planTime{

@ -3,7 +3,7 @@
<!-- --> <!-- -->
<u-navbar <u-navbar
title="操作详情" title="操作详情"
:autoBack="true" @leftClick="leftClick"
:safeAreaInsetTop="false" :safeAreaInsetTop="false"
> >
<view class="u-nav-slot" slot="right" @click="show = true"> <view class="u-nav-slot" slot="right" @click="show = true">
@ -287,6 +287,7 @@
this.$store.commit('logout') this.$store.commit('logout')
}) })
}, },
confirmProcedureHandle(id){ confirmProcedureHandle(id){
confirmProcedureHandle({id:id}).then(res=>{ confirmProcedureHandle({id:id}).then(res=>{
@ -354,7 +355,12 @@
} }
console.log(this.contentInfo) console.log(this.contentInfo)
}) })
} },
leftClick(){
uni.navigateTo({
url:'/pages/processList/processList?code='+this.info.code+'&id='+this.info.taskId+'&heat_num=' +this.info.heat_num
})
},
}, },
onLoad(option) { onLoad(option) {

@ -29,6 +29,9 @@
<view class="code rowItem"> <view class="code rowItem">
编号{{i.art_number}} 编号{{i.art_number}}
</view> </view>
<view class="code rowItem">
当前工序{{i.procedure}}
</view>
<view class="code rowItem"> <view class="code rowItem">
<view> <view>
数量{{i.total}} 数量{{i.total}}
@ -170,6 +173,9 @@
} }
.finish{ .finish{
color:#0DC0F4 !important; color:#0DC0F4 !important;
text{
color:green !important;
}
} }
.planTime{ .planTime{

Loading…
Cancel
Save