rev:修改

This commit is contained in:
2026-03-27 17:18:23 +08:00
parent 576a8ecc32
commit d58831d18d
15 changed files with 256 additions and 10 deletions

View File

@@ -128,6 +128,17 @@
>
强制确认
</el-button>
<el-button
slot="right"
class="filter-item"
type="success"
icon="el-icon-thumb"
size="mini"
:loading="showDtlLoading"
@click="down"
>
导出
</el-button>
</crudOperation>
<!--表格渲染-->
<el-table
@@ -198,6 +209,8 @@ import DateRangePicker from '@/components/DateRangePicker/index'
import AddDialog from '@/views/wms/st/moreorlessbill/AddDialog'
import { mapGetters } from 'vuex'
import crudStorattr from '@/views/wms/basedata/bsrealstorattr/bsrealstorattr'
import {download} from "@/api/data";
import {downloadFile} from "@/utils";
export default {
name: 'MoreOrLess',
@@ -227,6 +240,7 @@ export default {
del: ['admin', 'user:del']
},
confirm_flag: true,
showDtlLoading: false,
currentRow: null,
storlist: [],
statuslist: []
@@ -316,6 +330,22 @@ export default {
this.crud.notify('单据确认成功!', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.crud.refresh()
})
},
down() {
if (this.currentRow !== null) {
const data = this.crud.query
if (this.crud.query.createTime !== undefined) {
data.begin_time = this.crud.query.createTime[0]
data.end_time = this.crud.query.createTime[1]
}
this.showDtlLoading = true
download('/api/moreorLess/download', data).then(result => {
downloadFile(result, '损益数据', 'xlsx')
this.showDtlLoading = false
}).catch(() => {
this.showDtlLoading = false
})
}
}
}
}

View File

@@ -57,7 +57,7 @@
</div>
<!--如果想在工具栏加入更多按钮可以使用插槽方式 slot = 'left' or 'right'-->
<crudOperation :permission="permission">
<!-- <el-button
<el-button
slot="right"
class="filter-item"
type="success"
@@ -67,7 +67,7 @@
@click="downdtl"
>
导出Excel
</el-button>-->
</el-button>
</crudOperation>
<!--表格渲染-->
<el-table
@@ -137,6 +137,7 @@ export default {
openParam: null,
bagDialog: false,
showModal: false,
showDtlLoading: false,
imageUrl: '',
permission: {},
rules: {}
@@ -189,7 +190,7 @@ export default {
if (this.currentRow !== null) {
this.showDtlLoading = true
download('/api/structivt/download', this.crud.query).then(result => {
downloadFile(result, '成品库存', 'xlsx')
downloadFile(result, '库存信息', 'xlsx')
this.showDtlLoading = false
}).catch(() => {
this.showDtlLoading = false