You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
<template>
|
|
|
|
|
<el-dialog title="返工工艺编制" v-model="setCrewShow" :before-close="cancel" fullscreen @opened="opened">
|
|
|
|
|
<div class="tabs-container">
|
|
|
|
|
<reworkProcessPlanning ref="craftEdit" :part-id="partId" :dialogType="dialogType" :updateRow="updateRow" @cancel="cancel"></reworkProcessPlanning>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- <template #footer>
|
|
|
|
|
<div class="dialog-footer">
|
|
|
|
|
<el-button @click="cancel()">取消</el-button>
|
|
|
|
|
<el-button type="primary" @click="save()">
|
|
|
|
|
确认
|
|
|
|
|
</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</template> -->
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</template>
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
|
|
import reworkProcessPlanning from './reworkProcessPlanning.vue'
|
|
|
|
|
export default {
|
|
|
|
|
name: 'DsPartIndex',
|
|
|
|
|
components: {
|
|
|
|
|
reworkProcessPlanning
|
|
|
|
|
},
|
|
|
|
|
props: {
|
|
|
|
|
partType: {
|
|
|
|
|
type: String,
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
isOpen: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
default: false
|
|
|
|
|
},
|
|
|
|
|
partId: {
|
|
|
|
|
type: [Number, String],
|
|
|
|
|
default: null
|
|
|
|
|
},
|
|
|
|
|
dialogType: {
|
|
|
|
|
type: String,
|
|
|
|
|
default: '',
|
|
|
|
|
},
|
|
|
|
|
updateRow: {
|
|
|
|
|
type: Object,
|
|
|
|
|
default: {},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
setCrewShow: false,
|
|
|
|
|
activeName: '1'
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
cancelClose(flag, dsPart) {
|
|
|
|
|
if (flag) {
|
|
|
|
|
this.cancel(true);
|
|
|
|
|
} else {
|
|
|
|
|
this.partId = dsPart.partId;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
cancel(refresh) {
|
|
|
|
|
this.activeName = '1';
|
|
|
|
|
// this.$refs.dsPartRef.clear();
|
|
|
|
|
this.setCrewShow = false
|
|
|
|
|
this.$emit('cancel', typeof refresh === 'boolean' && refresh);
|
|
|
|
|
},
|
|
|
|
|
// save(){
|
|
|
|
|
// this.$refs.craftEdit.submit()
|
|
|
|
|
// }
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.setCrewShow = this.isOpen
|
|
|
|
|
console.log('弹框页', this.dialogType)
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.tabs-container {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.content-right {
|
|
|
|
|
width: 200px;
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: -24px;
|
|
|
|
|
top: -5px;
|
|
|
|
|
/* 或者使用 flex: 0 0 200px; 根据需要调整宽度 */
|
|
|
|
|
}
|
|
|
|
|
</style>
|