From 3539a3d350c9d5fa51871fa44a2745474c721410 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期一, 02 十二月 2024 17:36:25 +0800 Subject: [PATCH] feat:电子提煤单下载 --- pages/sampling-page/index.vue | 42 +++++++++++++++++++++++++++++++++--------- 1 files changed, 33 insertions(+), 9 deletions(-) diff --git a/pages/sampling-page/index.vue b/pages/sampling-page/index.vue index fb76b58..b31a572 100644 --- a/pages/sampling-page/index.vue +++ b/pages/sampling-page/index.vue @@ -17,10 +17,7 @@ <view class="body"> <!-- <selectTarget ref='selectTarget'></selectTarget> --> <view class="collection-form"> - <u-tabs :list="tabList" :activeStyle="{fontSize:'26rpx'} " :itemStyle="{fontSize:'16px' - }" @click="tabClick" - lineWidth="50" - lineHeight="2"></u-tabs> + <u-tabs :list="tabList" :activeStyle="{fontSize:'26rpx'} " @click="tabClick"></u-tabs> <view style="position: relative;"> <u-empty mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png" @@ -136,7 +133,11 @@ }, { name:'澶栬喘' - }] + }, + { + name:'鍐呰喘' + } + ] }; }, onLoad() { @@ -147,9 +148,13 @@ this.$nextTick(() => { if(this.tagName == '澶栬喘'){ this.getWaiData(); - }else{ + }else if(this.tagName == '鍐呰喘'){ + this.getNeiData(); + } else{ this.getListData(); } + + }) }, @@ -194,7 +199,10 @@ setTimeout(() => { if(this.tagName == '澶栬喘'){ this.getWaiData() - }else{ + }else if(this.tagName == '鍐呰喘'){ + this.getNeiData(); + } + else{ this.getListData() //璋冪敤鎺ュ彛鐨勬柟娉� } console.log(1111111111) @@ -209,14 +217,30 @@ this.tagName = val.name; if(val.name == '澶栬喘'){ this.getWaiData(); - }else{ + }else if(val.name === '鍐呰喘'){ + this.getNeiData(); + } + else{ this.getListData(); } }, getWaiData(){ - this.$reqGet('inspectedTaskPage',{inspectionStatus:1,status:5,orderType:'澶栬喘'}).then(res=>{ + this.$reqGet('inspectedTaskPage',{inspectionStatus:1,orderType:'澶栬喘'}).then(res=>{ + if(res.code == 0){ + if(res.data.records.length){ + this.orderPlanData = res.data.records; + }else{ + this.orderPlanData = []; + } + + } + }) + }, + //鍐呰喘 + getNeiData(){ + this.$reqGet('inspectedTaskPage',{inspectionStatus:1,orderType:'鍐呰喘'}).then(res=>{ if(res.code == 0){ if(res.data.records.length){ this.orderPlanData = res.data.records; -- Gitblit v1.9.1