<template>
|
<view>
|
<uni-card v-for="item in inspections" @click="gotoInfo(item)">
|
<u-row customStyle="margin-bottom: 10px">
|
<u-col span="2">
|
<label>检验单号:</label>
|
</u-col>
|
<u-col span="4">
|
<label>{{item.TASK_NO}}</label>
|
</u-col>
|
</u-row>
|
<u-row customStyle="margin-bottom: 10px">
|
<u-col span="2">
|
<label>机台号:</label>
|
</u-col>
|
<u-col span="4">
|
<label>{{item.MACHINE_NO}}</label>
|
</u-col>
|
</u-row>
|
<u-row customStyle="margin-bottom: 10px">
|
<u-col span="2">
|
<label>工序名称:</label>
|
</u-col>
|
<u-col span="4">
|
<label>{{item.PROC_NAME}}</label>
|
</u-col>
|
</u-row>
|
<u-row customStyle="margin-bottom: 10px">
|
<u-col span="2">
|
<label>检验频率(H):</label>
|
</u-col>
|
<u-col span="4">
|
<label></label>
|
</u-col>
|
</u-row>
|
<u-row customStyle="margin-bottom: 10px">
|
<u-col span="2">
|
<label>产品名称:</label>
|
</u-col>
|
<u-col span="4">
|
<label>{{item.ITEM_NAME}}</label>
|
</u-col>
|
</u-row>
|
<u-row customStyle="margin-bottom: 10px">
|
<u-col span="2">
|
<label>产品编号:</label>
|
</u-col>
|
<u-col span="4">
|
<label>{{item.ITEM_NO}}</label>
|
</u-col>
|
</u-row>
|
<u-row customStyle="margin-bottom: 10px">
|
<u-col span="2">
|
<label>操作员:</label>
|
</u-col>
|
<u-col span="4">
|
<label>{{item.OPERATE_MAN}}</label>
|
</u-col>
|
</u-row>
|
<u-row customStyle="margin-bottom: 10px">
|
<u-col span="2">
|
<label>检验类型</label>
|
</u-col>
|
<u-col span="4">
|
<label>{{item.REMEKE}}</label>
|
</u-col>
|
</u-row>
|
<u-row customStyle="margin-bottom: 10px">
|
<u-col span="2">
|
<label>上次检验时间</label>
|
</u-col>
|
<u-col span="4">
|
<label></label>
|
</u-col>
|
</u-row>
|
<u-row customStyle="margin-bottom: 10px">
|
<u-col span="2">
|
<label>下次检验时间</label>
|
</u-col>
|
<u-col span="4">
|
<label></label>
|
</u-col>
|
</u-row>
|
</uni-card>
|
<u-toast ref="uToast" />
|
</view>
|
</template>
|
|
<script>
|
import { getInspectionList } from '../../api/inspection'
|
export default {
|
data() {
|
return {
|
inspections: []
|
}
|
},
|
onLoad() {
|
this.getInspections()
|
},
|
onBackPress() {
|
uni.navigateBack({delta:1})
|
},
|
methods: {
|
getInspections() {
|
getInspectionList().then(res => {
|
console.log(res)
|
if(!res.result) {
|
this.$refs.uToast.show({
|
message: res.msg,
|
type: 'error'
|
})
|
return
|
}
|
this.inspections = res.data
|
})
|
},
|
gotoInfo(e) {
|
console.log(e)
|
uni.navigateTo({
|
url:'/pages/inspection/inspectionInfo?item='+ encodeURIComponent(JSON.stringify(e)) ,
|
})
|
}
|
}
|
}
|
</script>
|
|
<style>
|
|
</style>
|