报价单列表页面开发
This commit is contained in:
parent
ebb8e0a2af
commit
22725d4d58
@ -9,15 +9,14 @@
|
||||
</view>
|
||||
<view style="background-color: white;padding: 20rpx;">
|
||||
<u-search :showAction="true" v-model="keyword" :actionStyle="{color:'#20B128'}" actionText="搜索"
|
||||
placeholder="输入商品分类" :animation="true"></u-search>
|
||||
placeholder="输入商品分类" :animation="true" @search="getLists" @custom='getLists'></u-search>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <u-navbar title="报价订单" @rightClick="rightClick" leftText="返回">
|
||||
</u-navbar> -->
|
||||
|
||||
|
||||
|
||||
<view class="content">
|
||||
<view class="li" v-for="item in 10" @click="navgo('/pages/quote/index')">
|
||||
<view class="li" v-for="(item,index) in lists" :key="index" @click="navgo('/pages/quote/index')">
|
||||
<view>
|
||||
PF171504442988969633
|
||||
</view>
|
||||
@ -44,10 +43,15 @@
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import {
|
||||
OpurchaseGoodsOfferListApi
|
||||
} from "@/api/supplier.js"
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
keyword: ''
|
||||
keyword: '',
|
||||
lists: 10
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@ -55,10 +59,18 @@
|
||||
uni.navigateTo({
|
||||
url
|
||||
})
|
||||
},
|
||||
async getLists() {
|
||||
let res = await OpurchaseGoodsOfferListApi({
|
||||
keyword: this.keyword
|
||||
})
|
||||
this.lists = res.data.lists
|
||||
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
uni.showTabBar()
|
||||
this.getLists()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
@ -162,6 +162,14 @@
|
||||
url
|
||||
})
|
||||
},
|
||||
async getHasBindBankList() {
|
||||
this.getFormData(this.form, this.hasBindAccount[0])
|
||||
return
|
||||
let res = await amountAccountApi({})
|
||||
this.balance = res.data.balance
|
||||
// this.hasBindAccount = res.data.hasBindAccount
|
||||
// this.target_bank = res.data.hasBindAccount[0] || {}
|
||||
},
|
||||
getFormData(form, target) {
|
||||
if (!target) {
|
||||
form.value = {}
|
||||
@ -198,6 +206,7 @@
|
||||
},
|
||||
onLoad() {
|
||||
uni.showTabBar()
|
||||
this.getHasBindBankList()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
@ -16,7 +16,7 @@
|
||||
</view>
|
||||
|
||||
<view style="margin-top: 20rpx; display: flex;align-items: center;" @click="showDate=true">
|
||||
<text>{{formatTimestampToYearMonth(nowTimes) }}</text> <u-icon name="arrow-down"></u-icon>
|
||||
<text>{{ formatTimestampToYearMonth(nowTimes) }}</text> <u-icon name="arrow-down"></u-icon>
|
||||
</view>
|
||||
<view class="recoder" v-if="lists.length">
|
||||
<view class="card" v-for="(item,index) in lists" :key="index">
|
||||
@ -42,20 +42,25 @@
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<up-empty v-else mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png">
|
||||
</up-empty>
|
||||
<u-empty v-else mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png">
|
||||
</u-empty>
|
||||
<u-datetime-picker :show="showDate" @confirm='confirmDate' :maxDate='now' @cancel='showDate=false'
|
||||
@close='showDate=false' v-model="nowTimes" mode="year-month"></u-datetime-picker>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import {
|
||||
UserWithdrawListsApi,
|
||||
UserWithdrawIndexApi,
|
||||
} from "@/api/supplier.js"
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
keyword: '',
|
||||
total: "",
|
||||
count: "",
|
||||
nowTimes: '',
|
||||
nowTimes: new Date().getTime(),
|
||||
now: new Date().getTime(),
|
||||
showDate: false,
|
||||
lists: [{
|
||||
@ -291,10 +296,31 @@
|
||||
month = '0' + month; // 如果月份小于10,则在前面补零
|
||||
}
|
||||
return year + '-' + month;
|
||||
},
|
||||
confirmDate(e) {
|
||||
this.nowTimes = this.formatTimestampToYearMonth(e.value)
|
||||
this.getList()
|
||||
this.showDate = false
|
||||
},
|
||||
|
||||
async getAmount() {
|
||||
let res = await UserWithdrawIndexApi()
|
||||
this.count = res.data.count
|
||||
this.total = res.data.total
|
||||
|
||||
},
|
||||
async getList() {
|
||||
let res = await UserWithdrawListsApi({
|
||||
create_time: this.formatTimestampToYearMonth(this.nowTimes)
|
||||
})
|
||||
this.lists = res.data.lists
|
||||
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
uni.showTabBar()
|
||||
this.getList()
|
||||
this.getAmount()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user