|
|
@@ -2,7 +2,9 @@
|
|
|
<view class="app-content">
|
|
|
<view class="ex-page">
|
|
|
<view class="top-bar">
|
|
|
- <view style="font-size:30upx;"></view>
|
|
|
+ <view style="font-size:30upx;color:blue;font-weight:bold;margin-left:30upx;padding:10upx 0 10upx 0;" v-if="respond.remainNum && Number(respond.remainNum)>0">
|
|
|
+ {{ respond.remainName }} 剩 {{ respond.remainNum }}份
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<scroll-view scroll-y scroll-with-animation class="main-view">
|
|
|
<view class="space-view ex-table">
|
|
|
@@ -18,13 +20,13 @@
|
|
|
<template v-if="!$util.isEmpty(bookData)">
|
|
|
<view v-for="(item, index) in bookData" :key="index" @click="goAction(item)">
|
|
|
<t-tr>
|
|
|
- <t-td><view style="color:#333333;font-size:25upx;width:170upx;text-align:left;height:60upx;display: flex;align-items: center;color:black;">{{item.name}}</view></t-td>
|
|
|
- <t-td><view style="color:#333333;font-size:25upx;height:60upx;display: flex;align-items: center;color:black;">{{item.bookNum?parseFloat(item.bookNum):0}}</view></t-td>
|
|
|
- <t-td><view style="color:#333333;font-size:25upx;height:60upx;display: flex;align-items: center;color:black;">{{item.onNum?parseFloat(item.onNum):0}}</view></t-td>
|
|
|
- <t-td><view style="color:#333333;font-size:25upx;height:60upx;display: flex;align-items: center;color:black;">{{item.roadNum?parseFloat(item.roadNum):0}}</view></t-td>
|
|
|
- <t-td><view style="color:#333333;font-size:25upx;height:60upx;display: flex;align-items: center;color:black;">{{item.needCgNum?parseFloat(item.needCgNum):0}}</view></t-td>
|
|
|
+ <t-td><view class="name" :class="[item.bookNum == item.onNum ? 'finish' : 'normal']">{{item.name}}</view></t-td>
|
|
|
+ <t-td><view class="num" :class="[item.bookNum == item.onNum ? 'finish' : 'normal']">{{item.bookNum?parseFloat(item.bookNum):0}}</view></t-td>
|
|
|
+ <t-td><view class="num" :class="[item.bookNum == item.onNum ? 'finish' : 'normal']">{{item.onNum?parseFloat(item.onNum):0}}</view></t-td>
|
|
|
+ <t-td><view class="num" :class="[item.bookNum == item.onNum ? 'finish' : 'normal']">{{item.roadNum?parseFloat(item.roadNum):0}}</view></t-td>
|
|
|
+ <t-td><view class="num" :class="[item.bookNum == item.onNum ? 'finish' : 'normal']">{{item.needCgNum?parseFloat(item.needCgNum):0}}</view></t-td>
|
|
|
<t-td>
|
|
|
- <view style="font-size:24upx;color:#333333;overflow: hidden;width:90upx;color:black;">
|
|
|
+ <view class="custom-item" :class="[item.bookNum == item.onNum ? 'finish' : 'normal']">
|
|
|
<view>{{ item.customName }}</view>
|
|
|
<view v-if="item.seatSn != 0">
|
|
|
{{item.seatSn }}号
|
|
|
@@ -39,7 +41,6 @@
|
|
|
</scroll-view>
|
|
|
</view>
|
|
|
|
|
|
-
|
|
|
<uni-popup ref="actRef" background-color="#fff" type="center" :animation="false" class="class-popup-style" :is-mask-click="false">
|
|
|
<view style="max-height:90vh;overflow: scroll;padding:15upx;">
|
|
|
<view style="text-align:center;font-size:32upx;font-weight:bold;">{{ currentItem.name ? currentItem.name:'未命名' }}</view>
|
|
|
@@ -115,7 +116,8 @@ export default {
|
|
|
itemName:'',
|
|
|
customName:'',
|
|
|
customId:0,
|
|
|
- currentItem:null
|
|
|
+ currentItem:null,
|
|
|
+ respond:{remainNum:0,remainName:''}
|
|
|
};
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
@@ -192,9 +194,9 @@ export default {
|
|
|
getStatList() {
|
|
|
let that = this
|
|
|
uni.showLoading()
|
|
|
-
|
|
|
getBookItemCustomList({itemId:this.itemId,customId:this.customId}).then(res => {
|
|
|
uni.hideLoading()
|
|
|
+ this.respond = res.data
|
|
|
if (!this.$util.isEmpty(res.data.list)) {
|
|
|
that.bookData = res.data.list
|
|
|
}else{
|
|
|
@@ -213,12 +215,28 @@ export default {
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
.top-bar {
|
|
|
+ font-size:30upx;
|
|
|
}
|
|
|
.main-view {
|
|
|
flex: 1;
|
|
|
background-color: #f9fbfc;
|
|
|
.space-view {
|
|
|
background-color: #fff;
|
|
|
+ .num{
|
|
|
+ font-size:25upx;height:60upx;display: flex;align-items: center;
|
|
|
+ }
|
|
|
+ .name{
|
|
|
+ font-size:25upx;width:170upx;text-align:left;height:60upx;display: flex;align-items: center;
|
|
|
+ }
|
|
|
+ .custom-item{
|
|
|
+ font-size:24upx;color:#333333;overflow: hidden;width:90upx;
|
|
|
+ }
|
|
|
+ .finish{
|
|
|
+ color:green;font-weight:bold;
|
|
|
+ }
|
|
|
+ .normal{
|
|
|
+ color:black;
|
|
|
+ }
|
|
|
}
|
|
|
.ex-info {
|
|
|
padding: 30upx;
|