|
|
@ -196,7 +196,7 @@ |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
<!-- 检验项目 --> |
|
|
<!-- 检验项目 --> |
|
|
<el-dialog title="检验项目清单" :close-on-click-modal="false" v-drag :visible.sync="detailModelFlag" width="940px"> |
|
|
|
|
|
|
|
|
<el-dialog title="检验项目清单" @close="closeDialog" :close-on-click-modal="false" v-drag :visible.sync="detailModelFlag" width="940px"> |
|
|
<el-form :inline="true" label-position="top" @keyup.enter.native="getDataList()"> |
|
|
<el-form :inline="true" label-position="top" @keyup.enter.native="getDataList()"> |
|
|
<el-form-item :label="'检验模板编码'"> |
|
|
<el-form-item :label="'检验模板编码'"> |
|
|
<el-input v-model="detailData.templateId" readonly style="width: 120px"></el-input> |
|
|
<el-input v-model="detailData.templateId" readonly style="width: 120px"></el-input> |
|
|
@ -314,16 +314,16 @@ |
|
|
<el-form-item :label="'项目名称'"> |
|
|
<el-form-item :label="'项目名称'"> |
|
|
<el-input v-model="detailData.itemDesc" clearable style="width: 200px"></el-input> |
|
|
<el-input v-model="detailData.itemDesc" clearable style="width: 200px"></el-input> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
<el-form-item label="检验类型"> |
|
|
|
|
|
<el-select v-model="detailData.inspectionTypeNo" clearable placeholder="请选择" style="width: 120px"> |
|
|
|
|
|
<el-option |
|
|
|
|
|
v-for = "i in options" |
|
|
|
|
|
:key = "i.inspectionTypeNo" |
|
|
|
|
|
:label = "i.inspectionTypeName" |
|
|
|
|
|
:value = "i.inspectionTypeNo"> |
|
|
|
|
|
</el-option> |
|
|
|
|
|
</el-select> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
<!-- <el-form-item label="检验类型">--> |
|
|
|
|
|
<!-- <el-select v-model="detailData.inspectionTypeNo" clearable placeholder="请选择" style="width: 120px">--> |
|
|
|
|
|
<!-- <el-option--> |
|
|
|
|
|
<!-- v-for = "i in options"--> |
|
|
|
|
|
<!-- :key = "i.inspectionTypeNo"--> |
|
|
|
|
|
<!-- :label = "i.inspectionTypeName"--> |
|
|
|
|
|
<!-- :value = "i.inspectionTypeNo">--> |
|
|
|
|
|
<!-- </el-option>--> |
|
|
|
|
|
<!-- </el-select>--> |
|
|
|
|
|
<!-- </el-form-item>--> |
|
|
<el-form-item :label="' '"> |
|
|
<el-form-item :label="' '"> |
|
|
<el-button type="primary" @click="getItem()">查询</el-button> |
|
|
<el-button type="primary" @click="getItem()">查询</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
@ -533,6 +533,7 @@ |
|
|
samplingProgrammeDesc: '', |
|
|
samplingProgrammeDesc: '', |
|
|
inspectionTypeNo: '', |
|
|
inspectionTypeNo: '', |
|
|
inspectionCycle: '', |
|
|
inspectionCycle: '', |
|
|
|
|
|
inspectionTypeName: '', |
|
|
createTime: '', |
|
|
createTime: '', |
|
|
createBy: this.$store.state.user.name, |
|
|
createBy: this.$store.state.user.name, |
|
|
samplingLevelNo: '', |
|
|
samplingLevelNo: '', |
|
|
@ -1274,6 +1275,7 @@ |
|
|
this.detailData.buNo = row.buNo |
|
|
this.detailData.buNo = row.buNo |
|
|
this.detailData.templateId = row.templateId |
|
|
this.detailData.templateId = row.templateId |
|
|
this.detailData.templateName = row.templateName |
|
|
this.detailData.templateName = row.templateName |
|
|
|
|
|
this.detailData.inspectionTypeName = row.inspectionTypeName |
|
|
templateDetailsSearch(this.detailData).then(({data}) => { |
|
|
templateDetailsSearch(this.detailData).then(({data}) => { |
|
|
this.detailList = data.rows |
|
|
this.detailList = data.rows |
|
|
this.objectSearch() |
|
|
this.objectSearch() |
|
|
@ -1400,6 +1402,12 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
closeDialog (){ |
|
|
|
|
|
this.detailList = [] |
|
|
|
|
|
this.itemList1 = [] |
|
|
|
|
|
this.itemList2 = [] |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// 删除项目中的明细 |
|
|
// 删除项目中的明细 |
|
|
delItemDetails (row) { |
|
|
delItemDetails (row) { |
|
|
this.$confirm(`是否删除这个检验明细?`, '提示', { |
|
|
this.$confirm(`是否删除这个检验明细?`, '提示', { |
|
|
|