|
|
@@ -2,7 +2,7 @@
|
|
|
<div class="baseInfo">
|
|
|
<el-form ref="form" :model="dataInfo">
|
|
|
<el-col :span="4" label-width="80px">
|
|
|
- <el-form-item label="类型" prop="type">
|
|
|
+ <el-form-item label="类型:" prop="type">
|
|
|
{{
|
|
|
dataInfo.bomType == 1
|
|
|
? 'PBOM'
|
|
|
@@ -19,12 +19,12 @@
|
|
|
|
|
|
<el-row>
|
|
|
<el-col :span="5" label-width="78px">
|
|
|
- <el-form-item label="BOM编码" prop="type">
|
|
|
+ <el-form-item label="BOM编码:" prop="type">
|
|
|
{{ dataInfo.code }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="5" label-width="78px">
|
|
|
- <el-form-item label="BOM名称" prop="type">
|
|
|
+ <el-form-item label="BOM名称:" prop="type">
|
|
|
{{ dataInfo.name }}
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -34,8 +34,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="4" label-width="80px">
|
|
|
- <el-form-item label="状态" prop="type">
|
|
|
-
|
|
|
+ <el-form-item label="状态:" prop="type">
|
|
|
<el-select
|
|
|
size="mini"
|
|
|
style="width: 120px"
|
|
|
@@ -55,17 +54,29 @@
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="2" label-width="78px">
|
|
|
- <el-button type="text"> 编辑</el-button>
|
|
|
+ <el-button type="text" @click="handleEdit"> 编辑</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
+
|
|
|
+ <baseInfoSave
|
|
|
+ v-if="baseInfoShow"
|
|
|
+ @close="baseClose"
|
|
|
+ :categoryObj="dataInfo"
|
|
|
+ :isEdit="true"
|
|
|
+ ></baseInfoSave>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import baseInfoSave from './baseInfoSave.vue';
|
|
|
export default {
|
|
|
+ components: {
|
|
|
+ baseInfoSave
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
+ baseInfoShow: false,
|
|
|
statusOptions: [
|
|
|
{
|
|
|
label: '已停用',
|
|
|
@@ -90,6 +101,15 @@
|
|
|
return {};
|
|
|
}
|
|
|
}
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ handleEdit() {
|
|
|
+ this.baseInfoShow = true;
|
|
|
+ },
|
|
|
+
|
|
|
+ baseClose() {
|
|
|
+ this.baseInfoShow = false;
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|