| | |
| | | <div class="check-box"> |
| | | <el-radio-group v-model="type" @change="handleRadioChange"> |
| | | <el-radio style="background-color: rgb(170, 236, 214);border-radius: 10px;" :label="0" border >原材料检验</el-radio> |
| | | <el-radio :label="1" border>委托检验</el-radio> |
| | | <el-radio :label="2" border>成品检验</el-radio> |
| | | <el-radio style="background-color: rgb(170, 236, 214);border-radius: 10px;" :label="1" border>委托检验</el-radio> |
| | | <el-radio style="background-color: rgb(170, 236, 214);border-radius: 10px;" :label="2" border>成品检验</el-radio> |
| | | </el-radio-group> |
| | | </div> |
| | | <div v-if="type === 0 || type === ''"> |
| | |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="checkTypeVisible = false">取 消</el-button> |
| | | <el-button type="primary" @click="addInspection">确 定</el-button> |
| | | <!-- <el-button type="primary" @click="addInspection">确 定</el-button> --> |
| | | <el-button type="primary" @click="QUEding">确 定</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- 确定跳转基本库弹窗 --> |
| | | <el-dialog |
| | | title="标准库" |
| | | :visible.sync="Standardframe" |
| | | width="48%" |
| | | |
| | | > |
| | | <!-- <el-form :model="form"> |
| | | <el-form-item label="请选择审核结果:" :label-width="formLabelWidth"> |
| | | </el-form-item> |
| | | </el-form> --> |
| | | |
| | | <!-- <div slot="footer" class="dialog-footer"> --> |
| | | <el-table |
| | | :data="tableData" |
| | | style="width: 100%; margin-bottom: 20px" |
| | | row-key="name" |
| | | border |
| | | height="calc(100vh - 250px)" |
| | | default-expand-all |
| | | ref="multipleTable" |
| | | @select="selectTr" |
| | | @select-all="selectAll" |
| | | :tree-props="{ children: 'children', hasChildren: 'hasChildren' }" |
| | | > |
| | | <el-table-column type="selection" label="序号"> </el-table-column> |
| | | <el-table-column |
| | | type="index" |
| | | width="50px" |
| | | label="序号" |
| | | ></el-table-column> |
| | | <el-table-column label="项目名称" sortable> |
| | | <template scope="scope"> |
| | | <el-tag |
| | | ><div |
| | | class="firstDiv" |
| | | :style="`color: ${ |
| | | scope.row.code == '[1]' ? '#16a7ff' : '#58c173' |
| | | }`" |
| | | > |
| | | {{ scope.row.code == "[1]" ? "01" : "02" }} |
| | | </div> |
| | | <span style="color: black">{{ scope.row.name }}</span></el-tag |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="unit" |
| | | label="单位" |
| | | sortable |
| | | ></el-table-column> |
| | | <el-table-column label="标准值" sortable> |
| | | <template scope="scope"> |
| | | <el-input |
| | | v-if="scope.row.edit === true || scope.row.code === '[2]'" |
| | | @blur="requiredOnfocus(scope)" |
| | | v-model="scope.row.required" |
| | | placeholder="请输入标准值" |
| | | ></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="internal" label="内控值" sortable> |
| | | <template scope="scope"> |
| | | <el-input |
| | | v-if="scope.row.edit === true || scope.row.code === '[2]'" |
| | | @blur="requiredOnfocus(scope)" |
| | | v-model="scope.row.internal" |
| | | placeholder="请输入内控值" |
| | | ></el-input> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <!-- </div> --> |
| | | </el-dialog> |
| | | |
| | | <!-- 原材料检验模态框 --> |
| | | <el-dialog |
| | | title="原材料检验" |
| | |
| | | /> |
| | | <el-table-column |
| | | prop="formTime" |
| | | label="来料日期" |
| | | label="委托bian'ha" |
| | | min-width="10%" |
| | | /> |
| | | <el-table-column |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { selectInspectsList, selectAll, addInspect} from '@/api/experiment/planAssignments' |
| | | import { selectInspectsList, selectAll, addInspect,getCommisionList} from '@/api/experiment/planAssignments' |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | type: '', // 默认不选中的状态 |
| | | rawmaterialVisible: false, |
| | | commisionVisible: false, |
| | | tmp: '' |
| | | tmp: '', |
| | | Standardframe: false |
| | | } |
| | | }, |
| | | watch: { |
| | |
| | | this.id = row.id |
| | | this.$router.push({name:'Viewdetails',query: {id:row.id}}); |
| | | this.selectInspectsList() |
| | | }, |
| | | //委托检验 |
| | | async getCommisionList() { |
| | | const res = await getCommisionList({pageNo:1,pageSize:10 }) |
| | | this.commisionTable = res.data |
| | | console.log(this.commisionTable); |
| | | }, |
| | | async selectInspectsList() { |
| | | // 获取分页列表 |
| | |
| | | }, |
| | | async handleRadioChange(){ |
| | | if(this.type === 0){ |
| | | // 原材料报检 |
| | | // this.rawmaterialVisible = true |
| | | // const res = await selectAll({type: this.type}) |
| | | // var data = res.data |
| | | // data.forEach((item)=>{ |
| | | // var checkdate = [] |
| | | // checkdate.push(item['createTime']) |
| | | // checkdate.push(item['updateTime']) |
| | | // item['checkdate'] = checkdate // 检验日期 |
| | | // }) |
| | | this.$router.push({ name: 'ReportForInspection' }); |
| | | 原材料报检 |
| | | |
| | | this.rawmaterialVisible = true |
| | | const res = await selectAll({type: this.type}) |
| | | var data = res.data |
| | | data.forEach((item)=>{ |
| | | var checkdate = [] |
| | | checkdate.push(item['createTime']) |
| | | checkdate.push(item['updateTime']) |
| | | item['checkdate'] = checkdate // 检验日期 |
| | | }) |
| | | // this.infoForm = res.data |
| | | // this.$router.push({ name: 'ReportForInspection' }); |
| | | }else if(this.type === 1){ |
| | | // this.commisionVisible = true |
| | | // const res = await selectAll({type: this.type}) |
| | | this.commisionVisible = true |
| | | const res = await getCommisionList({pageNo:1,pageSize:10}) |
| | | // var data = res.data |
| | | // data.forEach((item)=>{ |
| | | // var checkdate = [] |
| | |
| | | // item['checkdate_'] = item['startTime'] + '~' + item['endTime'] |
| | | // item['checkdate'] = checkdate // 检验日期 |
| | | // }) |
| | | // this.commisionTable = res.data |
| | | this.$router.push({ name: 'CommissionInspection' }); |
| | | this.commisionTable = res.data |
| | | // this.$router.push({ name: 'CommissionInspection' }); |
| | | } |
| | | }, |
| | | // 新增检验 |
| | |
| | | console.log(`当前页: ${val}`) |
| | | this.currentPage = val |
| | | this.selectInspectsList() |
| | | }, |
| | | //确定跳转 |
| | | QUEding(){ |
| | | this.Standardframe = true |
| | | } |
| | | } |
| | | } |