Commit da202dea authored by zhengyi's avatar zhengyi

客户详情页面的订单列表补充订单统计数值

parent 39166873
...@@ -291,6 +291,14 @@ export function infoListOrderPage(params){ ...@@ -291,6 +291,14 @@ export function infoListOrderPage(params){
params params
}) })
} }
//客户详情订单统计
export function infoListStatisticsOrder(params){
return request({
url:'/ecw/order/customer-statistics-order',
method:'get',
params
})
}
//客户详情 --- 报价 //客户详情 --- 报价
export function infoListOfferPage(params){ export function infoListOfferPage(params){
return request({ return request({
...@@ -557,4 +565,4 @@ export function customerMergeCus(params){ ...@@ -557,4 +565,4 @@ export function customerMergeCus(params){
method:'get', method:'get',
params params
}) })
} }
\ No newline at end of file
...@@ -134,6 +134,12 @@ ...@@ -134,6 +134,12 @@
<el-button type="primary" @click="handleOrderReset">{{ $t("重置") }}</el-button> <el-button type="primary" @click="handleOrderReset">{{ $t("重置") }}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="15" v-if="statisticsOrder">
<!-- 订单列表显示搜索条件对应箱数、仓库实测、收款方数、重量 -->
{{ $t("合计:{totalNum}箱,{totalVolume}m³(测) {totalChargeVolume}m³(重) {totalWeight}KG(测), {totalChargeWeight}kg(收费)", statisticsOrder) }}
</el-col>
</el-row>
</div> </div>
<el-descriptions :column="2"> <el-descriptions :column="2">
<el-descriptions-item :label="$t('海空联运/海运拼柜/海运整柜/专线空运')"> {{ orderStatisticsObj.hklyTotal || 0 }}/{{ orderStatisticsObj.hypgTotal || 0 }}/{{ orderStatisticsObj.hyzgTotal || 0 }}/{{ orderStatisticsObj.zxkyTotal || 0 }} </el-descriptions-item> <el-descriptions-item :label="$t('海空联运/海运拼柜/海运整柜/专线空运')"> {{ orderStatisticsObj.hklyTotal || 0 }}/{{ orderStatisticsObj.hypgTotal || 0 }}/{{ orderStatisticsObj.hyzgTotal || 0 }}/{{ orderStatisticsObj.zxkyTotal || 0 }} </el-descriptions-item>
...@@ -657,7 +663,21 @@ ...@@ -657,7 +663,21 @@
</template> </template>
<script> <script>
import { getCustomer, getCustomerSelect, getBrankByCustomer, levelLogPage, customerCreditLogPage, infoListOrderPage, orderStatistics, creditLogCreate, creditScoreStatistic, infoListReceiptPage, memberUserList, deleteCustomer } from "@/api/ecw/customer" import {
getCustomer,
getCustomerSelect,
getBrankByCustomer,
levelLogPage,
customerCreditLogPage,
infoListOrderPage,
orderStatistics,
creditLogCreate,
creditScoreStatistic,
infoListReceiptPage,
memberUserList,
deleteCustomer,
infoListStatisticsOrder
} from "@/api/ecw/customer"
import { getOfferPage as infoListOfferPage } from "@/api/ecw/offer" import { getOfferPage as infoListOfferPage } from "@/api/ecw/offer"
import { DICT_TYPE, getDictDataLabel, getDictDatas2 } from "@/utils/dict" import { DICT_TYPE, getDictDataLabel, getDictDatas2 } from "@/utils/dict"
import { getProductTypeList } from "@/api/ecw/productType" import { getProductTypeList } from "@/api/ecw/productType"
...@@ -932,6 +952,7 @@ export default { ...@@ -932,6 +952,7 @@ export default {
importances: [] importances: []
}, },
orderList: [], orderList: [],
statisticsOrder: {},
orderTotal: 0, orderTotal: 0,
infoListOfferFrom: { infoListOfferFrom: {
pageNo: 1, pageNo: 1,
...@@ -1105,6 +1126,11 @@ export default { ...@@ -1105,6 +1126,11 @@ export default {
if (this.destWarehouseId != null && this.destWarehouseId != "") { if (this.destWarehouseId != null && this.destWarehouseId != "") {
queryParams.destWarehouseIds = this.destWarehouseId queryParams.destWarehouseIds = this.destWarehouseId
} }
infoListStatisticsOrder({ customerDetailId: this.id, ...this.queryParams, ...queryParams }).then((r) => {
if (r.code === 0) {
this.statisticsOrder = r.data
}
})
infoListOrderPage({ customerDetailId: this.id, ...this.queryParams, ...queryParams }).then((r) => { infoListOrderPage({ customerDetailId: this.id, ...this.queryParams, ...queryParams }).then((r) => {
if (r.code === 0) { if (r.code === 0) {
this.orderList = r.data.list this.orderList = r.data.list
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment