add
This commit is contained in:
parent
2dff195b4f
commit
6d8812db22
|
@ -1,6 +1,5 @@
|
|||
<template>
|
||||
<view class="">
|
||||
|
||||
<up-sticky bgColor="#fff">
|
||||
<view class="head">
|
||||
<!-- <up-search placeholder="请输入提货点名称" @search="searchKeyword" v-model="keyword"
|
||||
|
@ -19,54 +18,112 @@
|
|||
</view>
|
||||
</view>
|
||||
</up-sticky>
|
||||
|
||||
|
||||
<view class="content">
|
||||
<view class="card" v-for="(item,index) in goodsList" :key='index'>
|
||||
<view class="head">
|
||||
<!-- <text> {{orer_sn}}</text> -->
|
||||
<!-- <text style="color: #989898;">{{time}}</text> -->
|
||||
</view>
|
||||
<view class="card-content">
|
||||
<view class="card-content-l" style="width: 152rpx;height: 152rpx;">
|
||||
<image style="width: 152rpx;height: 152rpx;" :src="item.goods.imgs" mode=""></image>
|
||||
<view class="status">
|
||||
{{tabIndex==1?"未报价":"已报价" }}
|
||||
<!-- 报价列表 -->
|
||||
<up-transition :show="showGoods1" mode="slide-left">
|
||||
<view class="" v-if="goodsList1.length>0">
|
||||
<view class="card" v-for="(item,index) in goodsList1" :key='index'>
|
||||
<view class="head">
|
||||
<!-- <text> {{orer_sn}}</text> -->
|
||||
<!-- <text style="color: #989898;">{{time}}</text> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="card-content-r">
|
||||
<view class="title ellipsis">
|
||||
{{item.goods.name}}
|
||||
</view>
|
||||
<view class="need">
|
||||
需求量: {{item.need_num}}{{item.unit_name}}
|
||||
</view>
|
||||
<view class="ipt">
|
||||
<up-input placeholderStyle='fontSize:24rpx' placeholder="点击数入报价数量" :readonly="tabIndex==2"
|
||||
v-model="item.nums"
|
||||
style="margin-right: 10rpx;background-color:#F6F6F6;border: none;"></up-input>
|
||||
<!-- <up-input placeholderStyle='fontSize:24rpx' placeholder="点击数入报价数量" :readonly="tabIndex==2"
|
||||
<view class="card-content">
|
||||
<view class="card-content-l" style="width: 152rpx;height: 152rpx;">
|
||||
<image style="width: 152rpx;height: 152rpx;" :src="item.goods.imgs" mode=""></image>
|
||||
<view class="status">
|
||||
{{tabIndex==1?"未报价":"已报价" }}
|
||||
</view>
|
||||
</view>
|
||||
<view class="card-content-r">
|
||||
<view class="title ellipsis">
|
||||
{{item.goods.name}}
|
||||
</view>
|
||||
<view class="need">
|
||||
需求量: {{item.need_num}}{{item.unit_name}}
|
||||
</view>
|
||||
<view class="ipt">
|
||||
<up-input placeholderStyle='fontSize:24rpx' placeholder="点击数入报价数量"
|
||||
:readonly="tabIndex==2" v-model="item.nums"
|
||||
style="margin-right: 10rpx;background-color:#F6F6F6;border: none;"></up-input>
|
||||
<!-- <up-input placeholderStyle='fontSize:24rpx' placeholder="点击数入报价数量" :readonly="tabIndex==2"
|
||||
v-model="item.num"
|
||||
style="margin-right: 10rpx;background-color:#F6F6F6;border: none;"></up-input> -->
|
||||
<up-input placeholderStyle='fontSize:24rpx' style="background-color: #F6F6F6;border: none;"
|
||||
placeholder="点击数入产品报价" @blur="priceBlur(index)" :readonly="tabIndex==2"
|
||||
v-model="item.price"></up-input>
|
||||
<up-input placeholderStyle='fontSize:24rpx'
|
||||
style="background-color: #F6F6F6;border: none;" placeholder="点击数入产品报价"
|
||||
@blur="priceBlur(index)" :readonly="tabIndex==2"
|
||||
v-model="item.price"></up-input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="status-png" v-if="tabIndex==2">
|
||||
<image :src="item.is_adopt?successPng:errPng" style="width: 108rpx; height: 84rpx;">
|
||||
</image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="card-footer" v-if="item.nums &&item.price">
|
||||
共{{item.nums}}{{item.unit_name}} 合计:<text
|
||||
style="font-size: 28rpx;color: #FC452F;font-weight: 700;">¥{{item.nums*item.price}}</text>
|
||||
</view>
|
||||
<up-line style="margin-top: 30rpx;" color="#F3F3F3"></up-line>
|
||||
</view>
|
||||
<view class="status-png" v-if="tabIndex==2">
|
||||
<image :src="item.is_adopt?successPng:errPng" style="width: 108rpx; height: 84rpx;"></image>
|
||||
<view class="submit-btn" v-if="tabIndex==1">
|
||||
<up-button shape='circle' color='#20B128' @click="submit" text="提交"></up-button>
|
||||
</view>
|
||||
</view>
|
||||
<view class="card-footer" v-if="item.nums &&item.price">
|
||||
共{{item.nums}}{{item.unit_name}} 合计:<text
|
||||
style="font-size: 28rpx;color: #FC452F;font-weight: 700;">¥{{item.nums*item.price}}</text>
|
||||
</view>
|
||||
<up-line style="margin-top: 30rpx;" color="#F3F3F3"></up-line>
|
||||
</view>
|
||||
<up-empty v-else mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png">
|
||||
</up-empty>
|
||||
</up-transition>
|
||||
<!-- 报价记录 -->
|
||||
<up-transition :show="showGoods2" mode="slide-right">
|
||||
<view class="" v-if="goodsList2.length>0">
|
||||
<view class="card" v-for="(item,index) in goodsList2" :key='index'>
|
||||
<view class="head">
|
||||
<!-- <text> {{orer_sn}}</text> -->
|
||||
<!-- <text style="color: #989898;">{{time}}</text> -->
|
||||
</view>
|
||||
<view class="card-content">
|
||||
<view class="card-content-l" style="width: 152rpx;height: 152rpx;">
|
||||
<image style="width: 152rpx;height: 152rpx;" :src="item.goods.imgs" mode=""></image>
|
||||
<view class="status">
|
||||
{{tabIndex==1?"未报价":"已报价" }}
|
||||
</view>
|
||||
</view>
|
||||
<view class="card-content-r">
|
||||
<view class="title ellipsis">
|
||||
{{item.goods.name}}
|
||||
</view>
|
||||
<view class="need">
|
||||
需求量: {{item.need_num}}{{item.unit_name}}
|
||||
</view>
|
||||
<view class="ipt">
|
||||
<up-input placeholderStyle='fontSize:24rpx' placeholder="点击数入报价数量"
|
||||
:readonly="tabIndex==2" v-model="item.nums"
|
||||
style="margin-right: 10rpx;background-color:#F6F6F6;border: none;"></up-input>
|
||||
<!-- <up-input placeholderStyle='fontSize:24rpx' placeholder="点击数入报价数量" :readonly="tabIndex==2"
|
||||
v-model="item.num"
|
||||
style="margin-right: 10rpx;background-color:#F6F6F6;border: none;"></up-input> -->
|
||||
<up-input placeholderStyle='fontSize:24rpx'
|
||||
style="background-color: #F6F6F6;border: none;" placeholder="点击数入产品报价"
|
||||
@blur="priceBlur(index)" :readonly="tabIndex==2"
|
||||
v-model="item.price"></up-input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="status-png" v-if="tabIndex==2">
|
||||
<image :src="item.is_adopt?successPng:errPng" style="width: 108rpx; height: 84rpx;">
|
||||
</image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="card-footer" v-if="item.nums &&item.price">
|
||||
共{{item.nums}}{{item.unit_name}} 合计:<text
|
||||
style="font-size: 28rpx;color: #FC452F;font-weight: 700;">¥{{item.nums*item.price}}</text>
|
||||
</view>
|
||||
<up-line style="margin-top: 30rpx;" color="#F3F3F3"></up-line>
|
||||
</view>
|
||||
|
||||
<view class="submit-btn" v-if="tabIndex==1">
|
||||
<up-button shape='circle' color='#20B128' @click="submit" text="提交"></up-button>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<up-empty v-else mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png">
|
||||
</up-empty>
|
||||
</up-transition>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
@ -101,18 +158,39 @@
|
|||
}
|
||||
|
||||
// 列表
|
||||
const showGoods = ref(false)
|
||||
const showGoods1 = ref(false)
|
||||
const showGoods2 = ref(false)
|
||||
const goodsList = ref([])
|
||||
const goodsList1 = ref([])
|
||||
const goodsList2 = ref([])
|
||||
|
||||
const getGoodsList = async (type) => {
|
||||
let res = await OpurchaseGoodsOfferListApi({
|
||||
type
|
||||
})
|
||||
goodsList.value = res.data.lists
|
||||
|
||||
goodsList.value.forEach(item => {
|
||||
item.nums = item.nums ? item.nums : ''
|
||||
item.price = (+item.price) ? item.price : ''
|
||||
})
|
||||
|
||||
if (type == 1) {
|
||||
showGoods2.value = false
|
||||
showGoods1.value = false
|
||||
let res = await OpurchaseGoodsOfferListApi({
|
||||
type
|
||||
})
|
||||
goodsList1.value = res.data.lists
|
||||
goodsList1.value.forEach(item => {
|
||||
item.nums = item.nums ? item.nums : ''
|
||||
item.price = (+item.price) ? item.price : ''
|
||||
})
|
||||
showGoods1.value = true
|
||||
} else {
|
||||
showGoods1.value = false
|
||||
showGoods2.value = false
|
||||
let res = await OpurchaseGoodsOfferListApi({
|
||||
type
|
||||
})
|
||||
goodsList2.value = res.data.lists
|
||||
goodsList2.value.forEach(item => {
|
||||
item.nums = item.nums ? item.nums : ''
|
||||
item.price = (+item.price) ? item.price : ''
|
||||
})
|
||||
showGoods2.value = true
|
||||
}
|
||||
}
|
||||
|
||||
const changeTabs = (num) => {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<view class="content">
|
||||
<up-navbar placeholder style="z-index: 10080;">
|
||||
<template #left>
|
||||
<view style="font-size: 30rpx;font-weight: bold;" @click="test">惠农批发</view>
|
||||
<view style="font-size: 30rpx;font-weight: bold;" @click="test">惠农批发{{targetHeight}} </view>
|
||||
</template>
|
||||
</up-navbar>
|
||||
<view class="navbar">
|
||||
|
@ -180,7 +180,6 @@
|
|||
let lastScollTop = 0
|
||||
const hideHeadView = (e) => {
|
||||
if (e.detail.scrollTop <= 0 || e.detail.scrollTop >= targetHeight.value) return
|
||||
// num.value = e.detail.scrollTop
|
||||
isScroll.value = e.detail.scrollTop > lastScollTop
|
||||
lastScollTop = e.detail.scrollTop
|
||||
|
||||
|
@ -373,8 +372,6 @@
|
|||
getgoodClassList();
|
||||
getGoodList();
|
||||
|
||||
|
||||
|
||||
})
|
||||
onShow(() => {
|
||||
getCartList();
|
||||
|
@ -396,7 +393,7 @@
|
|||
}
|
||||
setTimeout(() => {
|
||||
getWXDom()
|
||||
}, 100)
|
||||
}, 500)
|
||||
|
||||
})
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue