Commit 290255a4 authored by 邓春圆's avatar 邓春圆

Merge remote-tracking branch 'origin/release2.2' into release2.2

parents aa44e7e5 f8a93486
......@@ -149,3 +149,11 @@ export function exportCargoControl(params){
params
})
}
// 控货日志
export function getControlLogList(orderId){
return request({
url: '/order/order-control-log/list/' + orderId,
method: 'get'
})
}
......@@ -257,10 +257,10 @@ export default {
},
// 获取列的货币名称 columnName 取值为Other, Freight, Clearance
ColumnCurrencyName(){
return (columnName) => {
return (columnName, wrapper = true) => {
if(!this.list.length) return ''
let field = `total${columnName}FeeCurrency`
return `(${this.list[0]['summaryInfo'][field]})`
return wrapper ? `(${this.list[0]['summaryInfo'][field]})` : this.list[0]['summaryInfo'][field]
}
}
},
......@@ -296,35 +296,38 @@ export default {
},
// 返回汇总行数据
getSummary(){
const FreightCurrencyName = this.ColumnCurrencyName('Freight', false)
const ClearanceCurrencyName = this.ColumnCurrencyName('Clearance', false)
const OtherCurrencyName = this.ColumnCurrencyName('Other', false)
const data = [
this.$t('合计'),
'',
// 应收款
this.getTotal('receivableTotalFee'),
this.getTotal('receivableTotalFee') + 'USD',
// 应收运费
this.getTotal('totalReceivableFreightFee'),
this.getTotal('totalReceivableFreightFee') + FreightCurrencyName,
// 应收清关费
this.getTotal('totalReceivableClearanceFee'),
this.getTotal('totalReceivableClearanceFee') + ClearanceCurrencyName,
// 应收其他费用
this.getTotal('totalReceivableOtherFee'),
this.getTotal('totalReceivableOtherFee') + OtherCurrencyName,
// 目的地实收运费
this.getTotal('totalNetReceiptsCollectFreightFee'),
this.getTotal('totalNetReceiptsCollectFreightFee') + FreightCurrencyName,
// 目的地实收清关费
this.getTotal('totalNetReceiptsCollectClearanceFee'),
this.getTotal('totalNetReceiptsCollectClearanceFee') + ClearanceCurrencyName,
// 目的地实收其他费用
this.getTotal('totalNetReceiptsCollectOtherFee'),
this.getTotal('totalNetReceiptsCollectOtherFee') + OtherCurrencyName,
// 中国实收运费
this.getTotal('netReceiptsAdvanceFreightFee'),
this.getTotal('netReceiptsAdvanceFreightFee') + FreightCurrencyName,
// 中国实收清关费
this.getTotal('netReceiptsAdvanceClearanceFee'),
this.getTotal('netReceiptsAdvanceClearanceFee') + ClearanceCurrencyName,
// 中国实收其他费用
this.getTotal('netReceiptsAdvanceOtherFee'),
this.getTotal('netReceiptsAdvanceOtherFee') + OtherCurrencyName,
// 运费折扣
this.getTotal('discountFreightFee'),
this.getTotal('discountFreightFee') + FreightCurrencyName,
// 清关费折扣
this.getTotal('discountClearanceFee'),
this.getTotal('discountClearanceFee') + ClearanceCurrencyName,
// 其他费用折扣
this.getTotal('discountOtherFee')
this.getTotal('discountOtherFee') + OtherCurrencyName,
]
console.log('sum', {data})
return data
......
......@@ -67,8 +67,8 @@
<el-form-item :label="$t('编号')">
<el-input
style="max-width: 188px"
v-model="queryParams.receiptNo"
:placeholder="$t('请输入订单号和提单号、自编号')"
v-model="queryParams.numberNo"
:placeholder="$t('订单号和提单号,自编号')"
clearable
@keyup.enter.native="handleQuery"
/>
......
......@@ -145,6 +145,7 @@
<el-button type="text" size="mini" @click="cargoTransfer(scope.row)" v-hasPermi="['ecw:cargo_control:cargo_transfer']">{{$t('调货')}}</el-button>
<el-button type="text" size="mini" @click="showFallbackOrder=scope.row" v-if="scope.row.isReleaseAfterGoods" v-hasPermi="['ecw:cargo_control:fallback']">{{$t('反复核')}}</el-button>
</template>
<el-button type="text" size="mini" @click="showLogOrderId=scope.row.orderId" v-hasPermi="['ecw:cargo_control:log']">{{$t('控货日志')}}</el-button>
<el-button type="text" size="mini" @click="toDetail(scope.row)" v-hasPermi="['ecw:cargo_control:show']">{{$t('查看')}}</el-button>
</template>
</el-table-column>
......@@ -157,6 +158,8 @@
<release v-if="showReleaseOrderId" :order-id="showReleaseOrderId" @close="showReleaseOrderId=null" @success="onReleaseSuccess" />
<transfer-cargo v-if="showTransferCargoOrderId" :order-id="showTransferCargoOrderId" @close="showTransferCargoOrderId=null" @success="onTransferCargoSuccess" :cargoControlPickId="pickInfo ? pickInfo.id : 0" />
<fallback v-if="showFallbackOrder !== null" :order="showFallbackOrder" @close="showFallbackOrder=null" @success="onFallbackSuccess" :index="null" />
<!--控货日志-->
<cargo-log-list v-if="showLogOrderId" :order-id="showLogOrderId" @close="showLogOrderId=null" />
</div>
</template>
......@@ -173,9 +176,11 @@ import { getCargoControlOrderPage, batchReview, orderReview, getPickRleaseInfo,
import TransferCargo from '@/views/ecw/order/components/TransferCargo'
import Fallback from './components/Fallback'
import {getWarehouseList} from '@/api/ecw/warehouse'
import CargoLogList from "@/views/ecw/order/components/CargoLogList.vue";
export default {
name: "EcwOrderCargocontrol",
components: {
CargoLogList,
CustomerSelector, ProductSelector, Selector, Transfer, Release,CargoControlEdit, TransferCargo, Fallback
},
data() {
......@@ -215,6 +220,7 @@ export default {
showTransferCargoOrderId: null, // 调货ID
showFallbackOrder: null, // 调货订单
pickInfo: null, // 当前操作的提货信息
showLogOrderId: null, // 显示控货日志的订单ID
};
},
computed: {
......
<template>
<el-dialog :title="$t('控货日志')" visible :before-close="closeDialog" :close-on-click-modal="false" width="1000px">
<el-table :data="list">
<el-table-column :label="$t('操作时间')" prop="createTime" width="200">
<template slot-scope="{row}">{{row.createTime|parseTime}}</template>
</el-table-column>
<el-table-column :label="$t('操作人')" prop="creatorName" width="100"></el-table-column>
<el-table-column :label="$t('操作人类型')" prop="content" width="100">
<template slot-scope="{row}">{{row.userType == 1 ? $t('会员') : $t('管理员')}}</template>
</el-table-column>
<el-table-column :label="$t('操作类型')" prop="type" width="200"></el-table-column>
<el-table-column :label="$t('备注')" prop="msg"></el-table-column>
</el-table>
</el-dialog>
</template>
<script>
import {
getControlLogList,
} from '@/api/ecw/orderCargoControl'
import {parseTime} from '@/utils/ruoyi'
export default {
props:{
orderId: Number
},
filters: {parseTime},
data(){
return {
show: false,
list:[]
}
},
created(){
this.show = true
this.loadData()
},
methods:{
loadData(){
getControlLogList(this.orderId).then(res => this.list = res.data)
},
closeDialog(){
this.show = false
this.$emit('close');
}
}
}
</script>
<style lang="scss" scoped>
</style>
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