| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- <template>
- <view class="app-content">
- <view class="ex-page">
- <view class="top-bar">
- <view style="font-size:30upx;padding:10upx 0 10upx 0;">
- <text style="margin-left:80upx;">请选客户</text>
- </view>
- </view>
- <scroll-view scroll-y scroll-with-animation class="main-view">
- <view class="space-view ex-table">
- <t-table :headerBackgroundColor="'#F0F2F6'">
- <t-tr header><t-th>客户</t-th><t-th>预订</t-th><t-th>上架</t-th><t-th>路上</t-th><t-th>待采</t-th></t-tr>
- <template v-if="!$util.isEmpty(bookCustomData)">
- <view v-for="(item, index) in bookCustomData" :key="index">
- <t-tr>
- <t-td><view style="color:#333333;font-size:26upx;" @click="goDetail(item)">{{item.name}}</view></t-td>
- <t-td><view style="color:#333333;font-size:26upx;">{{item.bookNum?parseFloat(item.bookNum):0}}</view></t-td>
- <t-td><view style="color:#333333;font-size:26upx;">{{item.onNum?parseFloat(item.onNum):0}}</view></t-td>
- <t-td><view style="color:#333333;font-size:26upx;">{{item.roadNum?parseFloat(item.roadNum):0}}</view></t-td>
- <t-td><view style="color:#333333;font-size:26upx;">{{item.needCgNum?parseFloat(item.needCgNum):0}}</view></t-td>
- </t-tr>
- </view>
- </template>
- </t-table>
- </view>
- </scroll-view>
- </view>
- </view>
- </template>
- <script>
- import AppWrapperEmpty from "@/components/app-wrapper-empty";
- import SelectList from "@/components/plugin/selectList";
- import { getBookCustomList } from "@/api/book"
- import { list } from "@/mixins";
- import ShopSelect from "@/components/module/shopSelect";
- import DateSelect from "@/components/module/dateSelect";
- import {mapActions, mapGetters} from "vuex";
- import AppSearchModule from "@/components/module/app-search";
- export default {
- components: {
- SelectList,
- AppWrapperEmpty,
- ShopSelect,
- DateSelect,
- AppSearchModule
- },
- mixins: [list],
- computed: {
- ...mapGetters(["getDictionariesInfo","getLoginInfo"])
- },
- data() {
- return {
- isShow:false,
- customizationTime:'',
- shopId:'',
- itemId:'',
- nowTime: "",
- showTimeDropdown: false,
- nowShop: "",
- showShopDropdown: false,
- dataList: [],
- bookCustomData:[],
- searchContent:'',
- };
- },
- onPullDownRefresh() {
- this.getStatList().then(res => {
- uni.stopPullDownRefresh()
- });
- },
- onLoad(){
- },
- methods: {
- goDetail(item){
- this.$util.pageTo({ url: "/admin/book/itemCustom?customId="+item.customId+'&customName='+item.customName})
- },
- async init() {
- this.getStatList();
- },
- getStatList() {
- let that = this
- uni.showLoading()
- getBookCustomList(this.params).then(res => {
- uni.hideLoading()
- if (!this.$util.isEmpty(res.data.list)) {
- that.bookCustomData = res.data.list
- }else{
- that.bookCustomData=[]
- }
- })
- }
- }
- };
- </script>
- <style lang="scss" scoped>
- .ex-page {
- background: white;
- height: 100%;
- display: flex;
- flex-direction: column;
- .top-bar {
- }
- .main-view {
- flex: 1;
- background-color: #f9fbfc;
- .space-view {
- background-color: #fff;
- }
- .ex-info {
- padding: 30upx;
- .info-cell {
- display: flex;
- align-items: center;
- font-size: 28upx;
- &:not(:first-child) {
- margin-top: 20upx;
- }
- .cell-label {
- width: 110upx;
- color: #666666;
- }
- .cell-value {
- margin-left: 40upx;
- color: #333;
- &.warning {
- color: #ffaf1d;
- }
- &.success {
- color: #27c325;
- }
- }
- }
- }
- .ex-table {
- ::v-deep.icon-info {
- color: #333333;
- }
- }
- }
- .bar-view {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0 30upx;
- width: 100%;
- height: 100upx;
- box-shadow: 0upx -1upx 6upx 0upx rgba(4, 0, 0, 0.06);
- .info-view {
- font-size: 26upx;
- }
- .btn-view {
- display: flex;
- .admin-button-com {
- margin: 0 10upx;
- }
- }
- }
- }
- </style>
|