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.
 
 
 

58 lines
1.3 KiB

<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 src="../../static/search.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:[]
};
},
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>