| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- <template>
- <view class="ex-page">
- <view class="top-bar">
- <DateSelect class="bar" top="0" @selectDateFn="selectDateFn" />
- </view>
- <scroll-view scroll-y scroll-with-animation class="main-view">
- <view class="space-view ex-table">
- <block>
- <t-table :headerBackgroundColor="'#F0F2F6'">
- <t-tr header><t-th>供货商</t-th><t-th>应付款(元)</t-th><t-th>操作</t-th></t-tr>
- <t-tr><t-td><view>盛丰</view></t-td><t-td><view>286500.00</view></t-td><t-td><view></view></t-td></t-tr>
- <t-tr><t-td><view>茗星花卉</view></t-td><t-td><view>170129.00</view></t-td><t-td><view></view></t-td></t-tr>
- <t-tr><t-td><view>珍情花卉</view></t-td><t-td><view>367111.00</view></t-td><t-td><view></view></t-td></t-tr>
- <t-tr><t-td><view>花伍鲜花</view></t-td><t-td><view>551906.00</view></t-td><t-td><view></view></t-td></t-tr>
- <t-tr><t-td><view>花醉美</view></t-td><t-td><view>74403.00</view></t-td><t-td><view></view></t-td></t-tr>
- <t-tr><t-td><view>美旗鲜花</view></t-td><t-td><view>64403.00</view></t-td><t-td><view></view></t-td></t-tr>
- <t-tr><t-td><view>花醉美</view></t-td><t-td><view>94403.00</view></t-td><t-td><view></view></t-td></t-tr>
- </t-table>
- </block>
- </view>
- </scroll-view>
- </view>
- </template>
- <script>
- import AppWrapperEmpty from "@/components/app-wrapper-empty";
- import SelectList from "@/components/plugin/selectList";
- import { getStatProfit } from "@/api/stat/index";
- import { list } from "@/mixins";
- import DorpdownSelect from "@/components/module/shopSelect";
- import {mapActions, mapGetters} from "vuex";
- export default {
- components: { SelectList, AppWrapperEmpty,DorpdownSelect },
- mixins: [list],
- computed: { ...mapGetters(["getDictionariesInfo","getLoginInfo"]) },
- data() {
- return {
- isShow:false,
- customizationTime:'',
- shopId:'',
- itemId:'',
- nowTime: "",
- showTimeDropdown: false,
- nowShop: "",
- showShopDropdown: false,
- columns: [
- {
- name: "姓名",
- dataIndex: "name",
- color: "info"
- },
- {
- name: "开单额",
- dataIndex: "amount",
- color: "info",
- width: 120,
- align: "center"
- },
- {
- name: "开单数",
- dataIndex: "num",
- color: "info",
- align: "center"
- }
- ],
- dataList: [],
- params:{
- itemId: '',
- searchTime:'',
- startTime: "",
- endTime: "",
- shopId: "",
- },
- profit:[],
- };
- },
- onPullDownRefresh() {
- this.resetList();
- this._list().then(res => {
- uni.stopPullDownRefresh();
- });
- },
- onLoad(e) {
- this.itemId = e.id;
- this.params.itemId = e.id;
- this.shopId = this.getLoginInfo.shopId;
- },
- methods: {
- ...mapActions(['setUserShopAll']),
- async init() {
- this._list();
- },
- _list() {
- let that = this
- getStatProfit(this.params).then(res => {
- that.profit = res.data
- });
- }
- }
- };
- </script>
- <style lang="scss" scoped>
- .ex-page {
- background: white;
- height: 100%;
- display: flex;
- flex-direction: column;
- .top-bar {
- position: absolute;
- left: 0;
- display: flex;
- width: 100%;
- top:116upx;
- z-index: 20;
- .bar{
- width: 50%;
- height: 100%;
- text-align: center;
- &:nth-child(1){
- border-right: 1upx solid #eeeeec;
- }
- }
- }
- .main-view {
- margin-top: 80upx;
- 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>
|