@ -27,22 +27,16 @@
< el -input v-model ="searchData.poOrderNo" clearable style="width: 150px" > < / el -input >
< el -input v-model ="searchData.poOrderNo" clearable style="width: 150px" > < / el -input >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< el -form -item :label ="'单据行号'" >
< el -form -item :label ="'单据行号'" >
< el -input v-model ="searchData.poItemNo" clearable style="width: 75 px" > < / el -input >
< el -input v-model ="searchData.poItemNo" clearable style="width: 120 px" > < / el -input >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< el -form -item :label ="'物料编码'" >
< el -form -item :label ="'物料编码'" >
< el -input v-model ="searchData.partNo" clearable style="width: 120px" > < / el -input >
< el -input v-model ="searchData.partNo" clearable style="width: 120px" > < / el -input >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< el -form -item :label ="'SKU'" >
< el -input v-model ="searchData.sku" clearable style="width: 120px" > < / el -input >
< / e l - f o r m - i t e m >
< el -form -item :label ="'物料名称'" >
< el -form -item :label ="'物料名称'" >
< el -input v-model ="searchData.partDesc" clearable style="width: 20 0px" > < / el -input >
< el -input v-model ="searchData.partDesc" clearable style="width: 210px" > < / el -input >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< / e l - f o r m >
< / e l - f o r m >
< el -form :inline ="true" label -position = " top " :model ="searchData" @keyup.enter.native ="getDataList" >
< el -form :inline ="true" label -position = " top " :model ="searchData" @keyup.enter.native ="getDataList" >
< el -form -item :label ="'PN'" >
< el -input v-model ="searchData.cinvSourceCode" clearable style="width: 120px" > < / el -input >
< / e l - f o r m - i t e m >
< el -form -item :label ="'供应商'" >
< el -form -item :label ="'供应商'" >
< el -input v-model ="searchData.supplierDesc" clearable style="width: 200px" > < / el -input >
< el -input v-model ="searchData.supplierDesc" clearable style="width: 200px" > < / el -input >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
@ -197,23 +191,33 @@
< el -input v-model ="detailData.partDesc" disabled style="width: 220px" > < / el -input >
< el -input v-model ="detailData.partDesc" disabled style="width: 220px" > < / el -input >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< el -form -item :label ="'计量单位'" >
< el -form -item :label ="'计量单位'" >
< el -input v-model ="detailData.umId" disabled style="width: 12 0px" > < / el -input >
< el -input v-model ="detailData.umId" disabled style="width: 8 0px" > < / el -input >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< el -form -item :label ="'到货数量'" >
< el -form -item :label ="'到货数量'" >
< el -input class = "numInput" v-model ="detailData.rollQty" type="number" disabled style="width: 12 0px" > < / el -input >
< el -input class = "numInput" v-model ="detailData.rollQty" type="number" disabled style="width: 8 0px" > < / el -input >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< el -form -item :label ="'送检数量'" >
< el -form -item :label ="'送检数量'" >
< el -input class = "numInput" v-model ="detailData.rollCount" type="number" style="width: 12 0px" > < / el -input >
< el -input class = "numInput" v-model ="detailData.rollCount" type="number" style="width: 8 0px" > < / el -input >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< el -form -item :label ="'抽样数量'" >
< el -form -item :label ="'抽样数量'" >
< el -input class = "numInput" v-model ="detailData.samplingQty" type="number" style="width: 12 0px" > < / el -input >
< el -input class = "numInput" v-model ="detailData.samplingQty" type="number" style="width: 8 0px" > < / el -input >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< el -form -item :label ="'不合格项目数量'" >
< el -form -item :label ="'不合格项目数量'" >
< el -input class = "numInput" v-if ="detailData.submitFlag === 'Y'" v-model="detailData.unqualifiedQty" disabled type="number" style="width: 80px" > < / el -input >
< el -input class = "numInput" v-if ="detailData.submitFlag === 'Y'" v-model="detailData.unqualifiedQty" disabled type="number" style="width: 80px" > < / el -input >
< el -input class = "numInput" v -else @input ="handleInput(detailData.unqualifiedQty,1)" v-model ="detailData.unqualifiedQty" type="number" style="width: 80px" > < / el -input >
< el -input class = "numInput" v -else @input ="handleInput(detailData.unqualifiedQty,1)" v-model ="detailData.unqualifiedQty" type="number" style="width: 80px" > < / el -input >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< el -form -item : label = "' '" style = "margin-left: 38px" >
< el -button v-if ="detailData.submitFlag !== 'Y'" type="primary" :loading="loadFlag" @click="dataAcquisition" > 数据采集 < / el -button >
< el -form -item :label ="'合格数量'" >
< el -input class = "numInput" v-if ="detailData.submitFlag === 'Y'" v-model="detailData.passQty" disabled type="number" style="width: 80px" > < / el -input >
< el -input class = "numInput" v -else @input ="handleInput(detailData.passQty,2)" v-model ="detailData.passQty" type="number" style="width: 80px" > < / el -input >
< / e l - f o r m - i t e m >
< el -form -item :label ="'不合格数量'" >
< el -input class = "numInput" v-model ="detailData.notPassQty" type="number" disabled style="width: 80px" > < / el -input >
< / e l - f o r m - i t e m >
<!-- < el -form -item : label = "' '" style = "margin-left: 38px" > -- >
<!-- < el -button v-if ="detailData.submitFlag !== 'Y'" type="primary" :loading="loadFlag" @click="dataAcquisition" > 数据采集 < / el -button > -- >
<!-- < / e l - f o r m - i t e m > - - >
< el -form -item : label = "' '" style = "margin-left: 25px" >
< el -button type = "primary" @click ="addUploadFileModal" > 上传文件 < / el -button >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< / e l - f o r m >
< / e l - f o r m >
< el -form :inline ="true" label -position = " top " >
< el -form :inline ="true" label -position = " top " >
@ -228,8 +232,8 @@
< / e l - s e l e c t >
< / e l - s e l e c t >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< el -form -item :label ="'质检备注'" >
< el -form -item :label ="'质检备注'" >
< el -input v-if ="detailData.submitFlag === 'Y'" v-model="detailData.inspectionRemark" disabled style="width: 28 0px" > < / el -input >
< el -input v -else v-model ="detailData.inspectionRemark" style="width: 28 0px" > < / el -input >
< el -input v-if ="detailData.submitFlag === 'Y'" v-model="detailData.inspectionRemark" disabled style="width: 31 0px" > < / el -input >
< el -input v -else v-model ="detailData.inspectionRemark" style="width: 31 0px" > < / el -input >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< el -form -item label = "检验员" >
< el -form -item label = "检验员" >
< el -select v-if ="detailData.submitFlag === 'Y'" v-model="detailData.inspectorNo" disabled placeholder="请选择" style="width: 100px" >
< el -select v-if ="detailData.submitFlag === 'Y'" v-model="detailData.inspectorNo" disabled placeholder="请选择" style="width: 100px" >
@ -259,8 +263,7 @@
< span v -else style = "cursor: pointer" slot = "label" @click ="getResponsiblePersonList" > < a > 责任人 < / a > < / span >
< span v -else style = "cursor: pointer" slot = "label" @click ="getResponsiblePersonList" > < a > 责任人 < / a > < / span >
< el -input v-model ="detailData.responsiblePersonName" readonly style="width: 224px" > < / el -input >
< el -input v-model ="detailData.responsiblePersonName" readonly style="width: 224px" > < / el -input >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< el -form -item : label = "' '" >
< el -button type = "primary" @click ="addUploadFileModal" > 上传文件 < / el -button >
< el -form -item : label = "' '" style = "margin-left: 20px" >
< el -button type = "primary" icon = "el-icon-upload" @click ="subDetailUpload" > 明细导入 < / el -button >
< el -button type = "primary" icon = "el-icon-upload" @click ="subDetailUpload" > 明细导入 < / el -button >
< / e l - f o r m - i t e m >
< / e l - f o r m - i t e m >
< / e l - f o r m >
< / e l - f o r m >
@ -599,6 +602,12 @@
subDetailUpload
subDetailUpload
} ,
} ,
watch : {
watch : {
detailData : {
deep : true ,
handler : function ( newV , oldV ) {
this . detailData . notPassQty = this . detailData . samplingQty - this . detailData . passQty
}
} ,
detailList : {
detailList : {
deep : true ,
deep : true ,
handler : function ( newV , oldV ) {
handler : function ( newV , oldV ) {
@ -646,8 +655,6 @@
endDate2 : '' ,
endDate2 : '' ,
partNo : '' ,
partNo : '' ,
partDesc : '' ,
partDesc : '' ,
cinvSourceCode : '' ,
sku : '' ,
state : '' ,
state : '' ,
inspectionResult : '' ,
inspectionResult : '' ,
supplierDesc : '' ,
supplierDesc : '' ,
@ -677,7 +684,6 @@
workOrderQuantity : '' ,
workOrderQuantity : '' ,
reelNumber : '' ,
reelNumber : '' ,
partNo : '' ,
partNo : '' ,
cinvSourceCode : '' ,
rollingQuantity : '' ,
rollingQuantity : '' ,
sampleQuantity : '' ,
sampleQuantity : '' ,
detailCodeNo : '' ,
detailCodeNo : '' ,
@ -836,42 +842,6 @@
fixed : '' ,
fixed : '' ,
columnWidth : 150 ,
columnWidth : 150 ,
} ,
} ,
{
userId : this . $store . state . user . name ,
functionId : 301006 ,
serialNumber : '301006Table1SKU' ,
tableId : "301006Table1" ,
tableName : "IQC检验记录表" ,
columnProp : 'sku' ,
headerAlign : "center" ,
align : "center" ,
columnLabel : 'SKU' ,
columnHidden : false ,
columnImage : false ,
columnSortable : false ,
sortLv : 0 ,
status : true ,
fixed : '' ,
columnWidth : 100 ,
} ,
{
userId : this . $store . state . user . name ,
functionId : 301006 ,
serialNumber : '301006Table1CinvSourceCode' ,
tableId : "301006Table1" ,
tableName : "IQC检验记录表" ,
columnProp : 'cinvSourceCode' ,
headerAlign : "center" ,
align : "center" ,
columnLabel : 'PN' ,
columnHidden : false ,
columnImage : false ,
columnSortable : false ,
sortLv : 0 ,
status : true ,
fixed : '' ,
columnWidth : 100 ,
} ,
{
{
userId : this . $store . state . user . name ,
userId : this . $store . state . user . name ,
functionId : 301006 ,
functionId : 301006 ,
@ -1234,6 +1204,24 @@
fixed : '' ,
fixed : '' ,
columnWidth : 150 ,
columnWidth : 150 ,
} ,
} ,
{
userId : this . $store . state . user . name ,
functionId : 301006 ,
serialNumber : '301006Table2DefectLevelDescription' ,
tableId : "301006Table2" ,
tableName : "检验单明细表" ,
columnProp : 'defectLevelDescription' ,
headerAlign : "center" ,
align : "center" ,
columnLabel : '缺陷等级名称' ,
columnHidden : false ,
columnImage : false ,
columnSortable : false ,
sortLv : 0 ,
status : true ,
fixed : '' ,
columnWidth : 150 ,
} ,
{
{
userId : this . $store . state . user . name ,
userId : this . $store . state . user . name ,
functionId : 301006 ,
functionId : 301006 ,
@ -1435,8 +1423,6 @@
inspectionNo : '' ,
inspectionNo : '' ,
partNo : '' ,
partNo : '' ,
partDesc : '' ,
partDesc : '' ,
cinvSourceCode : '' ,
sku : '' ,
rollQty : '' ,
rollQty : '' ,
samplingQty : '' ,
samplingQty : '' ,
unqualifiedQty : 0 ,
unqualifiedQty : 0 ,
@ -1455,14 +1441,15 @@
operator : '' ,
operator : '' ,
operatorName : '' ,
operatorName : '' ,
responsiblePerson : '' ,
responsiblePerson : '' ,
responsiblePersonName : ''
responsiblePersonName : '' ,
passQty : '' ,
notPassQty : ''
} ,
} ,
detailInformationFlag : false ,
detailInformationFlag : false ,
detailList : [ ] ,
detailList : [ ] ,
saveInformationData : {
saveInformationData : {
site : '' ,
site : '' ,
buNo : '' ,
buNo : '' ,
cinvSourceCode : '' ,
inspectionNo : '' ,
inspectionNo : '' ,
disposalMeasures : '' ,
disposalMeasures : '' ,
disposalRemark : '' ,
disposalRemark : '' ,
@ -1476,12 +1463,13 @@
poItemNo : '' ,
poItemNo : '' ,
partNo : '' ,
partNo : '' ,
partDesc : '' ,
partDesc : '' ,
sku : '' ,
operator : '' ,
operator : '' ,
operatorName : '' ,
operatorName : '' ,
responsiblePerson : '' ,
responsiblePerson : '' ,
responsiblePersonName : '' ,
responsiblePersonName : '' ,
subDetailList : [ ]
subDetailList : [ ] ,
passQty : '' ,
notPassQty : ''
} ,
} ,
/ / 子 明 细 数 据 对 象
/ / 子 明 细 数 据 对 象
tableData : [ ] ,
tableData : [ ] ,
@ -1849,6 +1837,8 @@
}
}
if ( type === 1 ) {
if ( type === 1 ) {
this . detailData . unqualifiedQty = val
this . detailData . unqualifiedQty = val
} else if ( type === 2 ) {
this . detailData . passQty = val
}
}
} ,
} ,
@ -2115,10 +2105,11 @@
this . saveInformationData . poItemNo = this . detailData . poItemNo
this . saveInformationData . poItemNo = this . detailData . poItemNo
this . saveInformationData . partNo = this . detailData . partNo
this . saveInformationData . partNo = this . detailData . partNo
this . saveInformationData . partDesc = this . detailData . partDesc
this . saveInformationData . partDesc = this . detailData . partDesc
this . saveInformationData . sku = this . detailData . sku
this . saveInformationData . operator = this . detailData . operator
this . saveInformationData . operator = this . detailData . operator
this . saveInformationData . responsiblePerson = this . detailData . responsiblePerson
this . saveInformationData . responsiblePerson = this . detailData . responsiblePerson
this . saveInformationData . itemList = JSON . parse ( JSON . stringify ( this . detailList ) )
this . saveInformationData . itemList = JSON . parse ( JSON . stringify ( this . detailList ) )
this . saveInformationData . passQty = this . detailData . passQty
this . saveInformationData . notPassQty = this . detailData . notPassQty
/ / t h i s . s a v e I n f o r m a t i o n D a t a . s u b D e t a i l L i s t = t h i s . a c q u i s i t i o n L i s t
/ / t h i s . s a v e I n f o r m a t i o n D a t a . s u b D e t a i l L i s t = t h i s . a c q u i s i t i o n L i s t
saveIQCDetailedRecord ( this . saveInformationData ) . then ( ( { data } ) => {
saveIQCDetailedRecord ( this . saveInformationData ) . then ( ( { data } ) => {
if ( data && data . code === 0 ) {
if ( data && data . code === 0 ) {
@ -2177,8 +2168,6 @@
this . detailData . inspectionNo = row . inspectionNo
this . detailData . inspectionNo = row . inspectionNo
this . detailData . partNo = row . partNo
this . detailData . partNo = row . partNo
this . detailData . partDesc = row . partDesc
this . detailData . partDesc = row . partDesc
this . detailData . cinvSourceCode = row . cinvSourceCode
this . detailData . sku = row . sku
this . detailData . rollQty = row . rollQty
this . detailData . rollQty = row . rollQty
this . detailData . samplingQty = row . samplingQty
this . detailData . samplingQty = row . samplingQty
this . detailData . unqualifiedQty = row . unqualifiedQty
this . detailData . unqualifiedQty = row . unqualifiedQty
@ -2197,6 +2186,8 @@
this . detailData . operatorName = row . operatorName
this . detailData . operatorName = row . operatorName
this . detailData . responsiblePerson = row . responsiblePerson
this . detailData . responsiblePerson = row . responsiblePerson
this . detailData . responsiblePersonName = row . responsiblePersonName
this . detailData . responsiblePersonName = row . responsiblePersonName
this . detailData . passQty = row . passQty
this . detailData . notPassQty = row . notPassQty
this . getInspectionFormData ( )
this . getInspectionFormData ( )
this . inspectorSearch ( )
this . inspectorSearch ( )
/ / t h i s . a c q u i s i t i o n L i s t = [ ]
/ / t h i s . a c q u i s i t i o n L i s t = [ ]