erp 新洋电子
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
2.0 KiB

4 years ago
<template>
<view>
4 years ago
<view class="card" v-for="(item,index) in list" :key="index" @tap="firstInspectionInfo(item.plan_id,item)">
4 years ago
<view class="card-left">
<view class="card-up-list">
<view class="card-up-list-list">
4 years ago
<view>物料名称:</view><text>{{item.product_name}}</text>
</view>
<view class="card-right">
人员统计
4 years ago
</view>
</view>
<view class="card-up-list">
<view class="card-up-list-list">
4 years ago
<view>物料编号:</view><text>{{item.product_number}}</text>
4 years ago
</view>
</view>
<view class="card-dow-list">
<view class="card-up-list-list">
4 years ago
<view>规格:</view><text>{{item.product_size}}</text>
4 years ago
</view>
<view class="card-up-list-list">
4 years ago
<view>产线:</view><text>{{item.line_title}}</text>
4 years ago
</view>
</view>
</view>
<view class="btn-grounp">
4 years ago
<view v-if="item.status==0||item.status==0" @tap="openLine()">开线</view>
<view v-if="item.status==1" class="btn-tx" @tap="stopLine()">停线</view>
<view v-if="item.status==0" class="btn-xx" @tap="offLine()">下线</view>
<view v-if="item.status==0" class="btn-blp" @tap="badProduct()">不良品统计</view>
<view v-if="item.status==0" class="btn-back" @tap="rework()">返修</view>
4 years ago
</view>
</view>
</view>
</template>
<script>
4 years ago
import {
firstCheckLists
} from "../../api/user.js";
4 years ago
export default {
4 years ago
onLoad() {
this.getData()
},
4 years ago
data() {
return {
4 years ago
list:[]
4 years ago
};
},methods:{
4 years ago
openLine(){
},
getData(){
firstCheckLists({}).then(res => {
this.list = res;
})
},
4 years ago
stopLine(){
uni.navigateTo({
url: '../stopLine/stopLine'
});
},
offLine(){
uni.navigateTo({
url: '../offLine/offLine'
});
},
badProduct(){
uni.navigateTo({
url: '../badProduct/badProduct'
});
}
,
rework(){
uni.navigateTo({
url: '../rework/rework'
});
}
}
}
</script>
<style lang="scss">
@import "./index.scss";
</style>