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.
|
|
|
<template>
|
|
|
|
<view>
|
|
|
|
<view class="card" v-for="(item,index) in list" :key="index" @tap="rawMaterialInfo(item)">
|
|
|
|
<view class="card-left">
|
|
|
|
<view class="card-up-list">
|
|
|
|
<view class="card-up-list-list">
|
|
|
|
<view>材料名称:</view><text>{{item.title}}</text>
|
|
|
|
</view>
|
|
|
|
<view class="card-right">
|
|
|
|
<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>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="card-dow-list">
|
|
|
|
<view class="card-up-list-list">
|
|
|
|
<view>规格:</view><text>{{item.spec}}</text>
|
|
|
|
</view>
|
|
|
|
<view class="card-up-list-list">
|
|
|
|
<view>数量:</view><text>{{item.math}}</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import {purchaseLists} from "../../api/user.js"
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
list:[],
|
|
|
|
type:0
|
|
|
|
};
|
|
|
|
},
|
|
|
|
onLoad() {
|
|
|
|
this.bidData()
|
|
|
|
},
|
|
|
|
methods:{
|
|
|
|
bidData(){
|
|
|
|
purchaseLists().then(res=>{
|
|
|
|
this.list=res
|
|
|
|
console.log("列表数据",this.list)
|
|
|
|
})
|
|
|
|
},
|
|
|
|
rawMaterialInfo(item){
|
|
|
|
uni.navigateTo({
|
|
|
|
url: `../rawMaterialInfo/rawMaterialInfo?planInfo=${encodeURIComponent(JSON.stringify(item))}`,
|
|
|
|
success: res => {},
|
|
|
|
fail: () => {},
|
|
|
|
complete: () => {}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import "./index.scss";
|
|
|
|
</style>
|