|
@@ -65,7 +65,7 @@
|
|
</a-descriptions>
|
|
</a-descriptions>
|
|
</div>
|
|
</div>
|
|
</a-card>
|
|
</a-card>
|
|
- <a-card size="small" :bordered="false" class="pages-wrap">
|
|
|
|
|
|
+ <a-card size="small" :bordered="false" class="pages-wrap" style="margin-bottom: 6px;" >
|
|
<!-- 统计信息 -->
|
|
<!-- 统计信息 -->
|
|
<a-alert type="info" style="margin-bottom: 10px;">
|
|
<a-alert type="info" style="margin-bottom: 10px;">
|
|
<div slot="message">
|
|
<div slot="message">
|
|
@@ -338,7 +338,7 @@ export default {
|
|
return shippingAddrProvinceName + shippingAddrCityName + shippingAddrCountyName + shippingAddr
|
|
return shippingAddrProvinceName + shippingAddrCityName + shippingAddrCountyName + shippingAddr
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- // 是否因此底部栏按钮
|
|
|
|
|
|
+ // 是否隐藏底部栏按钮
|
|
hideFooter () {
|
|
hideFooter () {
|
|
const detailData = this.detailData
|
|
const detailData = this.detailData
|
|
return detailData && (detailData.billStatus == 'HQ_CHANGE' || (detailData.salesBillSource != 'SALES' && detailData.billStatus == 'AUDIT_REJECT') || detailData.billStatus == 'FINISH' || detailData.billStatus == 'OUTING_WAREHOUSE')
|
|
return detailData && (detailData.billStatus == 'HQ_CHANGE' || (detailData.salesBillSource != 'SALES' && detailData.billStatus == 'AUDIT_REJECT') || detailData.billStatus == 'FINISH' || detailData.billStatus == 'OUTING_WAREHOUSE')
|
|
@@ -347,9 +347,13 @@ export default {
|
|
hasPrompActive () {
|
|
hasPrompActive () {
|
|
return this.detailData && this.detailData.promoFlag == 1
|
|
return this.detailData && this.detailData.promoFlag == 1
|
|
},
|
|
},
|
|
|
|
+ // 是否有可转采购额
|
|
|
|
+ hasConvertPromoGifts () {
|
|
|
|
+ return this.detailData && this.detailData.totalConvertPromoGiftsQty
|
|
|
|
+ },
|
|
// 是否有促销产品(转采购额)
|
|
// 是否有促销产品(转采购额)
|
|
showConvertPromoGifts () {
|
|
showConvertPromoGifts () {
|
|
- return this.$refs.productList && this.$refs.productList.showConvertPromoGifts
|
|
|
|
|
|
+ return this.activeList && this.activeList.filter(item => item.enabledFlag == 1).find(item => item.promotionRule && item.promotionRule.convertExpenseFlag == 1 && item.promotionRule.promotionRuleType == 'BUY_PROD_GIVE_PROD')
|
|
},
|
|
},
|
|
// 是否显示库存列
|
|
// 是否显示库存列
|
|
showStock () {
|
|
showStock () {
|
|
@@ -357,7 +361,7 @@ export default {
|
|
},
|
|
},
|
|
// 表格高度计算
|
|
// 表格高度计算
|
|
pageHeight () {
|
|
pageHeight () {
|
|
- return window.innerHeight - 315 + (this.hideFooter ? 45 : 0)
|
|
|
|
|
|
+ return this.activeList.length == 0 ? window.innerHeight - 315 + (this.hideFooter ? 45 : 0) : 302
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -481,8 +485,6 @@ export default {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
if (this.activeList.length) {
|
|
if (this.activeList.length) {
|
|
this.$refs.activeTjList.hasInit = false
|
|
this.$refs.activeTjList.hasInit = false
|
|
- // 刷新活动统计
|
|
|
|
- this.$refs.activeTjList.getDataList()
|
|
|
|
}
|
|
}
|
|
})
|
|
})
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|