|
|
|
@ -50,6 +50,16 @@ |
|
|
|
<el-form-item label="派工单创建人"> |
|
|
|
<el-input v-model="searchData.operatorName" clearable style="width: 100px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'班次'"> |
|
|
|
<el-select v-model="searchData.shiftDesc" placeholder="请选择" clearable style="width: 80px"> |
|
|
|
<el-option |
|
|
|
v-for = "i in shiftList" |
|
|
|
:key = "i.shiftDesc" |
|
|
|
:label = "i.shiftDesc" |
|
|
|
:value = "i.shiftDesc"> |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="检验类型"> |
|
|
|
<el-select v-model="searchData.inspectionTypeNo" style="width: 100px" clearable placeholder="请选择"> |
|
|
|
<el-option label="IPQC首检" value="首件检"></el-option> |
|
|
|
@ -271,6 +281,7 @@ |
|
|
|
queryTemplateList, // 获取检验模板列表 |
|
|
|
saveOsInspection, // 新增检验记录 |
|
|
|
inspectionTypeSearch, // 搜索所有检验类型 |
|
|
|
getShiftList, // 获取班次 |
|
|
|
} from "@/api/qc/qc.js" |
|
|
|
import {getTableDefaultListLanguage, getTableUserListLanguage} from "@/api/table.js" |
|
|
|
import {userFavoriteList, saveUserFavorite, removeUserFavorite} from '@/api/userFavorite.js' |
|
|
|
@ -301,6 +312,7 @@ |
|
|
|
operatorName: '', |
|
|
|
departmentID: '', |
|
|
|
inspectionTypeNo: '', |
|
|
|
shiftDesc: '', |
|
|
|
page: 1, |
|
|
|
limit: 10 |
|
|
|
}, |
|
|
|
@ -786,6 +798,24 @@ |
|
|
|
status: true, |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 3010005001, |
|
|
|
serialNumber: '3010005001Table1ShiftDesc', |
|
|
|
tableId: "3010005001Table1", |
|
|
|
tableName: "派工单号表", |
|
|
|
fixed: '', |
|
|
|
columnProp: 'shiftDesc', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: '班次', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
columnWidth: 80, |
|
|
|
}, |
|
|
|
], |
|
|
|
templateDetailList: [ |
|
|
|
{ |
|
|
|
@ -837,7 +867,8 @@ |
|
|
|
templateModelFlag: false, |
|
|
|
saveLoading: false, |
|
|
|
typeOptions: [], |
|
|
|
currentRow: {} |
|
|
|
currentRow: {}, |
|
|
|
shiftList: [], |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
@ -852,6 +883,8 @@ |
|
|
|
this.getButtonAuthData() |
|
|
|
// 获取用户的 site 和 bu |
|
|
|
this.getSiteAndBuByUserName() |
|
|
|
// 获取班次 |
|
|
|
this.getShiftList() |
|
|
|
// 校验用户是否收藏 |
|
|
|
this.favoriteIsOk() |
|
|
|
// 检验类型 |
|
|
|
@ -869,6 +902,17 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
// 获取班次 |
|
|
|
getShiftList () { |
|
|
|
let tempData = { |
|
|
|
site: this.$store.state.user.site, |
|
|
|
} |
|
|
|
getShiftList(tempData).then(({data}) => { |
|
|
|
if (data.code === 0) { |
|
|
|
this.shiftList = data.rows |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 查询检验类型 |
|
|
|
inspectionTypeSearch () { |
|
|
|
|