代码更新
This commit is contained in:
@@ -85,6 +85,7 @@
|
||||
icon="el-icon-position"
|
||||
size="mini"
|
||||
@click="open"
|
||||
:loading="fla"
|
||||
>
|
||||
导入Excel
|
||||
</el-button>
|
||||
@@ -260,6 +261,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
fla: false,
|
||||
permission: {
|
||||
},
|
||||
headers: { 'Authorization': getToken() },
|
||||
@@ -334,10 +336,12 @@ export default {
|
||||
return isLt2M
|
||||
},
|
||||
handleSuccess(response, file, fileList) {
|
||||
this.fla = true
|
||||
const id = response.id
|
||||
crudProductplanproc.importExcel(id).then(res => {
|
||||
this.crud.notify('上传成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.crud.toQuery()
|
||||
this.fla = false
|
||||
})
|
||||
},
|
||||
// 监听上传失败
|
||||
|
||||
@@ -53,6 +53,7 @@
|
||||
icon="el-icon-position"
|
||||
size="mini"
|
||||
@click="sumQuery"
|
||||
:loading="fla"
|
||||
>
|
||||
汇总查询
|
||||
</el-button>
|
||||
@@ -134,6 +135,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
fla: false,
|
||||
permission: {
|
||||
},
|
||||
form:{
|
||||
@@ -189,10 +191,12 @@ export default {
|
||||
this.form.material_code = ''
|
||||
},
|
||||
sumQuery() {
|
||||
this.fla = true
|
||||
const data = this.form
|
||||
crudProductplansum.sumQuery(data).then(res => {
|
||||
this.tableData = res
|
||||
this.crud.notify('汇总完成', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.fla = false
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,6 +84,7 @@
|
||||
icon="el-icon-position"
|
||||
size="mini"
|
||||
@click="open"
|
||||
:loading="fla"
|
||||
>
|
||||
导入Excel
|
||||
</el-button>
|
||||
@@ -276,6 +277,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
fla: false,
|
||||
permission: {
|
||||
},
|
||||
headers: { 'Authorization': getToken() },
|
||||
@@ -374,10 +376,12 @@ export default {
|
||||
return isLt2M
|
||||
},
|
||||
handleSuccess(response, file, fileList) {
|
||||
this.fla = true
|
||||
const id = response.id
|
||||
crudProductplansum.importExcel(id).then(res => {
|
||||
this.crud.notify('上传成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||
this.crud.toQuery()
|
||||
this.fla = false
|
||||
})
|
||||
},
|
||||
// 监听上传失败
|
||||
|
||||
Reference in New Issue
Block a user