Commit 134488eb authored by 我在何方's avatar 我在何方

Merge branch 'release2.2' of...

Merge branch 'release2.2' of http://gitlab.jdshangmen.com/jiedao-app/jiedao-app-operator into release2.2
parents a1dd0449 c66da327
...@@ -59,7 +59,7 @@ export default { ...@@ -59,7 +59,7 @@ export default {
padding-right: 30px; padding-right: 30px;
padding-left: 5px; padding-left: 5px;
} }
$sizes: 0, 10,20,30,50,75,100,150,200,300,500,800,1000; $sizes: 0, 5, 10,20,30,50,75,100,150,200,300,500,800,1000;
@for $i from 1 through length($sizes){ @for $i from 1 through length($sizes){
$item: nth($sizes, $i); $item: nth($sizes, $i);
.ml-#{$item}{ .ml-#{$item}{
......
...@@ -350,3 +350,12 @@ export function dealCustomsSplitNotify(notifyId){ ...@@ -350,3 +350,12 @@ export function dealCustomsSplitNotify(notifyId){
method: "get", method: "get",
}) })
} }
// 自编号报表分页
export function boxSettlementPage(params) {
return request({
url: "/shipment/box/pageSettlement",
method: "get",
params,
});
}
...@@ -218,6 +218,7 @@ export const DICT_TYPE = { ...@@ -218,6 +218,7 @@ export const DICT_TYPE = {
BOX_CUSTOMS_ERROR_TYPE: "customs_error_type",// 报关异常状态 BOX_CUSTOMS_ERROR_TYPE: "customs_error_type",// 报关异常状态
BOX_SHIPPING_ERROR_TYPE: "shipping_error_type",// 起运异常状态 BOX_SHIPPING_ERROR_TYPE: "shipping_error_type",// 起运异常状态
BOX_ARRIVAL_ERROR_TYPE: "arrival_error_type",// 到港异常状态 BOX_ARRIVAL_ERROR_TYPE: "arrival_error_type",// 到港异常状态
SETTLEMENT_STATUS: 'settlement_status', // 结算状态
APP_TYPE:"app_type", //系统类型 APP_TYPE:"app_type", //系统类型
AIR_SHIPMENT_PROCESS:'air_shipment_process' AIR_SHIPMENT_PROCESS:'air_shipment_process'
......
...@@ -13,9 +13,9 @@ ...@@ -13,9 +13,9 @@
<el-input v-model="queryParams.selfNo" clearable></el-input> <el-input v-model="queryParams.selfNo" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="$t('始发仓')"> <el-form-item :label="$t('始发仓')">
<el-select v-model="queryParams.warehouseId" placeholder="请选择" clearable> <el-select v-model="queryParams.startWarehouseIdList" placeholder="请选择" clearable>
<el-option <el-option
v-for="item in warehouseList" v-for="item in exportWarehouseList"
:key="item.id" :key="item.id"
:label="$l(item, 'title')" :label="$l(item, 'title')"
:value="item.id" :value="item.id"
...@@ -23,19 +23,19 @@ ...@@ -23,19 +23,19 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('目的国')"> <el-form-item :label="$t('目的国')">
<el-select v-model="queryParams.countryId" placeholder="请选择" clearable> <el-select v-model="queryParams.destCountryId" placeholder="请选择" clearable filterable >
<el-option <el-option
v-for="item in countryList" v-for="item in countryList"
:key="item.id" :key="item.id"
:label="item.name" :label="$l(item, 'name')"
:value="item.id" :value="item.id"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('目的仓')"> <el-form-item :label="$t('目的仓')">
<el-select v-model="queryParams.destinationWarehouseId" placeholder="请选择" clearable> <el-select v-model="queryParams.destWarehouseId" placeholder="请选择" clearable>
<el-option <el-option
v-for="item in warehouseList" v-for="item in importWarehouseList"
:key="item.id" :key="item.id"
:label="$l(item, 'title')" :label="$l(item, 'title')"
:value="item.id" :value="item.id"
...@@ -43,75 +43,62 @@ ...@@ -43,75 +43,62 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('自编号状态')"> <el-form-item :label="$t('自编号状态')">
<el-select v-model="queryParams.status" placeholder="请选择" clearable> <dict-selector :type="DICT_TYPE.BOX_ORDER_SHIPMENT_STATE" v-model="queryParams.status" clearable></dict-selector>
<el-option
v-for="item in DICT_TYPE.SELF_NO_STATUS"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item> </el-form-item>
<el-form-item :label="$t('结算时间')" > <el-form-item :label="$t('结算时间')" >
<el-date-picker <el-date-picker v-model="dateFilter" type="datetimerange" range-separator="-"
clearable :start-placeholder="$t('开始日期')"
v-model="queryParams.settlementTime" :end-placeholder="$t('结束日期')"
type="daterange" value-format="yyyy-MM-dd HH:mm:ss"
range-separator="至" @change="handleQuery"
start-placeholder="开始日期" >
end-placeholder="结束日期" </el-date-picker>
align="right"
value-format="yyyy-MM-dd"
:picker-options="pickerOptions"
/>
</el-form-item> </el-form-item>
<el-form-item :label="$t('是否结算')"> <el-form-item :label="$t('是否结算')">
<el-select v-model="queryParams.isSettlement" placeholder="请选择" clearable> <dict-selector :type="DICT_TYPE.SETTLEMENT_STATUS" v-model="queryParams.slStatus" clearable></dict-selector>
<el-option
v-for="item in DICT_TYPE.YES_NO"
:key="item.value"
:label="item.label"
:value="item.value"
/>
</el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button <el-button
type="primary" type="primary"
icon="el-icon-search" icon="el-icon-search"
@click="handleQuery" @click="handleQuery"
:loading="loading"
>{{$t('查询')}}</el-button> >{{$t('查询')}}</el-button>
<el-button type="primary" icon="el-icon-plus" @click="handleExport">{{$t('导出搜索')}}</el-button> <el-button type="primary" icon="el-icon-plus" @click="handleExport">{{$t('导出搜索')}}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</el-card> </el-card>
<el-table v-loading="loadings" :data="list" border class="card"> <el-table v-loading="loading" :data="list" border class="card">
<el-table-column :label="$t('是否结算')" align="center" prop="" /> <el-table-column :label="$t('是否结算')" align="center">
<el-table-column :label="$t('No.柜号')" align="center" prop=""> <template slot-scope="scope">
<dict-tag :type="DICT_TYPE.SETTLEMENT_STATUS" :value="scope.row.slStatus"></dict-tag>
</template>
</el-table-column>
<el-table-column :label="$t('No.柜号')" align="center" prop="selfNo">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button v-if="permissions.indexOf('selfno:report:detail') > -1" type="text" @click="$router.push('./selfno_report_detail?id=' + scope.row.id)">{{scope.row.no}}</el-button> <el-button v-if="permissions.indexOf('selfno:report:detail') > -1" type="text" @click="$router.push('./self_no_report_detail?containerNumber=' + scope.row.selfNo)">{{scope.row.selfNo}}</el-button>
<span v-else>{{scope.row.no}}</span> <span v-else>{{scope.row.selfNo}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('应收款(Accounts receivable)')" align="center" prop=""></el-table-column> <el-table-column :label="$t('应收款(Accounts receivable)')" align="center" prop="summaryInfo.receivableTotalFeeGroup"></el-table-column>
<el-table-column :label="$t('received in + 目的国国家(目的地实收)')" align="center" prop=""> <el-table-column :label="$t('received in + 目的国国家(目的地实收)')" align="center" prop="">
<el-table-column :label="$t('运费')"></el-table-column> <el-table-column :label="$t('运费')" prop="summaryInfo.netReceiptsCollectFreightFeeGroup"></el-table-column>
<el-table-column :label="$t('清关费')"></el-table-column> <el-table-column :label="$t('清关费')" prop="summaryInfo.netReceiptsCollectClearanceFeeGroup"></el-table-column>
<el-table-column :label="$t('额外费用')"></el-table-column> <el-table-column :label="$t('额外费用')" prop="summaryInfo.netReceiptsCollectOtherFeeGroup"></el-table-column>
</el-table-column> </el-table-column>
<el-table-column :label="$t('received in China(中国实收)')" align="center" prop="" > <el-table-column :label="$t('received in China(中国实收)')" align="center" prop="" >
<el-table-column :label="$t('运费')"></el-table-column> <el-table-column :label="$t('运费')" prop="summaryInfo.netReceiptsAdvanceFreightFeeGroup"></el-table-column>
<el-table-column :label="$t('清关费')"></el-table-column> <el-table-column :label="$t('清关费')" prop="summaryInfo.netReceiptsAdvanceClearanceFeeGroup"></el-table-column>
<el-table-column :label="$t('额外费用')"></el-table-column> <el-table-column :label="$t('额外费用')" prop="summaryInfo.netReceiptsAdvanceOtherFeeGroup"></el-table-column>
</el-table-column> </el-table-column>
<el-table-column :label="$t('Discounts 折扣')" align="center" prop=""> <el-table-column :label="$t('Discounts 折扣')" align="center" prop="">
<el-table-column :label="$t('运费')"></el-table-column> <el-table-column :label="$t('运费')" prop="summaryInfo.discountFreightFeeGroup"></el-table-column>
<el-table-column :label="$t('清关费')"></el-table-column> <el-table-column :label="$t('清关费')" prop="summaryInfo.discountClearanceFeeGroup"></el-table-column>
<el-table-column :label="$t('额外费用')"></el-table-column> <el-table-column :label="$t('额外费用')" prop="summaryInfo.discountOtherFeeGroup"></el-table-column>
</el-table-column> </el-table-column>
<el-table-column :label="$t('操作')" v-if="permissions.indexOf('selfno:report:detail') > -1"> <el-table-column :label="$t('操作')" v-if="permissions.indexOf('selfno:report:detail') > -1">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" @click="$router.push('./selfno_report_detail?id=' + scope.row.id)">{{$t('查看')}}</el-button> <el-button type="text" @click="$router.push('./self_no_report_detail?id=' + scope.row.id)">{{$t('查看')}}</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -131,18 +118,23 @@ import { getCurrencyPage } from "@/api/ecw/currency"; ...@@ -131,18 +118,23 @@ import { getCurrencyPage } from "@/api/ecw/currency";
import {getWarehouseList} from '@/api/ecw/warehouse' import {getWarehouseList} from '@/api/ecw/warehouse'
import Template from "@/views/cms/template/index.vue"; import Template from "@/views/cms/template/index.vue";
import store from "@/store"; import store from "@/store";
import {boxSettlementPage} from "@/api/ecw/box";
import {DICT_TYPE} from "@/utils/dict";
import {getCountryListAll} from "@/api/ecw/country";
export default { export default {
components: {Template}, components: {Template},
data() { data() {
return { return {
loading: false, // 是否加载中
dateFilter:[], // 筛选时间
list: [], list: [],
total: 0, total: 0,
queryParams: { queryParams: {
page: 1, page: 1,
rows: 20, rows: 20,
}, },
tradeCityList: [], // tradeCityList: [],
currencyList:[], currencyList:[],
warehouseList:[], warehouseList:[],
countryList: [], countryList: [],
...@@ -153,26 +145,32 @@ export default { ...@@ -153,26 +145,32 @@ export default {
}, },
created() { created() {
getCurrencyPage(this.params).then(res => this.currencyList = res.data.list) getCurrencyPage(this.params).then(res => this.currencyList = res.data.list)
getTradeCityList().then((res) => (this.tradeCityList = res.data)); // getTradeCityList().then((res) => (this.tradeCityList = res.data));
this.getList(); this.getList();
getWarehouseList().then(res => this.warehouseList = res.data) getWarehouseList().then(res => this.warehouseList = res.data)
getCountryListAll().then(r => {
this.countryList = r.data
})
}, },
computed: { computed: {
DICT_TYPE() {
return DICT_TYPE
},
permissions(){ permissions(){
return store.getters.permissions return store.getters.permissions
}, },
exportCityList() { /*exportCityList() {
return this.tradeCityList.filter((item) => item.type === 2); return this.tradeCityList.filter((item) => item.type === 2);
}, },
importCityList() { importCityList() {
return this.tradeCityList.filter((item) => item.type === 1); return this.tradeCityList.filter((item) => item.type === 1);
}, },*/
exportWarehouseList(){ exportWarehouseList(){
/* tradeType 1 进口,2出口,3进出口 */ /* tradeType 1 进口,2出口,3进出口 */
return this.warehouseList.filter(item => item.tradeType === 2 || item.tradeType === 3) return this.warehouseList.filter(item => +item.tradeType === 2 || +item.tradeType === 3)
}, },
importWarehouseList(){ importWarehouseList(){
return this.warehouseList.filter(item => item.tradeType === 1 || item.tradeType === 3) return this.warehouseList.filter(item => +item.tradeType === 1 || +item.tradeType === 3)
}, },
}, },
methods: { methods: {
...@@ -185,24 +183,28 @@ export default { ...@@ -185,24 +183,28 @@ export default {
getList() { getList() {
this.loading = true; this.loading = true;
let params = {...this.queryParams} let params = {...this.queryParams}
this.addBeginAndEndTime(params, this.dateType, "createTime"); this.addBeginAndEndTime(params, this.dateFilter, "JsDate", false);
// 执行查询 // 执行查询
/* TODO getListApi(params).then((response) => { boxSettlementPage(params).then((response) => {
this.list = response.data.list; this.list = response.data.list;
this.total = response.data.total; this.total = response.data.total;
}).finally(() => {
this.loading = false; this.loading = false;
});*/ })
}, },
/** 搜索按钮操作 */ /** 搜索按钮操作 */
handleQuery() { handleQuery() {
this.$refs['queryForm'].resetFields()
this.queryParams.page = 1; this.queryParams.page = 1;
// TODO 重置结算时间
this.getList(); this.getList();
}, },
handleReset(){
this.$refs['queryForm'].resetFields()
this.dateFilter = []
this.handleQuery()
},
// 导出搜索 // 导出搜索
handleExport(){ handleExport(){
// TODO 导出搜索 this.$message.info("// TODO 导出搜索")
} }
}, },
}; };
......
<template> <template>
<el-dialog visible width="1500px" title="NG23022222L费用汇总" :before-close="close"> <el-dialog visible width="1500px" :title="title" :before-close="close">
<el-card v-if="orderSummary"> <el-card v-if="orderSummary">
<span slot="header" class="header-title">{{$t('订单收费汇总')}}</span> <span slot="header" class="header-title">{{$t('订单收费汇总')}}</span>
<el-descriptions :column="4"> <el-descriptions :column="4">
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
{{orderSummary.writeOffAmount}}{{currencyMap[orderSummary.writeOffCurrencyId]}} {{orderSummary.writeOffAmount}}{{currencyMap[orderSummary.writeOffCurrencyId]}}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('已核销比例')"> <el-descriptions-item :label="$t('已核销比例')">
{{orderSummary.writeOffRatio}}% {{orderSummary.writeOffRatio}}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
</el-card> </el-card>
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('是否重货')"> <el-descriptions-item :label="$t('是否重货')">
<!--1 普货 2 重货 3 泡货--> <!--1 普货 2 重货 3 泡货-->
<dict-tag :type="DICT_TYPE.ECW_YESNO" :value="orderSummary.itemType != 1 ? '1' : '0'"></dict-tag> <dict-tag :type="DICT_TYPE.ECW_YESNO" :value="orderSummary.orderType != 1 ? '1' : '0'"></dict-tag>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item :label="$t('原重货标准')" v-if="[1,2].indexOf(orderSummary.transportId) > -1"> <el-descriptions-item :label="$t('原重货标准')" v-if="[1,2].indexOf(orderSummary.transportId) > -1">
{{orderSummary.orgWeightUnit}}KG/m³ {{orderSummary.orgWeightUnit}}KG/m³
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
<el-card class="mt-10" v-if="orderDetailSummary"> <el-card class="mt-10" v-if="orderDetailSummary">
<span slot="header">{{$t('运费')}} & {{$t('清关费')}}</span> <span slot="header">{{$t('运费')}} & {{$t('清关费')}}</span>
<!--序号,中文品名,英文品名,品牌,入仓数据,是否重货,入仓数据,实收数据,应收单价,优惠单价金额,成交单价,应收运费&清关费,收款单优惠金额,总优惠金额,实收运费&清关费--> <!--序号,中文品名,英文品名,品牌,入仓数据,是否重货,入仓数据,实收数据,应收单价,优惠单价金额,成交单价,应收运费&清关费,收款单优惠金额,总优惠金额,实收运费&清关费-->
<el-table :data="orderDetailSummary.orderItemCostDtoList"> <el-table :data="orderItemCostDtoList" show-summary :summary-method="getOrderItemSummary">
<el-table-column :label="$t('序号')" width="80"> <el-table-column :label="$t('序号')" width="80">
<template slot-scope="scope">{{scope.$index+1}}</template> <template slot-scope="scope">{{scope.$index+1}}</template>
</el-table-column> </el-table-column>
...@@ -103,15 +103,15 @@ ...@@ -103,15 +103,15 @@
<el-table-column :label="$t('品牌')" prop="brandName"> <el-table-column :label="$t('品牌')" prop="brandName">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span v-if="row.brandName">{{row.brandName}}</span> <span v-if="row.brandName">{{row.brandName}}</span>
<dict-tag :type="DICT_TYPE.ECW_IS_BRAND" :value="row.brandType"></dict-tag> <dict-tag v-else :type="DICT_TYPE.ECW_IS_BRAND" :value="row.brandType"></dict-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('入仓实测')"> <el-table-column :label="$t('入仓实测')">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span>{{row.warehouseInNum}}{{$t('')}}</span> <div>{{row.warehouseInNum}}{{$t('')}}</div>
<span class="ml-5">{{row.warehouseInVolume}}</span> <div>{{row.warehouseInVolume}}</div>
<span class="ml-5">{{row.warehouseInWeight}}kg</span> <div>{{row.warehouseInWeight}}kg</div>
<span class="ml-5" v-if="row.warehouseInQuantity">{{row.warehouseInQuantity}}{{$t('')}}</span> <div v-if="row.warehouseInQuantity">{{row.warehouseInQuantity}}{{$t('')}}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('是否重货/泡货')"> <el-table-column :label="$t('是否重货/泡货')">
...@@ -122,21 +122,21 @@ ...@@ -122,21 +122,21 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('应收数据')"> <el-table-column :label="$t('应收数据')">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span>{{row.orgChargeNum}}{{$t('')}}</span> <div>{{row.orgChargeNum}}{{$t('')}}</div>
<span class="ml-5">{{row.orgChargeVolume}}</span> <div>{{row.orgChargeVolume}}</div>
<span class="ml-5">{{row.orgChargeWeight}}kg</span> <div>{{row.orgChargeWeight}}kg</div>
<span class="ml-5" v-if="row.orgChargeQuantity">{{row.orgChargeQuantity}}{{$t('')}}</span> <div v-if="row.orgChargeQuantity">{{row.orgChargeQuantity}}{{$t('')}}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('实收数据')"> <el-table-column :label="$t('实收数据')">
<template slot-scope="{row}"> <template slot-scope="{row}">
<span>{{row.realityChargeNum}}{{$t('')}}</span> <div>{{row.realityChargeNum}}{{$t('')}}</div>
<span class="ml-5">{{row.realityChargeVolume}}</span> <div>{{row.realityChargeVolume}}</div>
<span class="ml-5">{{row.realityChargeWeight}}kg</span> <div>{{row.realityChargeWeight}}kg</div>
<span class="ml-5" v-if="row.realityChargeQuantity">{{row.realityChargeQuantity}}{{$t('')}}</span> <div v-if="row.realityChargeQuantity">{{row.realityChargeQuantity}}{{$t('')}}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('应收单价')"> <el-table-column :label="$t('应收单价')" width="180px">
<template slot-scope="{row}"> <template slot-scope="{row}">
<!--全包价--> <!--全包价-->
<!--<template v-if="row.charging"> <!--<template v-if="row.charging">
...@@ -156,7 +156,7 @@ ...@@ -156,7 +156,7 @@
></price> ></price>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('优惠单价金额')"> <el-table-column :label="$t('优惠单价金额')" width="180px">
<template slot-scope="{row}"> <template slot-scope="{row}">
<price <price
:charging="row.charging == 1" :charging="row.charging == 1"
...@@ -168,7 +168,7 @@ ...@@ -168,7 +168,7 @@
></price> ></price>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('成交单价')"> <el-table-column :label="$t('成交单价')" width="180px">
<template slot-scope="{row}"> <template slot-scope="{row}">
<price <price
:charging="row.charging == 1" :charging="row.charging == 1"
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,7 @@
></price> ></price>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('应收运费') + '&' + $t('清关费')"> <el-table-column :label="$t('应收运费') + '&' + $t('清关费')" width="180px">
<template slot-scope="{row}"> <template slot-scope="{row}">
<price <price
:charging="row.charging == 1" :charging="row.charging == 1"
...@@ -192,7 +192,19 @@ ...@@ -192,7 +192,19 @@
></price> ></price>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('收款单优惠金额')" width="120" prop="discountFee"> <el-table-column :label="$t('优惠运费') + '&' + $t('清关费')" width="180px">
<template slot-scope="{row}">
<price
:charging="row.charging == 1"
:freight="row.discountFreightTotalPrice"
:freight-currency="row.seaFreightCurrency"
:clearance="row.discountClearanceFeeTotalPrice"
:clearance-currency="row.clearanceFreightCurrency"
:currency-map="currencyMap"
></price>
</template>
</el-table-column>
<el-table-column :label="$t('收款单优惠金额')" width="180px" prop="discountFee">
<template slot-scope="{row}"> <template slot-scope="{row}">
<price <price
:charging="row.charging == 1" :charging="row.charging == 1"
...@@ -204,7 +216,7 @@ ...@@ -204,7 +216,7 @@
></price> ></price>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('总优惠金额')"> <el-table-column :label="$t('总优惠金额')" width="180px">
<template slot-scope="{row}"> <template slot-scope="{row}">
<price <price
:charging="row.charging == 1" :charging="row.charging == 1"
...@@ -216,7 +228,7 @@ ...@@ -216,7 +228,7 @@
></price> ></price>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('实收运费') + '&' + $t('清关费')"> <el-table-column :label="$t('实收运费') + '&' + $t('清关费')" width="180px">
<template slot-scope="{row}"> <template slot-scope="{row}">
<price <price
:charging="row.charging == 1" :charging="row.charging == 1"
...@@ -336,7 +348,7 @@ ...@@ -336,7 +348,7 @@
</el-card> </el-card>
<el-card class="mt-10"> <el-card class="mt-10">
<span slot="header">{{$t('优惠活动')}}</span> <span slot="header">{{$t('优惠活动')}}</span>
<el-table :data="[]"> <el-table :data="couponInfoVOList">
<el-table-column :label="$t('优惠ID')" width="100" prop="couponId"></el-table-column> <el-table-column :label="$t('优惠ID')" width="100" prop="couponId"></el-table-column>
<el-table-column :label="$t('优惠名称')" width="120"> <el-table-column :label="$t('优惠名称')" width="120">
<template slot-scope="{row}">{{$l(row, 'title')}}</template> <template slot-scope="{row}">{{$l(row, 'title')}}</template>
...@@ -429,6 +441,9 @@ export default { ...@@ -429,6 +441,9 @@ export default {
} }
}, },
computed:{ computed:{
title(){
return this.orderSummary?.orderNo + this.$t('费用汇总')
},
// 保费 // 保费
insuranceFeeDto(){ insuranceFeeDto(){
return this.orderDetailSummary?.insuranceFeeDto return this.orderDetailSummary?.insuranceFeeDto
...@@ -440,6 +455,14 @@ export default { ...@@ -440,6 +455,14 @@ export default {
// 费用申请 // 费用申请
feeApplicationList(){ feeApplicationList(){
return this.orderDetailSummary?.feeApplicationList || [] return this.orderDetailSummary?.feeApplicationList || []
},
// 运费清关费
orderItemCostDtoList(){
return this.orderDetailSummary?.orderItemCostDtoList || []
},
// 优惠活动
couponInfoVOList(){
return this.orderDetailSummary?.couponInfoVOList || []
} }
}, },
mounted() { mounted() {
...@@ -487,6 +510,28 @@ export default { ...@@ -487,6 +510,28 @@ export default {
arr[6] = this.calcTotalByCurrency(this.feeApplicationList, 'realityTotalAmount', 'currencyId') arr[6] = this.calcTotalByCurrency(this.feeApplicationList, 'realityTotalAmount', 'currencyId')
return arr return arr
}, },
// 运费&清关费汇总
getOrderItemSummary(){
let arr = []
arr[10] = this.$t('合计')
// 运费和清关费要合计起来
let feeList = this.orderItemCostDtoList.map(item => {
return {
amount: item.receivableSeaFreight,
currency: item.seaFreightCurrency
}
})
feeList = feeList.concat(this.orderItemCostDtoList.map(item => {
return {
amount: item.receivableClearanceFreight,
currency: item.clearanceFreightCurrency
}
}))
// 应收金额
arr[11] = this.calcTotalByCurrency(feeList, 'amount', 'currency')
console.log('运费清关费汇总',feeList, arr)
return arr
},
close(){ close(){
this.$emit('close') this.$emit('close')
}, },
......
...@@ -253,7 +253,7 @@ ...@@ -253,7 +253,7 @@
<el-button v-hasPermi="['ecw:order:show_customs']" type="text" @click="showDeclaration=true">{{$t('查看报关资料')}}</el-button> <el-button v-hasPermi="['ecw:order:show_customs']" type="text" @click="showDeclaration=true">{{$t('查看报关资料')}}</el-button>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('费用明细')" name="four"> <el-tab-pane :label="$t('费用明细')" name="four">
<el-button type="primary" @click="showFeeSummary=true">{{$t('费用汇总')}}</el-button> <el-button v-has-permi="['order:detail:fee-detail']" type="primary" @click="showFeeSummary=true">{{$t('费用汇总')}}</el-button>
<el-table :data="feeList"> <el-table :data="feeList">
<el-table-column :label="$t('订单号')" prop="orderNo"> <el-table-column :label="$t('订单号')" prop="orderNo">
<template slot-scope="{row}"> <template slot-scope="{row}">
...@@ -271,7 +271,6 @@ ...@@ -271,7 +271,6 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('目的地')"> <el-table-column :label="$t('目的地')">
{{$l(objective, 'title') || '-'}} {{$l(objective, 'title') || '-'}}
{{$l(objective, 'title') || '-'}}
</el-table-column> </el-table-column>
<el-table-column :label="$t('品名')" prop="titleZh"> <el-table-column :label="$t('品名')" prop="titleZh">
<template slot-scope="{row}"> <template slot-scope="{row}">
......
...@@ -324,9 +324,6 @@ ...@@ -324,9 +324,6 @@
/> />
</el-form-item> </el-form-item>
</div> </div>
<div class="form-section" v-if="form.customsType==2">
<span style="color:red;font-size:14px">{{$t('报关退税,请备齐资料。')}}</span>
</div>
<div class="form-section" v-if="collectionProxy"> <div class="form-section" v-if="collectionProxy">
<el-form-item :label="$t('是否代收货款')" prop="isCollection"> <el-form-item :label="$t('是否代收货款')" prop="isCollection">
<dict-selector :type="DICT_TYPE.INFRA_BOOLEAN_STRING" formatter="bool" v-model="form.isCollection" form-type="radio" :disabled="false" /> <dict-selector :type="DICT_TYPE.INFRA_BOOLEAN_STRING" formatter="bool" v-model="form.isCollection" form-type="radio" :disabled="false" />
...@@ -342,7 +339,7 @@ ...@@ -342,7 +339,7 @@
<el-form-item :label="$t('单证报关')" :span="2" prop="customsType"> <el-form-item :label="$t('单证报关')" :span="2" prop="customsType">
<dict-selector :type="DICT_TYPE.ECW_CUSTOMS_TYPE" v-model="form.customsType" form-type="radio" defaultable :disabled="false" /> <dict-selector :type="DICT_TYPE.ECW_CUSTOMS_TYPE" v-model="form.customsType" form-type="radio" defaultable :disabled="false" />
<!--自单代报显示提示--> <!--自单代报显示提示-->
<div v-if="+form.customsType === 2">{{$t('报关退税,请备齐资料。')}}</div> <div v-if="+form.customsType === 2" style="color:red;font-size:14px">{{$t('报关退税,请备齐资料。')}}</div>
</el-form-item> </el-form-item>
</div> </div>
<div> <div>
......
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