Commit 066d9554 authored by 15008242619's avatar 15008242619

上机成品实物纪实 新增时新增

parent d7b89814
<template>
<div class="add-productsRecordATPNo">
<dee-as-com ref="addATPNo" :lay-config="{ typeName: 'RecordNoAndVersion', layKey: 'ATPNoCreate' }" />
<div slot="footer" class="foot-btn-box">
<el-button type="primary" @click="submitEvent">确认</el-button>
<el-button @click="cancelEvent">取消</el-button>
</div>
</div>
</template>
<script>
export default {
name: 'AddProductsRecordATPNo', // name写在组件的最前方,自定义组件为必填
componentName: '实物纪实新增ATP编号及版次',
components: {},
props: {
basicData: {
type: Object,
default: () => { }
},
form: {
type: Object,
default: () => { }
}
},
data() {
return {
}
},
computed: {},
created() {
// 初始化数据
},
methods: {
submitEvent() {
// 弹框填写的ATP编号及版次数据
const form = this.$refs.addATPNo.$refs.asCom.form
const tableDataList = []
tableDataList.push({
numberNo: form.numberNo,
version: form.version
})
this.$nextTick(() => {
this.$emit('submitEvent', { formData: tableDataList })
})
},
cancelEvent() {
this.$emit('cancel')
}
}
}
</script>
<style lang='scss'>
.add-productsRecordATPNo {
.foot-btn-box {
display: flex;
margin-top: 10px;
justify-content: center;
align-content: center;
}
}
</style>
<template>
<div class="add-productsRecordFigureNo">
<dee-as-com ref="addFigureNo" :lay-config="{ typeName: 'RecordNoAndVersion', layKey: 'figureNoCreate' }" />
<div slot="footer" class="foot-btn-box">
<el-button type="primary" @click="submitEvent">确认</el-button>
<el-button @click="cancelEvent">取消</el-button>
</div>
</div>
</template>
<script>
export default {
name: 'AddProductsRecordFigureNo', // name写在组件的最前方,自定义组件为必填
componentName: '实物纪实新增图号',
components: {},
props: {
basicData: {
type: Object,
default: () => { }
},
form: {
type: Object,
default: () => { }
}
},
data() {
return {
}
},
computed: {},
created() {
// 初始化数据
},
methods: {
submitEvent() {
// 弹框填写的图号及版次数据
const form = this.$refs.addFigureNo.$refs.asCom.form
const tableDataList = []
tableDataList.push({
numberNo: form.numberNo,
version: form.version
})
this.$nextTick(() => {
this.$emit('submitEvent', { formData: tableDataList })
})
},
cancelEvent() {
this.$emit('cancel')
}
}
}
</script>
<style lang='scss'>
.add-productsRecordFigureNo {
.foot-btn-box {
display: flex;
margin-top: 10px;
justify-content: center;
align-content: center;
}
}
</style>
<template>
<div class="add-productsRecordHardwareNo">
<dee-as-com ref="addHardwareNo" :lay-config="{ typeName: 'RecordNoAndVersion', layKey: 'hardwareNoCreate' }" />
<div slot="footer" class="foot-btn-box">
<el-button type="primary" @click="submitEvent">确认</el-button>
<el-button @click="cancelEvent">取消</el-button>
</div>
</div>
</template>
<script>
export default {
name: 'AddProductsRecordHardwareNo', // name写在组件的最前方,自定义组件为必填
componentName: '实物纪实新增硬件构型号',
components: {},
props: {
basicData: {
type: Object,
default: () => { }
},
form: {
type: Object,
default: () => { }
}
},
data() {
return {
}
},
computed: {},
created() {
// 初始化数据
},
methods: {
submitEvent() {
// 弹框填写的硬件编号及版次数据
const form = this.$refs.addHardwareNo.$refs.asCom.form
const tableDataList = []
tableDataList.push({
numberNo: form.numberNo
})
this.$nextTick(() => {
this.$emit('submitEvent', { formData: tableDataList })
})
},
cancelEvent() {
this.$emit('cancel')
}
}
}
</script>
<style lang='scss'>
.add-productsRecordHardwareNo {
.foot-btn-box {
display: flex;
margin-top: 10px;
justify-content: center;
align-content: center;
}
}
</style>
<template>
<div class="add-productsRecordSoftwareNo">
<dee-as-com ref="addSoftwareNo" :lay-config="{ typeName: 'RecordNoAndVersion', layKey: 'softwareNoCreate' }" />
<div slot="footer" class="foot-btn-box">
<el-button type="primary" @click="submitEvent">确认</el-button>
<el-button @click="cancelEvent">取消</el-button>
</div>
</div>
</template>
<script>
export default {
name: 'AddProductsRecordSoftwareNo', // name写在组件的最前方,自定义组件为必填
componentName: '实物纪实新增软件编号及版本',
components: {},
props: {
basicData: {
type: Object,
default: () => { }
},
form: {
type: Object,
default: () => { }
}
},
data() {
return {
}
},
computed: {},
created() {
// 初始化数据
},
methods: {
submitEvent() {
// 弹框填写的软件编号及版次数据
const form = this.$refs.addSoftwareNo.$refs.asCom.form
const tableDataList = []
tableDataList.push({
numberNo: form.numberNo,
version: form.version
})
this.$nextTick(() => {
this.$emit('submitEvent', { formData: tableDataList })
})
},
cancelEvent() {
this.$emit('cancel')
}
}
}
</script>
<style lang='scss'>
.add-productsRecordSoftwareNo {
.foot-btn-box {
display: flex;
margin-top: 10px;
justify-content: center;
align-content: center;
}
}
</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