Ver código fonte

采购单优化

shish 3 anos atrás
pai
commit
a606d11326

+ 2 - 2
ghsApp/src/pagesGys/detailsItem.vue

@@ -6,10 +6,10 @@
 		</view>
 		<view class="details-main">
 			<view class="item-header">
-				<text class="name">采购单 {{info.orderSn}} </text>
+				<text class="name">{{info.orderSn}} </text>
 			</view>
 			<view class="item-row">
-				<view class="mark">{{ info.addTime.substr(0,16) }}</view>
+				<view class="mark">{{ info.addTime.substr(5,11) }}</view>
 			</view>
 			<view v-if="!$util.isEmpty(info.remark)" class="item-row">
 				<view class="mark" style="color:red;font-weight:bold;">{{ info.remark }}</view>

+ 4 - 8
ghsApp/src/pagesPurchase/orderItem.vue

@@ -2,10 +2,8 @@
 	<view class="order-item-view" @click="clickItemEvent">
 		<view class="item-header">
 			<view class="title">
-				<image class="icon" :src="info.supplierAvatar" alt="" />
-				<text class="name">
-					{{ info.supplierName }}
-				</text>
+				<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>
@@ -15,7 +13,7 @@
 			<view class="item-info">
 				<view class="info-row">
 					<text class="info-label"> 日期:</text>
-					<text class="info-value">{{ info.entryTime }} </text>
+					<text class="info-value">{{ info.entryTime.substr(5,11) }} </text>
 				</view>
 				<view class="info-row">
 					<text class="info-label"> 单号:</text>
@@ -30,15 +28,13 @@
 					<text class="info-value" style="overflow: hidden; text-overflow:ellipsis; white-space: nowrap;width:450upx;color:red;">{{ info.remark }} </text>
 				</view>
 			</view>
-			<view class="item-price"
-				>¥{{ info.realPrice }} <text class="iconfont iconxiangyou"></text>
+			<view class="item-price">¥{{ info.realPrice?parseFloat(info.realPrice):0 }} <text class="iconfont iconxiangyou"></text>
 			</view>
 		</view>
 	</view>
 </template>
 <script>
 import { PURCHASE_ORDER_STATUS } from "@/utils/declare";
-
 export default {
 	props: {
 		info: {

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

@@ -151,7 +151,7 @@ export default {
     .list_item {
       margin: 20upx 0 0;
       position: relative;
-      height: 200upx;
+      height: 220upx;
       width: 100vw;
       background: #fff;
       display: flex;
@@ -186,11 +186,11 @@ export default {
       }
       & > .store_btn {
         position: absolute;
-        top:120upx;
+        top:130upx;
         left: 0upx;
         & > .btn_entrance {
           display: inline-block;
-          font-size: 26upx;
+          font-size: 30upx;
           color: #666666;
           padding: 10upx 20upx;
           margin-left: 20upx;
@@ -205,8 +205,8 @@ export default {
             padding: 12upx 32upx;
             background: #3385FF;
             position: absolute;
-            top:-50upx;
-            right:-180upx;
+            top:-80upx;
+            right:-165upx;
         }
       }
     }