fix:登入问题

This commit is contained in:
zhangzq
2024-07-25 13:48:11 +08:00
parent c43966f630
commit 00baf1871c
8 changed files with 17 additions and 27 deletions

View File

@@ -40,7 +40,7 @@ module.exports = {
/**
* @description token key
*/
TokenKey: 'EL-ADMIN-TOEKN',
TokenKey: 'Authorization',
/**
* @description 请求超时时间毫秒默认2分钟
*/

View File

@@ -235,7 +235,6 @@ const defaultForm = {
code: '',
bill_type: '',
status: '',
product_area: '',
source_form_type: '',
source_form_id: '',
source_form_date: '',
@@ -337,6 +336,14 @@ export default {
this.crud.notify('请至少选择一条明细', CRUD.NOTIFICATION_TYPE.INFO)
return false
}
if (!this.form.bill_type) {
this.crud.notify('单据类型不能为空', CRUD.NOTIFICATION_TYPE.INFO)
return false
}
if (!this.form.form_data.product_area) {
this.crud.notify('车间不能为空', CRUD.NOTIFICATION_TYPE.INFO)
return false
}
this.form.item = this.tableData
},