shish 3 жил өмнө
parent
commit
434b099cd9

+ 13 - 1
ghsApp/src/pagesPurchase/details.vue

@@ -46,6 +46,14 @@
 						<AppDatePicker v-if="canIEdit" :dateVal.sync="form.entryTime" :placeholder="'今天'"/>
 						<view v-else>{{ form.entryTime || "默认今天" }}</view>
 					</tui-list-cell>
+
+<tui-list-cell class="line-cell" :hover="false" :arrow="false">
+<view class="tui-title">打印小票</view>
+<button @click="form.needPrint = 1" class="admin-button-com middle" :class="form.needPrint == 1 ? 'blue' : 'default'">打印</button>
+<button style="margin-left:30upx;" @tap="form.needPrint = 2" 
+class="admin-button-com middle" :class="form.needPrint == 2? 'blue' : 'default'">不打</button>
+</tui-list-cell>
+
 <block v-if="location == 0">
 					<tui-list-cell v-if="myShopInfo.cgModel == 0" class="line-cell" :hover="false">
 						<view class="tui-title ">打包费</view>
@@ -170,7 +178,8 @@ export default {
 				entryTime: "",
 				yfPayWay:1,
 				remark:"",
-				avgKgWeight:''
+				avgKgWeight:'',
+				needPrint:2
 			},
 			showCustomer: false,
 			detailsInfo: {},
@@ -187,6 +196,9 @@ export default {
 		}
 		if(this.option.location){
 			this.location = this.option.location
+			if(this.location == 1){
+				this.form.needPrint = 1
+			}
 		}
 		this.initData();
 	},

+ 2 - 2
ghsApp/src/pagesPurchase/info.vue

@@ -53,9 +53,9 @@
 			<view class="bills-info_box content-box" style="margin-top:18upx;">
 				<view class="order-info_box" v-if="detailInfo.debt == 1">
 				<view>订单状态:</view>
-					<view style="color:red;font-weight:bold;">欠款</view>
+					<view style="color:red;font-weight:bold;">赊账</view>
 					<view class="price">
-						<text @click="goToClear(detailInfo)" style="font-weight:normal;color:#3385FF;">全部欠款</text>
+						<text @click="goToClear(detailInfo)" style="font-weight:normal;color:#3385FF;">全部赊账</text>
 					</view>
 				</view>
 				<view class="order-info_box" v-else>

+ 2 - 2
ghsApp/src/pagesPurchase/orderItem.vue

@@ -5,8 +5,8 @@
 				<image class="icon" :src="info.supplierAvatar" />
 				<text class="name">{{ info.supplierName }}</text>
 			</view>
-			<view v-if="info.refund == 2" class="status" style="color:red;border:1upx solid red;border-radius:20upx;font-size:20upx;padding:5upx 12upx;margin-right:50upx;">有退款 </view>
-			<view v-if="info.debt == 1" class="status" style="color:red;border:1upx solid red;border-radius:20upx;font-size:20upx;padding:5upx 12upx;margin-right:50upx;">欠款 </view>
+			<view v-if="info.refund == 2" class="status" style="color:red;border:1upx solid red;border-radius:20upx;font-size:20upx;padding:5upx 12upx;margin-right:50upx;">有退款</view>
+			<view v-if="info.debt == 1" class="status" style="color:red;border:1upx solid red;border-radius:20upx;font-size:20upx;padding:5upx 12upx;margin-right:50upx;">赊账</view>
 			<view class="status">
 				<text v-if="info.status == 3" style="font-weight:bold;color:green;">待入库</text>
 				<text v-else-if="info.status == 5" style="font-weight:bold;color:#CCCCCC;">已取消</text>