|
|
|
@ -438,15 +438,6 @@ |
|
|
|
<el-input v-model="iqcRecordOverPartDesc" disabled style="width: 230px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-form :inline="true" label-position="top"> |
|
|
|
<el-form-item :label="'供应商编码'"> |
|
|
|
<span slot="label" @click="getManufacturerList()"><a herf="#">供应商编码:</a></span> |
|
|
|
<el-input v-model="iqcRecordOverSupplierNo" disabled style="width: 150px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'供应商'"> |
|
|
|
<el-input v-model="iqcRecordOverSupplierDesc" disabled style="width: 230px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-footer style="height:35px;margin-top: 10px;text-align:center"> |
|
|
|
<el-button type="primary" @click="overLoadModal3">确定</el-button> |
|
|
|
<el-button type="primary" @click="iqcRecordOverFlag = false">关闭</el-button> |
|
|
|
@ -503,46 +494,6 @@ |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- 供应商 --> |
|
|
|
<el-dialog title="供应商清单" :close-on-click-modal="false" v-drag :visible.sync="manufacturerModelFlag" width="520px"> |
|
|
|
<div class="rq"> |
|
|
|
<el-form :inline="true" label-position="top"> |
|
|
|
<el-form-item :label="'供应商编码:'"> |
|
|
|
<el-input v-model="manufacturerData.manufacturerID" clearable style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="'供应商名称:'"> |
|
|
|
<el-input v-model="manufacturerData.manufacturerName" clearable style="width: 120px"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item :label="' '"> |
|
|
|
<el-button type="primary" @click="getManufacturerList()">查询</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<el-table |
|
|
|
:height="300" |
|
|
|
:data="manufacturerList" |
|
|
|
ref="manufacturerTable" |
|
|
|
@row-dblclick="manufacturerClickRow" |
|
|
|
border |
|
|
|
style="width: 100%;"> |
|
|
|
<el-table-column |
|
|
|
prop="manufacturerID" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
label="供应商编码"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="manufacturerName" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
label="供应商名称"> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<el-footer style="height:40px;margin-top: 20px;text-align:center"> |
|
|
|
<el-button type="primary" @click="manufacturerModelFlag = false">关闭</el-button> |
|
|
|
</el-footer> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<!-- 文件清单 --> |
|
|
|
<el-dialog title="文件清单" :close-on-click-modal="false" v-drag :visible.sync="fileFlag" width="800px"> |
|
|
|
<el-form :inline="true" label-position="top"> |
|
|
|
@ -831,7 +782,6 @@ |
|
|
|
import subDetailUpload from "./sub_detail_upload" |
|
|
|
import QrCode from "../common/QrCode.vue"; |
|
|
|
import IqcFileTable from "./IQCFileTable.vue"; |
|
|
|
import {getManufacturerList, searchPartAttributeDetails} from "@/api/qc/qc.js"; |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
IqcFileTable, |
|
|
|
@ -1316,24 +1266,6 @@ |
|
|
|
fixed: '', |
|
|
|
columnWidth: 100, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301006, |
|
|
|
serialNumber: '301006Table1SupplierDesc', |
|
|
|
tableId: "301006Table1", |
|
|
|
tableName: "IQC检验记录表", |
|
|
|
columnProp: 'supplierDesc', |
|
|
|
headerAlign: "center", |
|
|
|
align: "left", |
|
|
|
columnLabel: '供应商', |
|
|
|
columnHidden: false, |
|
|
|
columnImage: false, |
|
|
|
columnSortable: false, |
|
|
|
sortLv: 0, |
|
|
|
status: true, |
|
|
|
fixed: '', |
|
|
|
columnWidth: 200, |
|
|
|
}, |
|
|
|
{ |
|
|
|
userId: this.$store.state.user.name, |
|
|
|
functionId: 301006, |
|
|
|
@ -1838,16 +1770,8 @@ |
|
|
|
detailInformationFlag: false, |
|
|
|
iqcRecordOverFlag: false, |
|
|
|
iqcRecordOverFlag2: false, |
|
|
|
manufacturerModelFlag: false, |
|
|
|
manufacturerData: { |
|
|
|
site: '', |
|
|
|
manufacturerID: '', |
|
|
|
manufacturerName: '' |
|
|
|
}, |
|
|
|
iqcRecordOverPartNo: '', |
|
|
|
iqcRecordOverPartDesc: '', |
|
|
|
iqcRecordOverSupplierNo: '', |
|
|
|
iqcRecordOverSupplierDesc: '', |
|
|
|
iqcRecordOverModal:{ |
|
|
|
attributeType: 'A', |
|
|
|
userName: this.$store.state.user.name, |
|
|
|
@ -1857,7 +1781,6 @@ |
|
|
|
partDesc: '' |
|
|
|
}, |
|
|
|
overLoadPartList: [], |
|
|
|
manufacturerList: [], |
|
|
|
detailList: [], |
|
|
|
saveInformationData: { |
|
|
|
site: '', |
|
|
|
@ -3007,8 +2930,6 @@ |
|
|
|
if (this.IQCSelections.length === 1 && this.IQCSelections[0].buNo == '02-Hardtag' && (this.IQCSelections[0].state=='待检验'|| this.IQCSelections[0].state=='未开始') &&this.IQCSelections[0].partNo.substring(0,1) === '4') { |
|
|
|
this.iqcRecordOverPartNo = this.IQCSelections[0].partNo |
|
|
|
this.iqcRecordOverPartDesc = this.IQCSelections[0].partDesc |
|
|
|
this.iqcRecordOverSupplierNo = this.IQCSelections[0].supplierNo |
|
|
|
this.iqcRecordOverSupplierDesc = this.IQCSelections[0].supplierDesc |
|
|
|
this.iqcRecordOverFlag = true |
|
|
|
} else { |
|
|
|
if (this.IQCSelections.every(val => val.state === '待检验' || val.state === '未开始')) { |
|
|
|
@ -3067,7 +2988,7 @@ |
|
|
|
let IQCSelections = this.IQCSelections |
|
|
|
IQCSelections[0].partNo = this.iqcRecordOverPartNo |
|
|
|
IQCSelections[0].partDesc = this.iqcRecordOverPartDesc |
|
|
|
IQCSelections[0].supplierNo = this.iqcRecordOverSupplierNo |
|
|
|
IQCSelections[0].supplierNo = '*' |
|
|
|
let tempData = { |
|
|
|
site: '', |
|
|
|
submitList: IQCSelections |
|
|
|
@ -3084,47 +3005,11 @@ |
|
|
|
}) |
|
|
|
this.iqcRecordOverFlag2 = true |
|
|
|
}, |
|
|
|
// 获取供应商列表 |
|
|
|
getManufacturerList () { |
|
|
|
this.manufacturerData.site = '3' |
|
|
|
getManufacturerList(this.manufacturerData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.manufacturerList = data.rows |
|
|
|
this.manufacturerModelFlag = true |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
getRowData1(row){ |
|
|
|
this.iqcRecordOverPartNo = row.partNo |
|
|
|
this.iqcRecordOverPartDesc = row.partDesc |
|
|
|
let param = { |
|
|
|
site: '3', |
|
|
|
buNo: '02-Hardtag', |
|
|
|
partNo: this.iqcRecordOverPartNo, |
|
|
|
attributeNo: this.iqcRecordOverPartNo, |
|
|
|
partDesc: this.iqcRecordOverPartDesc, |
|
|
|
inspectionTypeNo: '105', |
|
|
|
attributeType: 'A' |
|
|
|
} |
|
|
|
//查询选择的物料属性 对应的检验模板 供应商信息 |
|
|
|
searchPartAttributeDetails(param).then(({data}) => { |
|
|
|
console.log(data.rows.length) |
|
|
|
if (data.rows.length > 0) { |
|
|
|
this.iqcRecordOverSupplierNo = data.rows[0].manufacturerID |
|
|
|
this.iqcRecordOverSupplierDesc = data.rows[0].manufacturerName |
|
|
|
} |
|
|
|
}) |
|
|
|
this.iqcRecordOverFlag2 = false |
|
|
|
}, |
|
|
|
manufacturerClickRow(row){ |
|
|
|
this.iqcRecordOverSupplierNo = row.manufacturerID |
|
|
|
this.iqcRecordOverSupplierDesc = row.manufacturerName |
|
|
|
this.manufacturerModelFlag = false |
|
|
|
}, |
|
|
|
// 审核按钮 |
|
|
|
submitResult () { |
|
|
|
let tempData1 = '' // 记录不是待审核状态的单号 |
|
|
|
|