|
@@ -0,0 +1,211 @@
|
|
|
|
|
+<template>
|
|
|
|
|
+ <view class="billing_box_bg">
|
|
|
|
|
+ <view class="input-wrap">
|
|
|
|
|
+ <app-search-module placeholder="请输入关键词搜索" @search="searchFn" />
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="scroll-middle_bx">
|
|
|
|
|
+ <scroll-view
|
|
|
|
|
+ scroll-y
|
|
|
|
|
+ scroll-with-animation
|
|
|
|
|
+ class="tab-view"
|
|
|
|
|
+ :scroll-top="scrollTop"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-for="(item, index) in tabbar"
|
|
|
|
|
+ :key="index"
|
|
|
|
|
+ class="tab-bar-item"
|
|
|
|
|
+ :class="[currentTab == index ? 'active' : '']"
|
|
|
|
|
+ :data-current="index"
|
|
|
|
|
+ @tap.stop="swichNav($event, item)"
|
|
|
|
|
+ >
|
|
|
|
|
+ <text>{{ item.categoryName || "暂无" }}</text>
|
|
|
|
|
+ <text class="tag">4/10</text>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </scroll-view>
|
|
|
|
|
+ <block v-for="(item, index) in tabbar" :key="index">
|
|
|
|
|
+ <scroll-view scroll-y class="right-box" v-if="currentTab == index">
|
|
|
|
|
+ <view class="item_list_bx">
|
|
|
|
|
+ <view class="item_list_title">{{ item.categoryName }}</view>
|
|
|
|
|
+ <Commondity
|
|
|
|
|
+ :type="COMMODITY_TYPE.CHANGE"
|
|
|
|
|
+ @customNum="customNum"
|
|
|
|
|
+ ></Commondity>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+ <!--内容部分 start -->
|
|
|
|
|
+ <!-- v-if="!$util.isEmpty(list.data)" -->
|
|
|
|
|
+
|
|
|
|
|
+ <!-- <block v-else>
|
|
|
|
|
+ <app-wrapper-empty title="暂无数据" :is-empty="$util.isEmpty(list.data)" />
|
|
|
|
|
+ </block> -->
|
|
|
|
|
+ <!--内容部分 end -->
|
|
|
|
|
+ </scroll-view>
|
|
|
|
|
+ </block>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+</template>
|
|
|
|
|
+
|
|
|
|
|
+<script>
|
|
|
|
|
+import AppSearchModule from "@/components/module/app-search";
|
|
|
|
|
+import AppTabs from "@/components/plugin/tabs";
|
|
|
|
|
+import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
|
|
+import Commondity from "./components/Commodity";
|
|
|
|
|
+import { COMMODITY_TYPE } from "@/utils/declare";
|
|
|
|
|
+export default {
|
|
|
|
|
+ name: "Billing", // 开单
|
|
|
|
|
+ components: {
|
|
|
|
|
+ AppTabs,
|
|
|
|
|
+ AppSearchModule,
|
|
|
|
|
+ AppWrapperEmpty,
|
|
|
|
|
+ Commondity
|
|
|
|
|
+ },
|
|
|
|
|
+ data() {
|
|
|
|
|
+ return {
|
|
|
|
|
+ COMMODITY_TYPE,
|
|
|
|
|
+ currentTab: "",
|
|
|
|
|
+ tabbar: [
|
|
|
|
|
+ {
|
|
|
|
|
+ categoryName: "花束",
|
|
|
|
|
+ delStatus: "0",
|
|
|
|
|
+ description: "",
|
|
|
|
|
+ goodsNum: "0",
|
|
|
|
|
+ id: "95",
|
|
|
|
|
+ img: "https://img.huaml.com",
|
|
|
|
|
+ inTurn: "0",
|
|
|
|
|
+ merchantId: "12358",
|
|
|
|
|
+ parentId: "0",
|
|
|
|
|
+ sold: "0",
|
|
|
|
|
+ status: "1"
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ categoryName: "花篮",
|
|
|
|
|
+ delStatus: "0",
|
|
|
|
|
+ description: "",
|
|
|
|
|
+ goodsNum: "0",
|
|
|
|
|
+ id: "96",
|
|
|
|
|
+ img: "https://img.huaml.com",
|
|
|
|
|
+ inTurn: "0",
|
|
|
|
|
+ merchantId: "12358",
|
|
|
|
|
+ parentId: "0",
|
|
|
|
|
+ sold: "0",
|
|
|
|
|
+ status: "1"
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ };
|
|
|
|
|
+ },
|
|
|
|
|
+ methods: {
|
|
|
|
|
+ scrollTop() {},
|
|
|
|
|
+ swichNav(e) {
|
|
|
|
|
+ let cur = e.currentTarget.dataset.current;
|
|
|
|
|
+ if (this.currentTab == cur) {
|
|
|
|
|
+ return false;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.currentTab = cur;
|
|
|
|
|
+ // this.form.categoryId = item.id;
|
|
|
|
|
+ // this.resetList();
|
|
|
|
|
+ // this._list();
|
|
|
|
|
+ // this.checkCor()
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ searchFn() {}
|
|
|
|
|
+ }
|
|
|
|
|
+};
|
|
|
|
|
+</script>
|
|
|
|
|
+
|
|
|
|
|
+<style lang="scss" scoped>
|
|
|
|
|
+.billing_box_bg {
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: column;
|
|
|
|
|
+ .input-wrap {
|
|
|
|
|
+ padding: 22px 20px 22px 30px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .scroll-middle_bx {
|
|
|
|
|
+ flex: 1;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ }
|
|
|
|
|
+ .tab-view {
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ width: 170upx;
|
|
|
|
|
+ flex-shrink: 0;
|
|
|
|
|
+ background-color: #f0f2f6;
|
|
|
|
|
+ .tab-bar-item {
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ width: 170upx;
|
|
|
|
|
+ height: 90upx;
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ font-size: 26upx;
|
|
|
|
|
+ color: #444;
|
|
|
|
|
+ font-weight: 400;
|
|
|
|
|
+ .tag {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ padding: 0 20px;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ right: 0;
|
|
|
|
|
+ top: 0;
|
|
|
|
|
+ height: 32px;
|
|
|
|
|
+ background: #ff2842;
|
|
|
|
|
+ border-radius: 16px;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+ font-size: 20px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .active {
|
|
|
|
|
+ position: relative;
|
|
|
|
|
+ color: $mainColor;
|
|
|
|
|
+ font-size: 26px;
|
|
|
|
|
+ background: #fff;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .active::before {
|
|
|
|
|
+ content: "";
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ border-left: 8upx solid $mainColor;
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ left: 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ .right-box {
|
|
|
|
|
+ height: 100%;
|
|
|
|
|
+ flex: 1;
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+ }
|
|
|
|
|
+ .item_list_bx {
|
|
|
|
|
+ padding: 40px 16px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .item_list_title {
|
|
|
|
|
+ margin-bottom: 20px;
|
|
|
|
|
+ font-size: 24px;
|
|
|
|
|
+ font-weight: 600;
|
|
|
|
|
+ color: #666666;
|
|
|
|
|
+ }
|
|
|
|
|
+ .select-cmd_bx {
|
|
|
|
|
+ & .kc {
|
|
|
|
|
+ color: #999999;
|
|
|
|
|
+ font-size: 28px;
|
|
|
|
|
+ font-weight: 400;
|
|
|
|
|
+ margin-bottom: 60px;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ margin-top: 10px;
|
|
|
|
|
+ }
|
|
|
|
|
+ & .num_bx {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ margin-bottom: 80px;
|
|
|
|
|
+ & > input {
|
|
|
|
|
+ width: 212px;
|
|
|
|
|
+ height: 80px;
|
|
|
|
|
+ border: 1px solid #dddddd;
|
|
|
|
|
+ border-radius: 4px;
|
|
|
|
|
+ text-align: center;
|
|
|
|
|
+ margin-right: 24px;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+</style>
|