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.

93 lines
2.1 KiB

4 years ago
<template>
<view>
4 years ago
<view class="card" v-for="(item,index) in list" :key="index">
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(item.plan_id)">开线</view>
<view v-if="item.status==1" class="btn-tx" @tap="stopLine(item)">停线</view>
4 years ago
<view v-if="item.status==0" class="btn-xx" @tap="offLine()">下线</view>
4 years ago
<view class="btn-blp" @tap="badProduct()">不良品统计</view>
<view class="btn-back" @tap="rework()">返修</view>
4 years ago
</view>
</view>
</view>
</template>
<script>
4 years ago
import {
4 years ago
firstCheckLists,
openLine
4 years ago
} 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(plan_id){
openLine({id:plan_id}).then(res=>{
this.$functions.sucess("操作成功").then({
},this.getData());
})
4 years ago
},
getData(){
4 years ago
firstCheckLists({type:1}).then(res => {
4 years ago
this.list = res;
})
},
4 years ago
stopLine(item){
4 years ago
uni.navigateTo({
4 years ago
url: `../stopLine/stopLine?planInfo=${encodeURIComponent(JSON.stringify(item))}`
4 years ago
});
},
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>