Преглед изворни кода

Merge branch 'master' into zhongqi-quickOrder

shish пре 6 месеци
родитељ
комит
e0c571117b

+ 15 - 7
ghsApp/src/admin/item/list2.vue

@@ -72,14 +72,20 @@
 			</view>
 		</view>
 
-		<modal-module :show="printLabelShow" @click="dialogInputConfirm" :maskClosable="true" title="数量" padding="30rpx 30rpx" >
+		<modal-module :show="printLabelShow" @click="dialogInputConfirm" :maskClosable="true" :title="printType==0?'标签数量':'价码数量'" padding="30rpx 30rpx" >
 			<template v-slot:content>
 				<div class="app-modal-input-wrap">
-				<div class="inp-list-line">
-					<div class="line-input">
-					<input type="number" ref="input" style="width:61.8%;text-align:center;" @blur="printBlur" :focus="printFocus" v-model="printNum" :adjust-position="false" class="inp-input" />
+					<div class="inp-list-line">
+						<div class="line-input">
+						<input type="number" ref="input" style="width:61.8%;text-align:center;" @blur="printBlur" :focus="printFocus" v-model="printNum" :adjust-position="false" class="inp-input" />
+						</div>
+					</div>
+					<div class="inp-list-line" v-if="printType==0">
+						<div class="line-input" style="justify-content: center;margin-top: 30upx;">
+							<button class="admin-button-com big" :class="priceOption === 0 ? 'blue' : 'default'" @click="priceOption = 0" style="margin-right:40upx;">没带价格</button>
+							<button class="admin-button-com big" :class="priceOption === 1 ? 'blue' : 'default'" @click="priceOption = 1">有带价格</button>
+						</div>
 					</div>
-				</div>
 				</div>
 			</template>
 		</modal-module>
