|
|
@ -15,7 +15,7 @@ |
|
|
|
:label="item.sequenceCode" |
|
|
|
:name="item.name" |
|
|
|
> |
|
|
|
<el-form :model="item" label-width="auto" :rules="qualityBatchRules" ref="qualityBatchFormRef"> |
|
|
|
<el-form :model="item" label-width="auto" :rules="qualityBatchRules" ref="qualityBatchFormRef" :disabled='disabled'> |
|
|
|
<el-row :gutter="20"> |
|
|
|
<!-- <el-col :span="12"> |
|
|
|
<el-form-item label="质量通知单号" prop="qualityNoticeNumber"> |
|
|
@ -61,11 +61,11 @@ |
|
|
|
</el-form> |
|
|
|
<div class="title-btn"> |
|
|
|
<div class="title">质量通知包装</div> |
|
|
|
<el-button type="primary" plain @click="handleAdd('package',item)">添加包装</el-button> |
|
|
|
<el-button type="primary" plain @click="handleAdd('package',item)" v-if="!disabled">添加包装</el-button> |
|
|
|
</div> |
|
|
|
<el-table :data="item.packageList" style="width: 100%" border> |
|
|
|
<!-- <el-table-column prop="qualityNoticeNumber" label="质量通知单号" align="center"/>--> |
|
|
|
<el-table-column label="" width="60" align="center"> |
|
|
|
<el-table-column label="" width="60" align="center" v-if="!disabled"> |
|
|
|
<template #default="scope"> |
|
|
|
<Icon icon="ep:remove" @click="det(scope.$index,item.packageList)" size='24' style="cursor: pointer;"/> |
|
|
|
</template> |
|
|
@ -78,12 +78,12 @@ |
|
|
|
</el-table> |
|
|
|
<div class="title-btn"> |
|
|
|
<div class="title">质量通知任务</div> |
|
|
|
<el-button type="primary" plain @click="handleAdd('task',item)">添加任务</el-button> |
|
|
|
<el-button type="primary" plain @click="handleAdd('task',item)" v-if="!disabled">添加任务</el-button> |
|
|
|
</div> |
|
|
|
<el-table :data="item.taskList" style="width: 100%" border> |
|
|
|
<!-- <el-table-column prop="qualityNoticeNumber" label="质量通知单号" align="center" width="150"/> |
|
|
|
<el-table-column prop="code" label="编码" align="center" width="150"/> --> |
|
|
|
<el-table-column label="" width="60" align="center"> |
|
|
|
<el-table-column label="" width="60" align="center" v-if="!disabled"> |
|
|
|
<template #default="scope"> |
|
|
|
<Icon icon="ep:remove" @click="det(scope.$index,item.taskList)" size='24' style="cursor: pointer;"/> |
|
|
|
</template> |
|
|
@ -104,10 +104,10 @@ |
|
|
|
</el-table> |
|
|
|
<div class="title-btn"> |
|
|
|
<div class="title">质量通知缺陷</div> |
|
|
|
<el-button type="primary" plain @click="handleAdd('defect',item)">添加缺陷</el-button> |
|
|
|
<el-button type="primary" plain @click="handleAdd('defect',item)" v-if="!disabled">添加缺陷</el-button> |
|
|
|
</div> |
|
|
|
<el-table :data="item.defectList" style="width: 100%" border> |
|
|
|
<el-table-column label="" width="60" align="center"> |
|
|
|
<el-table-column label="" width="60" align="center" v-if="!disabled"> |
|
|
|
<template #default="scope"> |
|
|
|
<Icon icon="ep:remove" @click="det(scope.$index,item.defectList)" size='24' style="cursor: pointer;"/> |
|
|
|
</template> |
|
|
@ -365,6 +365,11 @@ const props = defineProps({ |
|
|
|
type: String, |
|
|
|
default: '' |
|
|
|
}, |
|
|
|
// 是否可输入 |
|
|
|
disabled:{ |
|
|
|
type:Boolean, |
|
|
|
default: false |
|
|
|
} |
|
|
|
}) |
|
|
|
const editableTabsValue = ref('1') |
|
|
|
const dialogVisible = ref(false)//弹窗 |
|
|
|