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.

75 lines
1.9 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>
4 years ago
</view>
<view class="card-right">
4 years ago
<image class="glass-cion" v-if="item.check==0" src="../../static/search.png"></image>
<image class="sh-cion" v-if="item.check==1" src="../../static/dsh.png"></image>
<image class="sh-cion" v-if="item.check==2" src="../../static/ysh.png"></image>
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>
3 years ago
<view class="card-up-list">
<view class="card-up-list-list">
<view>生产日期:</view><text>{{item.production}}{{item.week}}</text>
</view>
</view>
4 years ago
<view class="card-dow-list">
<view class="card-up-list-list">
4 years ago
<view>班次:</view>
<text v-if="item.frequency==0">夜班</text>
<text v-if="item.frequency==1">白班</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>
</view>
</template>
<script>
4 years ago
import {
firstCheckLists
} from "../../api/user.js";
4 years ago
export default {
4 years ago
onLoad() {
this.bindData();
},
4 years ago
data() {
return {
4 years ago
list: []
4 years ago
};
4 years ago
},
methods: {
bindData() {
firstCheckLists({type:3}).then(res => {
this.list = res;
})
},
firstInspectionInfo(plan_id,item) {
console.log("id",plan_id)
4 years ago
uni.navigateTo({
4 years ago
url: `../assembleList/assembleList?plan_id=${plan_id}&planInfo=${encodeURIComponent(JSON.stringify(item))}`,
4 years ago
success: res => {},
fail: () => {},
complete: () => {}
});
}
}
}
</script>
<style lang="scss">
4 years ago
@import "./index.scss";
4 years ago
</style>