| | |
| | | <div class="add-quotation"> |
| | | <el-dialog :visible.sync="editConfig.visible" width="70%" append-to-body custom-class="iframe-dialog"> |
| | | <el-header> |
| | | <el-button type="primary" v-if="this.editConfig.title != '查看'" size="small" |
| | | <el-button type="primary" :disabled="isDisabled" size="small" |
| | | @click="saveClick()">批量合格入库</el-button> |
| | | <el-button type="primary" v-if="this.editConfig.title != '查看'" size="small" |
| | | <el-button type="primary" :disabled="isDisabled" size="small" |
| | | @click="saveNoClick()">批量不合格</el-button> |
| | | </el-header> |
| | | <el-form ref="form" :model="editConfig.infomation" label-position="right" label-width="130px" size="mini" |
| | |
| | | |
| | | <template slot="tableButton"> |
| | | <el-table-column label="操作" width="120" align="center"> |
| | | <template slot-scope="scope"> |
| | | <el-button type="text" size="small" @click="saveClick(scope.row)" |
| | | <template slot-scope="scope" v-if="scope.row.status==1" > |
| | | <el-button type="text" size="small" @click="saveClick(scope.row)" |
| | | style="margin-right: 5px">合格</el-button> |
| | | <el-button type="text" size="small" @click="saveNoClick(scope.row)" |
| | | style="margin-right: 5px">不合格</el-button> |
| | |
| | | thatTimes: [], |
| | | selectList: [], |
| | | qualityStatusList: getDataByType("qualityStatus"), |
| | | isDisabled:false, |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | async getPurchaseQualityInspectionInfo(params) { |
| | | await getPurchaseQualityInspectionInfo(params).then((res) => { |
| | | this.timeList = [] |
| | | this.isDisabled=true // 判断有没有待质检的 |
| | | res.data.map((item) => { |
| | | this.timeList.push({ id: item.createTime, name: item.createTime }) |
| | | if(item.status===1){ |
| | | this.isDisabled=false |
| | | } |
| | | }) |
| | | this.setTableForm() |
| | | this.productTableList.tableData = res.data |