Browse Source

质量通知

master_hella_20240701
zhang_li 7 months ago
parent
commit
4fa3e86c5f
  1. 7
      src/views/qms/qualityNotice/addForm.vue
  2. 4
      src/views/qms/qualityNotice/components/notaicType.vue
  3. 1
      src/views/qms/qualityNotice/components/qualityNotice.vue

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

@ -13,8 +13,8 @@
<el-step title="质量通知" /> <el-step title="质量通知" />
<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' @changeType="changeType"/>
<qualityNotice v-show="active == 1" ref="qualityNoticeFrom" :data='data' :type="notaicTypeFrom?.type||1" :disabled='disabled'/> <qualityNotice v-show="active == 1" ref="qualityNoticeFrom" :data='data' :type="data?.type||1" :disabled='disabled' />
<qualityBatch v-show="active == 2" ref="qualityBatchFrom" :subListData='data.subList' :number='data.number' :disabled='disabled'/> <qualityBatch v-show="active == 2" ref="qualityBatchFrom" :subListData='data.subList' :number='data.number' :disabled='disabled'/>
</div> </div>
<template #footer> <template #footer>
@ -226,6 +226,9 @@ const submitForm = async () => {
console.log(111) console.log(111)
} }
} }
const changeType = (e)=>{
data.value.type = e
}
/** 弹窗按钮 */ /** 弹窗按钮 */
let Butttondata: any = [] let Butttondata: any = []
if (props.footButttondata) { if (props.footButttondata) {

4
src/views/qms/qualityNotice/components/notaicType.vue

@ -146,6 +146,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { emit } from 'process'
const type = ref(1)// const type = ref(1)//
// //
@ -188,6 +189,7 @@ const rules3 =ref({
woContact: [required], woContact: [required],
}) })
const changeType =(e)=>{ const changeType =(e)=>{
emit('changeType',e)
// if(e == 1){ // if(e == 1){
// form.value = q1.value // form.value = q1.value
// }else if(e == 2){ // }else if(e == 2){
@ -196,6 +198,8 @@ const changeType =(e)=>{
// form.value = form3.value // form.value = form3.value
// } // }
} }
//
const emit = defineEmits(['changeType'])
defineExpose({type,formRef1,formRef2,formRef3,q1,q2,q3}) defineExpose({type,formRef1,formRef2,formRef3,q1,q2,q3})
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">

1
src/views/qms/qualityNotice/components/qualityNotice.vue

@ -167,6 +167,7 @@ nextTick(()=>{
statusList.value =getIntDictOptions(DICT_TYPE.QUALITY_NOTICE_STATUS).filter(item=>item.value == 1) statusList.value =getIntDictOptions(DICT_TYPE.QUALITY_NOTICE_STATUS).filter(item=>item.value == 1)
} }
form.value.status = parseInt(form.value.status) form.value.status = parseInt(form.value.status)
form.value.type = parseInt(form.value.type)
}) })
// //

Loading…
Cancel
Save