|
|
@@ -1,22 +1,142 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
<el-form label-width="100px" ref="form" :model="attributeData">
|
|
|
-
|
|
|
-
|
|
|
<el-row>
|
|
|
- <el-col :span="16" label-width="100px">
|
|
|
- <el-form-item label="编码" prop="code">
|
|
|
- <el-input placeholder="" v-model="attributeData.code"></el-input>
|
|
|
+ <el-col :span="8" label-width="100px">
|
|
|
+ <el-form-item label="名称:" prop="category.name">
|
|
|
+ <el-input
|
|
|
+ placeholder=""
|
|
|
+ v-model="category.name"
|
|
|
+ disabled
|
|
|
+ ></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- </el-row>
|
|
|
|
|
|
- <el-row>
|
|
|
- <el-col :span="16" label-width="100px">
|
|
|
- <el-form-item label="名称" prop="name">
|
|
|
- <el-input placeholder="" v-model="attributeData.name"></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8" label-width="100px">
|
|
|
+ <el-form-item label="编码:" prop="code">
|
|
|
+ <el-input
|
|
|
+ placeholder=""
|
|
|
+ v-model="category.code"
|
|
|
+ disabled
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8" label-width="100px">
|
|
|
+ <el-form-item label="牌号:" prop="brandNum">
|
|
|
+ <el-input
|
|
|
+ placeholder=""
|
|
|
+ v-model="category.brandNum"
|
|
|
+ disabled
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8" label-width="100px">
|
|
|
+ <el-form-item label="型号:" prop="modelType">
|
|
|
+ <el-input
|
|
|
+ placeholder=""
|
|
|
+ v-model="category.modelType"
|
|
|
+ disabled
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8" label-width="100px">
|
|
|
+ <el-form-item label="规格:" prop="specification">
|
|
|
+ <el-input
|
|
|
+ placeholder=""
|
|
|
+ v-model="category.specification"
|
|
|
+ disabled
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8" label-width="100px">
|
|
|
+ <el-form-item label="计量单位:" prop="measuringUnit">
|
|
|
+ <el-input
|
|
|
+ placeholder=""
|
|
|
+ v-model="category.measuringUnit"
|
|
|
+ disabled
|
|
|
+ ></el-input>
|
|
|
+
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8" label-width="100px">
|
|
|
+ <el-form-item label="重量单位:" prop="weightUnit">
|
|
|
+
|
|
|
+ <el-input
|
|
|
+ placeholder=""
|
|
|
+ v-model="category.weightUnit"
|
|
|
+ disabled
|
|
|
+ ></el-input>
|
|
|
+
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8" label-width="100px">
|
|
|
+ <el-form-item label="包装单位:" prop="packingUnit">
|
|
|
+ <el-input
|
|
|
+ placeholder=""
|
|
|
+ v-model="category.packingUnit"
|
|
|
+ disabled
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8" label-width="100px">
|
|
|
+ <el-form-item label="毛重:" prop="roughWeight">
|
|
|
+ <el-input
|
|
|
+ placeholder=""
|
|
|
+ v-model="category.roughWeight"
|
|
|
+ disabled
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8" label-width="100px">
|
|
|
+ <el-form-item label="净重:" prop="netWeight">
|
|
|
+ <el-input
|
|
|
+ placeholder=""
|
|
|
+ v-model="category.netWeight"
|
|
|
+ disabled
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8" label-width="100px">
|
|
|
+ <el-form-item
|
|
|
+ label="加工类型:"
|
|
|
+ prop="isConsumable"
|
|
|
+ v-if="
|
|
|
+ [1, 23, 9, 28].includes(Number(category.categoryLevelPathId))
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <el-input
|
|
|
+ placeholder=""
|
|
|
+ :v-model="category.isConsumable == 1 ? '批量' : '单件'"
|
|
|
+ disabled
|
|
|
+ ></el-input>
|
|
|
+
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8" label-width="100px">
|
|
|
+ <el-form-item label="生产类型:" prop="produceType">
|
|
|
+ <el-input
|
|
|
+ placeholder=""
|
|
|
+ :v-model=" category.produceType &&
|
|
|
+ ['自制件', '采购件', '装配件', '外协件'][
|
|
|
+ category.produceType - 1
|
|
|
+ ]"
|
|
|
+ disabled
|
|
|
+ ></el-input>
|
|
|
+
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
</el-row>
|
|
|
|
|
|
<el-row>
|
|
|
@@ -137,106 +257,16 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
|
|
|
- <el-row style="margin-top: 18px">
|
|
|
- <el-divider>产品信息</el-divider>
|
|
|
-
|
|
|
- <el-col style="margin-top: 18px" :span="12" label-width="100px">
|
|
|
- <el-form-item label="产品:" prop="category.name">
|
|
|
- <el-input
|
|
|
- placeholder="请选择产品"
|
|
|
- @click.native="handleProduct()"
|
|
|
- v-model="category.name"
|
|
|
- ></el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
-
|
|
|
- <div v-if="category.name">
|
|
|
- <el-col style="margin-top: 18px" :span="12" label-width="100px">
|
|
|
- <el-form-item label="编码:" prop="code">
|
|
|
- {{ category.code }}
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
-
|
|
|
- <el-col :span="12" label-width="100px">
|
|
|
- <el-form-item label="牌号:" prop="brandNum">
|
|
|
- {{ category.brandNum }}
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
-
|
|
|
- <el-col :span="12" label-width="100px">
|
|
|
- <el-form-item label="型号:" prop="modelType">
|
|
|
- {{ category.modelType }}
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
-
|
|
|
- <el-col :span="12" label-width="100px">
|
|
|
- <el-form-item label="规格:" prop="specification">
|
|
|
- {{ category.specification }}
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
-
|
|
|
- <el-col :span="12" label-width="100px">
|
|
|
- <el-form-item label="计量单位:" prop="measuringUnit">
|
|
|
- {{ category.measuringUnit }}
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
-
|
|
|
- <el-col :span="12" label-width="100px">
|
|
|
- <el-form-item label="重量单位:" prop="weightUnit">
|
|
|
- {{ category.weightUnit }}
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
-
|
|
|
- <el-col :span="12" label-width="100px">
|
|
|
- <el-form-item label="包装单位:" prop="packingUnit">
|
|
|
- {{ category.packingUnit }}
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
-
|
|
|
- <el-col :span="12" label-width="100px">
|
|
|
- <el-form-item label="毛重:" prop="roughWeight">
|
|
|
- {{ category.roughWeight }}
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
-
|
|
|
- <el-col :span="12" label-width="100px">
|
|
|
- <el-form-item label="净重:" prop="netWeight">
|
|
|
- {{ category.netWeight }}
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
-
|
|
|
- <el-col :span="12" label-width="100px">
|
|
|
- <el-form-item
|
|
|
- label="加工类型:"
|
|
|
- prop="isConsumable"
|
|
|
- v-if="
|
|
|
- [1, 23, 9, 28].includes(Number(category.categoryLevelPathId))
|
|
|
- "
|
|
|
- >
|
|
|
- {{ category.isConsumable == 1 ? '批量' : '单件' }}
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </div>
|
|
|
- </el-row>
|
|
|
-
|
|
|
- <div class="btn_box">
|
|
|
+ <!-- <div class="btn_box">
|
|
|
<el-button type="primary">修改</el-button>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</el-form>
|
|
|
-
|
|
|
- <standardOutput
|
|
|
- ref="standardOutputRefs"
|
|
|
- @selection="chooseStandardList"
|
|
|
- ></standardOutput>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import standardOutput from './standardOutput.vue';
|
|
|
export default {
|
|
|
- components: {
|
|
|
- standardOutput
|
|
|
- },
|
|
|
+ components: {},
|
|
|
data() {
|
|
|
return {
|
|
|
form: {},
|
|
|
@@ -265,27 +295,16 @@
|
|
|
{
|
|
|
label: 'ABOM',
|
|
|
value: '3'
|
|
|
- }
|
|
|
+ },
|
|
|
+
|
|
|
]
|
|
|
};
|
|
|
},
|
|
|
|
|
|
created() {},
|
|
|
|
|
|
- beforeDestroy() {
|
|
|
- this.category = { name: '' };
|
|
|
- },
|
|
|
- methods: {
|
|
|
- handleProduct() {
|
|
|
- this.$refs.standardOutputRefs.open(9);
|
|
|
- },
|
|
|
- chooseStandardList(type, data) {
|
|
|
- if (type == 9) {
|
|
|
- this.category = data[0];
|
|
|
- this.$forceUpdate();
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
+ beforeDestroy() {},
|
|
|
+ methods: {},
|
|
|
props: {
|
|
|
attributeData: {
|
|
|
type: Object,
|