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.

68 lines
1.7 KiB

3 years ago
<template>
<view>
3 years ago
<view class="card" v-for="(item,index) in list" :key="index" @tap="firstInspectionInfo(item.plan_id,item)">
3 years ago
<view class="card-left">
<view class="card-up-list">
<view class="card-up-list-list">
3 years ago
<view>物料名称:</view><text>{{item.product_name}}</text>
3 years ago
</view>
<view class="card-right">
3 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>
3 years ago
</view>
</view>
<view class="card-up-list">
<view class="card-up-list-list">
3 years ago
<view>物料编号:</view><text>{{item.product_number}}</text>
3 years ago
</view>
</view>
<view class="card-dow-list">
<view class="card-up-list-list">
3 years ago
<view>规格:</view><text>{{item.product_size}}</text>
3 years ago
</view>
<view class="card-up-list-list">
3 years ago
<view>产线:</view><text>{{item.line_title}}</text>
3 years ago
</view>
</view>
</view>
</view>
</view>
</template>
<script>
3 years ago
import {
firstCheckLists
} from "../../api/user.js";
3 years ago
export default {
3 years ago
onLoad() {
this.bindData();
},
3 years ago
data() {
return {
3 years ago
list: []
3 years ago
};
3 years ago
},
methods: {
bindData() {
firstCheckLists({type:2}).then(res => {
this.list = res;
})
},
firstInspectionInfo(plan_id,item) {
console.log("id",plan_id)
3 years ago
uni.navigateTo({
3 years ago
url: `../sprayList/sprayList?plan_id=${plan_id}&planInfo=${encodeURIComponent(JSON.stringify(item))}`,
3 years ago
success: res => {},
fail: () => {},
complete: () => {}
});
}
}
}
</script>
<style lang="scss">
3 years ago
@import "./index.scss";
3 years ago
</style>