|
|
@ -43,8 +43,12 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<el-form-item label="配料状态"> |
|
|
<el-form-item label="配料状态"> |
|
|
<el-select v-model="searchData.timeoutReason" style="width: 140px"> |
|
|
|
|
|
<el-option label="全部" value="" /> |
|
|
|
|
|
|
|
|
<el-select |
|
|
|
|
|
v-model="searchData.timeoutReasons" |
|
|
|
|
|
multiple |
|
|
|
|
|
collapse-tags |
|
|
|
|
|
style="width: 200px" |
|
|
|
|
|
> |
|
|
<el-option label="仓库缺料" value="仓库缺料" /> |
|
|
<el-option label="仓库缺料" value="仓库缺料" /> |
|
|
<el-option label="正在配料" value="正在配料" /> |
|
|
<el-option label="正在配料" value="正在配料" /> |
|
|
<el-option label="待检中" value="待检中" /> |
|
|
<el-option label="待检中" value="待检中" /> |
|
|
@ -55,7 +59,12 @@ |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<el-form-item label="车间"> |
|
|
<el-form-item label="车间"> |
|
|
<el-select v-model="searchData.workShopList" multiple style="width: 300px"> |
|
|
|
|
|
|
|
|
<el-select |
|
|
|
|
|
v-model="searchData.workShopList" |
|
|
|
|
|
multiple |
|
|
|
|
|
collapse-tags |
|
|
|
|
|
style="width: 300px" |
|
|
|
|
|
> |
|
|
<el-option v-for="i in workShopList" :key="i.workShopId" :label="i.workShopName" :value="i.workShopId" /> |
|
|
<el-option v-for="i in workShopList" :key="i.workShopId" :label="i.workShopName" :value="i.workShopId" /> |
|
|
</el-select> |
|
|
</el-select> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
@ -142,6 +151,11 @@ import { |
|
|
getSoundBoxVolume, |
|
|
getSoundBoxVolume, |
|
|
} from '@/api/orderIssure/soIssueNotify.js' |
|
|
} from '@/api/orderIssure/soIssueNotify.js' |
|
|
import { getEamWorkShop } from '@/api/factory/site.js' |
|
|
import { getEamWorkShop } from '@/api/factory/site.js' |
|
|
|
|
|
import {userFavoriteList} from '@/api/userFavorite.js' |
|
|
|
|
|
import { |
|
|
|
|
|
getTableDefaultListLanguage, |
|
|
|
|
|
getTableUserListLanguage, |
|
|
|
|
|
} from "@/api/table.js" |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
data() { |
|
|
data() { |
|
|
@ -156,9 +170,9 @@ export default { |
|
|
userName: '', |
|
|
userName: '', |
|
|
componentPartNo: '', |
|
|
componentPartNo: '', |
|
|
partDesc: '', |
|
|
partDesc: '', |
|
|
status: '', // 默认:已下达 |
|
|
|
|
|
|
|
|
status: '', // 默认:已下达s |
|
|
confirmStatus: '', // 未确认 |
|
|
confirmStatus: '', // 未确认 |
|
|
timeoutReason: 'isemtpy', // 配料状态:全部 |
|
|
|
|
|
|
|
|
timeoutReasons: ['isemtpy'], // 配料状态:多选数组 |
|
|
workShopList: [], |
|
|
workShopList: [], |
|
|
startDate: this.dayjs().subtract(7, 'day').format('YYYY-MM-DD'), // 默认:当前日期往前一周 |
|
|
startDate: this.dayjs().subtract(7, 'day').format('YYYY-MM-DD'), // 默认:当前日期往前一周 |
|
|
endDate: this.dayjs().format('YYYY-MM-DD'), |
|
|
endDate: this.dayjs().format('YYYY-MM-DD'), |
|
|
@ -180,6 +194,7 @@ export default { |
|
|
{ label: '产线申请过多', value: '产线申请过多' }, |
|
|
{ label: '产线申请过多', value: '产线申请过多' }, |
|
|
{ label: '产线取消', value: '产线取消' }, |
|
|
{ label: '产线取消', value: '产线取消' }, |
|
|
], |
|
|
], |
|
|
|
|
|
favorite: false, |
|
|
columnList1: [ |
|
|
columnList1: [ |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
@ -235,7 +250,7 @@ export default { |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
columnWidth: 100, |
|
|
columnWidth: 100, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
|
|
|
|
|
|
/* { |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 701005, |
|
|
functionId: 701005, |
|
|
serialNumber: '701005Table1NotifyNo', |
|
|
serialNumber: '701005Table1NotifyNo', |
|
|
@ -252,7 +267,7 @@ export default { |
|
|
status: true, |
|
|
status: true, |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
columnWidth: 120, |
|
|
columnWidth: 120, |
|
|
}, |
|
|
|
|
|
|
|
|
}, */ |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 701005, |
|
|
functionId: 701005, |
|
|
@ -381,6 +396,24 @@ export default { |
|
|
fixed: '', |
|
|
fixed: '', |
|
|
columnWidth: 100, |
|
|
columnWidth: 100, |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: 701005, |
|
|
|
|
|
serialNumber: '701005Table1NotifyNo', |
|
|
|
|
|
tableId: '701005Table1', |
|
|
|
|
|
tableName: '领料延误预警', |
|
|
|
|
|
columnProp: 'EnteredDate', |
|
|
|
|
|
headerAlign: 'center', |
|
|
|
|
|
align: 'center', |
|
|
|
|
|
columnLabel: '申请时间', |
|
|
|
|
|
columnHidden: false, |
|
|
|
|
|
columnImage: false, |
|
|
|
|
|
columnSortable: false, |
|
|
|
|
|
sortLv: 0, |
|
|
|
|
|
status: true, |
|
|
|
|
|
fixed: '', |
|
|
|
|
|
columnWidth: 130, |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
userId: this.$store.state.user.name, |
|
|
userId: this.$store.state.user.name, |
|
|
functionId: 701005, |
|
|
functionId: 701005, |
|
|
@ -509,7 +542,105 @@ export default { |
|
|
this.searchTable() |
|
|
this.searchTable() |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
created () { |
|
|
|
|
|
// 按钮控制 |
|
|
|
|
|
// this.getButtonAuthData() |
|
|
|
|
|
// 获取用户的 site 和 bu |
|
|
|
|
|
// this.getSiteAndBuByUserName() |
|
|
|
|
|
// 校验用户是否收藏 |
|
|
|
|
|
this.favoriteIsOk() |
|
|
|
|
|
|
|
|
|
|
|
// 动态列 |
|
|
|
|
|
this.getTableUserColumn(this.$route.meta.menuId+'table1',1) |
|
|
|
|
|
/* this.getTableUserColumn(this.$route.meta.menuId+'table2',2) |
|
|
|
|
|
this.getTableUserColumn(this.$route.meta.menuId+'table3',3) |
|
|
|
|
|
this.getTableUserColumn(this.$route.meta.menuId+'table4',4) |
|
|
|
|
|
this.getTableUserColumn(this.$route.meta.menuId+'table5',5) */ |
|
|
|
|
|
// if (!this.authSearch) { |
|
|
|
|
|
// // 获取数据列表 |
|
|
|
|
|
// this.getDataList() |
|
|
|
|
|
// } |
|
|
|
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
favoriteIsOk () { |
|
|
|
|
|
let userFavorite = { |
|
|
|
|
|
userId: this.$store.state.user.id, |
|
|
|
|
|
languageCode: this.$i18n.locale |
|
|
|
|
|
} |
|
|
|
|
|
userFavoriteList(userFavorite).then(({data}) => { |
|
|
|
|
|
for (let i = 0; i < data.list.length; i++) { |
|
|
|
|
|
if (this.$route.meta.menuId === data.list[i].menuId) { |
|
|
|
|
|
this.favorite = true |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
async getTableUserColumn(tableId, columnId) { |
|
|
|
|
|
let queryTableUser = { |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
functionId: this.$route.meta.menuId, |
|
|
|
|
|
tableId: tableId, |
|
|
|
|
|
status: true, |
|
|
|
|
|
languageCode: this.$i18n.locale |
|
|
|
|
|
} |
|
|
|
|
|
await getTableUserListLanguage(queryTableUser).then(({data}) => { |
|
|
|
|
|
if (data.rows.length > 0) { |
|
|
|
|
|
//this.columnList1 = [] |
|
|
|
|
|
switch (columnId) { |
|
|
|
|
|
case 1: |
|
|
|
|
|
this.columnList1 = data.rows |
|
|
|
|
|
break; |
|
|
|
|
|
case 2: |
|
|
|
|
|
this.columnList2 = data.rows |
|
|
|
|
|
break; |
|
|
|
|
|
case 3: |
|
|
|
|
|
this.columnList3 = data.rows |
|
|
|
|
|
break; |
|
|
|
|
|
case 4: |
|
|
|
|
|
this.columnList4 = data.rows |
|
|
|
|
|
break; |
|
|
|
|
|
case 5: |
|
|
|
|
|
this.columnList5 = data.rows |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
this.getColumnList(tableId, columnId) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 获取 tableDefault 列 |
|
|
|
|
|
async getColumnList (tableId, columnId) { |
|
|
|
|
|
let queryTable= { |
|
|
|
|
|
functionId: this.$route.meta.menuId, |
|
|
|
|
|
tableId: tableId, |
|
|
|
|
|
languageCode: this.$i18n.locale |
|
|
|
|
|
} |
|
|
|
|
|
await getTableDefaultListLanguage(queryTable).then(({data}) => { |
|
|
|
|
|
if (!data.rows.length == 0) { |
|
|
|
|
|
switch (columnId) { |
|
|
|
|
|
case 1: |
|
|
|
|
|
this.columnList1 = data.rows |
|
|
|
|
|
break; |
|
|
|
|
|
case 2: |
|
|
|
|
|
this.columnList2 = data.rows |
|
|
|
|
|
break; |
|
|
|
|
|
case 3: |
|
|
|
|
|
this.columnList3 = data.rows |
|
|
|
|
|
break; |
|
|
|
|
|
case 4: |
|
|
|
|
|
this.columnList4 = data.rows |
|
|
|
|
|
break; |
|
|
|
|
|
case 5: |
|
|
|
|
|
this.columnList5 = data.rows |
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
// this.showDefault = true. |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
searchTable() { |
|
|
searchTable() { |
|
|
this.dataListLoading = true |
|
|
this.dataListLoading = true |
|
|
const inData = Object.assign({}, this.searchData) |
|
|
const inData = Object.assign({}, this.searchData) |
|
|
|