| | |
| | | </el-col> |
| | | <el-col :span="12" style="text-align: right;"> |
| | | <el-button size="medium" type="primary" @click="openAdd" v-if="addPower">新增</el-button> |
| | | <el-button size="medium" icon="el-icon-delete">删除</el-button> |
| | | <!-- <el-button size="medium" icon="el-icon-delete">删除</el-button> --> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | |
| | | <div class="search_label">检验子项:</div> |
| | | <div class="search_input"><el-input size="small" placeholder="请输入" clearable |
| | | v-model="itemParameterData.entity.inspectionItemSubclass" @keyup.enter.native="refreshTable()"></el-input> |
| | | </div> |
| | | </div> |
| | | <div class="search_thing"> |
| | | <div class="search_label">检验对象:</div> |
| | | <div class="search_input"><el-input size="small" placeholder="请输入" clearable |
| | | v-model="itemParameterData.entity.sample" @keyup.enter.native="refreshTable()"></el-input> |
| | | </div> |
| | | </div> |
| | | <div class="search_thing" style="padding-left: 30px;"> |
| | |
| | | entity: { |
| | | inspectionItem: null, |
| | | inspectionItemSubclass: null, |
| | | sample: null, |
| | | orderBy: { |
| | | field: 'id', |
| | | order: 'asc' |
| | | } |
| | | }, |
| | | isIndex: false, |
| | | showSelect: true, |
| | | isIndex: true, |
| | | showSelect: false, |
| | | select: true, |
| | | row: 2, |
| | | do: [{ |
| | |
| | | props:{ |
| | | value:'name', |
| | | label:'name', |
| | | checkStrictly: false |
| | | checkStrictly: true, |
| | | multiple: true |
| | | } |
| | | }, |
| | | requiredAdd: ['sonLaboratory', 'inspectionItem', 'manHour', 'inspectionItemType', 'inspectionValueType', |
| | | 'unit', 'method', 'price', 'manDay' |
| | | requiredAdd: ['sonLaboratory', 'inspectionItem', 'inspectionItemType', 'inspectionValueType', |
| | | 'unit', 'method', 'manDay', 'templateId' |
| | | ], |
| | | requiredUp: ['sonLaboratory', 'inspectionItem', 'manHour', 'inspectionItemType', 'inspectionValueType', |
| | | 'unit', 'method', 'price', 'manDay' |
| | | requiredUp: ['sonLaboratory', 'inspectionItem', 'inspectionItemType', 'inspectionValueType', |
| | | 'unit', 'method', 'manDay', 'templateId' |
| | | ] |
| | | }, |
| | | testObjectData: { |
| | |
| | | order: 'asc' |
| | | } |
| | | }, |
| | | isIndex: false, |
| | | showSelect: true, |
| | | isIndex: true, |
| | | showSelect: false, |
| | | select: true, |
| | | do: [{ |
| | | id: 'update', |
| | |
| | | if (this.radio === '0') { |
| | | this.showItemParameter = true; |
| | | this.showTestObject = false; |
| | | this.selectTestObjectByName() |
| | | /* this.$nextTick(() => { |
| | | this.$refs.itemParameterTable.selectList() |
| | | }) */ |
| | |
| | | refreshTable() { |
| | | if (this.radio === '0') { |
| | | this.$refs['itemParameterTable'].selectList() |
| | | |
| | | } else { |
| | | this.$refs['testObjectTable'].selectList() |
| | | } |