|
@@ -241,6 +241,8 @@
|
|
fit
|
|
fit
|
|
highlight-current-row
|
|
highlight-current-row
|
|
stripe
|
|
stripe
|
|
|
|
+ show-summary
|
|
|
|
+ :summary-method="$getSummaries"
|
|
max-height="400"
|
|
max-height="400"
|
|
@selection-change="handleSelectionChange"
|
|
@selection-change="handleSelectionChange"
|
|
>
|
|
>
|
|
@@ -288,7 +290,7 @@
|
|
<div>{{ status2Filter(scope.row) }}</div>
|
|
<div>{{ status2Filter(scope.row) }}</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="center" label="订单金额" min-width="100" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column align="center" label="订单金额" prop="dd" min-width="100" show-overflow-tooltip>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{ scope.row.price * scope.row.qty }}
|
|
{{ scope.row.price * scope.row.qty }}
|
|
</template>
|
|
</template>
|
|
@@ -311,12 +313,12 @@
|
|
</el-select>
|
|
</el-select>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="center" label="返利金额" min-width="100" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column align="center" label="返利金额" prop="fl" min-width="100" show-overflow-tooltip>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{ (scope.row.price * scope.row.qty * (scope.row.rebateRate * 100)) / 100 }}
|
|
{{ (scope.row.price * scope.row.qty * (scope.row.rebateRate * 100)) / 100 }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="center" label="格力折扣" min-width="100" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column align="center" label="格力折扣" prop="zk" min-width="100" show-overflow-tooltip>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{ scope.row.qty * scope.row.discAmount }}
|
|
{{ scope.row.qty * scope.row.discAmount }}
|
|
</template>
|
|
</template>
|
|
@@ -339,7 +341,7 @@
|
|
</el-select>
|
|
</el-select>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="center" label="实付金额" prop="qty" min-width="100" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column align="center" label="实付金额" prop="sf" min-width="100" show-overflow-tooltip>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{
|
|
{{
|
|
(scope.row.price * scope.row.qty * 100 -
|
|
(scope.row.price * scope.row.qty * 100 -
|
|
@@ -610,6 +612,29 @@ export default {
|
|
watch: {
|
|
watch: {
|
|
goodsList: {
|
|
goodsList: {
|
|
handler(newValue, oldValue) {
|
|
handler(newValue, oldValue) {
|
|
|
|
+ newValue.forEach(item => {
|
|
|
|
+ item.dd = (item.price || 0) * (item.qty || 0)
|
|
|
|
+ item.zk = item.qty * item.discAmount
|
|
|
|
+ item.sf = (item.price * item.qty * 100 -
|
|
|
|
+ ((item.price * item.qty * (item.rebateRate * 100)) / 100) * 100 -
|
|
|
|
+ ((item.qty * (item.discAmount * 100)) / 100) * 100) /
|
|
|
|
+ 100
|
|
|
|
+
|
|
|
|
+ item.fl = (item.price * item.qty * (item.rebateRate * 100)) / 100
|
|
|
|
+ item.sums1 = [
|
|
|
|
+ 'number',
|
|
|
|
+ 'directTransferQty',
|
|
|
|
+ 'qty',
|
|
|
|
+ 'hasOrderQty',
|
|
|
|
+ 'enginNum',
|
|
|
|
+ 'oldQty',
|
|
|
|
+ 'hasSendQty',
|
|
|
|
+ 'retiredQty',
|
|
|
|
+ 'zk'
|
|
|
|
+ ]
|
|
|
|
+ item.sums2 = ['totalAmount', 'dd','fl','sf','payAmount', 'price', 'payRebateAmount', 'discAmount']
|
|
|
|
+ })
|
|
|
|
+
|
|
if (this.goodsList && this.goodsList.length) {
|
|
if (this.goodsList && this.goodsList.length) {
|
|
this.flag = true
|
|
this.flag = true
|
|
if (this.isFirst) {
|
|
if (this.isFirst) {
|
|
@@ -831,7 +856,7 @@ export default {
|
|
|
|
|
|
// 重置筛选表单
|
|
// 重置筛选表单
|
|
resetScreenForm() {
|
|
resetScreenForm() {
|
|
- this.$nextTick(()=>{
|
|
|
|
|
|
+ this.$nextTick(() => {
|
|
this.$refs.screenForm.resetFields()
|
|
this.$refs.screenForm.resetFields()
|
|
})
|
|
})
|
|
this.dialogTable_currentPage = 1
|
|
this.dialogTable_currentPage = 1
|
|
@@ -896,8 +921,9 @@ export default {
|
|
discAmount: '',
|
|
discAmount: '',
|
|
customerWalletId: '',
|
|
customerWalletId: '',
|
|
isDirectTransfer: false,
|
|
isDirectTransfer: false,
|
|
- directTransferQty: '',
|
|
|
|
- hasSendQty: '',
|
|
|
|
|
|
+ directTransferQty: 0,
|
|
|
|
+ retiredQty:0,
|
|
|
|
+ hasSendQty: 0,
|
|
hasOrderQty: item.hasOrderQty,
|
|
hasOrderQty: item.hasOrderQty,
|
|
remark: item.remark,
|
|
remark: item.remark,
|
|
tax: item.taxRate,
|
|
tax: item.taxRate,
|