| | |
| | | <div class="search_input"><el-input size="small" placeholder="请输入" clearable |
| | | v-model="componentData.entity.sampleCode" @keyup.enter.native="refreshTable()"></el-input></div> |
| | | </div> |
| | | <div class="search_thing"> |
| | | <div class="search_label">订单类型:</div> |
| | | <div class="search_input"> |
| | | <el-select v-model="componentData.entity.formType" size="small"style="width: 100%;" @change="refreshTable()"> |
| | | <el-option v-for="(a,ai) in formType" :key="ai" :label="a.label" :value="a.value"></el-option> |
| | | </el-select> |
| | | </div> |
| | | </div> |
| | | <div class="search_thing" style="margin-left: 20px;"> |
| | | <el-button size="small" @click="refresh()">重 置</el-button> |
| | | <el-button size="small" type="primary" @click="refreshTable()">查 询</el-button> |
| | |
| | | name:null, |
| | | engineering:null, |
| | | production:null, |
| | | formType:null, |
| | | }, |
| | | isIndex: true, |
| | | showSelect: false, |
| | |
| | | sampleList:[], |
| | | sampleId:null, |
| | | orderId0:null, |
| | | formType:[] |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.entityCopy = this.HaveJson(this.componentData.entity) |
| | | this.getPower() |
| | | this.selectEnumByCategoryForSampleForm() |
| | | }, |
| | | methods:{ |
| | | // 权限分配 |
| | |
| | | } |
| | | }) |
| | | }) |
| | | // this.historyList = res.data |
| | | // this.historyList.forEach(item => { |
| | | // item.arr = [] |
| | | // this.$set(item,'numValue',1) |
| | | // // item.checked = false; |
| | | // if(item.num>0){ |
| | | // for(var i=0;i<item.num;i++){ |
| | | // item.arr.push({ |
| | | // label:'记录'+(i+1), |
| | | // value:i+1 |
| | | // }) |
| | | // } |
| | | // } |
| | | // }) |
| | | this.dialogVisible = true |
| | | }) |
| | | }, |
| | | selectEnumByCategoryForSampleForm() { |
| | | this.$axios.post(this.$api.enums.selectEnumByCategory, { |
| | | category: "订单类型" |
| | | }).then(res => { |
| | | this.formType = res.data |
| | | }) |
| | | }, |
| | | // 生成报告 |
| | | handleCreate(){ |
| | | let insReportDto1s = [] |