|
|
@@ -94,10 +94,6 @@
|
|
|
<uni-icons :type="exp.expanded ? 'up' : 'down'" size="16" color="#666"></uni-icons>
|
|
|
</view>
|
|
|
<view v-if="exp.expanded" class="product-group" v-for="(pg, pIdx) in exp.products" :key="pIdx">
|
|
|
- <!-- <view class="product-header">
|
|
|
- <text class="product-name">{{ pg.name }}</text>
|
|
|
- <text class="product-spec">{{ pg.spec }}</text>
|
|
|
- </view> -->
|
|
|
<scroll-view scroll-x class="batch-scroll">
|
|
|
<view class="batch-table">
|
|
|
<view class="batch-header-row">
|
|
|
@@ -144,10 +140,12 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <BottomScrollTip :text="'左右滑动表格查看更多内容'" />
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import EmptyView from "../../../../wigets/empty.vue";
|
|
|
+import BottomScrollTip from "../../../../wigets/BottomScrollTip.vue";
|
|
|
import Water from "@/components/water/water.vue";
|
|
|
import request from "../../../../request/index.js";
|
|
|
import { formatDate } from "../../../../utils/utils.js";
|
|
|
@@ -155,6 +153,7 @@ import { formatDate } from "../../../../utils/utils.js";
|
|
|
export default {
|
|
|
components: {
|
|
|
EmptyView,
|
|
|
+ BottomScrollTip,
|
|
|
Water,
|
|
|
},
|
|
|
data() {
|
|
|
@@ -195,27 +194,9 @@ export default {
|
|
|
this.taskId = options && options.id ? options.id : "";
|
|
|
uni.setNavigationBarTitle({ title });
|
|
|
this.tableBodyHeight = 14 * 80;
|
|
|
- // this.rows = this.buildRows(this.genHierData());
|
|
|
- //this._rows = this.buildRows(this.genHierData());
|
|
|
this.fetchList();
|
|
|
},
|
|
|
computed: {
|
|
|
- // isFixedHeight() {
|
|
|
- // const arr = Array.isArray(this.rows) ? this.rows : [];
|
|
|
- // const countLeaves = (node) => {
|
|
|
- // if (!node || !node.enterpriseList || node.enterpriseList.length === 0) return 1;
|
|
|
- // let sum = 0;
|
|
|
- // for (let i = 0; i < node.enterpriseList.length; i++) {
|
|
|
- // sum += countLeaves(node.enterpriseList[i]);
|
|
|
- // }
|
|
|
- // return sum;
|
|
|
- // };
|
|
|
- // let total = 0;
|
|
|
- // for (let i = 0; i < arr.length; i++) {
|
|
|
- // total += countLeaves(arr[i]);
|
|
|
- // }
|
|
|
- // return total >= 12;
|
|
|
- // },
|
|
|
isLoading() {
|
|
|
return (
|
|
|
(this.loading && this.category == 1) ||
|
|
|
@@ -238,112 +219,6 @@ export default {
|
|
|
this.category = t.value;
|
|
|
this.fetchList();
|
|
|
},
|
|
|
- genHierData() {
|
|
|
- return [
|
|
|
- {
|
|
|
- enterpriseName: "上海海王星辰药房有限公司",
|
|
|
- enterpriseList: [
|
|
|
- {
|
|
|
- fromEntName: "福建广药洁达医药有限公司",
|
|
|
- enterpriseList: [
|
|
|
- {
|
|
|
- physicName: "感冲",
|
|
|
- produceBatchNo: "2502104H",
|
|
|
- fromRegionName: "广东",
|
|
|
- fromQuantity: 1000,
|
|
|
- toQuantity: 30,
|
|
|
- billTime: "区间内第一次出库时间——区间内最后一次出库时间",
|
|
|
- tracCode: "A",
|
|
|
- },
|
|
|
- {
|
|
|
- physicName: "皮炎平",
|
|
|
- produceBatchNo: "2502105H",
|
|
|
- fromRegionName: "广西",
|
|
|
- fromQuantity: 200,
|
|
|
- toQuantity: 20,
|
|
|
- billTime: "区间内第一次出库时间——区间内最后一次出库时间",
|
|
|
- tracCode: "B",
|
|
|
- },
|
|
|
- {
|
|
|
- physicName: "感冲",
|
|
|
- produceBatchNo: "2502105H",
|
|
|
- fromRegionName: "广西",
|
|
|
- fromQuantity: 200,
|
|
|
- toQuantity: 20,
|
|
|
- billTime: "区间内第一次出库时间——区间内最后一次出库时间",
|
|
|
- tracCode: "B",
|
|
|
- },
|
|
|
- {
|
|
|
- physicName: "感冲",
|
|
|
- produceBatchNo: "2502105H",
|
|
|
- fromRegionName: "广西",
|
|
|
- fromQuantity: 200,
|
|
|
- toQuantity: 20,
|
|
|
- billTime: "区间内第一次出库时间——区间内最后一次出库时间",
|
|
|
- tracCode: "B",
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- {
|
|
|
- fromEntName: "B有限公司",
|
|
|
- enterpriseList: [
|
|
|
- {
|
|
|
- physicName: "感冲",
|
|
|
- produceBatchNo: "2502104H",
|
|
|
- fromRegionName: "广东",
|
|
|
- fromQuantity: 1000,
|
|
|
- toQuantity: 30,
|
|
|
- billTime: "区间内第一次出库时间——区间内最后一次出库时间",
|
|
|
- tracCode: "A",
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- {
|
|
|
- enterpriseName: "大参林连锁药店",
|
|
|
- enterpriseList: [
|
|
|
- {
|
|
|
- fromEntName: "C有限公司",
|
|
|
- enterpriseList: [
|
|
|
- {
|
|
|
- physicName: "感冲",
|
|
|
- produceBatchNo: "2502105H",
|
|
|
- fromRegionName: "广东",
|
|
|
- fromQuantity: 1000,
|
|
|
- toQuantity: 30,
|
|
|
- billTime: "区间内第一次出库时间——区间内最后一次出库时间",
|
|
|
- tracCode: "A",
|
|
|
- },
|
|
|
- {
|
|
|
- physicName: "皮炎平",
|
|
|
- produceBatchNo: "2502105H",
|
|
|
- fromRegionName: "广西",
|
|
|
- fromQuantity: 200,
|
|
|
- toQuantity: 20,
|
|
|
- billTime: "区间内第一次出库时间——区间内最后一次出库时间",
|
|
|
- tracCode: "B",
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- {
|
|
|
- fromEntName: "D有限公司",
|
|
|
- enterpriseList: [
|
|
|
- {
|
|
|
- physicName: "皮炎平",
|
|
|
- produceBatchNo: "2502105H",
|
|
|
- fromRegionName: "广西",
|
|
|
- fromQuantity: 200,
|
|
|
- toQuantity: 20,
|
|
|
- billTime: "区间内第一次出库时间——区间内最后一次出库时间",
|
|
|
- tracCode: "B",
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
- ];
|
|
|
- },
|
|
|
computeLeafCount(node) {
|
|
|
if (!node || !node.enterpriseList || !node.enterpriseList.length)
|
|
|
return 1;
|
|
|
@@ -517,6 +392,10 @@ export default {
|
|
|
padding-bottom: calc(50rpx + env(safe-area-inset-bottom));
|
|
|
}
|
|
|
|
|
|
+.grid-scroll {
|
|
|
+ padding-bottom: 80rpx;
|
|
|
+}
|
|
|
+
|
|
|
.tabs {
|
|
|
display: flex;
|
|
|
align-items: center;
|