|
|
|
@ -178,8 +178,8 @@ |
|
|
|
<!-- 检验标准清单(按“物料+模板”覆盖检验项目) --> |
|
|
|
<el-dialog title="检验标准清单" :close-on-click-modal="false" v-drag :visible.sync="inspectionStandardListFlag" width="1200px"> |
|
|
|
<el-form :inline="true" label-position="top"> |
|
|
|
<el-form-item :label="'物料编码'"><el-input v-model="standardHeader.attributeNo" readonly style="width: 140px"></el-input></el-form-item> |
|
|
|
<el-form-item :label="'物料名称'"><el-input v-model="standardHeader.partDesc" readonly style="width: 260px"></el-input></el-form-item> |
|
|
|
<el-form-item :label="'工具ID'"><el-input v-model="standardHeader.attributeNo" readonly style="width: 140px"></el-input></el-form-item> |
|
|
|
<el-form-item :label="'工具名称'"><el-input v-model="standardHeader.partDesc" readonly style="width: 260px"></el-input></el-form-item> |
|
|
|
<el-form-item label="检验类型"><el-input v-model="standardHeader.inspectionTypeName" readonly style="width: 120px"></el-input></el-form-item> |
|
|
|
<el-form-item :label="' '"><el-button type="primary" @click="openStandardFastAdd()">新增</el-button></el-form-item> |
|
|
|
</el-form> |
|
|
|
@ -869,7 +869,7 @@ export default { |
|
|
|
resourceCurrent: -1, |
|
|
|
inspectionStandardListFlag: false, |
|
|
|
standardFastAddFlag: false, |
|
|
|
standardHeader: { site: "", buNo: "", attributeNo: "", partDesc: "", templateId: "", inspectionTypeName: "" }, |
|
|
|
standardHeader: { site: "", buNo: "", attributeNo: "", partDesc: "", templateId: "", inspectionTypeName: "",inspectionTypeNo: "" }, |
|
|
|
standardList: [], |
|
|
|
standardRow1: [], |
|
|
|
standardRow2: [], |
|
|
|
@ -1080,6 +1080,7 @@ export default { |
|
|
|
deletePropertiesModel(row) { |
|
|
|
this.$confirm(`是否删除这个检验模板?`, "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }) |
|
|
|
.then(() => { |
|
|
|
row.bu = row.site + "_" + row.buNo; |
|
|
|
dmPartAttributeDelete(row).then(({ data }) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.getDataList(); |
|
|
|
@ -1149,6 +1150,7 @@ export default { |
|
|
|
this.resourceId = ""; |
|
|
|
this.operationCurrent = -1; |
|
|
|
this.resourceCurrent = -1; |
|
|
|
this.$set(this.detailDataAdd,'inspectionTypeNo','823') |
|
|
|
this.checkInspectionType(); |
|
|
|
this.fastAddFlag = true; |
|
|
|
}, |
|
|
|
@ -1159,6 +1161,7 @@ export default { |
|
|
|
this.detailDataAdd.site = this.detailData.site |
|
|
|
this.detailDataAdd.partDesc = this.detailData.partDesc |
|
|
|
this.detailDataAdd.partNo = this.detailData.partNo |
|
|
|
|
|
|
|
dmAttributeTemplateList(this.detailDataAdd).then(({ data }) => { |
|
|
|
this.operation = ""; |
|
|
|
this.resourceId = ""; |
|
|
|
@ -1563,6 +1566,7 @@ export default { |
|
|
|
|
|
|
|
// ======================= 检验标准清单(物料+模板覆盖) ======================= |
|
|
|
inspectionStandardListModal(row) { |
|
|
|
console.log("inspectionStandardListModal", row); |
|
|
|
this.standardHeader = { |
|
|
|
site: row.site, |
|
|
|
buNo: row.buNo, |
|
|
|
@ -1570,6 +1574,7 @@ export default { |
|
|
|
partDesc: this.detailData.partDesc, |
|
|
|
templateId: row.templateId, |
|
|
|
inspectionTypeName: row.inspectionTypeName, |
|
|
|
inspectionTypeNo: row.inspectionTypeNo |
|
|
|
}; |
|
|
|
const req = { site: row.site, buNo: row.buNo, attributeNo: this.detailData.partNo, templateId: row.templateId }; |
|
|
|
dmAttributeTemplateItemDetailsSearch(req).then(({ data }) => { |
|
|
|
@ -1632,6 +1637,7 @@ export default { |
|
|
|
templateId: this.standardHeader.templateId, |
|
|
|
itemNo: this.standardSearch.itemNo, |
|
|
|
itemDesc: this.standardSearch.itemDesc, |
|
|
|
inspectionTypeNo: this.standardHeader.inspectionTypeNo, |
|
|
|
}; |
|
|
|
dmAttributeTemplateItemGetItemList(req).then(({ data }) => { |
|
|
|
this.standardRow1 = data.row1 || []; |
|
|
|
|