add: 新增物料展示,去外协物料打印,导出任务数据,导入载具号功能

This commit is contained in:
yanps
2024-12-19 19:21:44 +08:00
parent ccba70a8cf
commit 8506ec5a04
36 changed files with 989 additions and 393 deletions

View File

@@ -79,7 +79,6 @@
size="mini"
type="success"
icon="el-icon-upload"
:disabled="crud.selections.length === 0"
@click="uploadExcel()"
>
导出
@@ -267,6 +266,8 @@ import CRUD, { crud, form, header, presenter } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
import pagination from '@crud/Pagination'
import { downloadFile } from '@/utils'
import { download } from '@/api/data'
const defaultForm = {
task_id: null,
@@ -342,9 +343,9 @@ export default {
this.crud.toQuery()
},
uploadExcel() {
const selectData = this.crud.selections
crudSchBaseTask.upload(selectData).then(res => {
console.log('++++++++++++++++++++', res)
download(this.crud.url + '/upload', this.crud.getQueryParams()).then(res => {
downloadFile(res, crud.title + '数据', 'csv')
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
})
},
handTaskStatus(value) {