| | |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row v-if="isReworkResult"> |
| | | <el-col :span="24"> |
| | | <el-alert |
| | | title="提交后将自动创建返工生产订单(FG单号)" |
| | | type="info" |
| | | :closable="false" |
| | | show-icon |
| | | style="margin-bottom: 12px" |
| | | /> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="30"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="处理人:" prop="dealName"> |
| | |
| | | const userList = ref([]); // 处理人下拉列表 |
| | | |
| | | const filteredRejectionHandling = computed(() => { |
| | | const data = rejection_handling.value; |
| | | let data = rejection_handling.value; |
| | | // 原料类不合格只允许"报废/让步放行" |
| | | if (form.value.inspectType === 0 || form.value.inspectType === "0") { |
| | | data = data.filter(item => item && (item.label === '报废' || item.label === '让步放行')); |
| | | } |
| | | if (form.value.method) { |
| | | return data.filter(item => item && item.label && item.label !== '返工' && item.label !== '返修') |
| | | } |
| | | return data |
| | | }) |
| | | |
| | | // 选中"返工/返修"时的提示 |
| | | const isReworkResult = computed(() => { |
| | | const item = (rejection_handling.value || []).find(i => i.value === form.value.dealResult); |
| | | const label = item ? item.label : form.value.dealResult; |
| | | return label === '返工' || label === '返修'; |
| | | }) |
| | | |
| | | |
| | | // 打开弹框 |
| | | const openDialog = async (type, row) => { |