Commit 6b462880 authored by xioln's avatar xioln

器材代用实施情况新增

parent 3b5f532b
/**
* @Description: 器材代用实施情况新增
* @author xioln
* @date 2023-10-13
* @FilePath: applications/dee-mes/src/privateComponents/components/AddEquipmentPut/index.vue
*/
<template>
<div class="add-equipmentPut">
<el-button type="primary" :disabled="disabledVal" @click="add">新增</el-button>
<add-dialog ref="addDialog" :form="form" @add="addImplementDocNo" />
</div>
</template>
<script>
import addDialog from './components/dialog.vue'
export default {
componentName: '器材代用实施情况新增',
name: 'AddEquipmentPut',
components: { addDialog },
props: {
form: {
type: Object,
default: () => { }
},
itemObj: {
type: Object,
default: null
}
},
data() {
return {
disabledVal: false
}
},
computed: {},
watch: {
itemObj: {
immediate: true,
deep: true,
handler(v) {
if (v.component.hasOwnProperty('disabled')) {
this.disabledVal = v.component.disabled
}
}
}
},
created() {
// 初始化数据
},
methods: {
add() {
this.$refs.addDialog.open()
},
addImplementDocNo(data) {
this.$emit('input', data)
}
}
}
</script>
<style lang='scss'>
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment