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.

62 lines
1.5 KiB

4 years ago
<template>
<view>
4 years ago
<view class="card" v-for="(item,index) in list" :key="index" @tap="rawMaterialInfo(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.title}}</text>
4 years ago
</view>
<view class="card-right">
4 years ago
<image class="glass-cion" v-if="item.examine_status==0" src="../../static/search.png"></image>
<image class="sh-cion" v-if="item.examine_status==1" src="../../static/dsh.png"></image>
<image class="sh-cion" v-if="item.examine_status==2" src="../../static/ysh.png"></image>
4 years ago
</view>
</view>
<view class="card-dow-list">
<view class="card-up-list-list">
4 years ago
<view>规格:</view><text>{{item.spec}}</text>
4 years ago
</view>
<view class="card-up-list-list">
4 years ago
<view>数量:</view><text>{{item.math}}</text>
4 years ago
</view>
</view>
</view>
</view>
</view>
</template>
<script>
4 years ago
import {purchaseLists} from "../../api/user.js"
4 years ago
export default {
data() {
return {
4 years ago
list:[],
type:0
4 years ago
};
4 years ago
},
onLoad() {
this.bidData()
},
methods:{
bidData(){
purchaseLists().then(res=>{
this.list=res
console.log("列表数据",this.list)
})
},
rawMaterialInfo(item){
4 years ago
uni.navigateTo({
4 years ago
url: `../rawMaterialInfo/rawMaterialInfo?planInfo=${encodeURIComponent(JSON.stringify(item))}`,
4 years ago
success: res => {},
fail: () => {},
complete: () => {}
});
}
}
}
</script>
<style lang="scss">
@import "./index.scss";
</style>