|
|
@@ -21,13 +21,13 @@
|
|
|
<t-th><view style="color:black;">待采</view></t-th>
|
|
|
</t-tr>
|
|
|
<template v-if="!$util.isEmpty(bookCustomData)">
|
|
|
- <view v-for="(item, index) in bookCustomData" :key="index">
|
|
|
+ <view v-for="(item, index) in bookCustomData" :key="index" @click="goAction(item)">
|
|
|
<t-tr>
|
|
|
- <t-td><view style="color:#333333;font-size:26upx;color:black;" @click="goDetail(item)">{{item.name}}</view></t-td>
|
|
|
- <t-td><view style="color:#333333;font-size:26upx;color:black;" @click="goChange(item)">{{item.bookNum?parseFloat(item.bookNum):0}}</view></t-td>
|
|
|
- <t-td><view style="color:#333333;font-size:26upx;color:black;" @click="goOnChange(item)">{{item.onNum?parseFloat(item.onNum):0}}</view></t-td>
|
|
|
- <t-td><view style="color:#333333;font-size:26upx;color:black;" @click="goRoadChange(item)">{{item.roadNum?parseFloat(item.roadNum):0}}</view></t-td>
|
|
|
- <t-td><view style="color:#333333;font-size:26upx;color:black;" @click="goCgChange(item)">{{item.needCgNum?parseFloat(item.needCgNum):0}}</view></t-td>
|
|
|
+ <t-td><view style="color:#333333;font-size:26upx;color:black;">{{item.name}}</view></t-td>
|
|
|
+ <t-td><view style="color:#333333;font-size:26upx;color:black;">{{item.bookNum?parseFloat(item.bookNum):0}}</view></t-td>
|
|
|
+ <t-td><view style="color:#333333;font-size:26upx;color:black;">{{item.onNum?parseFloat(item.onNum):0}}</view></t-td>
|
|
|
+ <t-td><view style="color:#333333;font-size:26upx;color:black;">{{item.roadNum?parseFloat(item.roadNum):0}}</view></t-td>
|
|
|
+ <t-td><view style="color:#333333;font-size:26upx;color:black;">{{item.needCgNum?parseFloat(item.needCgNum):0}}</view></t-td>
|
|
|
</t-tr>
|
|
|
</view>
|
|
|
</template>
|
|
|
@@ -35,6 +35,34 @@
|
|
|
</view>
|
|
|
</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>
|
|
|
+ <view style="margin-top:10upx;">
|
|
|
+ <button class="admin-button-com big blue" style="width:420upx;" @click="goDetail()">预订花材</button>
|
|
|
+ </view>
|
|
|
+ <view style="margin-top:10upx;">
|
|
|
+ <button class="admin-button-com big blue" style="width:420upx;" @click="goChange()">预订记录</button>
|
|
|
+ </view>
|
|
|
+ <view style="margin-top:10upx;">
|
|
|
+ <button class="admin-button-com big blue" style="width:420upx;" @click="goOnChange()">上架记录</button>
|
|
|
+ </view>
|
|
|
+ <view style="margin-top:10upx;">
|
|
|
+ <button class="admin-button-com big blue" style="width:420upx;" @click="goRoadChange()">路上记录</button>
|
|
|
+ </view>
|
|
|
+ <view style="margin-top:10upx;">
|
|
|
+ <button class="admin-button-com big blue" style="width:420upx;" @click="goCgChange()">待采记录</button>
|
|
|
+ </view>
|
|
|
+ <view style="margin-top:10upx;">
|
|
|
+ <button class="admin-button-com big blue" style="width:420upx;" @click="getStock()">借库存</button>
|
|
|
+ </view>
|
|
|
+ <view style="margin-top:10upx;">
|
|
|
+ <button class="admin-button-com big default" style="width:420upx;" @click="cancelAct()">取消</button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </uni-popup>
|
|
|
+
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -71,6 +99,7 @@ export default {
|
|
|
dataList: [],
|
|
|
bookCustomData:[],
|
|
|
searchContent:'',
|
|
|
+ currentItem:null
|
|
|
};
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
@@ -92,20 +121,32 @@ export default {
|
|
|
that.getStatList()
|
|
|
},700)
|
|
|
},
|
|
|
- goChange(item){
|
|
|
- this.$util.pageTo({ url: "/admin/book/customBookChange?customId="+item.customId+'&customName='+item.name+'&id='+item.id})
|
|
|
+ cancelAct(){
|
|
|
+ this.$refs.actRef.close()
|
|
|
+ },
|
|
|
+ goAction(item){
|
|
|
+ this.currentItem = item
|
|
|
+ this.$refs.actRef.open('center')
|
|
|
+ },
|
|
|
+ goChange(){
|
|
|
+ this.$refs.actRef.close()
|
|
|
+ this.$util.pageTo({ url: "/admin/book/customBookChange?customId="+this.currentItem.customId+'&customName='+this.currentItem.name+'&id='+this.currentItem.id})
|
|
|
},
|
|
|
- goOnChange(item){
|
|
|
- this.$util.pageTo({ url: "/admin/book/customBookOnChange?customId="+item.customId+'&customName='+item.name+'&id='+item.id})
|
|
|
+ goOnChange(){
|
|
|
+ this.$refs.actRef.close()
|
|
|
+ this.$util.pageTo({ url: "/admin/book/customBookOnChange?customId="+this.currentItem.customId+'&customName='+this.currentItem.name+'&id='+this.currentItem.id})
|
|
|
},
|
|
|
- goRoadChange(item){
|
|
|
- this.$util.pageTo({ url: "/admin/book/customBookRoadChange?customId="+item.customId+'&customName='+item.name+'&id='+item.id})
|
|
|
+ goRoadChange(){
|
|
|
+ this.$refs.actRef.close()
|
|
|
+ this.$util.pageTo({ url: "/admin/book/customBookRoadChange?customId="+this.currentItem.customId+'&customName='+this.currentItem.name+'&id='+this.currentItem.id})
|
|
|
},
|
|
|
- goCgChange(item){
|
|
|
- this.$util.pageTo({ url: "/admin/book/customBookCgChange?customId="+item.customId+'&customName='+item.name+'&id='+item.id})
|
|
|
+ goCgChange(){
|
|
|
+ this.$refs.actRef.close()
|
|
|
+ this.$util.pageTo({ url: "/admin/book/customBookCgChange?customId="+this.currentItem.customId+'&customName='+this.currentItem.name+'&id='+this.currentItem.id})
|
|
|
},
|
|
|
- goDetail(item){
|
|
|
- this.$util.pageTo({ url: "/admin/book/itemCustom?customId="+item.customId+'&customName='+item.name})
|
|
|
+ goDetail(){
|
|
|
+ this.$refs.actRef.close()
|
|
|
+ this.$util.pageTo({ url: "/admin/book/itemCustom?customId="+this.currentItem.customId+'&customName='+this.currentItem.name})
|
|
|
},
|
|
|
async init() {
|
|
|
this.getStatList();
|