|
|
|
@ -26,17 +26,8 @@ |
|
|
|
<el-form-item :label="'物料编码'"> |
|
|
|
<el-input v-model="searchData.partNo" clearable style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'SKU'"> |
|
|
|
<el-input v-model="searchData.sku" clearable style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'物料名称'"> |
|
|
|
<el-input v-model="searchData.partDesc" clearable style="width: 200px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'检验结论'"> |
|
|
|
<el-select v-model="searchData.inspectionResult" clearable style="width: 80px"> |
|
|
|
<el-option label="合格" value="合格"></el-option> |
|
|
|
<el-option label="不合格" value="不合格"></el-option> |
|
|
|
</el-select> |
|
|
|
<el-input v-model="searchData.partDesc" clearable style="width: 285px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'检验类型'"> |
|
|
|
<el-select v-model="searchData.inspectionTypeNo" clearable style="width: 100px"> |
|
|
|
@ -46,6 +37,14 @@ |
|
|
|
<el-option label="IPQC末件检" value="104"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" :model="searchData" @keyup.enter.native="getDataList"> |
|
|
|
<el-form-item :label="'检验结论'"> |
|
|
|
<el-select v-model="searchData.inspectionResult" clearable style="width: 80px"> |
|
|
|
<el-option label="合格" value="合格"></el-option> |
|
|
|
<el-option label="不合格" value="不合格"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'处置措施'"> |
|
|
|
<el-select v-model="searchData.disposalMeasures" clearable style="width: 90px"> |
|
|
|
<el-option |
|
|
|
@ -56,16 +55,11 @@ |
|
|
|
</el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<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> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'工单号'"> |
|
|
|
<el-input v-model="searchData.orderNo" clearable style="width: 137px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'派工单号'"> |
|
|
|
<el-input v-model="searchData.seqNo" clearable style="width: 167px"></el-input> |
|
|
|
<el-input v-model="searchData.seqNo" clearable style="width: 173px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'工序'"> |
|
|
|
<el-input v-model="searchData.operationDesc" clearable style="width: 108px"></el-input> |
|
|
|
@ -245,16 +239,13 @@ |
|
|
|
<el-form-item v-else label="物料编码" prop="partNo" :rules="rules.partNoType"> |
|
|
|
<el-input v-model="modalData.partNo" readonly 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> |
|
|
|
</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.spec" readonly style="width: 221px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="SKU"> |
|
|
|
<el-input v-model="modalData.sku" readonly style="width: 221px"></el-input> |
|
|
|
</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.partDesc" readonly style="width: 456px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" :model="modalData" :rules="rules" style="margin-left: 7px;margin-top: -5px;"> |
|
|
|
@ -293,11 +284,6 @@ |
|
|
|
<input type="checkbox" id="specialTask" name="specialTask" v-model="checked" @click="changeSpecialTask"/> <label for="specialTask">无工单检验</label> |
|
|
|
</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="特殊要求"> |
|
|
|
<el-input type="textarea" v-model="modalData.specialRequirements" :rows="3" resize='none' show-word-limit style="width: 456px;height: 30px"></el-input> |
|
|
|
@ -318,12 +304,6 @@ |
|
|
|
<el-form-item :label="'物料类别'"> |
|
|
|
<el-input v-model="detailData.spec" readonly style="width: 200px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'PN'"> |
|
|
|
<el-input v-model="detailData.cinvSourceCode" readonly style="width: 100px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'SKU'"> |
|
|
|
<el-input v-model="detailData.sku" readonly style="width: 100px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'物料名称'"> |
|
|
|
<el-input v-model="detailData.partDesc" readonly style="width: 200px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
@ -336,15 +316,19 @@ |
|
|
|
<el-form-item :label="'单位'"> |
|
|
|
<el-input v-model="detailData.umName" readonly style="width: 80px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<el-button v-if="detailData.submitFlag !== 'Y'" type="primary" :loading="loadFlag" @click="dataAcquisition">数据采集</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" @keyup.enter.native = "getDataList"> |
|
|
|
<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-else @input="handleInput(detailData.unqualifiedQty,1)" v-model="detailData.unqualifiedQty" type="number" style="width: 80px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<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> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'不合格数量'"> |
|
|
|
<el-input class="numInput" v-model="detailData.notPassQty" type="number" disabled style="width: 80px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top" @keyup.enter.native = "getDataList"> |
|
|
|
<el-form-item :label="'检验结论'"> |
|
|
|
<el-select v-if="detailData.submitFlag === 'Y'" v-model="detailData.inspectionResult" disabled style="width: 100px" placeholder="请选择"> |
|
|
|
<el-option label="合格" value="合格"></el-option> |
|
|
|
@ -356,8 +340,8 @@ |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'质检备注'"> |
|
|
|
<el-input v-if="detailData.submitFlag === 'Y'" v-model="detailData.inspectionRemark" disabled style="width: 280px"></el-input> |
|
|
|
<el-input v-else v-model="detailData.inspectionRemark" style="width: 280px"></el-input> |
|
|
|
<el-input v-if="detailData.submitFlag === 'Y'" v-model="detailData.inspectionRemark" disabled style="width: 303px"></el-input> |
|
|
|
<el-input v-else v-model="detailData.inspectionRemark" style="width: 303px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="检验员"> |
|
|
|
<el-select v-if="detailData.submitFlag === 'Y'" v-model="detailData.inspectorNo" disabled placeholder="请选择" style="width: 100px"> |
|
|
|
@ -388,7 +372,8 @@ |
|
|
|
<el-input v-model="detailData.responsiblePersonName" readonly style="width: 173px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<el-button type="primary" @click="addUploadFileModal">上传文件</el-button> |
|
|
|
<el-button type="primary" @click="getFileContentData(detailData)">工作文件</el-button> |
|
|
|
<!-- <el-button type="primary" @click="addUploadFileModal">上传文件</el-button>--> |
|
|
|
<el-button type="primary" icon="el-icon-upload" @click="subDetailUpload">明细导入</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
@ -567,13 +552,12 @@ |
|
|
|
<el-form-item label="派工单号"> |
|
|
|
<el-input v-model="seqDetailData.seqNo" clearable style="width: 150px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="SKU"> |
|
|
|
<el-input v-model="seqDetailData.sku" clearable style="width: 150px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="状态"> |
|
|
|
<el-select v-model="seqDetailData.status" style="width: 100px" placeholder="请选择"> |
|
|
|
<el-option label="下达" value="下达"></el-option> |
|
|
|
<el-option label="关闭" value="关闭"></el-option> |
|
|
|
<el-option label="已计划" value="已计划"></el-option> |
|
|
|
<el-option label="已下达" value="已下达"></el-option> |
|
|
|
<el-option label="已取消" value="已取消"></el-option> |
|
|
|
<el-option label="已关闭" value="已关闭"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
@ -695,12 +679,6 @@ |
|
|
|
<el-form-item :label="'物料名称'"> |
|
|
|
<el-input v-model="partData.partDesc" clearable style="width: 115px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'SKU'"> |
|
|
|
<el-input v-model="partData.sku" clearable style="width: 79px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'PN'"> |
|
|
|
<el-input v-model="partData.cinvSourceCode" clearable style="width: 79px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<el-button type="primary" @click="queryPartList">查询</el-button> |
|
|
|
</el-form-item> |
|
|
|
@ -735,6 +713,11 @@ |
|
|
|
|
|
|
|
<!-- 文件清单 --> |
|
|
|
<el-dialog title="文件清单" :close-on-click-modal="false" v-drag :visible.sync="fileFlag" width="800px"> |
|
|
|
<el-form :inline="true" label-position="top"> |
|
|
|
<el-form-item v-if="detailInformationFlag"> |
|
|
|
<el-button type="primary" @click="addUploadFileModal">上传文件</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-table |
|
|
|
:height="350" |
|
|
|
:data="fileContentList" |
|
|
|
@ -833,7 +816,7 @@ |
|
|
|
<Chooselist ref="baseList" @getBaseData="getBaseData"></Chooselist> |
|
|
|
|
|
|
|
<!-- 上传文件的modal --> |
|
|
|
<qcFAIUploadFile ref="qcFAIUploadFile" @refreshPageTables="getDataList" v-drag></qcFAIUploadFile> |
|
|
|
<qcFAIUploadFile ref="qcFAIUploadFile" @refreshPageTables="()=>{this.getFileContentData(this.detailData)}" v-drag></qcFAIUploadFile> |
|
|
|
|
|
|
|
<!-- 上传文件的modal --> |
|
|
|
<comQcItemImageUploadFile ref="comQcItemImageUploadFile" @refreshPageTables2="getInspectionFormData" v-drag></comQcItemImageUploadFile> |
|
|
|
@ -893,6 +876,12 @@ |
|
|
|
subDetailUpload |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
detailData: { |
|
|
|
deep: true, |
|
|
|
handler: function (newV, oldV) { |
|
|
|
this.detailData.notPassQty = this.detailData.samplingQty - this.detailData.passQty |
|
|
|
} |
|
|
|
}, |
|
|
|
detailList: { |
|
|
|
deep: true, |
|
|
|
handler: function (newV, oldV) { |
|
|
|
@ -948,8 +937,6 @@ |
|
|
|
inspectionTypeNo: '', |
|
|
|
partNo: '', |
|
|
|
partDesc: '', |
|
|
|
cinvSourceCode: '', |
|
|
|
sku: '', |
|
|
|
disposalMeasures: '', |
|
|
|
page: 1, |
|
|
|
limit: 10, |
|
|
|
@ -981,10 +968,7 @@ |
|
|
|
resourceDesc: '', |
|
|
|
rollQty: '', |
|
|
|
seqNo: '', |
|
|
|
batchRollNo: '', |
|
|
|
spec: '', |
|
|
|
sku: '', |
|
|
|
cinvSourceCode: '', |
|
|
|
qtyrequired: '', |
|
|
|
lotsize:'', |
|
|
|
specialRequirements: '', |
|
|
|
@ -1035,24 +1019,6 @@ |
|
|
|
fixed: '', |
|
|
|
columnWidth: 120, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301014, |
|
|
|
serialNumber: '301014Table1BatchRollNo', |
|
|
|
tableId: "301014Table1", |
|
|
|
tableName: "IPQC检验记录表", |
|
|
|
columnProp: 'batchRollNo', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: '老卷号', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301014, |
|
|
|
@ -1269,42 +1235,6 @@ |
|
|
|
fixed: '', |
|
|
|
columnWidth: 150, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301014, |
|
|
|
serialNumber: '301014Table1cinvSourceCode', |
|
|
|
tableId: "301014Table1", |
|
|
|
tableName: "IPQC检验记录表", |
|
|
|
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, |
|
|
|
functionId: 301014, |
|
|
|
serialNumber: '301014Table1Sku', |
|
|
|
tableId: "301014Table1", |
|
|
|
tableName: "IPQC检验记录表", |
|
|
|
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: 301014, |
|
|
|
@ -1313,7 +1243,7 @@ |
|
|
|
tableName: "IPQC检验记录表", |
|
|
|
columnProp: 'partDesc', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '物料名称', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
@ -1385,7 +1315,7 @@ |
|
|
|
tableName: "IPQC检验记录表", |
|
|
|
columnProp: 'inspectionRemark', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '质检备注', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
@ -1504,15 +1434,15 @@ |
|
|
|
inspectorName: '', |
|
|
|
inspectionRemark: '', |
|
|
|
submitFlag: '', |
|
|
|
cinvSourceCode: '', |
|
|
|
sku: '', |
|
|
|
spec: '', |
|
|
|
umId: '', |
|
|
|
umName: '', |
|
|
|
operator: '', |
|
|
|
operatorName: '', |
|
|
|
responsiblePerson: '', |
|
|
|
responsiblePersonName: '' |
|
|
|
responsiblePersonName: '', |
|
|
|
passQty: '', |
|
|
|
notPassQty: '' |
|
|
|
}, |
|
|
|
detailInformationFlag: false, |
|
|
|
detailList: [], |
|
|
|
@ -1534,7 +1464,9 @@ |
|
|
|
operatorName: '', |
|
|
|
responsiblePerson: '', |
|
|
|
responsiblePersonName: '', |
|
|
|
subDetailList: [] |
|
|
|
subDetailList: [], |
|
|
|
passQty: '', |
|
|
|
notPassQty: '' |
|
|
|
}, |
|
|
|
detailColumnList: [ |
|
|
|
{ |
|
|
|
@ -1846,14 +1778,12 @@ |
|
|
|
seqDetailData: { |
|
|
|
orderNo: '', |
|
|
|
seqNo: '', |
|
|
|
sku: '', |
|
|
|
cinvSourceCode:'', |
|
|
|
partNo: '', |
|
|
|
partDesc: '', |
|
|
|
operationDesc: '', |
|
|
|
qtyrequired: '', |
|
|
|
lotsize: '', |
|
|
|
status: '下达' |
|
|
|
status: '已下达' |
|
|
|
}, |
|
|
|
seqDetailColumnList: [ |
|
|
|
{ |
|
|
|
@ -1892,24 +1822,6 @@ |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301014, |
|
|
|
serialNumber: '301014Table3Sku', |
|
|
|
tableId: "301014Table3", |
|
|
|
tableName: "派工单号表", |
|
|
|
fixed: '', |
|
|
|
columnWidth: 80, |
|
|
|
columnProp: 'sku', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: 'SKU', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301014, |
|
|
|
@ -2116,8 +2028,6 @@ |
|
|
|
bu: '', |
|
|
|
partNo: '', |
|
|
|
partDesc: '', |
|
|
|
sku: '', |
|
|
|
cinvSourceCode: '', |
|
|
|
}, |
|
|
|
templateList: [], |
|
|
|
templateModelFlag: false, |
|
|
|
@ -2184,30 +2094,6 @@ |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'sku', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: 'SKU', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
}, |
|
|
|
{ |
|
|
|
columnProp: 'cinvSourceCode', |
|
|
|
headerAlign: "center", |
|
|
|
align: "center", |
|
|
|
columnLabel: 'PN', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
} |
|
|
|
], |
|
|
|
checked: false, |
|
|
|
typeOptions: [], |
|
|
|
@ -2525,8 +2411,6 @@ |
|
|
|
this.modalData.partNo = '' |
|
|
|
this.modalData.partDesc = '' |
|
|
|
this.modalData.spec = '' |
|
|
|
this.modalData.sku = '' |
|
|
|
this.modalData.cinvSourceCode = '' |
|
|
|
this.modalData.templateId = '' |
|
|
|
this.modalData.templateName = '' |
|
|
|
} |
|
|
|
@ -2553,6 +2437,8 @@ |
|
|
|
} |
|
|
|
if (type === 1) { |
|
|
|
this.detailData.unqualifiedQty = val |
|
|
|
} else if (type === 2) { |
|
|
|
this.detailData.passQty = val |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
@ -2602,8 +2488,6 @@ |
|
|
|
this.modalData.partNo = data.rows[0].partNo |
|
|
|
this.modalData.partDesc = data.rows[0].partDesc |
|
|
|
this.modalData.spec = data.rows[0].spec |
|
|
|
this.modalData.sku = data.rows[0].sku |
|
|
|
this.modalData.cinvSourceCode = data.rows[0].cinvSourceCode |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
@ -2776,7 +2660,8 @@ |
|
|
|
deleteFile (row) { |
|
|
|
let tempData = { |
|
|
|
site: row.orderRef1, |
|
|
|
inspectionNo: row.orderRef2 |
|
|
|
inspectionNo: row.orderRef2, |
|
|
|
buNo: row.orderRef4 |
|
|
|
} |
|
|
|
this.$confirm('确定要删除此文件?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
@ -2858,7 +2743,6 @@ |
|
|
|
// 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: '确定' |
|
|
|
@ -2879,8 +2763,6 @@ |
|
|
|
this.modalData.partNo = data.rows[0].partNo |
|
|
|
this.modalData.partDesc = data.rows[0].partDesc |
|
|
|
this.modalData.spec = data.rows[0].spec |
|
|
|
this.modalData.sku = data.rows[0].sku |
|
|
|
this.modalData.cinvSourceCode = data.rows[0].cinvSourceCode |
|
|
|
this.modalData.operationDesc = data.rows[0].operationDesc |
|
|
|
this.modalData.qtyrequired = data.rows[0].qtyrequired |
|
|
|
this.modalData.lotsize = data.rows[0].lotsize |
|
|
|
@ -2921,8 +2803,6 @@ |
|
|
|
this.modalData.partNo = this.partList[0].partNo |
|
|
|
this.modalData.partDesc = this.partList[0].partDesc |
|
|
|
this.modalData.spec = this.partList[0].spec |
|
|
|
this.modalData.sku = this.partList[0].sku |
|
|
|
this.modalData.cinvSourceCode = this.partList[0].cinvSourceCode |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
@ -2968,10 +2848,7 @@ |
|
|
|
resourceDesc: '', |
|
|
|
rollQty: '', |
|
|
|
seqNo: '', |
|
|
|
batchRollNo: '', |
|
|
|
spec: '', |
|
|
|
sku: '', |
|
|
|
cinvSourceCode: '', |
|
|
|
specialRequirements: '', |
|
|
|
templateId: '', |
|
|
|
templateName: '', |
|
|
|
@ -3010,7 +2887,7 @@ |
|
|
|
queryPartList () { |
|
|
|
this.partData.bu = this.modalData.bu |
|
|
|
// 查询所有物料 |
|
|
|
if (this.partData.partNo === '' && this.partData.partDesc === '' && this.partData.sku === '' && this.partData.cinvSourceCode === '') { |
|
|
|
if (this.partData.partNo === '' && this.partData.partDesc === '') { |
|
|
|
this.partList = [] |
|
|
|
this.partModelFlag = true |
|
|
|
} else { |
|
|
|
@ -3036,7 +2913,6 @@ |
|
|
|
|
|
|
|
// 选中派工单号 |
|
|
|
getRowData1 (row) { |
|
|
|
this.modalData.sku = row.sku |
|
|
|
this.modalData.partNo = row.partNo |
|
|
|
this.modalData.partDesc = row.partDesc |
|
|
|
this.modalData.orderNo = row.orderNo |
|
|
|
@ -3055,16 +2931,12 @@ |
|
|
|
getRowData2 (row) { |
|
|
|
this.modalData.partNo = row.partNo |
|
|
|
this.modalData.partDesc = row.partDesc |
|
|
|
this.modalData.sku = row.sku |
|
|
|
this.modalData.spec = row.spec |
|
|
|
this.modalData.cinvSourceCode = row.cinvSourceCode |
|
|
|
this.partData = { |
|
|
|
site: '', |
|
|
|
bu: '', |
|
|
|
partNo: '', |
|
|
|
partDesc: '', |
|
|
|
sku: '', |
|
|
|
cinvSourceCode: '', |
|
|
|
} |
|
|
|
this.partModelFlag = false |
|
|
|
}, |
|
|
|
@ -3091,10 +2963,7 @@ |
|
|
|
resourceDesc: '', |
|
|
|
rollQty: '', |
|
|
|
seqNo: '', |
|
|
|
batchRollNo: '', |
|
|
|
spec: '', |
|
|
|
sku: '', |
|
|
|
cinvSourceCode: '', |
|
|
|
specialRequirements: '', |
|
|
|
templateId: '', |
|
|
|
templateName: '', |
|
|
|
@ -3312,6 +3181,8 @@ |
|
|
|
this.saveInformationData.operator = this.detailData.operator |
|
|
|
this.saveInformationData.responsiblePerson = this.detailData.responsiblePerson |
|
|
|
this.saveInformationData.itemList = JSON.parse(JSON.stringify(this.detailList)) |
|
|
|
this.saveInformationData.passQty = this.detailData.passQty == null ? 0 : this.detailData.passQty |
|
|
|
this.saveInformationData.notPassQty = this.detailData.notPassQty == null ? 0 : this.detailData.notPassQty |
|
|
|
// this.saveInformationData.subDetailList = this.acquisitionList |
|
|
|
saveIPQCDetailedRecord(this.saveInformationData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
@ -3382,9 +3253,6 @@ |
|
|
|
this.detailData.inspectorNo = row.inspectorNo |
|
|
|
this.detailData.inspectorName = row.inspectorName |
|
|
|
this.detailData.inspectionRemark = row.inspectionRemark |
|
|
|
this.detailData.cinvSourceCode = row.cinvSourceCode |
|
|
|
this.detailData.sku = row.sku |
|
|
|
this.detailData.cinvSourceCode = row.cinvSourceCode |
|
|
|
this.detailData.spec = row.spec |
|
|
|
this.detailData.umId = row.umId |
|
|
|
this.detailData.umName = row.umName |
|
|
|
@ -3392,6 +3260,8 @@ |
|
|
|
this.detailData.operatorName = row.operatorName |
|
|
|
this.detailData.responsiblePerson = row.responsiblePerson |
|
|
|
this.detailData.responsiblePersonName = row.responsiblePersonName |
|
|
|
this.detailData.passQty = row.passQty |
|
|
|
this.detailData.notPassQty = row.notPassQty |
|
|
|
this.getInspectionFormData() |
|
|
|
this.inspectorSearch() |
|
|
|
// this.acquisitionList = [] |
|
|
|
@ -3802,13 +3672,12 @@ |
|
|
|
site: this.modalData.bu.at(0), |
|
|
|
seqNo: this.seqDetailData.seqNo, |
|
|
|
orderNo: this.seqDetailData.orderNo, |
|
|
|
sku: this.seqDetailData.sku, |
|
|
|
partDesc: this.seqDetailData.partDesc, |
|
|
|
partNo: this.seqDetailData.partNo, |
|
|
|
operationDesc: this.seqDetailData.operationDesc, |
|
|
|
status: this.seqDetailData.status |
|
|
|
} |
|
|
|
if (!this.seqDetailData.seqNo && !this.seqDetailData.orderNo && !this.seqDetailData.sku && !this.seqDetailData.partNo && !this.seqDetailData.partDesc && !this.seqDetailData.operationDesc){ |
|
|
|
if (!this.seqDetailData.seqNo && !this.seqDetailData.orderNo && !this.seqDetailData.partNo && !this.seqDetailData.partDesc && !this.seqDetailData.operationDesc){ |
|
|
|
this.seqInfoList = [] |
|
|
|
} else { |
|
|
|
searchSeqInfo(tempData).then(({data}) => { |
|
|
|
@ -3826,11 +3695,10 @@ |
|
|
|
this.seqDetailData = { |
|
|
|
seqNo : '', |
|
|
|
orderNo: '', |
|
|
|
sku: '', |
|
|
|
partNo: '', |
|
|
|
partDesc: '', |
|
|
|
operationDesc: '', |
|
|
|
status: '下达' |
|
|
|
status: '已下达' |
|
|
|
} |
|
|
|
this.seqInfoList = [] |
|
|
|
}, |
|
|
|
|