修复班组管理产线下拉和时间文案
This commit is contained in:
@@ -591,6 +591,8 @@
|
||||
"production_line": "Production Line",
|
||||
"select_area_then_line": "Please select the plant area first, then the production line.",
|
||||
"last_create_time": "Latest Creation Time",
|
||||
"start_time": "Start Time",
|
||||
"end_time": "End Time",
|
||||
"select_create_time": "Please select creation time",
|
||||
"download_task_created": "Download task created successfully",
|
||||
"affiliated_factory": "Plant Area",
|
||||
|
||||
@@ -591,6 +591,8 @@
|
||||
"production_line": "产线",
|
||||
"select_area_then_line": "请选择先所属厂区,再选择所属产线",
|
||||
"last_create_time": "最后创建时间",
|
||||
"start_time": "开始时间",
|
||||
"end_time": "结束时间",
|
||||
"select_create_time": "请选择创建时间",
|
||||
"download_task_created": "创建下载任务成功",
|
||||
"affiliated_factory": "所属厂区",
|
||||
|
||||
@@ -107,7 +107,7 @@ import { i18nMixin } from '@/composables/useI18n'
|
||||
import { confirmMixin } from '@/composables/useConfirmHandle'
|
||||
import PageTable from '@/components/page-table'
|
||||
import { getFactoryAreaALL } from '@/api/production-master-data/factory-area'
|
||||
import { getProductionLineList } from '@/api/production-master-data/production-line'
|
||||
import { getProductionLineALL } from '@/api/production-master-data/production-line'
|
||||
import { getUserList } from '@/api/system-administration/user'
|
||||
import { downloadRename, readExcel } from '@/utils/file'
|
||||
import { getTeamList, createTeam, editTeam, deleteTeam, getTeamImportTemplate, importTeamData, exportTeamTask, getTeamMemberList, deleteTeamMember } from '@/api/production-master-data/team-management'
|
||||
@@ -201,7 +201,7 @@ export default {
|
||||
},
|
||||
async loadLines (areaId, target) {
|
||||
if (!areaId) { this[target] = []; return }
|
||||
const res = await getProductionLineList({ area_id: areaId, page_no: 1, page_size: 10000 })
|
||||
const res = await getProductionLineALL({ area_id: areaId })
|
||||
const { list } = readPageData(res)
|
||||
this[target] = list.map(item => ({ label: item.name, value: item.id }))
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user