|
@@ -3,35 +3,37 @@
|
|
|
<view class="ex-page">
|
|
<view class="ex-page">
|
|
|
<view class="input-wrap_box">
|
|
<view class="input-wrap_box">
|
|
|
<view>
|
|
<view>
|
|
|
- <AppSearchModule placeholder="输入拼音首字母搜索" @input="searchFn"/>
|
|
|
|
|
|
|
+ <AppSearchModule placeholder="搜索花材" @input="searchFn"/>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="top-bar">
|
|
<view class="top-bar">
|
|
|
- <text @click="changeStaff()" style="margin-left:90upx;font-size:30upx;">{{selectStaff.id == 0 ?'选采购人':selectStaff.name}}</text>
|
|
|
|
|
- <button class="admin-button-com mini-btn blue" style="margin-left:50upx;" @click="modifyBook(0)" v-if="Number(bookSn)>0">结束预订</button>
|
|
|
|
|
- <button class="admin-button-com mini-btn blue" style="margin-left:50upx;" @click="modifyBook(1)" v-else>开启预订</button>
|
|
|
|
|
- <button class="admin-button-com mini-btn blue" style="margin-left:50upx;" @click="goCg()">去采购</button>
|
|
|
|
|
|
|
+ <button class="admin-button-com middle blue" style="margin-left:80upx;" @click="changeStaff()" v-if="Number(bookSn)>0">
|
|
|
|
|
+ {{selectStaff.id == 0 ?'选采购人':selectStaff.name}}
|
|
|
|
|
+ </button>
|
|
|
|
|
+ <button class="admin-button-com middle blue" style="margin-left:60upx;" @click="modifyBook(0)" v-if="Number(bookSn)>0">结束预订</button>
|
|
|
|
|
+ <button class="admin-button-com middle blue" style="margin-left:60upx;" @click="modifyBook(1)" v-else>开启预订</button>
|
|
|
|
|
+ <button class="admin-button-com middle blue" style="margin-left:60upx;" @click="goCg()">去采购</button>
|
|
|
</view>
|
|
</view>
|
|
|
<scroll-view scroll-y scroll-with-animation class="main-view">
|
|
<scroll-view scroll-y scroll-with-animation class="main-view">
|
|
|
<view class="space-view ex-table">
|
|
<view class="space-view ex-table">
|
|
|
<t-table :headerBackgroundColor="'#F0F2F6'">
|
|
<t-table :headerBackgroundColor="'#F0F2F6'">
|
|
|
<t-tr header>
|
|
<t-tr header>
|
|
|
- <t-th><view style="width:160upx;">花材</view></t-th>
|
|
|
|
|
- <t-th>预订</t-th>
|
|
|
|
|
- <t-th>上架</t-th>
|
|
|
|
|
- <t-th>剩余</t-th>
|
|
|
|
|
- <t-th>路上</t-th>
|
|
|
|
|
- <t-th>待采</t-th>
|
|
|
|
|
|
|
+ <t-th><view style="width:160upx;color:black;font-weight:bold;">花材</view></t-th>
|
|
|
|
|
+ <t-th><view style="color:black;font-weight:bold;">预订</view></t-th>
|
|
|
|
|
+ <t-th><view style="color:black;font-weight:bold;">上架</view></t-th>
|
|
|
|
|
+ <t-th><view style="color:black;font-weight:bold;">剩余</view></t-th>
|
|
|
|
|
+ <t-th><view style="color:black;font-weight:bold;">路上</view></t-th>
|
|
|
|
|
+ <t-th><view style="color:black;font-weight:bold;">待采</view></t-th>
|
|
|
</t-tr>
|
|
</t-tr>
|
|
|
<template v-if="!$util.isEmpty(profile)">
|
|
<template v-if="!$util.isEmpty(profile)">
|
|
|
- <view v-for="(item, index) in profile" :key="index">
|
|
|
|
|
|
|
+ <view v-for="(item, index) in profile" :key="index" @click="goAction(item)">
|
|
|
<t-tr>
|
|
<t-tr>
|
|
|
- <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>
|
|
|
|
|
- <t-td><view style="color:#333333;font-size:25upx;height:60upx;display: flex;align-items: center;" @click="goBookRoadChange(item)">{{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;" @click="goBookCgChange(item)">{{item.needCgNum?parseFloat(item.needCgNum):0}}</view></t-td>
|
|
|
|
|
|
|
+ <t-td><view style="color:#333333;font-size:26upx;width:160upx;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:26upx;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:26upx;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:26upx;height:60upx;display: flex;align-items: center;color:black;">{{item.remainStockNum?parseFloat(item.remainStockNum):0}}</view></t-td>
|
|
|
|
|
+ <t-td><view style="color:#333333;font-size:26upx;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:26upx;height:60upx;display: flex;align-items: center;color:black;">{{item.needCgNum?parseFloat(item.needCgNum):0}}</view></t-td>
|
|
|
</t-tr>
|
|
</t-tr>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
@@ -52,19 +54,26 @@
|
|
|
</view>
|
|
</view>
|
|
|
</uni-popup>
|
|
</uni-popup>
|
|
|
|
|
|
|
|
- <uni-popup ref="actRef" background-color="#fff" type="center" :animation="false" class="class-popup-style">
|
|
|
|
|
|
|
+ <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="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 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>
|
|
|
- <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 style="margin-top:10upx;">
|
|
|
|
|
+ <button class="admin-button-com big blue" style="width:420upx;" @click="goBookChange()">预订记录</button>
|
|
|
</view>
|
|
</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 style="margin-top:10upx;">
|
|
|
|
|
+ <button class="admin-button-com big blue" style="width:420upx;" @click="goBookOnChange()">上架记录</button>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view style="margin-top:10upx;">
|
|
|
|
|
+ <button class="admin-button-com big blue" style="width:420upx;" @click="goBookRoadChange()">路上记录</button>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view style="margin-top:10upx;">
|
|
|
|
|
+ <button class="admin-button-com big blue" style="width:420upx;" @click="goBookCgChange()">待采记录</button>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view style="margin-top:10upx;">
|
|
|
|
|
+ <button class="admin-button-com big default" style="width:420upx;" @click="cancelAct()">取消</button>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</uni-popup>
|
|
</uni-popup>
|
|
@@ -125,7 +134,7 @@ export default {
|
|
|
onPullDownRefresh() {
|
|
onPullDownRefresh() {
|
|
|
this.resetList();
|
|
this.resetList();
|
|
|
this.getStatList().then(res => {
|
|
this.getStatList().then(res => {
|
|
|
- uni.stopPullDownRefresh();
|
|
|
|
|
|
|
+ uni.stopPullDownRefresh()
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
onLoad(e) {
|
|
onLoad(e) {
|
|
@@ -156,7 +165,7 @@ export default {
|
|
|
this.$refs.staffRef.open('center')
|
|
this.$refs.staffRef.open('center')
|
|
|
},
|
|
},
|
|
|
goCg(){
|
|
goCg(){
|
|
|
- this.$util.pageTo({ url: "/pagesPurchase/supplier",type:2})
|
|
|
|
|
|
|
+ this.$util.pageTo({ url: "/pagesPurchase/supplier"})
|
|
|
},
|
|
},
|
|
|
modifyBook(status){
|
|
modifyBook(status){
|
|
|
let hint = status == 0 ?'确认结束?':'确认开启?'
|
|
let hint = status == 0 ?'确认结束?':'确认开启?'
|
|
@@ -195,22 +204,32 @@ export default {
|
|
|
},
|
|
},
|
|
|
toBox(){
|
|
toBox(){
|
|
|
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+ cancelBox(){
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
|
|
+ cancelAct(){
|
|
|
|
|
+ this.$refs.actRef.close()
|
|
|
},
|
|
},
|
|
|
goDetail(){
|
|
goDetail(){
|
|
|
this.$refs.actRef.close()
|
|
this.$refs.actRef.close()
|
|
|
this.$util.pageTo({ url: "/admin/book/itemCustom?itemId="+this.currentItem.itemId+'&itemName='+this.currentItem.name})
|
|
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})
|
|
|
|
|
|
|
+ goBookChange(){
|
|
|
|
|
+ this.$refs.actRef.close()
|
|
|
|
|
+ this.$util.pageTo({ url: "/admin/book/globalBookChange?itemId="+this.currentItem.itemId+'&itemName='+this.currentItem.name+'&id='+this.currentItem.id})
|
|
|
},
|
|
},
|
|
|
- goBookOnChange(item){
|
|
|
|
|
- this.$util.pageTo({ url: "/admin/book/globalBookOnChange?itemId="+item.itemId+'&itemName='+item.name+'&id='+item.id})
|
|
|
|
|
|
|
+ goBookOnChange(){
|
|
|
|
|
+ this.$refs.actRef.close()
|
|
|
|
|
+ this.$util.pageTo({ url: "/admin/book/globalBookOnChange?itemId="+this.currentItem.itemId+'&itemName='+this.currentItem.name+'&id='+this.currentItem.id})
|
|
|
},
|
|
},
|
|
|
- goBookRoadChange(item){
|
|
|
|
|
- this.$util.pageTo({ url: "/admin/book/globalBookRoadChange?itemId="+item.itemId+'&itemName='+item.name+'&id='+item.id})
|
|
|
|
|
|
|
+ goBookRoadChange(){
|
|
|
|
|
+ this.$refs.actRef.close()
|
|
|
|
|
+ this.$util.pageTo({ url: "/admin/book/globalBookRoadChange?itemId="+this.currentItem.itemId+'&itemName='+this.currentItem.name+'&id='+this.currentItem.id})
|
|
|
},
|
|
},
|
|
|
- goBookCgChange(item){
|
|
|
|
|
- this.$util.pageTo({ url: "/admin/book/globalBookCgChange?itemId="+item.itemId+'&itemName='+item.name+'&id='+item.id})
|
|
|
|
|
|
|
+ goBookCgChange(){
|
|
|
|
|
+ this.$refs.actRef.close()
|
|
|
|
|
+ this.$util.pageTo({ url: "/admin/book/globalBookCgChange?itemId="+this.currentItem.itemId+'&itemName='+this.currentItem.name+'&id='+this.currentItem.id})
|
|
|
},
|
|
},
|
|
|
selectDateFn(val) {
|
|
selectDateFn(val) {
|
|
|
this.params = {...this.params,...val}
|
|
this.params = {...this.params,...val}
|
|
@@ -259,7 +278,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
.main-view {
|
|
.main-view {
|
|
|
- margin-top:100upx;
|
|
|
|
|
|
|
+ margin-top:110upx;
|
|
|
flex: 1;
|
|
flex: 1;
|
|
|
background-color: #f9fbfc;
|
|
background-color: #f9fbfc;
|
|
|
.space-view {
|
|
.space-view {
|