| | |
| | | break |
| | | } |
| | | case 'delete':{ |
| | | alert('我接收到子组件传送的删除信息') |
| | | break |
| | | } |
| | | case 'setType':{ |
| | |
| | | produceList = deepClone(res.data.data) |
| | | produceList.forEach(item => { |
| | | if (item.damageDetails.qualityInsStatus === 2) { |
| | | item.damageDetails.qualityInsStatus = '已质检'; |
| | | item.damageDetails.qualityInsStatus = t('reportingWorks.qualified'); |
| | | } |
| | | else if (item.damageDetails.qualityInsStatus === 1){ |
| | | item.damageDetails.qualityInsStatus = '待质检'; |
| | | item.damageDetails.qualityInsStatus = t('reportingWorks.unqualified'); |
| | | } |
| | | else if (item.damageDetails.qualityInsStatus === 0){ |
| | | item.damageDetails.qualityInsStatus = '无需质检'; |
| | | item.damageDetails.qualityInsStatus = t('reportingWorks.notQualified'); |
| | | } |
| | | }); |
| | | xGrid.value.reloadData(produceList) |
| | |
| | | size="small"> |
| | | {{ $t('basicData.edit') }} |
| | | </el-button> |
| | | <el-button v-if="row.damageDetails.qualityInsStatus==='已质检'||row.damageDetails.qualityInsStatus==='无需质检'" disabled @click="getTableRow(row,'setType')" link type="primary" size="small">{{ $t('basicData.review') }}</el-button> |
| | | <el-button v-if="row.damageDetails.qualityInsStatus===t('reportingWorks.qualified')||row.damageDetails.qualityInsStatus===t('reportingWorks.notQualified')" disabled @click="getTableRow(row,'setType')" link type="primary" size="small">{{ $t('basicData.review') }}</el-button> |
| | | <el-button v-else @click="getTableRow(row,'setType')" link type="primary" size="small">{{ $t('basicData.review') }}</el-button> |
| | | </template> |
| | | |