|
|
@ -47,6 +47,10 @@ |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<view class="bottom"> |
|
|
|
|
|
<button class="btn" @click="onDownload">下载</button> |
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
@ -61,12 +65,14 @@ |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
batchNo: null, |
|
|
detail: null, |
|
|
detail: null, |
|
|
tableList: [], |
|
|
tableList: [], |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
onLoad(arg) { |
|
|
onLoad(arg) { |
|
|
const { batchNo } = arg |
|
|
const { batchNo } = arg |
|
|
|
|
|
this.batchNo = batchNo |
|
|
this.getData(batchNo) |
|
|
this.getData(batchNo) |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
@ -125,6 +131,11 @@ |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
onDownload() { |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url: `/pages_order/report/export?batchNo=${this.batchNo}` |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
@ -218,4 +229,27 @@ |
|
|
padding: 42rpx 127rpx 46rpx 127rpx; |
|
|
padding: 42rpx 127rpx 46rpx 127rpx; |
|
|
box-sizing: border-box; |
|
|
box-sizing: border-box; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.bottom { |
|
|
|
|
|
position: sticky; |
|
|
|
|
|
left: 0; |
|
|
|
|
|
bottom: 0; |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
padding: 35rpx 56rpx; |
|
|
|
|
|
padding-bottom: calc(env(safe-area-inset-bottom) + 35rpx); |
|
|
|
|
|
background: #FFFFFF; |
|
|
|
|
|
box-sizing: border-box; |
|
|
|
|
|
|
|
|
|
|
|
.btn { |
|
|
|
|
|
width: 100%; |
|
|
|
|
|
padding: 29rpx 0; |
|
|
|
|
|
font-size: 30rpx; |
|
|
|
|
|
line-height: 1.5; |
|
|
|
|
|
color: #FFFFFF; |
|
|
|
|
|
background: #014FA2; |
|
|
|
|
|
border-radius: 50rpx; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</style> |
|
|
</style> |