shish 2 лет назад
Родитель
Сommit
a2e702e2b8

+ 18 - 4
ghsApp/src/admin/book/custom.vue

@@ -1,9 +1,13 @@
 <template>
 	<view class="app-content">
 		<view class="ex-page">
+			<view class="input-wrap_box">
+				<view style="padding-top:5upx;">
+					<AppSearchModule placeholder="搜索客户" @input="searchFn"/>
+				</view>
+			</view>
 			<view class="top-bar">
-                <view style="font-size:30upx;padding:10upx 0 10upx 0;">
-					<text style="margin-left:80upx;">请选客户</text>
+                <view style="font-size:30upx;padding:5upx 0 5upx 0;">
 				</view>
 			</view>
 			<scroll-view scroll-y scroll-with-animation class="main-view">
@@ -72,6 +76,16 @@ export default {
 
 	},
 	methods: {
+		searchFn(e){
+			let that = this
+			if(that.T != null){
+				clearTimeout(that.T)
+			}
+			that.T = setTimeout(function(){
+				that.searchContent = e
+				that.getStatList()
+			},700)
+		},
 		goChange(item){
 			this.$util.pageTo({ url: "/admin/book/customBookChange?customId="+item.customId+'&customName='+item.name+'&id='+item.id})
 		},
@@ -93,7 +107,7 @@ export default {
 		getStatList() {
 			let that = this
 			uni.showLoading()
-			getBookCustomList(this.params).then(res => {
+			getBookCustomList({...this.params,search:this.searchContent}).then(res => {
 				uni.hideLoading()
 				if (!this.$util.isEmpty(res.data.list)) {
 					that.bookCustomData = res.data.list
@@ -110,7 +124,7 @@ export default {
 	background: white;
 	height: 100%;
 	display: flex;
-	flex-direction: column;
+	flex-direction:column;
 	.top-bar {
 
 	}

+ 1 - 4
ghsApp/src/admin/book/itemCustom.vue

@@ -2,10 +2,7 @@
 	<view class="app-content">
 		<view class="ex-page">
             <view class="top-bar">
-                <view style="font-size:30upx;padding:10upx 0 10upx 0;">
-					<text style="margin-left:60upx;">请选花材</text>
-					<text style="margin-left:80upx;">请选客户</text>
-				</view>
+                <view style="font-size:30upx;"></view>
             </view>
             <scroll-view scroll-y scroll-with-animation class="main-view">
                 <view class="space-view ex-table">

+ 43 - 7
ghsApp/src/admin/order/statBook.vue

@@ -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})