| | |
| | | </el-radio-group> |
| | | <el-form :model="auxiliaryWireCore" ref="entity" size="small" :inline="true"> |
| | | <el-form-item label="芯数" prop="num"> |
| | | <el-select v-model="auxiliaryWireCore.num" allow-create |
| | | clearable |
| | | default-first-option |
| | | filterable |
| | | multiple |
| | | size="small"> |
| | | <el-option v-for="item in quantityList" :key="item.value" :label="item.label" :value="item.value"></el-option> |
| | | <el-select v-model="auxiliaryWireCore.num" allow-create clearable default-first-option filterable multiple |
| | | size="small"> |
| | | <el-option v-for="item in quantityList" :key="item.value" :label="item.label" |
| | | :value="item.value"></el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="检验标准" prop="standardMethodListId"> |
| | | <el-select v-model="auxiliaryWireCore.standardMethodListId" disabled placeholder="请选择检验标准" |
| | | size="small" |
| | | @change="(value)=>methodChange(value)"> |
| | | <el-select v-model="auxiliaryWireCore.standardMethodListId" disabled placeholder="请选择检验标准" size="small" |
| | | @change="(value) => methodChange(value)" multiple> |
| | | <el-option v-for="item in standards" :key="item.id" :label="item.code" :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="table"> |
| | | <el-table ref="productTable" v-loading="getProductLoad" :data="productList" |
| | | :row-class-name="tableRowClassName" border class="el-table" :height="'calc(100vh - 200px)'" |
| | | :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" |
| | | tooltip-effect="dark" @select="upProductSelect" |
| | | @selection-change="selectProduct" @select-all="handleAll"> |
| | | <el-table ref="productTable" v-loading="getProductLoad" :data="productList" :row-class-name="tableRowClassName" |
| | | border class="el-table" :height="'calc(100vh - 200px)'" |
| | | :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" tooltip-effect="dark" @select="upProductSelect" |
| | | @selection-change="selectProduct" @select-all="handleAll"> |
| | | <el-table-column :selectable="selectable" type="selection" width="65"></el-table-column> |
| | | <el-table-column label="检验项分类" min-width="140" prop="inspectionItemClass" show-overflow-tooltip></el-table-column> |
| | | <el-table-column label="检验项分类" min-width="140" prop="inspectionItemClass" |
| | | show-overflow-tooltip></el-table-column> |
| | | <el-table-column label="检验项" min-width="140" prop="inspectionItem" show-overflow-tooltip> |
| | | <template slot="header" slot-scope="scope"> |
| | | <div style="display: flex;align-items: center;flex-direction: column;font-size: 14px"> |
| | | <span>检验项</span> |
| | | <el-input |
| | | v-if="active==1" |
| | | v-model="inspectionItem" |
| | | placeholder="请输入" |
| | | size="mini" |
| | | @input="searchFilterList"/> |
| | | <el-input v-if="active == 1" v-model="inspectionItem" placeholder="请输入" size="mini" |
| | | @input="searchFilterList" /> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <template slot="header" slot-scope="scope"> |
| | | <div style="display: flex;align-items: center;flex-direction: column;font-size: 14px"> |
| | | <span>检验项子项</span> |
| | | <el-input |
| | | v-if="active==1" |
| | | v-model="inspectionItemSubclass" |
| | | placeholder="请输入" |
| | | size="mini" |
| | | @input="searchFilterList"/> |
| | | <el-input v-if="active == 1" v-model="inspectionItemSubclass" placeholder="请输入" size="mini" |
| | | @input="searchFilterList" /> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="要求描述" min-width="220px" prop="tell"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.tell" :autosize="{ minRows: 1, maxRows: 3}" clearable placeholder="要求描述" |
| | | size="small" type="textarea"></el-input> |
| | | <el-input v-model="scope.row.tell" :autosize="{ minRows: 1, maxRows: 3 }" clearable placeholder="要求描述" |
| | | size="small" type="textarea"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="要求值" min-width="220px" prop="ask"> |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.ask" :autosize="{ minRows: 1, maxRows: 3}" clearable placeholder="要求值" |
| | | size="small" type="textarea"></el-input> |
| | | <el-input v-model="scope.row.ask" :autosize="{ minRows: 1, maxRows: 3 }" clearable placeholder="要求值" |
| | | size="small" type="textarea"></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="条件" min-width="140" prop="radius" show-overflow-tooltip> |
| | | <template slot-scope="scope"> |
| | | <el-input v-if="!scope.row.inspectionItem.includes('高温压力试验')" v-model="scope.row.radius" :autosize="{ minRows: 1, maxRows: 3}" clearable placeholder="要求描述" |
| | | size="small" type="textarea"> |
| | | <el-input v-if="!scope.row.inspectionItem.includes('高温压力试验')" v-model="scope.row.radius" |
| | | :autosize="{ minRows: 1, maxRows: 3 }" clearable placeholder="要求描述" size="small" type="textarea"> |
| | | </el-input> |
| | | <el-select v-if="scope.row.inspectionItem.includes('高温压力试验')" v-model="scope.row.radius" clearable |
| | | placeholder="条件" |
| | | size="small"> |
| | | <el-option v-for="(a,i) in JSON.parse(scope.row.radiusList)" :key="i" :label="a" :value="a"></el-option> |
| | | placeholder="条件" size="small"> |
| | | <el-option v-for="(a, i) in JSON.parse(scope.row.radiusList)" :key="i" :label="a" :value="a"></el-option> |
| | | </el-select> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <template slot="header" slot-scope="scope"> |
| | | <div style="display: flex;align-items: center;flex-direction: column;font-size: 14px"> |
| | | <span>试验方法</span> |
| | | <el-input |
| | | v-if="active==1" |
| | | v-model="methodS" |
| | | placeholder="请输入" |
| | | size="mini" |
| | | @input="searchFilterList"/> |
| | | <el-input v-if="active == 1" v-model="methodS" placeholder="请输入" size="mini" @input="searchFilterList" /> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | |
| | | <script> |
| | | import { Tree } from 'element-ui' |
| | | import {selectsStandardMethodByFLSSM, selectStandardProductList} from "@/api/business/rawMaterialOrder"; |
| | | import { selectsStandardMethodByFLSSM, selectStandardProductList } from "@/api/business/rawMaterialOrder"; |
| | | export default { |
| | | props: { |
| | | active: { |
| | |
| | | tree: '', |
| | | standards: [], |
| | | auxiliaryWireCore: { |
| | | standardMethodListId: null, |
| | | standardMethodListId: [], |
| | | insProduct: [], |
| | | num: [], |
| | | modelNum: '' |
| | |
| | | } |
| | | }, |
| | | // 要求值变化时 |
| | | requestChange(e, row,type) { |
| | | requestChange(e, row, type) { |
| | | this.sampleList.map(item => { |
| | | if (this.sampleIds.indexOf(item.id) > -1) { |
| | | item.insProduct.map(i => { |
| | | if(i.id == row.id){ |
| | | if(row.repetitionTag){ |
| | | if(row.repetitionTag==i.repetitionTag){ |
| | | if (i.id == row.id) { |
| | | if (row.repetitionTag) { |
| | | if (row.repetitionTag == i.repetitionTag) { |
| | | i[type] = e |
| | | } |
| | | }else{ |
| | | if(!i.repetitionTag){ |
| | | } else { |
| | | if (!i.repetitionTag) { |
| | | i[type] = e |
| | | } |
| | | } |
| | |
| | | this.$refs.productTable.doLayout() |
| | | }) |
| | | }, |
| | | tableRowClassName({ |
| | | row, |
| | | rowIndex |
| | | }) { |
| | | tableRowClassName({ row, rowIndex }) { |
| | | if (row.state === 0) { |
| | | return ''; |
| | | } |
| | |
| | | } |
| | | }, |
| | | methodChange(val) { |
| | | if (val === null || val === '') return |
| | | if (!val || val.length < 1) return |
| | | this.getProductLoad = true |
| | | let standard = this.standards.find(a => a.id === val) |
| | | this.isAskOnlyRead = standard != null && standard.code === '技术要求'; |
| | |
| | | selectStandardProductList({ |
| | | model: this.$parent.addObj.model ? this.$parent.addObj.model : model, |
| | | modelNum: modelNum, |
| | | standardMethodListId: val, |
| | | standardMethodListIds: val, |
| | | factory: selectTreeList.join(" - "), |
| | | cores: cores, |
| | | conductorMaterial: conductorMaterial, |
| | |
| | | display: flex; |
| | | justify-content: space-between; |
| | | } |
| | | |
| | | .search_input { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | } |
| | | |
| | | .ins_order_config .has-gutter .el-table__cell .cell { |
| | | line-height: 30px; |
| | | background-color: #fafafa; |
| | |
| | | font-size: 12px; |
| | | } |
| | | |
| | | .ins_order_config .el-table .warning-row .cell { |
| | | color: #3A7BFA; |
| | | >>>.warning-row { |
| | | color: #1890FF; |
| | | } |
| | | </style> |