|
@@ -43,7 +43,14 @@
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
-
|
|
|
|
|
|
|
+ <el-col :span="8">
|
|
|
|
|
+ <el-form-item label="属性类型:" prop="attributeType">
|
|
|
|
|
+ <el-select v-model="form.attributeType" filterable class="ele-block">
|
|
|
|
|
+ <el-option v-for="item in attributeList" :key="item.value" :value="item.value"
|
|
|
|
|
+ :label="item.label"></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
<el-col :span="8" v-if="
|
|
<el-col :span="8" v-if="
|
|
|
[1, 23, 9, 28].includes(
|
|
[1, 23, 9, 28].includes(
|
|
|
Number(categoryLevelPathId || $route.query.rootTreeId)
|
|
Number(categoryLevelPathId || $route.query.rootTreeId)
|
|
@@ -98,7 +105,8 @@
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item label="体积">
|
|
<el-form-item label="体积">
|
|
|
<div class="form-line">
|
|
<div class="form-line">
|
|
|
- <el-input v-model="form.volume" style="width: calc(100% - 100px)" @input="handleInput1" />
|
|
|
|
|
|
|
+ <el-input v-model="form.volume" style="width: calc(100% - 100px)" />
|
|
|
|
|
+ <!-- @input="handleInput1" -->
|
|
|
<DictSelection dictName="体积单位" clearable v-model="form.volumeUnit" style="width: 100px">
|
|
<DictSelection dictName="体积单位" clearable v-model="form.volumeUnit" style="width: 100px">
|
|
|
</DictSelection>
|
|
</DictSelection>
|
|
|
</div>
|
|
</div>
|
|
@@ -143,6 +151,8 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
</el-card>
|
|
</el-card>
|
|
@@ -155,7 +165,6 @@
|
|
|
<WarehouseInfo ref="warehouseRefs" v-if="isShow" :form="categoryWms" :measuringUnit="form.measuringUnit"
|
|
<WarehouseInfo ref="warehouseRefs" v-if="isShow" :form="categoryWms" :measuringUnit="form.measuringUnit"
|
|
|
:packingUnit="form.packingUnit" :packageDispositionVOList="packageDispositionVOList"
|
|
:packingUnit="form.packingUnit" :packageDispositionVOList="packageDispositionVOList"
|
|
|
@change="changePackagingSpecification" />
|
|
@change="changePackagingSpecification" />
|
|
|
-
|
|
|
|
|
<!-- 销售配置 -->
|
|
<!-- 销售配置 -->
|
|
|
<SalesInfos ref="salesRefs" :form="categorySales" />
|
|
<SalesInfos ref="salesRefs" :form="categorySales" />
|
|
|
<!-- 采购信息 -->
|
|
<!-- 采购信息 -->
|
|
@@ -257,12 +266,29 @@ export default {
|
|
|
categoryLevelName: '',
|
|
categoryLevelName: '',
|
|
|
isConsumable: 1,
|
|
isConsumable: 1,
|
|
|
measuringUnit: '',
|
|
measuringUnit: '',
|
|
|
|
|
+ attributeType: '',
|
|
|
weightUnit: '',
|
|
weightUnit: '',
|
|
|
packingUnit: '',
|
|
packingUnit: '',
|
|
|
|
|
|
|
|
extField: {}
|
|
extField: {}
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+ attributeList: [
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '总装',
|
|
|
|
|
+ value: 1
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '部件',
|
|
|
|
|
+ value: 2
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '零件',
|
|
|
|
|
+ value: 3
|
|
|
|
|
+ }, {
|
|
|
|
|
+ label: '原材料',
|
|
|
|
|
+ value: 4
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
remarkform: {
|
|
remarkform: {
|
|
|
remarkAttach: []
|
|
remarkAttach: []
|
|
|
},
|
|
},
|
|
@@ -297,6 +323,9 @@ export default {
|
|
|
produceType: [
|
|
produceType: [
|
|
|
{ required: true, message: '请选择生产类型', trigger: 'change' }
|
|
{ required: true, message: '请选择生产类型', trigger: 'change' }
|
|
|
],
|
|
],
|
|
|
|
|
+ attributeType: [
|
|
|
|
|
+ { required: true, message: '请选择属性类型', trigger: 'change' }
|
|
|
|
|
+ ],
|
|
|
categoryLevelName: [
|
|
categoryLevelName: [
|
|
|
{ required: true, message: '请选择所属分类', trigger: 'change' }
|
|
{ required: true, message: '请选择所属分类', trigger: 'change' }
|
|
|
],
|
|
],
|
|
@@ -366,7 +395,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
deep: true,
|
|
deep: true,
|
|
|
immediate: true
|
|
immediate: true
|
|
|
- },
|
|
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
async activated() {
|
|
async activated() {
|
|
|
this.status = this.$route.query.status;
|
|
this.status = this.$route.query.status;
|
|
@@ -420,7 +449,7 @@ export default {
|
|
|
this.getDictList('productionType');
|
|
this.getDictList('productionType');
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- handleInput1(value) {
|
|
|
|
|
|
|
+ handleInput(value) {
|
|
|
this.form.volume = this.$handleInputPublicHasPoint(value);
|
|
this.form.volume = this.$handleInputPublicHasPoint(value);
|
|
|
},
|
|
},
|
|
|
handleInput2(value) {
|
|
handleInput2(value) {
|
|
@@ -451,7 +480,7 @@ export default {
|
|
|
console.log(this.form.measuringUnit, 'this.form.measuringUnit');
|
|
console.log(this.form.measuringUnit, 'this.form.measuringUnit');
|
|
|
console.log(this.form.packingUnit, 'this.form.packingUnit');
|
|
console.log(this.form.packingUnit, 'this.form.packingUnit');
|
|
|
if (this.packageDispositionVOList.length === 0) {
|
|
if (this.packageDispositionVOList.length === 0) {
|
|
|
- console.log('如果没有包装组,则添加包装组');
|
|
|
|
|
|
|
+ console.log('如果没有包装组');
|
|
|
this.$refs.warehouseRefs.defaultBuild(this.form.packingUnit);
|
|
this.$refs.warehouseRefs.defaultBuild(this.form.packingUnit);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -462,7 +491,6 @@ export default {
|
|
|
changePackagingSpecification(val) {
|
|
changePackagingSpecification(val) {
|
|
|
console.log('changePackagingSpecification---', val);
|
|
console.log('changePackagingSpecification---', val);
|
|
|
this.packagingSpecificationList = val;
|
|
this.packagingSpecificationList = val;
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
async _getDetails() {
|
|
async _getDetails() {
|
|
|
const data = await getDetails(this.$route.query.id);
|
|
const data = await getDetails(this.$route.query.id);
|