lilei 3 years ago
parent
commit
8035ae3d4b
2 changed files with 8 additions and 3 deletions
  1. 7 2
      pages/common/printTag/printTag.vue
  2. 1 1
      pages/latePlay/chooseProduct.vue

+ 7 - 2
pages/common/printTag/printTag.vue

@@ -16,7 +16,8 @@
 			<view>库存数量:3</view>
 		</view>
 		<view class="buttons flex align_center justify_center">
-			<view><u-button @click="cansel" shape="circle" plain>返回列表</u-button></view>
+			<view v-if="fromPage == 'bdtq'"><u-button @click="cansel" shape="circle" plain>返回列表</u-button></view>
+			<view v-if="fromPage == 'smdy'"><u-button @click="cansel" shape="circle" plain>重新扫描</u-button></view>
 			<view><u-button @click="print" shape="circle" :custom-style="{background:$config('primaryColor')}" type="primary">开始打印</u-button></view>
 		</view>
 	</view>
@@ -26,9 +27,13 @@
 	export default {
 		data() {
 			return {
-				part: null
+				part: null,
+				fromPage: ''
 			}
 		},
+		onLoad(opts) {
+			this.fromPage = opts.from
+		},
 		methods: {
 			cansel(){
 				uni.navigateBack()

+ 1 - 1
pages/latePlay/chooseProduct.vue

@@ -146,7 +146,7 @@
 			},
 			print(item){
 				uni.navigateTo({
-					url: "/pages/common/printTag/printTag?id="+item.id
+					url: "/pages/common/printTag/printTag?id="+item.id+"&from=bdtq"
 				})
 			}
 		}