代码备份

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

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

@ -24,11 +24,11 @@
<el-form-item>
<el-button-group style="display:flex;">
<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="createScheduleDialog(1)"
v-if="configParms.orderScanFinish==1 || configParms.orderUnReceive==1 || configParms.orderUnCheck==1">
同步单据
</el-button>
<el-button type="primary" icon="search" @click="getList"></el-button>
<!-- <el-button type="primary" icon="search" @click="createScheduleDialog(1)"-->
<!-- v-if="configParms.orderScanFinish==1 || configParms.orderUnReceive==1 || configParms.orderUnCheck==1">-->
<!-- 同步单据-->
<!-- </el-button>-->
<!-- <el-button type="primary" icon="search" @click="createScheduleDialog(2)"
v-if="configParms.typeBus==1||configParms.typeScan==1||configParms.typeThird==1">
同步单据类型
@ -58,13 +58,20 @@
</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="同步信息" prop="remark" 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" width="180" show-overflow-tooltip></el-table-column>
<el-table-column label="操作" fixed="right" width="160">
<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-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>
</template>
@ -97,7 +104,7 @@
return {
filterQuery: {
id: null,
status: "1",
status: null,
page: 1,
limit: 10,
syncTime: null,
@ -159,11 +166,6 @@
this.syncTime = null;
this.getList();
},
search(){
this.filterQuery.page=1;
this.getList();
},
getList() {
this.loading = true;
filterLog(this.filterQuery)
@ -236,7 +238,8 @@
.then(() => {
this.createSchedule(type);
})
.catch(() => {});
.catch(() => {
});
} else {
this.createSchedule(type);
}
@ -289,8 +292,27 @@
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) {
console.log(response);
if (response.code != 20000) {
@ -316,7 +338,8 @@
this.configParms = response.data;
}
})
.catch(() => {});
.catch(() => {
});
},
detailDialog(id) {
this.syncVisible = true;
@ -328,7 +351,8 @@
}
},
mounted() {},
mounted() {
},
components: {},
created() {
this.headers = {

Loading…
Cancel
Save