|
@@ -25,7 +25,7 @@
|
|
<div v-if="countData&&activeList.length>0" style="padding:6px 0 0;text-align: right;">
|
|
<div v-if="countData&&activeList.length>0" style="padding:6px 0 0;text-align: right;">
|
|
总款数:<strong>{{ countData&&(countData.totalCategory || countData.totalCategory==0) ? countData.totalCategory : 0 }}</strong>;
|
|
总款数:<strong>{{ countData&&(countData.totalCategory || countData.totalCategory==0) ? countData.totalCategory : 0 }}</strong>;
|
|
总数量:<strong>{{ countData&&(countData.totalQty || countData.totalQty==0) ? countData.totalQty : 0 }}</strong>;
|
|
总数量:<strong>{{ countData&&(countData.totalQty || countData.totalQty==0) ? countData.totalQty : 0 }}</strong>;
|
|
- <span v-if="$hasPermissions(authCode + '_salesPrice')">总金额:<strong>{{ countData&&(countData.totalAmount || countData.totalAmount==0) ? toThousands(countData.totalAmount) : '0.00' }}</strong>;</span>
|
|
|
|
|
|
+ <span v-if="$hasPermissions(authCode + '_salesPrice')||showPrice">总金额:<strong>{{ countData&&(countData.totalAmount || countData.totalAmount==0) ? toThousands(countData.totalAmount) : '0.00' }}</strong>;</span>
|
|
</div>
|
|
</div>
|
|
<!-- 活动规则详情 -->
|
|
<!-- 活动规则详情 -->
|
|
<detailModal :openModal="openDetailModal" pageType="salesPage" :itemSn="detailSn" @close="closeDetailModal"></detailModal>
|
|
<detailModal :openModal="openDetailModal" pageType="salesPage" :itemSn="detailSn" @close="closeDetailModal"></detailModal>
|
|
@@ -126,6 +126,10 @@ export default {
|
|
salesPromoSnSet: {
|
|
salesPromoSnSet: {
|
|
type: Array,
|
|
type: Array,
|
|
default: () => []
|
|
default: () => []
|
|
|
|
+ },
|
|
|
|
+ pageType: {
|
|
|
|
+ type: String,
|
|
|
|
+ default: ''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
data () {
|
|
data () {
|
|
@@ -161,6 +165,10 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
|
|
+ // 转单和上级审核显示价格
|
|
|
|
+ showPrice () {
|
|
|
|
+ return this.pageType == 'salesNewDetailTransfer' || this.pageType == 'salesNewDetaiSupLevelAudit'
|
|
|
|
+ },
|
|
columns () {
|
|
columns () {
|
|
const _this = this
|
|
const _this = this
|
|
// 价格单元格
|
|
// 价格单元格
|
|
@@ -245,7 +253,7 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
// 计算可合并单元格数
|
|
// 计算可合并单元格数
|
|
- if (this.$hasPermissions(this.authCode + '_costPrice')) { // 成本价权限
|
|
|
|
|
|
+ if (this.$hasPermissions(this.authCode + '_costPrice') || this.showPrice) { // 成本价权限
|
|
arr.push({ title: '成本价', field: 'showCost', width: 80, key: 'f', align: 'right', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return priceFormat(row[column.field]) } })
|
|
arr.push({ title: '成本价', field: 'showCost', width: 80, key: 'f', align: 'right', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return priceFormat(row[column.field]) } })
|
|
}
|
|
}
|
|
arr = arr.concat([
|
|
arr = arr.concat([
|
|
@@ -253,17 +261,17 @@ export default {
|
|
{ title: '销售数量', field: 'qty', width: 80, key: 'h', align: 'center', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return numsFormat(row[column.field]) } }
|
|
{ title: '销售数量', field: 'qty', width: 80, key: 'h', align: 'center', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return numsFormat(row[column.field]) } }
|
|
])
|
|
])
|
|
|
|
|
|
- if (this.$hasPermissions(this.authCode + '_provincePrice')) {
|
|
|
|
|
|
+ if (this.$hasPermissions(this.authCode + '_provincePrice') || this.showPrice) {
|
|
arr.push({ title: '省级价', field: 'provincePrice', width: 80, key: 'i', align: 'right', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return priceFormat(row[column.field]) } })
|
|
arr.push({ title: '省级价', field: 'provincePrice', width: 80, key: 'i', align: 'right', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return priceFormat(row[column.field]) } })
|
|
}
|
|
}
|
|
// 是否勾选市级价格
|
|
// 是否勾选市级价格
|
|
if (this.isCityPrice) {
|
|
if (this.isCityPrice) {
|
|
arr.push({ title: '市级价', field: 'cityPrice', width: 80, key: 'j', align: 'right', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return priceFormat(row[column.field]) } })
|
|
arr.push({ title: '市级价', field: 'cityPrice', width: 80, key: 'j', align: 'right', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return priceFormat(row[column.field]) } })
|
|
- if (this.$hasPermissions(this.authCode + '_salesPrice')) { // 售价权限
|
|
|
|
|
|
+ if (this.$hasPermissions(this.authCode + '_salesPrice') || this.showPrice) { // 售价权限
|
|
arr.push({ title: '销售价', field: 'price', width: 100, key: 'k', align: 'right', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return discountPriceFormat(row, row[column.field], h) } })
|
|
arr.push({ title: '销售价', field: 'price', width: 100, key: 'k', align: 'right', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return discountPriceFormat(row, row[column.field], h) } })
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- if (this.$hasPermissions(this.authCode + '_salesPrice')) { // 售价权限
|
|
|
|
|
|
+ if (this.$hasPermissions(this.authCode + '_salesPrice') || this.showPrice) { // 售价权限
|
|
arr.push({ title: '销售价', field: 'price', width: 100, key: 'l', align: 'right', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return discountPriceFormat(row, row[column.field], h) } })
|
|
arr.push({ title: '销售价', field: 'price', width: 100, key: 'l', align: 'right', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return discountPriceFormat(row, row[column.field], h) } })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -287,10 +295,10 @@ export default {
|
|
this.colspanNums = this.colspanNums + 4
|
|
this.colspanNums = this.colspanNums + 4
|
|
arr.push({ title: '单重(kg)', field: 'weightKg', width: 80, key: 'q1', align: 'center', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return numsFormat(row[column.field]) } })
|
|
arr.push({ title: '单重(kg)', field: 'weightKg', width: 80, key: 'q1', align: 'center', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return numsFormat(row[column.field]) } })
|
|
arr.push({ title: '合计重量(kg)', field: 'totalWeightKg', width: 98, key: 'q2', align: 'center', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return numsFormat(row[column.field]) } })
|
|
arr.push({ title: '合计重量(kg)', field: 'totalWeightKg', width: 98, key: 'q2', align: 'center', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return numsFormat(row[column.field]) } })
|
|
- if (this.$hasPermissions(this.authCode + '_costPrice')) {
|
|
|
|
|
|
+ if (this.$hasPermissions(this.authCode + '_costPrice') || this.showPrice) {
|
|
arr.push({ title: '平均成本公斤单价', field: 'weightAvgCost', width: 105, key: 'q3', align: 'right', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return numsFormat(row[column.field]) } })
|
|
arr.push({ title: '平均成本公斤单价', field: 'weightAvgCost', width: 105, key: 'q3', align: 'right', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return numsFormat(row[column.field]) } })
|
|
}
|
|
}
|
|
- if (this.$hasPermissions(this.authCode + '_salesPrice')) {
|
|
|
|
|
|
+ if (this.$hasPermissions(this.authCode + '_salesPrice') || this.showPrice) {
|
|
arr.push({ title: '平均售价公斤单价', field: 'weightAvgPrice', width: 105, key: 'q4', align: 'right', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return numsFormat(row[column.field]) } })
|
|
arr.push({ title: '平均售价公斤单价', field: 'weightAvgPrice', width: 105, key: 'q4', align: 'right', operationColumn: false, renderBodyCell: ({ row, column, rowIndex }, h) => { return numsFormat(row[column.field]) } })
|
|
}
|
|
}
|
|
}
|
|
}
|