Commit 0056f370 authored by hangjun83's avatar hangjun83

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

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