|
@@ -94,7 +94,17 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="table">
|
|
<div class="table">
|
|
- <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe @selection-change="handleSelectionChange">
|
|
|
|
|
|
+ <el-table
|
|
|
|
+ v-loading="listLoading"
|
|
|
|
+ :data="dataList"
|
|
|
|
+ element-loading-text="Loading"
|
|
|
|
+ border
|
|
|
|
+ fit
|
|
|
|
+ highlight-current-row
|
|
|
|
+ stripe
|
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
|
+ show-summary
|
|
|
|
+ :summary-method="$getSummaries">
|
|
<el-table-column align="center" type="selection" width="55"></el-table-column>
|
|
<el-table-column align="center" type="selection" width="55"></el-table-column>
|
|
<el-table-column align="center" label="审核状态" prop="examineStatus" min-width="100" show-overflow-tooltip>
|
|
<el-table-column align="center" label="审核状态" prop="examineStatus" min-width="100" show-overflow-tooltip>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
@@ -123,20 +133,20 @@
|
|
<el-table-column align="center" label="货品名称" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="货品名称" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
|
|
- <el-table-column align="right" label="总数量" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
|
|
+ <el-table-column align="right" label="总数量" prop="qty" min-width="100" sortable show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="是否直调" prop="isDirectTransfer" min-width="100" show-overflow-tooltip>
|
|
<el-table-column align="center" label="是否直调" prop="isDirectTransfer" min-width="100" show-overflow-tooltip>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{scope.row.isDirectTransfer ? '是':'否'}}
|
|
{{scope.row.isDirectTransfer ? '是':'否'}}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="right" label="直调数量" prop="directTransferQty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="right" label="出库数量" prop="hasSendQty" min-width="100" show-overflow-tooltip></el-table-column>
|
|
|
|
- <el-table-column align="right" label="单价" prop="enginPrice" min-width="100" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column align="right" label="直调数量" prop="directTransferQty" min-width="110" sortable show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="right" label="出库数量" prop="hasSendQty" min-width="110" sortable show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="right" label="单价" prop="price" min-width="100" sortable show-overflow-tooltip>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{scope.row.price | numToFixed}}
|
|
{{scope.row.price | numToFixed}}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="right" label="金额" prop="enginTotality" min-width="100" show-overflow-tooltip>
|
|
|
|
|
|
+ <el-table-column align="right" label="金额" prop="payAmount" min-width="100" sortable show-overflow-tooltip>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
{{scope.row.payAmount | numToFixed}}
|
|
{{scope.row.payAmount | numToFixed}}
|
|
</template>
|
|
</template>
|
|
@@ -148,6 +158,11 @@
|
|
<div v-else>{{scope.row.rebateAmount | numToFixed}}</div>
|
|
<div v-else>{{scope.row.rebateAmount | numToFixed}}</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column align="right" label="格力折扣" prop="discAmount" min-width="110" sortable show-overflow-tooltip>
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ {{ scope.row.discAmount | numToFixed }}
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column align="center" label="业务员" prop="serviceName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="业务员" prop="serviceName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="制表人" prop="createName" min-width="100" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="制表人" prop="createName" min-width="100" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="制表日期" prop="createTime" min-width="160" show-overflow-tooltip></el-table-column>
|
|
<el-table-column align="center" label="制表日期" prop="createTime" min-width="160" show-overflow-tooltip></el-table-column>
|
|
@@ -217,7 +232,7 @@
|
|
@size-change="handleSizeChange"
|
|
@size-change="handleSizeChange"
|
|
@current-change="handleCurrentChange"
|
|
@current-change="handleCurrentChange"
|
|
:current-page="currentPage"
|
|
:current-page="currentPage"
|
|
- :page-sizes="[10, 20, 30, 50]"
|
|
|
|
|
|
+ :page-sizes="[10, 20, 30, 50, 500]"
|
|
:page-size="10"
|
|
:page-size="10"
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
:total="listTotal">
|
|
:total="listTotal">
|
|
@@ -372,6 +387,10 @@ export default {
|
|
enginOrderType: 'HOME', // TRADE=商用 HOME=家用
|
|
enginOrderType: 'HOME', // TRADE=商用 HOME=家用
|
|
};
|
|
};
|
|
getOrderList(params).then((res) => {
|
|
getOrderList(params).then((res) => {
|
|
|
|
+ res.data.records.forEach(item => {
|
|
|
|
+ item.sums1 = ['qty', 'directTransferQty', 'hasSendQty'];
|
|
|
|
+ item.sums2 = ['price', 'payAmount', 'discAmount'];
|
|
|
|
+ })
|
|
this.dataList = res.data.records;
|
|
this.dataList = res.data.records;
|
|
this.listTotal = res.data.total;
|
|
this.listTotal = res.data.total;
|
|
this.listLoading = false;
|
|
this.listLoading = false;
|