|
|
@@ -31,11 +31,10 @@
|
|
|
<view>预录时间:</view>
|
|
|
<view>{{ detailInfo.addTime?detailInfo.addTime.substr(2,14):'' }}</view>
|
|
|
</view>
|
|
|
- <view class="order-info_box">
|
|
|
+ <view class="order-info_box" v-if="detailInfo.status==4">
|
|
|
<view>记账时间:</view>
|
|
|
- <view>
|
|
|
- <text v-if="detailInfo.status==4">{{ detailInfo.entryTime?detailInfo.entryTime.substr(2,14):'' }}</text>
|
|
|
- <text v-else>待入库</text>
|
|
|
+ <view :style="isEntrySendDifferentDay ? 'color:red;' : ''">
|
|
|
+ {{ detailInfo.entryTime?detailInfo.entryTime.substr(2,14):'' }}
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="order-info_box">
|
|
|
@@ -404,6 +403,21 @@ export default {
|
|
|
const next = Number(this.detailInfo.nextDayTkPrice || 0)
|
|
|
return parseFloat((tk + next).toFixed(2))
|
|
|
},
|
|
|
+ /**
|
|
|
+ * 记账日与发货日不是同一天时,仅记账时间标红,提示跨天入库。
|
|
|
+ */
|
|
|
+ isEntrySendDifferentDay() {
|
|
|
+ const info = this.detailInfo || {}
|
|
|
+ const entry = info.entryTime
|
|
|
+ const send = info.sendTime
|
|
|
+ if (!entry || String(entry).indexOf('0000-00-00') >= 0) {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ if (!send || String(send).indexOf('0000-00-00') >= 0) {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ return String(entry).substr(0, 10) !== String(send).substr(0, 10)
|
|
|
+ },
|
|
|
/**
|
|
|
* 预录时间 addTime:记账时间 entryTime 为空,或与 addTime 相差超过 30 分钟时才显示。
|
|
|
*/
|