|
|
@@ -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: {
|