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.

59 lines
1.3 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">
<image src="../../static/search.png"></image>
</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:[]
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>