shish 2 سال پیش
والد
کامیت
baad512b56
1فایلهای تغییر یافته به همراه9 افزوده شده و 5 حذف شده
  1. 9 5
      ghsApp/src/pagesPurchase/info.vue

+ 9 - 5
ghsApp/src/pagesPurchase/info.vue

@@ -85,6 +85,10 @@
 				打全部标签
 				</text>
 			</view>
+			<view style="text-align: right;">
+				<button @tap="assignOrder()" class="admin-button-com mini-btn blue" style="">获取货位</button>
+				<button @tap="assignOrder()" class="admin-button-com mini-btn blue" style="margin-left:20upx;">隐藏货位</button>
+			</view>
 			<view class="module-com content-box">
 				<view class="commodity-view">
 					<view class="commodity-list">
@@ -93,8 +97,7 @@
 							<view class="item-info">
 								<view class="info-line">
 									<text class="item-name">
-				<text style="font-size:22upx;border:1upx solid #3385ff;color:white;background-color:#3385ff;margin-right:5upx;padding-left:5upx;padding-right:5upx;" 
-				v-if="s.presell == 1">预售</text>
+										<text style="font-size:22upx;border:1upx solid #3385ff;color:white;background-color:#3385ff;margin-right:5upx;padding-left:5upx;padding-right:5upx;" v-if="s.presell == 1">预售</text>
 										{{ s.name }}
 									</text>
 									<text class="item-price">
@@ -286,11 +289,14 @@ export default {
 			uni.stopPullDownRefresh()
 		})
 	},
+	onLoad() {
+	},
 	methods: {
 		assignOrder(){
 			assignSeat({id:this.detailInfo.id}).then(res=>{
 				if(res.code == 1){
-
+					this.$msg(res.msg)
+					this.init()
 				}
 			})
 		},
@@ -438,14 +444,12 @@ export default {
 			}
 			const { data } = await getPurchaseDetailApi(orderSn);
 			this.detailInfo = data;
-
 			let that = this
 			getPrint().then(res=>{
 				if(res.code == 1){
 					that.wcPrintNum = res.data.wcPrintNum ? Number(res.data.wcPrintNum) : 1
 				}
 			})
-
 		}
 	}
 };