Browse Source

2023-10-23 设备和质量修改

java8
杨奉源 2 years ago
parent
commit
1f4652c580
  1. 2
      src/api/qc/qc.js
  2. 6
      src/views/modules/eam/eamWorkPlanForCheck.vue
  3. 180
      src/views/modules/qc/FAIResultEntry.vue
  4. 182
      src/views/modules/qc/FQCResultEntry.vue
  5. 218
      src/views/modules/qc/IPQCResultEntry.vue
  6. 7
      src/views/modules/qc/IQCResultEntry.vue
  7. 6
      src/views/modules/qc/qcPartAttribute.vue

2
src/api/qc/qc.js

@ -131,6 +131,8 @@ export const getAllResourceList = data => createAPI(`/pms/qc/getAllResourceList`
export const getOrderNoList = data => createAPI(`/pms/qc/getOrderNoList`,'post',data)
export const queryController = data => createAPI(`/pms/qc/queryController`,'post',data)
export const queryTemplateList = data => createAPI(`/pms/qc/queryTemplateList`,'post',data)
export const getPartInformation = data => createAPI(`/pms/qc/getPartInformation`,'post',data)
export const getSpecialOperationList = data => createAPI(`/pms/qc/getSpecialOperationList`,'post',data)
// ===================================== IQC检验 =====================================
export const qcIQCInspectionSearch = data => createAPI(`/pms/qc/qcIQCInspectionSearch`,'post',data)

6
src/views/modules/eam/eamWorkPlanForCheck.vue

@ -2051,11 +2051,11 @@
return
}
this.modalData.objectList = this.dataListSelections
let obj = document.getElementsByName('addWorkOrderRule');
let s = '';
let obj = document.getElementsByName('addWorkOrderRule')
let s = ''
for (let i = 0; i < obj.length; i++) {
if (obj[i].checked) {
s += obj[i].value + ',';
s += obj[i].value + ','
}
}
s = s.substring(0,s.length-1)

180
src/views/modules/qc/FAIResultEntry.vue

