代码备份

prod
anthonywj 2 years ago
parent cda0a64f3c
commit 5f561a8842

@ -50,3 +50,13 @@ export function updateConfig(query) {
}); });
} }
export function infoByStatus(query) {
return axios({
url: "/spssync/basic/udiinfo/infoByStatus",
method: "post",
data: query,
responseType: 'blob'
});
}

@ -180,6 +180,8 @@ export default {
page: 1, page: 1,
limit: 10, limit: 10,
}, },
isEntrust: false,
} }
}, },
@ -267,6 +269,7 @@ export default {
this.detailList = response.data.orderDetailEntities || []; this.detailList = response.data.orderDetailEntities || [];
this.formData = response.data.orderEntity; this.formData = response.data.orderEntity;
this.orderQuery = this.formData; this.orderQuery = this.formData;
this.isEntrust = response.data.entrust;
} else { } else {
this.$message.error(response.message); this.$message.error(response.message);
} }
@ -371,6 +374,7 @@ export default {
postAccept() { postAccept() {
let query = { let query = {
orderId: this.orderQuery.billNo, orderId: this.orderQuery.billNo,
entrust: this.isEntrust,
}; };
if (this.reviewType != null && this.reviewType == 2) { if (this.reviewType != null && this.reviewType == 2) {
thirdUpdateStatus(query) thirdUpdateStatus(query)

@ -1022,6 +1022,7 @@ export default {
// //
closeAcceptDialog() { closeAcceptDialog() {
this.acceptOrderVisible = false; this.acceptOrderVisible = false;
this.newAcceptOrderVisible = false;
}, },
// //

@ -24,11 +24,11 @@
<el-form-item> <el-form-item>
<el-button-group style="display:flex;"> <el-button-group style="display:flex;">
<el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button> <el-button type="primary" icon="el-icon-refresh" @click="onReset"></el-button>
<el-button type="primary" icon="search" @click="search"></el-button> <el-button type="primary" icon="search" @click="getList"></el-button>
<el-button type="primary" icon="search" @click="createScheduleDialog(1)" <!-- <el-button type="primary" icon="search" @click="createScheduleDialog(1)"-->
v-if="configParms.orderScanFinish==1 || configParms.orderUnReceive==1 || configParms.orderUnCheck==1"> <!-- v-if="configParms.orderScanFinish==1 || configParms.orderUnReceive==1 || configParms.orderUnCheck==1">-->
同步单据 <!-- 同步单据-->
</el-button> <!-- </el-button>-->
<!-- <el-button type="primary" icon="search" @click="createScheduleDialog(2)" <!-- <el-button type="primary" icon="search" @click="createScheduleDialog(2)"
v-if="configParms.typeBus==1||configParms.typeScan==1||configParms.typeThird==1"> v-if="configParms.typeBus==1||configParms.typeScan==1||configParms.typeThird==1">
同步单据类型 同步单据类型
@ -58,13 +58,20 @@
</el-table-column> </el-table-column>
<el-table-column label="开始时间" width="180" prop="startTime" show-overflow-tooltip></el-table-column> <el-table-column label="开始时间" width="180" prop="startTime" show-overflow-tooltip></el-table-column>
<el-table-column label="结束时间" width="180" prop="endTime" show-overflow-tooltip></el-table-column> <el-table-column label="结束时间" width="180" prop="endTime" show-overflow-tooltip></el-table-column>
<el-table-column label="同步文件" prop="cacheFilePath" width="180" show-overflow-tooltip></el-table-column>
<el-table-column label="同步信息" prop="remark" show-overflow-tooltip></el-table-column> <el-table-column label="同步信息" prop="remark" width="180" show-overflow-tooltip></el-table-column>
<el-table-column label="操作" fixed="right" width="160"> <el-table-column label="操作" fixed="right" width="160">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button type="text" size="small" @click.native.stop="detailDialog(scope.row.id)">详情
<el-popconfirm @confirm="downFile(scope.row)" confirm-button-text='' cancel-button-text='' class="mr10"
icon="el-icon-info" icon-color="blck" title="是否确认要下载文件?" v-if="scope.row.cacheFilePath">
<el-button type="text" size="small" slot="reference">下载
</el-button> </el-button>
</el-popconfirm>
<!-- <el-button type="text" size="small" @click.native.stop="detailDialog(scope.row.id)">详情-->
<!-- </el-button>-->
<el-button type="text" size="small" @click.native.stop="deleteDialog(scope.row.id)">删除 <el-button type="text" size="small" @click.native.stop="deleteDialog(scope.row.id)">删除
</el-button> </el-button>
</template> </template>
@ -83,21 +90,21 @@
</template> </template>
<script> <script>
import { import {
filterLog, filterLog,
deleteLog, deleteLog,
createSchedule, createSchedule,
findConfig, findConfig,
updateConfig updateConfig
} from "@/api/sync/spsSyncStatus"; } from "@/api/sync/spsSyncStatus";
import store from "@/store"; import store from "@/store";
export default { export default {
data() { data() {
return { return {
filterQuery: { filterQuery: {
id: null, id: null,
status: "1", status: null,
page: 1, page: 1,
limit: 10, limit: 10,
syncTime: null, syncTime: null,
@ -159,11 +166,6 @@
this.syncTime = null; this.syncTime = null;
this.getList(); this.getList();
}, },
search(){
this.filterQuery.page=1;
this.getList();
},
getList() { getList() {
this.loading = true; this.loading = true;
filterLog(this.filterQuery) filterLog(this.filterQuery)
@ -236,7 +238,8 @@
.then(() => { .then(() => {
this.createSchedule(type); this.createSchedule(type);
}) })
.catch(() => {}); .catch(() => {
});
} else { } else {
this.createSchedule(type); this.createSchedule(type);
} }
@ -289,8 +292,27 @@
this.loading = false; this.loading = false;
}); });
}) })
.catch(() => {}); .catch(() => {
});
}, },
downFile(rows) {
infoByStatus({
'id': rows.id
}).then(res => {
let blob = new Blob([res])
let fileName = rows.cacheFilePath.substring(rows.cacheFilePath.lastIndexOf('/'))
let link = document.createElement("a")
link.href = window.URL.createObjectURL(blob)
link.download = fileName
link.style.display = 'none'
document.body.appendChild(link)
link.click()
window.URL.revokeObjectURL(link.href)
document.body.removeChild(link)
})
},
handleChange(response, files, fileList) { handleChange(response, files, fileList) {
console.log(response); console.log(response);
if (response.code != 20000) { if (response.code != 20000) {
@ -316,7 +338,8 @@
this.configParms = response.data; this.configParms = response.data;
} }
}) })
.catch(() => {}); .catch(() => {
});
}, },
detailDialog(id) { detailDialog(id) {
this.syncVisible = true; this.syncVisible = true;
@ -328,7 +351,8 @@
} }
}, },
mounted() {}, mounted() {
},
components: {}, components: {},
created() { created() {
this.headers = { this.headers = {
@ -339,35 +363,35 @@
this.getList(); this.getList();
this.getConfig(); this.getConfig();
}, },
}; };
</script> </script>
<style> <style>
.itemTag { .itemTag {
float: left; float: left;
text-align: left; text-align: left;
margin-top: 10px; margin-top: 10px;
width: 100px; width: 100px;
} }
.text { .text {
font-size: 13px; font-size: 13px;
font-family: "Microsoft YaHei"; font-family: "Microsoft YaHei";
} }
.el-row { .el-row {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
} }
.el-col { .el-col {
border-radius: 4px; border-radius: 4px;
flex-wrap: wrap; flex-wrap: wrap;
} }
.syncInfo { .syncInfo {
font-size: medium; font-size: medium;
font-family: "Microsoft YaHei"; font-family: "Microsoft YaHei";
line-height: 25px; line-height: 25px;
} }
</style> </style>

Loading…
Cancel
Save