报价单列表页面开发
This commit is contained in:
parent
ebb8e0a2af
commit
22725d4d58
@ -9,15 +9,14 @@
|
|||||||
</view>
|
</view>
|
||||||
<view style="background-color: white;padding: 20rpx;">
|
<view style="background-color: white;padding: 20rpx;">
|
||||||
<u-search :showAction="true" v-model="keyword" :actionStyle="{color:'#20B128'}" actionText="搜索"
|
<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>
|
||||||
</view>
|
</view>
|
||||||
<!-- <u-navbar title="报价订单" @rightClick="rightClick" leftText="返回">
|
|
||||||
</u-navbar> -->
|
|
||||||
|
|
||||||
|
|
||||||
<view class="content">
|
<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>
|
<view>
|
||||||
PF171504442988969633
|
PF171504442988969633
|
||||||
</view>
|
</view>
|
||||||
@ -44,10 +43,15 @@
|
|||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import {
|
||||||
|
OpurchaseGoodsOfferListApi
|
||||||
|
} from "@/api/supplier.js"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
keyword: ''
|
keyword: '',
|
||||||
|
lists: 10
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -55,10 +59,18 @@
|
|||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url
|
url
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
async getLists() {
|
||||||
|
let res = await OpurchaseGoodsOfferListApi({
|
||||||
|
keyword: this.keyword
|
||||||
|
})
|
||||||
|
this.lists = res.data.lists
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
uni.showTabBar()
|
uni.showTabBar()
|
||||||
|
this.getLists()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -162,6 +162,14 @@
|
|||||||
url
|
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) {
|
getFormData(form, target) {
|
||||||
if (!target) {
|
if (!target) {
|
||||||
form.value = {}
|
form.value = {}
|
||||||
@ -198,6 +206,7 @@
|
|||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
uni.showTabBar()
|
uni.showTabBar()
|
||||||
|
this.getHasBindBankList()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -42,20 +42,25 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<up-empty v-else mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png">
|
<u-empty v-else mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png">
|
||||||
</up-empty>
|
</u-empty>
|
||||||
<u-datetime-picker :show="showDate" @confirm='confirmDate' :maxDate='now' @cancel='showDate=false'
|
<u-datetime-picker :show="showDate" @confirm='confirmDate' :maxDate='now' @cancel='showDate=false'
|
||||||
@close='showDate=false' v-model="nowTimes" mode="year-month"></u-datetime-picker>
|
@close='showDate=false' v-model="nowTimes" mode="year-month"></u-datetime-picker>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import {
|
||||||
|
UserWithdrawListsApi,
|
||||||
|
UserWithdrawIndexApi,
|
||||||
|
} from "@/api/supplier.js"
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
keyword: '',
|
keyword: '',
|
||||||
total: "",
|
total: "",
|
||||||
count: "",
|
count: "",
|
||||||
nowTimes: '',
|
nowTimes: new Date().getTime(),
|
||||||
now: new Date().getTime(),
|
now: new Date().getTime(),
|
||||||
showDate: false,
|
showDate: false,
|
||||||
lists: [{
|
lists: [{
|
||||||
@ -291,10 +296,31 @@
|
|||||||
month = '0' + month; // 如果月份小于10,则在前面补零
|
month = '0' + month; // 如果月份小于10,则在前面补零
|
||||||
}
|
}
|
||||||
return year + '-' + month;
|
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() {
|
onLoad() {
|
||||||
uni.showTabBar()
|
uni.showTabBar()
|
||||||
|
this.getList()
|
||||||
|
this.getAmount()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user