Browse Source

Merge remote-tracking branch 'origin/master'

master
qiankanghui 4 days ago
parent
commit
0f4b88c1e7
  1. 117
      src/views/modules/qc/IQCResultEntry.vue
  2. 53
      src/views/modules/qc/qcPartAttribute.vue

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

@ -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 = '' //

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

@ -331,7 +331,6 @@
</el-form-item>
<el-form-item style="margin-left: 117px" :label="' '">
<el-button type="primary" @click="getOperationList()" style="width: 63px" v-if="this.detailData.inspectionTypeNo === '101' || this.detailData.inspectionTypeNo === '102' || this.detailData.inspectionTypeNo === '103' || this.detailData.inspectionTypeNo === '104' || this.detailData.inspectionTypeNo === '106' || this.detailData.inspectionTypeNo === '107' || this.detailData.inspectionTypeNo === '108'">工序</el-button>
<el-button type="primary" @click="getManufacturerList()" v-if="this.detailData.inspectionTypeNo === '105'" style="width: 63px">供应商</el-button>
</el-form-item>
<el-form-item :label="' '">
<el-button type="primary" @click="getAllResourceList()" style="width: 63px" v-if="this.detailData.inspectionTypeNo === '101' || this.detailData.inspectionTypeNo === '102' || this.detailData.inspectionTypeNo === '103' || this.detailData.inspectionTypeNo === '104' || this.detailData.inspectionTypeNo === '106' || this.detailData.inspectionTypeNo === '107'">机台</el-button>
@ -430,12 +429,6 @@
<!-- align="center"-->
<!-- label="机台">-->
<!-- </el-table-column>-->
<el-table-column
prop="manufacturerName"
header-align="center"
align="center"
label="供应商">
</el-table-column>
<el-table-column
prop="inspectionTypeName"
header-align="center"
@ -1266,24 +1259,6 @@
fixed: '',
columnWidth: 120,
}, */
{
userId: this.$store.state.user.name,
functionId: 301003,
serialNumber: '301003Table2ManufacturerName',
tableId: "301003Table2",
tableName: "检验模板清单表",
columnProp: 'manufacturerName',
headerAlign: "center",
align: "left",
columnLabel: '供应商',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 200,
},
],
//
fastAddFlag: false,
@ -1874,7 +1849,14 @@
},
selectionItem1 (val) {
if (val.length > 1) {
const last = val[val.length - 1]
this.$refs.itemTable1.clearSelection()
this.$refs.itemTable1.toggleRowSelection(last, true)
this.itemSelections1 = [last]
} else {
this.itemSelections1 = val
}
},
selectionItem2 (val) {
@ -1887,6 +1869,19 @@
this.$message.warning('请选择可选模板!')
return
}
if (this.itemSelections1.length > 1) {
this.$message.warning('每次只能添加一个模板!')
return
}
const selectedTemplateId = this.itemSelections1[0].templateId
const existingTemplateIds = new Set([
...(this.itemList2 || []).map(item => item.templateId),
...(this.detailList || []).map(item => item.templateId)
])
if (existingTemplateIds.has(selectedTemplateId)) {
this.$message.warning(`模板编码【${selectedTemplateId}】已存在,不能重复添加!`)
return
}
if ((this.detailData.inspectionTypeNo === '101' || this.detailData.inspectionTypeNo === '102' || this.detailData.inspectionTypeNo === '103' || this.detailData.inspectionTypeNo === '104' || this.detailData.inspectionTypeNo === '106' || this.detailData.inspectionTypeNo === '107' || this.detailData.inspectionTypeNo === '108') && (this.operation == null || this.operation === '')) {
this.$message.warning('请选择工序!')
return
@ -1895,18 +1890,14 @@
this.$message.warning('请选择机台!')
return
}
if ((this.detailData.inspectionTypeNo === '105') && (this.selectionManufacturer == null || this.selectionManufacturer.length === 0)) {
this.$message.warning('请选择供应商!')
return
}
let inData = {
site: this.detailData.site,
buNo: this.detailData.buNo,
attributeNo: this.detailData.partNo,
itemList: this.itemSelections1,
itemList: [this.itemSelections1[0]],
operation: this.operation,
resourceID: this.resourceId,
manufacturerList: this.selectionManufacturer,
manufacturerList: ['*'],
attributeType: this.detailData.attributeType,
inspectionTypeNo: this.detailData.inspectionTypeNo,
createBy: this.$store.state.user.name,

Loading…
Cancel
Save