@ -135,10 +135,14 @@
<!-- 新增检验记录 -->
<el-dialog title="新增检验记录" :close-on-click-modal="false" v-drag :visible.sync="modalFlag" width="495px">
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">
<el-form-item prop="orderNo" :rules="rules.seqNoType">
<el-form-item v-if="this.modalData.specialTaskFlag !== 'Y'" prop="orderNo" :rules="rules.seqNoType">
<span slot="label" @click="getBaseList(1052)"><a herf="#">派工单号</a></span>
<el-input v-model="modalData.seqNo" style="width: 221px"></el-input>
</el-form-item>
<el-form-item v-if="this.modalData.specialTaskFlag === 'Y'" prop="orderNo" :rules="rules.seqNoType">
<span slot="label">派工单号</span>
<el-input v-model="modalData.seqNo" disabled style="width: 221px"></el-input>
</el-form-item>
<el-form-item label="工单号" prop="orderNo" :rules="rules.orderNoType">
<el-input v-model="modalData.orderNo" style="width: 221px" disabled></el-input>
</el-form-item>
@ -154,7 +158,7 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="机台" prop="resourceId" :rules="rules.resourceIdType">
<el-form-item v-if="this.modalData.specialTaskFlag !== 'Y'" label="机台" prop="resourceId" :rules="rules.resourceIdType">
<el-select v-model="modalData.resourceId" placeholder="请选择" style="width: 221px">
<el-option
v-for = "i in resourceList"
@ -164,11 +168,19 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item v-if="this.modalData.specialTaskFlag === 'Y'" prop="resourceId" :rules="rules.resourceIdType">
<span slot="label" @click="getBaseList(205)"><a herf="#">机台</a></span>
<el-input v-model="modalData.resourceDesc" style="width: 221px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="物料编码">
<el-form-item v-if="this.modalData.specialTaskFlag !== 'Y'" label="物料编码">
<el-input v-model="modalData.partNo" readonly style="width: 221px"></el-input>
</el-form-item>
<el-form-item v-if="this.modalData.specialTaskFlag === 'Y'" :model="modalData">
<span slot="label" @click="getBaseList(206)"><a herf="#">物料编码</a></span>
<el-input v-model="modalData.partNo" style="width: 221px"></el-input>
</el-form-item>
<el-form-item label="物料名称">
<el-input v-model="modalData.partDesc" readonly style="width: 221px"></el-input>
</el-form-item>
@ -193,7 +205,10 @@
</el-form>
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="老卷号">
<el-input v-model="modalData.batchRollNo" style="width: 456px"></el-input>
<el-input v-model="modalData.batchRollNo" style="width: 221px"></el-input>
</el-form-item>
<el-form-item label="无工单检验">
<input type="checkbox" name="specialTask" v-model="checked" @click="changeSpecialTask()"/>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
@ -320,7 +335,8 @@
min-width="80"
label="子明细">
<template slot-scope="scope">
<el-button type="primary" @click="subDetailModal(scope.row) ">点击输入</el-button>
<el-button v-if="scope.row.subDetailRecordNum <= 0" type="primary" @click="subDetailModal(scope.row) ">点击输入</el-button>
<el-button v-if="scope.row.subDetailRecordNum > 0" type="success" @click="subDetailModal(scope.row) ">点击输入</el-button>
</template>
</el-table-column>
<el-table-column
@ -442,14 +458,12 @@
</el-form-item>
<el-form-item :label="'检验类型'">
<el-select v-model="templateData.inspectionTypeNo" style="width: 100px">
<el-option label="全部" value=""></el-option>
<el-option label="IPQC首检" value="101"></el-option>
<el-option label="IPQC自检" value="102"></el-option>
<el-option label="IPQC巡检" value="103"></el-option>
<el-option label="IPQC末件检" value="104"></el-option>
<el-option label="IQC检验" value="105"></el-option>
<el-option label="FAI检验" value="106"></el-option>
<el-option label="FQC检验" value="107"></el-option>
<el-option
v-for = "i in typeOptions"
:key = "i.inspectionTypeNo"
:label = "i.inspectionTypeName"
:value = "i.inspectionTypeNo">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="' '">
@ -546,6 +560,9 @@
saveFAIInspection, // FAI
queryController, //
queryTemplateList, //
getPartInformation, //
getSpecialOperationList, //
InspectionTypeSearch, //
} from "@/api/qc/qc.js";
import Chooselist from '@/views/modules/common/Chooselist_eam';
import {getFileContentList, downLoadObjectFile} from '@/api/eam/eam_object_list.js';
@ -621,7 +638,8 @@
sku: '',
specialRequirements: '',
templateId: '',
templateName: ''
templateName: '',
specialTaskFlag: ''
},
//
columnList: [
@ -1205,6 +1223,8 @@
fixed: '',
},
],
checked: false,
typeOptions: []
}
},
mounted () {
@ -1215,8 +1235,18 @@
created () {
this.getDataList()
this.favoriteIsOk()
this.InspectionTypeSearch()
},
methods: {
//
InspectionTypeSearch(){
InspectionTypeSearch().then(({data}) => {
if (data.code === 0) {
this.typeOptions = data.rows
}
})
},
// S
getBaseList (val,type) {
this.tagNo = val
@ -1226,6 +1256,14 @@
strVal = this.modalData.seqNo
this.$refs.baseList.init(val, strVal)
}
if (val === 205) {
strVal = this.modalData.resourceDesc
this.$refs.baseList.init(val, strVal)
}
if (val === 206) {
strVal = this.modalData.partNo
this.$refs.baseList.init(val, strVal)
}
})
},
@ -1239,13 +1277,24 @@
this.getOperationList()
this.getPartList()
}
if (this.tagNo === 205) {
this.modalData.resourceId = val.resource_id
this.modalData.resourceDesc = val.resource_desc
}
if (this.tagNo === 206) {
this.modalData.partNo = val.part_no
this.modalData.partDesc = val.part_desc
//
this.getPartInformation()
}
},
//
getResourceList(){
getResourceList(this.modalData).then(({data}) => {
//
getPartInformation () {
getPartInformation(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.resourceList = data.rows
this.modalData.spec = data.rows[0].spec
this.modalData.sku = data.rows[0].sku
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
@ -1254,6 +1303,24 @@
})
},
//
getResourceList(){
//
if (this.modalData.specialTaskFlag === 'Y') {
return
} else {
getResourceList(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.resourceList = data.rows
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
}
},
//
getOperationList(){
getOperationList(this.modalData).then(({data}) => {
@ -1284,6 +1351,61 @@
})
},
//
changeSpecialTask () {
//
this.modalData = {
flag: '1',
site: this.$store.state.user.site,
inspectionNo:'',
partNo: '',
partDesc: '',
inspectionTypeNo:'',
inspectionTypeName:'',
inspectorNo:'',
inspectorName:'',
submit_flag:'',
orderNo: '',
operationDesc: '',
operationNo: '',
resourceId: '',
resourceDesc: '',
rollQty: '',
seqNo: '',
batchRollNo: '',
spec: '',
sku: '',
specialRequirements: '',
templateId: '',
templateName: '',
specialTaskFlag: ''
}
//
let obj = document.getElementsByName('specialTask')
//
if (obj[0].checked) {
let tempData = {
site: this.$store.state.user.site
}
this.modalData.specialTaskFlag = 'Y'
//
getSpecialOperationList(tempData).then(({data}) => {
if (data && data.code === 0) {
this.operationList = data.rows
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
//
this.modalData.seqNo = '000#1TSGD'
this.modalData.orderNo = '000#1'
} else {
this.modalData.specialTaskFlag = ''
}
},
// FAI
saveData(){
if (this.modalData.seqNo === '' || this.modalData.seqNo == null) {
@ -1382,13 +1504,15 @@
sku: '',
specialRequirements: '',
templateId: '',
templateName: ''
};
this.operationList = [];
this.resourceList = [];
this.partList = [];
this.modalDisableFlag = false;
this.modalFlag = true;
templateName: '',
specialTaskFlag: ''
}
this.operationList = []
this.resourceList = []
this.partList = []
this.modalDisableFlag = false
this.modalFlag = true
this.checked = false
},
//
@ -1653,7 +1777,7 @@
//
detailModal(row){
this.detailData.site = this.$store.state.user.site,
this.detailData.site = this.$store.state.user.site
this.detailData.inspectionNo = row.inspectionNo
this.detailData.partNo = row.partNo
this.detailData.partDesc = row.partDesc
@ -1872,7 +1996,9 @@
this.subDetailData.subDetailValues = this.tableData
saveFAISubDetailed(this.subDetailData).then(({data}) => {
if (data && data.code === 0) {
this.getDataList()
faiDetailSearch(this.detailData).then(({data}) => {
this.detailList = data.rows
})
this.subDetailFlag = false
this.tableData = []
this.$message({

182
src/views/modules/qc/FQCResultEntry.vue

@ -133,10 +133,14 @@
<!-- 新增检验记录 -->
<el-dialog title="新增检验记录" :close-on-click-modal="false" v-drag :visible.sync="modalFlag" width="495px">
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">
<el-form-item prop="orderNo" :rules="rules.seqNoType">
<el-form-item v-if="this.modalData.specialTaskFlag !== 'Y'" prop="orderNo" :rules="rules.seqNoType">
<span slot="label" @click="getBaseList(1052)"><a herf="#">派工单号</a></span>
<el-input v-model="modalData.seqNo" style="width: 221px"></el-input>
</el-form-item>
<el-form-item v-if="this.modalData.specialTaskFlag === 'Y'" prop="orderNo" :rules="rules.seqNoType">
<span slot="label">派工单号</span>
<el-input v-model="modalData.seqNo" disabled style="width: 221px"></el-input>
</el-form-item>
<el-form-item label="工单号" prop="orderNo" :rules="rules.orderNoType">
<el-input v-model="modalData.orderNo" style="width: 221px" disabled></el-input>
</el-form-item>
@ -152,7 +156,7 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="机台" prop="resourceId" :rules="rules.resourceIdType">
<el-form-item v-if="this.modalData.specialTaskFlag !== 'Y'" label="机台" prop="resourceId" :rules="rules.resourceIdType">
<el-select v-model="modalData.resourceId" placeholder="请选择" style="width: 221px">
<el-option
v-for = "i in resourceList"
@ -162,11 +166,19 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item v-if="this.modalData.specialTaskFlag === 'Y'" prop="resourceId" :rules="rules.resourceIdType">
<span slot="label" @click="getBaseList(205)"><a herf="#">机台</a></span>
<el-input v-model="modalData.resourceDesc" style="width: 221px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="物料编码">
<el-form-item v-if="this.modalData.specialTaskFlag !== 'Y'" label="物料编码">
<el-input v-model="modalData.partNo" readonly style="width: 221px"></el-input>
</el-form-item>
<el-form-item v-if="this.modalData.specialTaskFlag === 'Y'" :model="modalData">
<span slot="label" @click="getBaseList(206)"><a herf="#">物料编码</a></span>
<el-input v-model="modalData.partNo" style="width: 221px"></el-input>
</el-form-item>
<el-form-item label="物料名称">
<el-input v-model="modalData.partDesc" readonly style="width: 221px"></el-input>
</el-form-item>
@ -191,7 +203,10 @@
</el-form>
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="老卷号">
<el-input v-model="modalData.batchRollNo" style="width: 456px"></el-input>
<el-input v-model="modalData.batchRollNo" style="width: 221px"></el-input>
</el-form-item>
<el-form-item label="无工单检验">
<input type="checkbox" name="specialTask" v-model="checked" @click="changeSpecialTask()"/>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
@ -318,7 +333,8 @@
min-width="80"
label="子明细">
<template slot-scope="scope">
<el-button type="primary" @click="subDetailModal(scope.row) ">点击输入</el-button>
<el-button v-if="scope.row.subDetailRecordNum <= 0" type="primary" @click="subDetailModal(scope.row) ">点击输入</el-button>
<el-button v-if="scope.row.subDetailRecordNum > 0" type="success" @click="subDetailModal(scope.row) ">点击输入</el-button>
</template>
</el-table-column>
<el-table-column
@ -440,14 +456,12 @@
</el-form-item>
<el-form-item :label="'检验类型'">
<el-select v-model="templateData.inspectionTypeNo" style="width: 100px">
<el-option label="全部" value=""></el-option>
<el-option label="IPQC首检" value="101"></el-option>
<el-option label="IPQC自检" value="102"></el-option>
<el-option label="IPQC巡检" value="103"></el-option>
<el-option label="IPQC末件检" value="104"></el-option>
<el-option label="IQC检验" value="105"></el-option>
<el-option label="FAI检验" value="106"></el-option>
<el-option label="FQC检验" value="107"></el-option>
<el-option
v-for = "i in typeOptions"
:key = "i.inspectionTypeNo"
:label = "i.inspectionTypeName"
:value = "i.inspectionTypeNo">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="' '">
@ -544,6 +558,9 @@
saveFQCInspection, // FQC
queryController, //
queryTemplateList, //
getPartInformation, //
getSpecialOperationList, //
InspectionTypeSearch, //
} from "@/api/qc/qc.js";
import Chooselist from '@/views/modules/common/Chooselist_eam';
import {getFileContentList, downLoadObjectFile} from '@/api/eam/eam_object_list.js';
@ -617,7 +634,8 @@
sku: '',
specialRequirements: '',
templateId: '',
templateName: ''
templateName: '',
specialTaskFlag: ''
},
//
columnList: [
@ -1201,6 +1219,8 @@
fixed: '',
},
],
checked: false,
typeOptions: []
}
},
mounted () {
@ -1211,8 +1231,18 @@
created () {
this.getDataList()
this.favoriteIsOk()
this.InspectionTypeSearch()
},
methods: {
//
InspectionTypeSearch(){
InspectionTypeSearch().then(({data}) => {
if (data.code === 0) {
this.typeOptions = data.rows
}
})
},
// S
getBaseList (val,type) {
this.tagNo = val
@ -1222,6 +1252,14 @@
strVal = this.modalData.seqNo
this.$refs.baseList.init(val, strVal)
}
if (val === 205) {
strVal = this.modalData.resourceDesc
this.$refs.baseList.init(val, strVal)
}
if (val === 206) {
strVal = this.modalData.partNo
this.$refs.baseList.init(val, strVal)
}
})
},
@ -1235,13 +1273,24 @@
this.getOperationList()
this.getPartList()
}
if (this.tagNo === 205) {
this.modalData.resourceId = val.resource_id
this.modalData.resourceDesc = val.resource_desc
}
if (this.tagNo === 206) {
this.modalData.partNo = val.part_no
this.modalData.partDesc = val.part_desc
//
this.getPartInformation()
}
},
//
getResourceList(){
getResourceList(this.modalData).then(({data}) => {
//
getPartInformation () {
getPartInformation(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.resourceList = data.rows
this.modalData.spec = data.rows[0].spec
this.modalData.sku = data.rows[0].sku
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
@ -1250,6 +1299,24 @@
})
},
//
getResourceList(){
//
if (this.modalData.specialTaskFlag === 'Y') {
return
} else {
getResourceList(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.resourceList = data.rows
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
}
},
//
getOperationList(){
getOperationList(this.modalData).then(({data}) => {
@ -1280,6 +1347,61 @@
})
},
//
changeSpecialTask () {
//
this.modalData = {
flag: '1',
site: this.$store.state.user.site,
inspectionNo:'',
partNo: '',
partDesc: '',
inspectionTypeNo:'',
inspectionTypeName:'',
inspectorNo:'',
inspectorName:'',
submit_flag:'',
orderNo: '',
operationDesc: '',
operationNo: '',
resourceId: '',
resourceDesc: '',
rollQty: '',
seqNo: '',
batchRollNo: '',
spec: '',
sku: '',
specialRequirements: '',
templateId: '',
templateName: '',
specialTaskFlag: ''
}
//
let obj = document.getElementsByName('specialTask')
//
if (obj[0].checked) {
let tempData = {
site: this.$store.state.user.site
}
this.modalData.specialTaskFlag = 'Y'
//
getSpecialOperationList(tempData).then(({data}) => {
if (data && data.code === 0) {
this.operationList = data.rows
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
//
this.modalData.seqNo = '000#1TSGD'
this.modalData.orderNo = '000#1'
} else {
this.modalData.specialTaskFlag = ''
}
},
// FAI
saveData(){
if (this.modalData.seqNo === '' || this.modalData.seqNo == null) {
@ -1378,13 +1500,15 @@
sku: '',
specialRequirements: '',
templateId: '',
templateName: ''
};
this.operationList = [];
this.resourceList = [];
this.partList = [];
this.modalDisableFlag = false;
this.modalFlag = true;
templateName: '',
specialTaskFlag: ''
}
this.operationList = []
this.resourceList = []
this.partList = []
this.modalDisableFlag = false
this.modalFlag = true
this.checked = false
},
//
@ -1669,8 +1793,8 @@
fqcDetailSearch(this.detailData).then(({data}) => {
this.detailList = data.rows
})
this.inspectorSearch();
this.detailInformationFlag = true;
this.inspectorSearch()
this.detailInformationFlag = true
},
//
@ -1870,7 +1994,9 @@
this.subDetailData.subDetailValues = this.tableData
saveFQCSubDetailed(this.subDetailData).then(({data}) => {
if (data && data.code === 0) {
this.getDataList()
fqcDetailSearch(this.detailData).then(({data}) => {
this.detailList = data.rows
})
this.subDetailFlag = false
this.tableData = []
this.$message({

218
src/views/modules/qc/IPQCResultEntry.vue

@ -143,10 +143,14 @@
<!-- 新增巡检记录 -->
<el-dialog title="新增巡检记录" :close-on-click-modal="false" v-drag :visible.sync="modalFlag" width="495px">
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">
<el-form-item prop="orderNo" :rules="rules.seqNoType">
<el-form-item v-if="this.modalData.specialTaskFlag !== 'Y'" prop="orderNo" :rules="rules.seqNoType">
<span slot="label" @click="getBaseList(1052)"><a herf="#">派工单号</a></span>
<el-input v-model="modalData.seqNo" style="width: 221px"></el-input>
</el-form-item>
<el-form-item v-if="this.modalData.specialTaskFlag === 'Y'" prop="orderNo" :rules="rules.seqNoType">
<span slot="label">派工单号</span>
<el-input v-model="modalData.seqNo" disabled style="width: 221px"></el-input>
</el-form-item>
<el-form-item label="工单号" prop="orderNo" :rules="rules.orderNoType">
<el-input v-model="modalData.orderNo" style="width: 221px" disabled></el-input>
</el-form-item>
@ -162,7 +166,7 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="机台" prop="resourceId" :rules="rules.resourceIdType">
<el-form-item v-if="this.modalData.specialTaskFlag !== 'Y'" label="机台" prop="resourceId" :rules="rules.resourceIdType">
<el-select v-model="modalData.resourceId" placeholder="请选择" style="width: 221px">
<el-option
v-for = "i in resourceList"
@ -172,28 +176,20 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item v-if="this.modalData.specialTaskFlag === 'Y'" prop="resourceId" :rules="rules.resourceIdType">
<span slot="label" @click="getBaseList(205)"><a herf="#">机台</a></span>
<el-input v-model="modalData.resourceDesc" style="width: 221px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="物料编码">
<!-- <el-select v-model="modalData.partNo" placeholder="请选择" style="width: 221px">-->
<!-- <el-option-->
<!-- v-for = "i in partList"-->
<!-- :key = "i.partNo"-->
<!-- :label = "i.partDesc"-->
<!-- :value = "i.partNo">-->
<!-- </el-option>-->
<!-- </el-select>-->
<el-form-item v-if="this.modalData.specialTaskFlag !== 'Y'" label="物料编码">
<el-input v-model="modalData.partNo" readonly style="width: 221px"></el-input>
</el-form-item>
<el-form-item v-if="this.modalData.specialTaskFlag === 'Y'" :model="modalData">
<span slot="label" @click="getBaseList(206)"><a herf="#">物料编码</a></span>
<el-input v-model="modalData.partNo" style="width: 221px"></el-input>
</el-form-item>
<el-form-item label="物料名称">
<!-- <el-select v-model="modalData.partDesc" placeholder="请选择" style="width: 221px">-->
<!-- <el-option-->
<!-- v-for = "i in partList"-->
<!-- :key = "i.partNo"-->
<!-- :label = "i.partDesc"-->
<!-- :value = "i.partNo">-->
<!-- </el-option>-->
<!-- </el-select>-->
<el-input v-model="modalData.partDesc" readonly style="width: 221px"></el-input>
</el-form-item>
</el-form>
@ -219,14 +215,19 @@
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="老卷号">
<el-input v-model="modalData.batchRollNo" style="width: 221px"></el-input>
</el-form-item>
<el-form-item>
<span v-if="this.controlData.baseData === '控制'" slot="label" @click="queryTemplateList()"><a>检验模板</a></span>
<span v-if="this.controlData.baseData === '未控制'" slot="label">检验模板</span>
<el-input v-model="modalData.templateName" disabled style="width: 221px"></el-input>
</el-form-item>
<el-form-item label="无工单检验">
<input type="checkbox" name="specialTask" v-model="checked" @click="changeSpecialTask()"/>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="老卷号">
<el-input v-model="modalData.batchRollNo" style="width: 456px"></el-input>
</el-form-item>
</el-form>
<el-form :inline="true" label-position="top" :model="modalData" style="margin-left: 7px;margin-top: -5px;">
<el-form-item label="特殊要求">
@ -341,7 +342,7 @@
:min-width="item.columnWidth"
:label="item.columnLabel">
<template slot-scope="scope">
<span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
<span v-if="!item.columnHidden">{{ scope.row[item.columnProp] }}</span>
<span v-if="item.columnImage"><img :src="scope.row[item.columnProp]" style="width: 100px; height: 80px"/></span>
</template>
</el-table-column>
@ -352,7 +353,8 @@
min-width="80"
label="子明细">
<template slot-scope="scope">
<el-button type="primary" @click="subDetailModal(scope.row) ">点击输入</el-button>
<el-button v-if="scope.row.subDetailRecordNum <= 0" type="primary" @click="subDetailModal(scope.row) ">点击输入</el-button>
<el-button v-if="scope.row.subDetailRecordNum > 0" type="success" @click="subDetailModal(scope.row) ">点击输入</el-button>
</template>
</el-table-column>
<el-table-column
@ -523,14 +525,12 @@
</el-form-item>
<el-form-item :label="'检验类型'">
<el-select v-model="templateData.inspectionTypeNo" style="width: 100px">
<el-option label="全部" value=""></el-option>
<el-option label="IPQC首检" value="101"></el-option>
<el-option label="IPQC自检" value="102"></el-option>
<el-option label="IPQC巡检" value="103"></el-option>
<el-option label="IPQC末件检" value="104"></el-option>
<el-option label="IQC检验" value="105"></el-option>
<el-option label="FAI检验" value="106"></el-option>
<el-option label="FQC检验" value="107"></el-option>
<el-option
v-for = "i in typeOptions"
:key = "i.inspectionTypeNo"
:label = "i.inspectionTypeName"
:value = "i.inspectionTypeNo">
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="' '">
@ -625,6 +625,9 @@
saveOsInspection, //
queryController, //
queryTemplateList, //
getPartInformation, //
getSpecialOperationList, //
InspectionTypeSearch, //
getOrderNoList //
} from "@/api/qc/qc.js";
import Chooselist from '@/views/modules/common/Chooselist_eam';
@ -712,7 +715,8 @@
sku: '',
specialRequirements: '',
templateId: '',
templateName: ''
templateName: '',
specialTaskFlag: ''
},
//
columnList: [
@ -1316,6 +1320,8 @@
fixed: '',
},
],
checked: false,
typeOptions: []
// orderNoData:{
// limit: 10,
// page: 1,
@ -1335,8 +1341,18 @@
created () {
this.getDataList()
this.favoriteIsOk()
this.InspectionTypeSearch()
},
methods: {
//
InspectionTypeSearch(){
InspectionTypeSearch().then(({data}) => {
if (data.code === 0) {
this.typeOptions = data.rows
}
})
},
selectFlag(){
return true;
},
@ -1456,6 +1472,14 @@
strVal = this.modalData.seqNo
this.$refs.baseList.init(val, strVal)
}
if (val === 205) {
strVal = this.modalData.resourceDesc
this.$refs.baseList.init(val, strVal)
}
if (val === 206) {
strVal = this.modalData.partNo
this.$refs.baseList.init(val, strVal)
}
})
},
@ -1469,6 +1493,30 @@
this.getOperationList()
this.getPartList()
}
if (this.tagNo === 205) {
this.modalData.resourceId = val.resource_id
this.modalData.resourceDesc = val.resource_desc
}
if (this.tagNo === 206) {
this.modalData.partNo = val.part_no
this.modalData.partDesc = val.part_desc
//
this.getPartInformation()
}
},
//
getPartInformation () {
getPartInformation(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.modalData.spec = data.rows[0].spec
this.modalData.sku = data.rows[0].sku
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
},
// //
@ -1547,15 +1595,20 @@
//
getResourceList(){
getResourceList(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.resourceList = data.rows
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
//
if (this.modalData.specialTaskFlag === 'Y') {
return
} else {
getResourceList(this.modalData).then(({data}) => {
if (data && data.code === 0) {
this.resourceList = data.rows
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
}
},
//
@ -1618,13 +1671,15 @@
sku: '',
specialRequirements: '',
templateId: '',
templateName: ''
templateName: '',
specialTaskFlag: ''
}
this.operationList = []
this.resourceList = []
this.partList = []
this.modalDisableFlag = false
this.modalFlag = true
this.checked = false
},
//
@ -1649,6 +1704,61 @@
this.templateModelFlag = false
},
//
changeSpecialTask () {
//
this.modalData = {
flag: '1',
site: this.$store.state.user.site,
inspectionNo:'',
partNo: '',
partDesc: '',
inspectionTypeNo:'',
inspectionTypeName:'',
inspectorNo:'',
inspectorName:'',
submit_flag:'',
orderNo: '',
operationDesc: '',
operationNo: '',
resourceId: '',
resourceDesc: '',
rollQty: '',
seqNo: '',
batchRollNo: '',
spec: '',
sku: '',
specialRequirements: '',
templateId: '',
templateName: '',
specialTaskFlag: ''
}
//
let obj = document.getElementsByName('specialTask')
//
if (obj[0].checked) {
let tempData = {
site: this.$store.state.user.site
}
this.modalData.specialTaskFlag = 'Y'
//
getSpecialOperationList(tempData).then(({data}) => {
if (data && data.code === 0) {
this.operationList = data.rows
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
//
this.modalData.seqNo = '000#1TSGD'
this.modalData.orderNo = '000#1'
} else {
this.modalData.specialTaskFlag = ''
}
},
// IPQC
saveData(){
if (this.modalData.seqNo === '' || this.modalData.seqNo == null) {
@ -1847,7 +1957,7 @@
//
detailModal(row){
this.detailData.site = this.$store.state.user.site,
this.detailData.site = this.$store.state.user.site
this.detailData.inspectionNo = row.inspectionNo
this.detailData.partNo = row.partNo
this.detailData.partDesc = row.partDesc
@ -1867,18 +1977,18 @@
ipqcDetailSearch(this.detailData).then(({data}) => {
this.detailList = data.rows
})
this.inspectorSearch();
this.detailInformationFlag = true;
this.inspectorSearch()
this.detailInformationFlag = true
},
//
subDetailModal(row){
this.subDetailData.inspectionNo = row.inspectionNo;
this.subDetailData.itemNo = row.itemNo;
this.subDetailData.itemDesc = row.itemDesc;
this.subDetailData.defaultValue = row.defaultValue;
this.subDetailData.maxValue = row.maxValue;
this.subDetailData.minValue = row.minValue;
this.subDetailData.inspectionNo = row.inspectionNo
this.subDetailData.itemNo = row.itemNo
this.subDetailData.itemDesc = row.itemDesc
this.subDetailData.defaultValue = row.defaultValue
this.subDetailData.maxValue = row.maxValue
this.subDetailData.minValue = row.minValue
selectIPQCSubDetailedRecord(this.subDetailData).then(({data}) => {
this.tableData = data.rows
})
@ -2066,7 +2176,9 @@
this.subDetailData.subDetailValues = this.tableData
saveIPQCSubDetailed(this.subDetailData).then(({data}) => {
if (data && data.code === 0) {
this.getDataList()
ipqcDetailSearch(this.detailData).then(({data}) => {
this.detailList = data.rows
})
this.subDetailFlag = false
this.tableData = []
this.$message({

7
src/views/modules/qc/IQCResultEntry.vue

@ -231,7 +231,8 @@
min-width="80"
label="子明细">
<template slot-scope="scope">
<el-button type="primary" @click="subDetailModal(scope.row) ">点击输入</el-button>
<el-button v-if="scope.row.subDetailRecordNum <= 0" type="primary" @click="subDetailModal(scope.row) ">点击输入</el-button>
<el-button v-if="scope.row.subDetailRecordNum > 0" type="success" @click="subDetailModal(scope.row) ">点击输入</el-button>
</template>
</el-table-column>
<el-table-column
@ -1388,7 +1389,9 @@
this.subDetailData.subDetailValues = this.tableData
saveIQCSubDetailed(this.subDetailData).then(({data}) => {
if (data && data.code === 0) {
this.getDataList()
iqcDetailSearch(this.detailData).then(({data}) => {
this.detailList = data.rows
})
this.subDetailFlag = false
this.tableData = []
this.$message({

6
src/views/modules/qc/qcPartAttribute.vue

@ -104,7 +104,7 @@
<el-dialog title="物料属性设置" :close-on-click-modal="false" v-drag :visible.sync="modalFlag" width="430px">
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;">
<el-form-item prop="partNo" :rules="rules.partNoType">
<span slot="label" @click="getBaseList(1043)"><a herf="#">物料编码:</a></span>
<span slot="label" @click="getBaseList(206)"><a herf="#">物料编码:</a></span>
<el-input v-model="modalData.partNo" style="width: 120px"></el-input>
</el-form-item>
<el-form-item label="物料名称:" prop="partDesc" :rules="rules.partDescType">
@ -968,7 +968,7 @@
this.tagNo = val
this.$nextTick(() => {
let strVal = ''
if (val === 1043) {
if (val === 206) {
strVal = this.modalData.partNo
this.$refs.baseList.init(val, strVal)
}
@ -988,7 +988,7 @@
},
/* 列表方法的回调 */
getBaseData (val) {
if (this.tagNo === 1043) {
if (this.tagNo === 206) {
this.modalData.partNo = val.part_no
this.modalData.partDesc = val.part_desc
}

Loading…
Cancel
Save