Browse Source

质量通知

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

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

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

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

@ -15,7 +15,7 @@
:label="item.sequenceCode" :label="item.sequenceCode"
:name="item.name" :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-row :gutter="20">
<!-- <el-col :span="12"> <!-- <el-col :span="12">
<el-form-item label="质量通知单号" prop="qualityNoticeNumber"> <el-form-item label="质量通知单号" prop="qualityNoticeNumber">
@ -61,11 +61,11 @@
</el-form> </el-form>
<div class="title-btn"> <div class="title-btn">
<div class="title">质量通知包装</div> <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> </div>
<el-table :data="item.packageList" style="width: 100%" border> <el-table :data="item.packageList" style="width: 100%" border>
<!-- <el-table-column prop="qualityNoticeNumber" label="质量通知单号" align="center"/>--> <!-- <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"> <template #default="scope">
<Icon icon="ep:remove" @click="det(scope.$index,item.packageList)" size='24' style="cursor: pointer;"/> <Icon icon="ep:remove" @click="det(scope.$index,item.packageList)" size='24' style="cursor: pointer;"/>
</template> </template>
@ -78,12 +78,12 @@
</el-table> </el-table>
<div class="title-btn"> <div class="title-btn">
<div class="title">质量通知任务</div> <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> </div>
<el-table :data="item.taskList" style="width: 100%" border> <el-table :data="item.taskList" style="width: 100%" border>
<!-- <el-table-column prop="qualityNoticeNumber" label="质量通知单号" align="center" width="150"/> <!-- <el-table-column prop="qualityNoticeNumber" label="质量通知单号" align="center" width="150"/>
<el-table-column prop="code" 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"> <template #default="scope">
<Icon icon="ep:remove" @click="det(scope.$index,item.taskList)" size='24' style="cursor: pointer;"/> <Icon icon="ep:remove" @click="det(scope.$index,item.taskList)" size='24' style="cursor: pointer;"/>
</template> </template>
@ -104,10 +104,10 @@
</el-table> </el-table>
<div class="title-btn"> <div class="title-btn">
<div class="title">质量通知缺陷</div> <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> </div>
<el-table :data="item.defectList" style="width: 100%" border> <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"> <template #default="scope">
<Icon icon="ep:remove" @click="det(scope.$index,item.defectList)" size='24' style="cursor: pointer;"/> <Icon icon="ep:remove" @click="det(scope.$index,item.defectList)" size='24' style="cursor: pointer;"/>
</template> </template>
@ -365,6 +365,11 @@ const props = defineProps({
type: String, type: String,
default: '' default: ''
}, },
//
disabled:{
type:Boolean,
default: false
}
}) })
const editableTabsValue = ref('1') const editableTabsValue = ref('1')
const dialogVisible = ref(false)// const dialogVisible = ref(false)//

Loading…
Cancel
Save