Commit 5a775a3d authored by dragondean@qq.com's avatar dragondean@qq.com

订单操作日志

parent e3a27e88
...@@ -656,3 +656,12 @@ export function exportUnload(params){ ...@@ -656,3 +656,12 @@ export function exportUnload(params){
responseType: 'blob' responseType: 'blob'
}) })
} }
// 操作日志分页
export function operateLogPage(params){
return request({
url: '/ecw/order-operate-log/page',
method: 'get',
params: params
})
}
\ No newline at end of file
...@@ -270,6 +270,19 @@ ...@@ -270,6 +270,19 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('操作日志')" name="five">
<el-table :data="logs">
<el-table-column :label="$t('时间')">
<template slot-scope="{row}">{{ parseTime(row.createTime) }}</template>
</el-table-column>
<el-table-column :label="$t('操作人')" prop="creatorName"> </el-table-column>
<el-table-column :label="$t('操作人类型')">
<template slot-scope="{row}">{{ row.userType == 1 ? $t('会员') : $t('管理员') }}</template>
</el-table-column>
<el-table-column :label="$t('操作描述')" prop="msg"></el-table-column>
<el-table-column :label="$t('备注')" prop="note"></el-table-column>
</el-table>
</el-tab-pane>
</el-tabs> </el-tabs>
</el-card> </el-card>
...@@ -344,7 +357,7 @@ ...@@ -344,7 +357,7 @@
</template> </template>
<script> <script>
import { getOrder } from '@/api/ecw/order' import { getOrder, operateLogPage } from '@/api/ecw/order'
import { getDictDatas, DICT_TYPE } from '@/utils/dict'; import { getDictDatas, DICT_TYPE } from '@/utils/dict';
import PrintWarehouseReceipt from './components/PrintWarehouseReceipt' import PrintWarehouseReceipt from './components/PrintWarehouseReceipt'
import PrintLadingBill from './components/PrintLadingBill' import PrintLadingBill from './components/PrintLadingBill'
...@@ -398,6 +411,8 @@ export default { ...@@ -398,6 +411,8 @@ export default {
showWarehouseInItemId: null, // 当前显示的入仓 showWarehouseInItemId: null, // 当前显示的入仓
showFeeDetailDialog: null, // 是否显示费用详情弹层 showFeeDetailDialog: null, // 是否显示费用详情弹层
feeDetail: null, // 费用详情 feeDetail: null, // 费用详情
logs: [], // 操作日志
} }
}, },
computed:{ computed:{
...@@ -433,6 +448,9 @@ export default { ...@@ -433,6 +448,9 @@ export default {
if(!this.feeList.length && val == 'four'){ if(!this.feeList.length && val == 'four'){
this.loadFeeList() this.loadFeeList()
} }
if(!this.logs.length && val == 'five'){
this.loadLogs()
}
}, },
'order.channelId'(){ 'order.channelId'(){
this.getChannel() this.getChannel()
...@@ -582,6 +600,12 @@ export default { ...@@ -582,6 +600,12 @@ export default {
this.feeList = res.data this.feeList = res.data
}) })
}, },
// 加载操作日志
loadLogs(){
operateLogPage({orderId: this.orderIdDICT_TYPE, page: 1, rows: 10000}).then(res => {
this.logs = res.data.list
})
},
downloadPackingList(){ downloadPackingList(){
window.open(this.order.packingListUrl) window.open(this.order.packingListUrl)
}, },
......
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