|
|
|
<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> -->
|
|
|
|
<text v-if="item.m_id==null" style="font-size: 26upx;color: #4CD964;">待提交</text>
|
|
|
|
<!-- <text v-if="item.me!=null&&item.me==1" style="font-size: 26upx;color: #007AFF;">查看</text> -->
|
|
|
|
<text v-if="item.me!=null&&item.me==1" style="font-size: 26upx;color: #007AFF;">待审核</text>
|
|
|
|
<text v-if="item.me!=null&&item.me==2" style="font-size: 26upx;color:#DD524D;">已审核</text>
|
|
|
|
</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 class="card-dow-list">
|
|
|
|
<view class="card-up-list-list">
|
|
|
|
<view>到货时间:</view><text>{{item.arrival_time}}</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: () => {}
|
|
|
|
// });
|
|
|
|
// }
|
|
|
|
rawMaterialInfo(item){
|
|
|
|
uni.navigateTo({
|
|
|
|
url: `../rawMaterialList/rawMaterialList?planInfo=${encodeURIComponent(JSON.stringify(item))}`,
|
|
|
|
success: res => {},
|
|
|
|
fail: () => {},
|
|
|
|
complete: () => {}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import "./index.scss";
|
|
|
|
</style>
|