| | |
| | | <el-button size="medium" type="primary" v-else-if="select==2">检验对象</el-button> |
| | | </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> |
| | |
| | | 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;"> |
| | | <el-button size="small" @click="refresh()">重 置</el-button> |
| | | <el-button size="small" type="primary" @click="refreshTable()">查 询</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="table"> |
| | | <ValueTable ref="itemParameterTable" :url="$api.capacityScope.selectItemParameterList" |
| | | <ValueTable ref="itemParameterTable" v-loading="logining" :url="$api.capacityScope.selectItemParameterList" |
| | | :upUrl="$api.capacityScope.upItemParameter" :delUrl="$api.capacityScope.delItemParameter" |
| | | :componentData="itemParameterData" :key="upIndex" /> |
| | | </div> |
| | |
| | | <div class="body" v-if="diaProduct" style="height: 350px;overflow-y: auto;padding: 5px 0;"> |
| | | <ValueTable ref="productData" :url="$api.capacityScope.selectProductListByObjectId" |
| | | :upUrl="$api.capacityScope.upProduct" :delUrl="$api.capacityScope.delProduct" |
| | | :componentData="productData" :key="upIndex" /> |
| | | :componentData="productData" :key="upIndex"/> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="diaProduct = false">取 消</el-button> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | logining:false, |
| | | radio: '-1', |
| | | showItemParameter: true, |
| | | showTestObject: false, |
| | |
| | | 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() |
| | | }) */ |
| | |
| | | this.$refs['itemParameterTable'].selectList() |
| | | } else { |
| | | this.$refs['testObjectTable'].selectList() |
| | | |
| | | } |
| | | }, |
| | | refresh() { |