| | |
| | | params |
| | | }) |
| | | } |
| | | //选择责任人 |
| | | export function chooseinstum(params) { |
| | | return request({ |
| | | url: '/plan/chooseinstum', |
| | | method: 'get', |
| | | params |
| | | }) |
| | | } |
| | |
| | | <el-table-column |
| | | prop="inspectionMaterialId" |
| | | label="实验设备"> |
| | | <template> |
| | | <!-- <el-select v-model="scope.row.checker" size="small" slot="append" style="width: 260px;"> |
| | | <el-option v-for="item in checkeroptions" :key="item.value" :label="item.label">{{ item.label }}</el-option> |
| | | </el-select> --> |
| | | <template slot-scope="scope"> |
| | | <el-select v-model="SHEbei" size="small" slot="append" style="width: 220px;"> |
| | | <el-option v-for="item in getDevices" :key="item.id" :label="item.name"></el-option> |
| | | </el-select> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import { selectInspectsListById} from '@/api/experiment/planAssignments' |
| | | import { selectInspectsListById,selectUser,chooseinstum} from '@/api/experiment/planAssignments' |
| | | export default { |
| | | data(){ |
| | | return { |
| | | searchData:{ }, |
| | | insProducts:[], |
| | | uu:'', |
| | | value:'', |
| | | aaa:{} |
| | | SHEbei:'', |
| | | aaa:{}, |
| | | ZERENren:[], |
| | | // getDevices:[] |
| | | } |
| | | }, |
| | | created(){ |
| | |
| | | // } |
| | | console.log(this.aaa); |
| | | this.selectInspectsListById() |
| | | // this.selectUser() |
| | | |
| | | this.selectUser() |
| | | this.chooseinstum() |
| | | }, |
| | | methods: { |
| | | //返回 |
| | |
| | | async selectUser(){ |
| | | const res = await selectUser() |
| | | this.ZERENren = res.data |
| | | // console.log(this.ZERENren); |
| | | console.log(this.ZERENren); |
| | | }, |
| | | //標準庫 |
| | | //设备 |
| | | // getDevices() { |
| | | // get(this.$url.chooseinstum).then(res => { |
| | | // this.devices = res.data |
| | | // }) |
| | | // }, |
| | | async chooseinstum(){ |
| | | const res = await chooseinstum() |
| | | this.getDevices = res.data |
| | | console.log(this.getDevices); |
| | | }, |
| | | //检验单表 |
| | | async selectInspectsListById() { |
| | | const res = await selectInspectsListById({id:this.aaa.id}) |
| | |
| | | <el-row :gutter="100"> |
| | | <el-col :span="10"> |
| | | <el-form-item label="原材料编码:"> |
| | | <el-input style="width: 300px" type="text" :value="infoForm.mcode" placeholder="请输入原材料编码" autocomplete="off" /> |
| | | <el-input style="width: 300px" type="text" :value="infoForm.mcode" placeholder="请输入原材料编码" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | |
| | | title="标准库" |
| | | :visible.sync="Standardframe" |
| | | width="49%" |
| | | height=""> |
| | | > |
| | | <el-card> |
| | | <template slot-scope="scope" > |
| | | <span>版本选择:</span> |
| | |
| | | style="width: 100%; margin-bottom: 20px" |
| | | row-key="id" |
| | | border |
| | | height="calc(90vh - 250px)" |
| | | height="calc(80vh - 250px)" |
| | | default-expand-all |
| | | ref="multipleTable" |
| | | :tree-props="{ children: 'children', hasChildren: 'hasChildren' }" |
| | |
| | | import { selectInspectsList, selectAll, addInspect,chooseVer,lookProByVer} from '@/api/experiment/planAssignments' |
| | | export default { |
| | | data() { |
| | | |
| | | return { |
| | | showDetail: false, |
| | | searchData: { |
| | |
| | | state: '', |
| | | }, |
| | | valu:{}, |
| | | inputValue: '', |
| | | icode:'', |
| | | inspectionTable: [], |
| | | rawMaterialTable: [], |
| | |
| | | methods: { |
| | | async selectAll(){ |
| | | const res = selectAll({type:0}) |
| | | console.log(res); |
| | | // console.log(res); |
| | | this.rawMaterialTable = res.data |
| | | }, |
| | | async selectAll(){ |
| | | const res = selectAll({type:2}) |
| | | console.log(res); |
| | | // console.log(res); |
| | | this.commisionTable = res.data |
| | | }, |
| | | async handleClick(row){ |
| | |
| | | this.$router.push({name:'Viewdetails',query: {id:row.id}}); |
| | | this.selectInspectsList() |
| | | }, |
| | | // validateInput() { |
| | | // if (this.inputValue.trim() === '') { |
| | | // } |
| | | // }, // 输入值为空,弹出提示信息或进行其他处理 |
| | | // alert('输入值不能为空'); |
| | | // return; |
| | | |
| | | //版本库 |
| | | async chooseVer() { |
| | | console.log(this.tmp.materialCoding); |
| | |
| | | //确定跳转 |
| | | QUEding(){ |
| | | // this.tableRow = a |
| | | |
| | | this.Standardframe = true |
| | | |
| | | this.chooseVer() |
| | | |
| | | }, |