| | |
| | | clearable> |
| | | <el-option :label="item.label" |
| | | :value="item.value" |
| | | v-for="item in rejection_handling" |
| | | v-for="item in filteredRejectionHandling" |
| | | :key="item.value" /> |
| | | </el-select> |
| | | </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"> |
| | |
| | | const modelOptions = ref([]); |
| | | const userList = ref([]); // 检验员/处理人下拉列表 |
| | | |
| | | // 原料类(inspectType=0)不合格只允许"报废/让步放行" |
| | | const filteredRejectionHandling = computed(() => { |
| | | const data = rejection_handling.value || []; |
| | | if (form.value.inspectType === 0 || form.value.inspectType === "0") { |
| | | return data.filter( |
| | | item => item && (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) => { |
| | | operationType.value = type; |