清除盘点内容

merge-requests/4/head
LAPTOP-S9HJSOEB\昊天 2 years ago
parent 61722cbae4
commit 9342696548

Binary file not shown.

@ -183,6 +183,11 @@ export default {
name: '导出单个巷道', name: '导出单个巷道',
method: 'GET' method: 'GET'
}, },
trStockTable:{
url: '/stock/trStockTable',
name: '清除盘点内容',
method: 'POST'
},
exportAllStock: { exportAllStock: {
url: '/stock/exportAll', url: '/stock/exportAll',
name: '导出所有巷道', name: '导出所有巷道',

@ -1,6 +1,9 @@
<template> <template>
<div class="check-page"> <div class="check-page">
<div class="button-box"> <div class="button-box">
<a-button type="primary" @click="trStockTable" class="export-all">
清空盘点数据
</a-button>
<a-button type="primary" @click="exportStock" class="export-all"> <a-button type="primary" @click="exportStock" class="export-all">
导出巷道盘点数据 导出巷道盘点数据
</a-button> </a-button>
@ -226,6 +229,16 @@ export default {
}); });
}, },
trStockTable() {
this.$api.httpApi.trStockTable({
}).then(res => {
this.$message.success('清除成功')
}).catch(err => {
});
},
exportAllStock() { exportAllStock() {
this.$utils.downloadFileUrl('盘点列表.xls', '/api/stock/exportAll'); this.$utils.downloadFileUrl('盘点列表.xls', '/api/stock/exportAll');

@ -109,6 +109,7 @@
<viewer> <viewer>
<img class="historyImg" :src="imgUrl+text.pic"/> <img class="historyImg" :src="imgUrl+text.pic"/>
<img class="historyImg" :src="imgUrl+text.pic+'.jpg'"/> <img class="historyImg" :src="imgUrl+text.pic+'.jpg'"/>
<img class="historyImg" :src="imgUrl+text.pic+'.jpg'+'.jpg'"/>
</viewer> </viewer>
</happy-scroll> </happy-scroll>
</span> </span>

Loading…
Cancel
Save