Răsfoiți Sursa

动作规范

shish 2 ani în urmă
părinte
comite
f63ff42e9d

+ 57 - 16
ghsApp/src/admin/book/custom.vue

@@ -21,13 +21,13 @@
 							<t-th><view style="color:black;">待采</view></t-th>
 							<t-th><view style="color:black;">待采</view></t-th>
 						</t-tr>
 						</t-tr>
 						<template v-if="!$util.isEmpty(bookCustomData)">
 						<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-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>
 								</t-tr>
 							</view>
 							</view>
 						</template>
 						</template>
@@ -35,6 +35,34 @@
 				</view>
 				</view>
 			</scroll-view>
 			</scroll-view>
 		</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>
 	</view>
 </template>
 </template>
 <script>
 <script>
@@ -71,6 +99,7 @@ export default {
 			dataList: [],
 			dataList: [],
 			bookCustomData:[],
 			bookCustomData:[],
 			searchContent:'',
 			searchContent:'',
+			currentItem:null
 		};
 		};
 	},
 	},
 	onPullDownRefresh() {
 	onPullDownRefresh() {
@@ -92,20 +121,32 @@ export default {
 				that.getStatList()
 				that.getStatList()
 			},700)
 			},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() {
 		async init() {
 			this.getStatList();
 			this.getStatList();

+ 6 - 0
ghsApp/src/admin/book/itemCustom.vue

@@ -69,6 +69,9 @@
 				<view style="margin-top:10upx;">
 				<view style="margin-top:10upx;">
 					<button class="admin-button-com big blue" style="width:420upx;" @click="goCgChange()">待采记录</button>
 					<button class="admin-button-com big blue" style="width:420upx;" @click="goCgChange()">待采记录</button>
 				</view>
 				</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;">
 				<view style="margin-top:10upx;">
 					<button class="admin-button-com big default" style="width:420upx;" @click="cancelBox()">取消装箱</button>
 					<button class="admin-button-com big default" style="width:420upx;" @click="cancelBox()">取消装箱</button>
 				</view>
 				</view>
@@ -138,6 +141,9 @@ export default {
 			this.$refs.actRef.close()
 			this.$refs.actRef.close()
 			this.$util.pageTo({ url: "/admin/book/itemCustomBookCgChange?id="+this.currentItem.id+'&customId='+this.currentItem.customId+'&itemId='+this.currentItem.itemId+'&customName='+this.currentItem.customName+'&itemName='+this.currentItem.name})
 			this.$util.pageTo({ url: "/admin/book/itemCustomBookCgChange?id="+this.currentItem.id+'&customId='+this.currentItem.customId+'&itemId='+this.currentItem.itemId+'&customName='+this.currentItem.customName+'&itemName='+this.currentItem.name})
 		},
 		},
+		getStock(){
+			this.$msg('开发中')
+		},
 		goDetail(){
 		goDetail(){
 			this.$refs.actRef.close()
 			this.$refs.actRef.close()
 			this.$util.pageTo({ url: "/admin/book/itemCustomDetail?parentId="+this.currentItem.id})
 			this.$util.pageTo({ url: "/admin/book/itemCustomDetail?parentId="+this.currentItem.id})

+ 6 - 0
ghsApp/src/admin/order/statBook.vue

@@ -72,6 +72,9 @@
 				<view style="margin-top:10upx;">
 				<view style="margin-top:10upx;">
 					<button class="admin-button-com big blue" style="width:420upx;" @click="goBookCgChange()">待采记录</button>
 					<button class="admin-button-com big blue" style="width:420upx;" @click="goBookCgChange()">待采记录</button>
 				</view>
 				</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;">
 				<view style="margin-top:10upx;">
 					<button class="admin-button-com big default" style="width:420upx;" @click="cancelAct()">取消</button>
 					<button class="admin-button-com big default" style="width:420upx;" @click="cancelAct()">取消</button>
 				</view>
 				</view>
@@ -231,6 +234,9 @@ export default {
 			this.$refs.actRef.close()
 			this.$refs.actRef.close()
 			this.$util.pageTo({ url: "/admin/book/globalBookCgChange?itemId="+this.currentItem.itemId+'&itemName='+this.currentItem.name+'&id='+this.currentItem.id})
 			this.$util.pageTo({ url: "/admin/book/globalBookCgChange?itemId="+this.currentItem.itemId+'&itemName='+this.currentItem.name+'&id='+this.currentItem.id})
 		},
 		},
+		getStock(){
+			this.$msg('开发中')
+		},
 		selectDateFn(val) {
 		selectDateFn(val) {
 			this.params = {...this.params,...val}
 			this.params = {...this.params,...val}
 			this.init()
 			this.init()

+ 1 - 1
ghsApp/src/pagesPurchase/supplier.vue

@@ -375,7 +375,7 @@ export default {
             position: absolute;
             position: absolute;
             top:40upx;
             top:40upx;
             right:-125upx;
             right:-125upx;
-            z-index:99999;
+            z-index:99;
         }
         }
       }
       }
       .box_6 {
       .box_6 {