Commit 0056f370 authored by hangjun83's avatar hangjun83

1、修复bug,2、新增任务日志

parent ab545899
......@@ -155,6 +155,7 @@ export const execBhSordersRefundTask = (params) => {
}
export const getSorderRefundTaskLogs = (params) => {
params.type = 'sorder_refund'
return postRequest('/tools/bh/getSorderRefundTaskLogs', params)
}
......
......@@ -69,6 +69,12 @@
</Card>
</Modal>
<Modal draggable class="operation" title="任务日志" v-model="logModalVisible" :mask-closable="false" :width="1500" :styles="{ top: '30px' }">
<Card>
<Table :show-header="false" :loading="searchLoading" class="tableInfoBox" stripe :columns="logColumns" :data="logData" sortable="custom" ref="table"></Table>
</Card>
</Modal>
</div>
</template>
......@@ -77,7 +83,8 @@ import {
getBhSordersDataDetail,
addSorderRefundTask,
getBhSordersRefundTask,
execBhSordersRefundTask
execBhSordersRefundTask,
getSorderRefundTaskLogs
} from "@/api/index";
import util from "@/libs/util.js";
export default {
......@@ -88,7 +95,10 @@ export default {
loading: false,
searchLoading: false,
maxHeight: "500px",
form: {},
form: {
transferPre: false,
cancelPorder: false
},
searchForm: {
pageNumber: 1,
pageSize: 10,
......@@ -372,14 +382,28 @@ export default {
minWidth: 125,
},
],
logColumns: [{
type: "index",
width: 60,
align: "center",
},
{
title: "日志内容故",
key: "content",
minWidth: 235,
},
],
submitLoading: false,
data: [],
selectRowData: [],
searchData: [],
logData: [],
total: 0,
showAddSorderTask: false,
menuModalVisible: false,
selectRowVisible: false
selectRowVisible: false,
logModalVisible: false
};
},
methods: {
......@@ -528,16 +552,13 @@ export default {
},
showLog(v) {
this.searchLoading = true;
this.logModalVisible = true
getSorderRefundTaskLogs({
'taskId': this.v.id
'taskId': v.id
}).then((res) => {
this.searchLoading = false;
if (res.status == 'success') {
this.searchData = res.data;
if (this.searchData.length == 0 && this.searchSorderForm.pageNumber > 1) {
this.searchSorderForm.pageNumber -= 1;
this.getSorderDetail();
}
this.logData = res.data;
}
});
},
......
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