Browse Source

质量通知

master_hella_20240701
zhang_li 8 months ago
parent
commit
e4b82a2cf3
  1. 24
      src/views/qms/qualityNotice/addForm.vue
  2. 19
      src/views/qms/qualityNotice/components/qualityBatch.vue

24
src/views/qms/qualityNotice/addForm.vue

@ -14,8 +14,8 @@
<el-step title="质量物料批次" />
</el-steps>
<NotaicType v-show="active == 0" ref="notaicTypeFrom" :data='data' :disabled='disabled'/>
<qualityNotice v-show="active == 1" ref="qualityNoticeFrom" :data='data' :type="notaicTypeFrom?.type||1"/>
<qualityBatch v-show="active == 2" ref="qualityBatchFrom" :subListData='data.subList' :number='data.number'/>
<qualityNotice v-show="active == 1" ref="qualityNoticeFrom" :data='data' :type="notaicTypeFrom?.type||1" :disabled='disabled'/>
<qualityBatch v-show="active == 2" ref="qualityBatchFrom" :subListData='data.subList' :number='data.number' :disabled='disabled'/>
</div>
<template #footer>
<el-button @click="prov" type="primary" v-if="active != 0">上一步</el-button>
@ -393,14 +393,22 @@ watch(
() => active.value,
(val) => {
if(val == 2){
Butttondata = [
defaultButtons.formSaveBtn(null), //
defaultButtons.formCloseBtn(null) //
]
//
if(disabled.value){
Butttondata = [
defaultButtons.formCloseBtn(null) //
]
}else{
Butttondata = [
defaultButtons.formSaveBtn(null), //
defaultButtons.formCloseBtn(null) //
]
}
}else{
Butttondata = [
defaultButtons.formCloseBtn(null) //
]
defaultButtons.formCloseBtn(null) //
]
}
}
)

19
src/views/qms/qualityNotice/components/qualityBatch.vue

@ -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)//

Loading…
Cancel
Save