|
|
@@ -2,9 +2,9 @@
|
|
|
<view class="app-content">
|
|
|
<view class="ex-page">
|
|
|
<view class="input-wrap_box">
|
|
|
- <view>
|
|
|
- <AppSearchModule placeholder="输入拼音首字母搜索" @input="searchFn"/>
|
|
|
- </view>
|
|
|
+ <view>
|
|
|
+ <AppSearchModule placeholder="输入拼音首字母搜索" @input="searchFn"/>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
<view class="top-bar">
|
|
|
<text @click="changeStaff()" style="margin-left:90upx;font-size:30upx;">{{selectStaff.id == 0 ?'选采购人':selectStaff.name}}</text>
|
|
|
@@ -26,7 +26,7 @@
|
|
|
<template v-if="!$util.isEmpty(profile)">
|
|
|
<view v-for="(item, index) in profile" :key="index">
|
|
|
<t-tr>
|
|
|
- <t-td><view style="color:#333333;font-size:25upx;width:160upx;text-align:left;height:60upx;display: flex;align-items: center;" @click="goDetail(item)">{{item.name}}</view></t-td>
|
|
|
+ <t-td><view style="color:#333333;font-size:25upx;width:160upx;text-align:left;height:60upx;display: flex;align-items: center;" @click="goAction(item)">{{item.name}}</view></t-td>
|
|
|
<t-td><view style="color:#333333;font-size:25upx;height:60upx;display: flex;align-items: center;" @click="goBookChange(item)">{{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;" @click="goBookOnChange(item)">{{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;">{{item.remainStockNum?parseFloat(item.remainStockNum):0}}</view></t-td>
|
|
|
@@ -52,6 +52,23 @@
|
|
|
</view>
|
|
|
</uni-popup>
|
|
|
|
|
|
+ <uni-popup ref="actRef" background-color="#fff" type="center" :animation="false" class="class-popup-style">
|
|
|
+ <view style="max-height:90vh;overflow: scroll;padding:15upx;">
|
|
|
+ <view>
|
|
|
+ <input v-model="currentNum" type="Number" style="height:100upx;border:1upx solid #CCCCCC;text-align:center;font-size:32upx;" placeholder="数量" />
|
|
|
+ </view>
|
|
|
+ <view style="margin-top:6upx;">
|
|
|
+ <button class="admin-button-com big blue" style="margin-right:15upx;" @click="onNum()">上架</button>
|
|
|
+ <button class="admin-button-com big blue" @click="outNum()">下架</button>
|
|
|
+ </view>
|
|
|
+ <view style="margin-top:20upx;">
|
|
|
+ <button class="admin-button-com big blue" style="margin-right:15upx;" @click="toSj()">上齐</button>
|
|
|
+ <button class="admin-button-com big blue" style="margin-right:15upx;" @click="toBox()">装箱</button>
|
|
|
+ <button class="admin-button-com big blue" @click="goDetal()">明细</button>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </uni-popup>
|
|
|
+
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -100,7 +117,9 @@ export default {
|
|
|
bookSn:0,
|
|
|
staffData:[],
|
|
|
selectStaff:{id:0,name:''},
|
|
|
- T:null
|
|
|
+ T:null,
|
|
|
+ currentNum:'',
|
|
|
+ currentItem:null
|
|
|
};
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
@@ -161,8 +180,25 @@ export default {
|
|
|
that.getStatList()
|
|
|
},700)
|
|
|
},
|
|
|
- goDetail(item){
|
|
|
- this.$util.pageTo({ url: "/admin/book/itemCustom?itemId="+item.itemId+'&itemName='+item.name})
|
|
|
+ goAction(item){
|
|
|
+ this.currentItem = item
|
|
|
+ this.$refs.actRef.open('center')
|
|
|
+ },
|
|
|
+ onNum(){
|
|
|
+
|
|
|
+ },
|
|
|
+ outNum(){
|
|
|
+
|
|
|
+ },
|
|
|
+ toSj(){
|
|
|
+
|
|
|
+ },
|
|
|
+ toBox(){
|
|
|
+
|
|
|
+ },
|
|
|
+ goDetail(){
|
|
|
+ this.$refs.actRef.close()
|
|
|
+ this.$util.pageTo({ url: "/admin/book/itemCustom?itemId="+this.currentItem.itemId+'&itemName='+this.currentItem.name})
|
|
|
},
|
|
|
goBookChange(item){
|
|
|
this.$util.pageTo({ url: "/admin/book/globalBookChange?itemId="+item.itemId+'&itemName='+item.name+'&id='+item.id})
|