@@ -246,7 +252,8 @@ export default {
 			partNum:'',
 			partShow:false,
 			partFocus:false,
-			showClassImg:false
+			showClassImg:false,
+			priceOption:0
 		};
 	},
 	computed:{
@@ -473,6 +480,7 @@ export default {
 			this.printItemId = id
 			this.printType = type
 			this.printLabelShow = true
+			this.priceOption = 0
 			this.printNum = null
 			setTimeout(x => {
 				this.$nextTick(() => this.setFocus())
@@ -506,7 +514,7 @@ export default {
 				that.printFocus = false
 				return
 			}
-			print({id:itemId,num:currentNum,type:this.printType}).then(res=>{
+			print({id:itemId,num:currentNum,type:this.printType,priceOption:this.priceOption}).then(res=>{
 				if(res.code == 1){
 					that.printLabelShow = false
 					that.printFocus = false

+ 2 - 2
ghsApp/src/manifest.json

@@ -2,8 +2,8 @@
     "name" : "销花宝",
     "appid" : "__UNI__BD781B0",
     "description" : "鲜花批发销售管理系统",
-    "versionName" : "1.2.69",
-    "versionCode" : 1269,
+    "versionName" : "1.2.70",
+    "versionCode" : 1270,
     "transformPx" : true,
     /* 5+App特有相关 */
     "app-plus" : {

+ 56 - 11
ghsApp/src/pagesPurchase/info.vue

@@ -88,10 +88,10 @@
 				<block v-if="!$util.isEmpty(getLoginInfo.admin) && getLoginInfo.admin.currentGhsShopId > 0">
 					<text @click="goRefund(detailInfo)" v-if="detailInfo.status == 4" 
 					style="float:right;font-weight:normal;color:#3385FF;margin-right:30upx;">申请售后</text>
-					<text @click="printAllLabel(detailInfo,1)" style="float:right;font-weight:normal;color:#3385FF;margin-right:30upx;">
+					<text @click="printAllLabelConfirm(detailInfo,1)" style="float:right;font-weight:normal;color:#3385FF;margin-right:30upx;">
 					打全部价码
 					</text>
-					<text @click="printAllLabel(detailInfo,0)" style="float:right;font-weight:normal;color:#3385FF;margin-right:30upx;">
+					<text @click="printAllLabelConfirm(detailInfo,0)" style="float:right;font-weight:normal;color:#3385FF;margin-right:30upx;">
 					打全部标签
 					</text>
 				</block>
@@ -280,19 +280,41 @@
 			</view>
 		</block>
 
-		<modal-module :show="printLabelShow" @click="dialogInputConfirm" :maskClosable="true" title="数量" padding="30rpx 30rpx" >
+	<modal-module :show="printLabelShow" @click="dialogInputConfirm" :maskClosable="true" :title="printType==0?'标签数量':'价码数量'" padding="30rpx 30rpx" >
+	<template v-slot:content>
+		<div class="app-modal-input-wrap">
+		<div class="inp-list-line">
+			<div class="line-input">
+			<input type="number" ref="input" style="width:61.8%;text-align:center;" v-model="printNum" :adjust-position="false" class="inp-input" @focus="printNum=''" />
+			</div>
+		</div>
+		<div class="inp-list-line" v-if="printType==0">
+			<div class="line-input" style="justify-content: center;margin-top: 30upx;">
+				<button class="admin-button-com big" :class="priceOption === 0 ? 'blue' : 'default'" @click="priceOption = 0" style="margin-right:40upx;">没带价格</button>
+				<button class="admin-button-com big" :class="priceOption === 1 ? 'blue' : 'default'" @click="priceOption = 1">有带价格</button>
+			</div>
+		</div>
+		</div>
+	</template>
+	</modal-module>
+
+	<modal-module :show="printAllLabelShow" @click="printAllLabelConfirmFn" :maskClosable="true" title="提示" padding="30rpx 30rpx" >
 		<template v-slot:content>
 			<div class="app-modal-input-wrap">
-			<div class="inp-list-line">
-				<div class="line-input">
-				<input type="number" ref="input" style="width:61.8%;text-align:center;" v-model="printNum" :adjust-position="false" class="inp-input" @focus="printNum=''" />
+				<div class="inp-list-line" style="justify-content: center;margin-top: 30upx;">
+				<text style="text-align:center;color:black;font-size:38upx;">确认打全部{{printAllLabelType==0?'标签':'价码'}}?</text>
+			</div>
+			<div class="inp-list-line" v-if="printAllLabelType==0">
+				<div class="line-input" style="justify-content: center;margin-top: 30upx;">
+					<button class="admin-button-com big" :class="printAllPriceOption === 0 ? 'blue' : 'default'" @click="printAllPriceOption = 0" style="margin-right:40upx;">没带价格</button>
+					<button class="admin-button-com big" :class="printAllPriceOption === 1 ? 'blue' : 'default'" @click="printAllPriceOption = 1">有带价格</button>
 				</div>
 			</div>
 			</div>
 		</template>
-		</modal-module>
+	</modal-module>
 
-		<mx-date-picker :show="showPicker" format="yyyy-mm-dd" type="date" :value="defaultPickerDate" :show-tips="true" @confirm="confirmPicker" @cancel="showPicker = false" />
+	<mx-date-picker :show="showPicker" format="yyyy-mm-dd" type="date" :value="defaultPickerDate" :show-tips="true" @confirm="confirmPicker" @cancel="showPicker = false" />
 
 	</view>
 </template>
@@ -342,7 +364,11 @@ export default {
 			showSeat:1,
 			title:'',
 			imageUrl:'',
-      		currentEnv:'production'
+      		currentEnv:'production',
+			priceOption:0,
+			printAllLabelShow:false,
+			printAllLabelType:0,
+			printAllPriceOption:0
 		};
 	},
 	onPullDownRefresh() {
@@ -475,7 +501,7 @@ export default {
 				that.printLabelShow = false
 				return
 			}
-			print({id:itemId,num:currentNum,type:this.printType}).then(res=>{
+			print({id:itemId,num:currentNum,type:this.printType,priceOption:this.priceOption}).then(res=>{
 				if(res.code == 1){
 					that.printLabelShow = false
 					uni.showToast({ title: '操作成功', duration: 1500 })
@@ -489,6 +515,7 @@ export default {
 			this.printType = type
 			this.printItemId = item.productId
 			this.printLabelShow = true
+			this.priceOption = 0
 			this.printNum = item.itemNum
 		},
 		shareOrder(){
@@ -551,13 +578,31 @@ export default {
 		printAllLabel(item,type){
 			let that = this
 			that.$util.confirmModal({content:'确认打印'},() => {
-				printAll({orderSn:item.orderSn,type:type}).then(res=>{
+				printAll({orderSn:item.orderSn,type:type,priceOption:that.printAllPriceOption}).then(res=>{
 					if(res.code == 1){
 						that.$msg(res.msg)
 					}
 				})          
 			})
 		},
+		printAllLabelConfirm(item,type){
+			this.printAllLabelShow = true
+			this.printAllLabelType = type
+			this.printAllPriceOption = 0
+		},
+		printAllLabelConfirmFn(val){
+			let that = this
+			if (val.index == 0) {
+				that.printAllLabelShow = false
+				return
+			}
+			printAll({orderSn:that.detailInfo.orderSn,type:that.printAllLabelType,priceOption:that.printAllPriceOption}).then(res=>{
+				if(res.code == 1){
+					that.$msg(res.msg)
+					that.printAllLabelShow = false
+				}
+			})
+		},
 		goToClear (item) {
 			this.pageTo({
 				url: '/pagesGys/details?id='+item.ghsId

+ 2 - 2
hdApp/src/manifest.json

@@ -2,8 +2,8 @@
     "name" : "花掌柜",
     "appid" : "__UNI__4079DC1",
     "description" : "花店管家婆",
-    "versionName" : "2.2.1",
-    "versionCode" : 221,
+    "versionName" : "2.2.2",
+    "versionCode" : 222,
     "transformPx" : true,
     /* 5+App特有相关 */
     "app-plus" : {

+ 1 - 1
hdApp/src/pagesPurchase/purDetails.vue

@@ -155,7 +155,7 @@
           </view>
         </view>
 
-        <view class="order-info_box" style="margin-top:35upx;" v-if="Number(detailInfo.debtAmount)>0">
+        <view class="order-info_box" style="margin-top:35upx;" v-if="Number(detailInfo.debtAmount)>0 && detailInfo.showForPay==1">
           <view>累计待结:</view>
           <view style="font-weight:bold;color:red;font-size:29upx;">¥{{detailInfo.debtAmount?parseFloat(detailInfo.debtAmount):0}}</view>
           <view class="price" v-if="loginStyle != 0">

+ 2 - 2
开发http/ghsApp/src/manifest.json

@@ -2,8 +2,8 @@
     "name" : "销花宝",
     "appid" : "__UNI__BD781B0",
     "description" : "鲜花批发销售管理系统",
-    "versionName" : "1.2.69",
-    "versionCode" : 1269,
+    "versionName" : "1.2.70",
+    "versionCode" : 1270,
     "transformPx" : true,
     /* 5+App特有相关 */
     "app-plus" : {

+ 2 - 2
开发http/hdApp/src/manifest.json

@@ -2,8 +2,8 @@
     "name" : "花掌柜",
     "appid" : "__UNI__4079DC1",
     "description" : "花店管家婆",
-    "versionName" : "2.2.1",
-    "versionCode" : 221,
+    "versionName" : "2.2.2",
+    "versionCode" : 222,
     "transformPx" : true,
     /* 5+App特有相关 */
     "app-plus" : {

+ 2 - 2
开发https/ghsApp/src/manifest.json

@@ -2,8 +2,8 @@
     "name" : "销花宝",
     "appid" : "__UNI__BD781B0",
     "description" : "鲜花批发销售管理系统",
-    "versionName" : "1.2.69",
-    "versionCode" : 1269,
+    "versionName" : "1.2.70",
+    "versionCode" : 1270,
     "transformPx" : true,
     /* 5+App特有相关 */
     "app-plus" : {

+ 2 - 2
开发https/hdApp/src/manifest.json

@@ -2,8 +2,8 @@
     "name" : "花掌柜",
     "appid" : "__UNI__4079DC1",
     "description" : "花店管家婆",
-    "versionName" : "2.2.1",
-    "versionCode" : 221,
+    "versionName" : "2.2.2",
+    "versionCode" : 222,
     "transformPx" : true,
     /* 5+App特有相关 */
     "app-plus" : {

+ 2 - 2
线上/ghsApp/src/manifest.json

@@ -2,8 +2,8 @@
     "name" : "销花宝",
     "appid" : "__UNI__BD781B0",
     "description" : "鲜花批发销售管理系统",
-    "versionName" : "1.2.69",
-    "versionCode" : 1269,
+    "versionName" : "1.2.70",
+    "versionCode" : 1270,
     "transformPx" : true,
     /* 5+App特有相关 */
     "app-plus" : {

+ 2 - 2
线上/hdApp/src/manifest.json

@@ -2,8 +2,8 @@
     "name" : "花掌柜",
     "appid" : "__UNI__4079DC1",
     "description" : "花店管家婆",
-    "versionName" : "2.2.1",
-    "versionCode" : 221,
+    "versionName" : "2.2.2",
+    "versionCode" : 222,
     "transformPx" : true,
     /* 5+App特有相关 */
     "app-plus" : {