shish 2 дней назад
Родитель
Сommit
4ae8781cd3
2 измененных файлов с 14 добавлено и 12 удалено
  1. 6 5
      ghsApp/src/pagesGys/detailsItem.vue
  2. 8 7
      ghsApp/src/pagesPurchase/details.vue

+ 6 - 5
ghsApp/src/pagesGys/detailsItem.vue

@@ -15,7 +15,7 @@
 				</text>
 			</view>
 			<view class="item-row">
-				<view class="mark">{{ info.sendTime && info.sendTime.indexOf('0000-00-00') < 0 ? info.sendTime.substr(2,14) : '' }}
+				<view class="mark">发送时间 {{ info.sendTime && info.sendTime.indexOf('0000-00-00') < 0 ? info.sendTime.substr(2,14) : '' }}
 				<text v-if="info.yfPayWay ==2" style="margin-left:16upx;color:#333333;">到付</text></view>
 			</view>
 			<view v-if="!$util.isEmpty(info.remark)" class="item-row">
@@ -25,7 +25,7 @@
 				<view class="price" style="color:#3385FF;">
 					<text :class="[hasPartialClear ? 'price-del' : '']">¥{{ parseFloat(displayDebtPrice) }}</text>
 				</view>
-				<!-- 记账时间与发货时间不完全相同时才贴右侧 -->
+				<!-- 记账日与发送日不是同一天时才贴右侧,同一天不重复 -->
 				<view v-if="showEntryTime" class="send-date">记账时间 {{ info.entryTime.substr(2, 14) }}</view>
 			</view>
 			<!-- 售后退款单独成行,不与挂账价格挤在同一行 -->
@@ -43,7 +43,8 @@
 </template>
 <script>
 /**
- * 供货商采购挂账明细行:支持已清/剩余待结展示(对齐 pagesArrears/detailsItem)
+ * 供货商采购挂账明细行:支持已清/剩余待结展示(对齐 pagesArrears/detailsItem)。
+ * 发送时间 sendTime 始终展示;记账时间 entryTime 仅与发送日不是同一天才显示。
  */
 export default {
 	props: {
@@ -85,7 +86,7 @@ export default {
 			return this.displayDebtPrice > this.remainDebtPrice
 		},
 		/**
-		 * 金额行右侧记账时间:entryTime 有效,且与主展示的发货时间 sendTime(含时分秒)不完全相同才展示。
+		 * 金额行右侧记账时间:entryTime 有效,且与发送时间 sendTime 不是同一天(只比 Y-m-d)才展示。
 		 */
 		showEntryTime() {
 			const bill = this.info.entryTime
@@ -96,7 +97,7 @@ export default {
 			if (!send || send.indexOf('0000-00-00') >= 0) {
 				return true
 			}
-			return bill.substr(0, 19) !== send.substr(0, 19)
+			return bill.substr(0, 10) !== send.substr(0, 10)
 		}
 	},
 	methods: {

+ 8 - 7
ghsApp/src/pagesPurchase/details.vue

@@ -60,7 +60,14 @@
 					<tui-list-cell class="line-cell" :arrow="true">
 						<div class="tui-title">采购人</div>
 						<view @click="changeCgStaff()" style="width:240upx;">{{ form.cgStaffName==''?'请选择':form.cgStaffName }}</view>
-						<button @click="getMySelf()" class="admin-button-com middle blue" style="margin-left:20upx;">我自己</button>
+						<button @click="getMySelf()" class="admin-button-com middle blue" style="margin-left:20upx;">本人</button>
+					</tui-list-cell>
+
+					<!-- 紧跟采购人:sendTime 可选手动补录,空则后端按当天落库 -->
+					<tui-list-cell class="line-cell" :hover="false" :arrow="true">
+						<view class="tui-title">{{Number(pfLevel)==0?'发货时间':'送货时间'}}</view>
+						<view class="uni-input" v-if="form.sendTime == ''" style="color: #cccccc; width: 400upx; font-size: 32upx" @click="bindSendTimeChange">默认当天</view>
+						<view class="uni-input" @click="bindSendTimeChange" v-else style="width: 400upx; font-size: 32upx">{{ form.sendTime }}</view>
 					</tui-list-cell>
 
 					<block v-if="location == 1">
@@ -176,12 +183,6 @@
 						</tui-list-cell>
 					</block>
 
-					<!-- 送货时间写入 sendTime,可选手动补录;空则后端按当天落库 -->
-					<tui-list-cell class="line-cell" :hover="false" :arrow="true">
-						<view class="tui-title">{{Number(pfLevel)==0?'发货时间':'送货时间'}}</view>
-						<view class="uni-input" v-if="form.sendTime == ''" style="color: #cccccc; width: 400upx; font-size: 32upx" @click="bindSendTimeChange">默认当天</view>
-						<view class="uni-input" @click="bindSendTimeChange" v-else style="width: 400upx; font-size: 32upx">{{ form.sendTime }}</view>
-					</tui-list-cell>
 					<tui-list-cell class="line-cell" :hover="false">
 						<view class="tui-title">备注</view>
 						<view class="tui-input">