Browse Source

领料延误修改

master
shenzhouyu 2 weeks ago
parent
commit
bc896d6bc8
  1. 145
      src/views/modules/orderIssure/soIssueNotify/searchOvertimeMaterialList.vue

145
src/views/modules/orderIssure/soIssueNotify/searchOvertimeMaterialList.vue

@ -43,8 +43,12 @@
</el-form-item>
<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="待检中" />
@ -55,7 +59,12 @@
</el-form-item>
<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-select>
</el-form-item>
@ -142,6 +151,11 @@ import {
getSoundBoxVolume,
} from '@/api/orderIssure/soIssueNotify.js'
import { getEamWorkShop } from '@/api/factory/site.js'
import {userFavoriteList} from '@/api/userFavorite.js'
import {
getTableDefaultListLanguage,
getTableUserListLanguage,
} from "@/api/table.js"
export default {
data() {
@ -156,9 +170,9 @@ export default {
userName: '',
componentPartNo: '',
partDesc: '',
status: '', //
status: '', // s
confirmStatus: '', //
timeoutReason: 'isemtpy', //
timeoutReasons: ['isemtpy'], //
workShopList: [],
startDate: this.dayjs().subtract(7, 'day').format('YYYY-MM-DD'), //
endDate: this.dayjs().format('YYYY-MM-DD'),
@ -180,6 +194,7 @@ export default {
{ label: '产线申请过多', value: '产线申请过多' },
{ label: '产线取消', value: '产线取消' },
],
favorite: false,
columnList1: [
{
userId: this.$store.state.user.name,
@ -235,7 +250,7 @@ export default {
fixed: '',
columnWidth: 100,
},
{
/* {
userId: this.$store.state.user.name,
functionId: 701005,
serialNumber: '701005Table1NotifyNo',
@ -252,7 +267,7 @@ export default {
status: true,
fixed: '',
columnWidth: 120,
},
}, */
{
userId: this.$store.state.user.name,
functionId: 701005,
@ -381,6 +396,24 @@ export default {
fixed: '',
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,
functionId: 701005,
@ -509,7 +542,105 @@ export default {
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: {
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() {
this.dataListLoading = true
const inData = Object.assign({}, this.searchData)

Loading…
Cancel
Save