|
@@ -23,11 +23,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
|
|
- <el-col :span="8">
|
|
|
|
|
- <el-form-item label="图号/件号" prop="imgCode">
|
|
|
|
|
- <el-input v-model="form.imgCode" />
|
|
|
|
|
- </el-form-item>
|
|
|
|
|
- </el-col>
|
|
|
|
|
|
|
+
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item label="名称" prop="name">
|
|
<el-form-item label="名称" prop="name">
|
|
|
<el-input v-model="form.name" />
|
|
<el-input v-model="form.name" />
|
|
@@ -91,7 +87,7 @@
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item label="重量单位" prop="weightUnit">
|
|
<el-form-item label="重量单位" prop="weightUnit">
|
|
|
- <DictSelection dictName="重量单位" clearable v-model="form.weightUnit">
|
|
|
|
|
|
|
+ <DictSelection dictName="重量单位" clearable v-model="form.weightUnit" @change="changeWeightUnit">
|
|
|
</DictSelection>
|
|
</DictSelection>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -102,18 +98,13 @@
|
|
|
</DictSelection>
|
|
</DictSelection>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
-
|
|
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="体积">
|
|
|
|
|
- <div class="form-line">
|
|
|
|
|
- <el-input v-model="form.volume" style="width: calc(100% - 100px)" />
|
|
|
|
|
- <!-- @input="handleInput1" -->
|
|
|
|
|
- <DictSelection dictName="体积单位" clearable v-model="form.volumeUnit" style="width: 100px">
|
|
|
|
|
- </DictSelection>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <el-form-item label="图号/件号" prop="imgCode">
|
|
|
|
|
+ <el-input v-model="form.imgCode" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
+
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item label="毛重">
|
|
<el-form-item label="毛重">
|
|
|
<div class="form-line">
|
|
<div class="form-line">
|
|
@@ -129,7 +120,16 @@
|
|
|
</div>
|
|
</div>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
-
|
|
|
|
|
|
|
+ <el-col :span="8">
|
|
|
|
|
+ <el-form-item label="体积">
|
|
|
|
|
+ <div class="form-line">
|
|
|
|
|
+ <el-input v-model="form.volume" style="width: calc(100% - 100px)" />
|
|
|
|
|
+ <!-- @input="handleInput1" -->
|
|
|
|
|
+ <DictSelection dictName="体积单位" clearable v-model="form.volumeUnit" style="width: 100px">
|
|
|
|
|
+ </DictSelection>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
<el-form-item label="级别">
|
|
<el-form-item label="级别">
|
|
|
<template>
|
|
<template>
|
|
@@ -267,6 +267,7 @@ export default {
|
|
|
categoryLevelName: '',
|
|
categoryLevelName: '',
|
|
|
isConsumable: 1,
|
|
isConsumable: 1,
|
|
|
measuringUnit: '',
|
|
measuringUnit: '',
|
|
|
|
|
+ netWeight: '',
|
|
|
attributeType: '',
|
|
attributeType: '',
|
|
|
weightUnit: '',
|
|
weightUnit: '',
|
|
|
packingUnit: '',
|
|
packingUnit: '',
|
|
@@ -296,7 +297,7 @@ export default {
|
|
|
categorySales: {},
|
|
categorySales: {},
|
|
|
categoryPurchase: { purchaseMultiplier: 1, measuringUnit: '' },
|
|
categoryPurchase: { purchaseMultiplier: 1, measuringUnit: '' },
|
|
|
categoryAps: {},
|
|
categoryAps: {},
|
|
|
- categoryMes: {},
|
|
|
|
|
|
|
+ categoryMes: { productionDays: '1' },
|
|
|
categoryMold: {},
|
|
categoryMold: {},
|
|
|
categoryPallet: {},
|
|
categoryPallet: {},
|
|
|
categoryQms: {
|
|
categoryQms: {
|
|
@@ -306,7 +307,10 @@ export default {
|
|
|
categoryWms: {
|
|
categoryWms: {
|
|
|
isUnpack: 1,
|
|
isUnpack: 1,
|
|
|
isWarn: 1,
|
|
isWarn: 1,
|
|
|
- inventoryMode: ''
|
|
|
|
|
|
|
+ inventoryMode: '',
|
|
|
|
|
+ secureInventory: '1',
|
|
|
|
|
+ minInventory: '1',
|
|
|
|
|
+ maxInventory: '1',
|
|
|
},
|
|
},
|
|
|
packageDispositionVOList: [],
|
|
packageDispositionVOList: [],
|
|
|
categoryLevelPathId: null,
|
|
categoryLevelPathId: null,
|
|
@@ -366,6 +370,7 @@ export default {
|
|
|
// categoryLevelName: '',
|
|
// categoryLevelName: '',
|
|
|
isConsumable: 1,
|
|
isConsumable: 1,
|
|
|
measuringUnit: '',
|
|
measuringUnit: '',
|
|
|
|
|
+ netWeight: '',
|
|
|
weightUnit: '',
|
|
weightUnit: '',
|
|
|
packingUnit: '',
|
|
packingUnit: '',
|
|
|
extField: {}
|
|
extField: {}
|
|
@@ -376,7 +381,7 @@ export default {
|
|
|
remarkAttach: []
|
|
remarkAttach: []
|
|
|
};
|
|
};
|
|
|
this.categoryAps = {};
|
|
this.categoryAps = {};
|
|
|
- this.categoryMes = {};
|
|
|
|
|
|
|
+ this.categoryMes = { productionDays: '10' };
|
|
|
this.categoryMold = {};
|
|
this.categoryMold = {};
|
|
|
this.categoryPallet = {};
|
|
this.categoryPallet = {};
|
|
|
this.categoryQms = {};
|
|
this.categoryQms = {};
|
|
@@ -384,7 +389,11 @@ export default {
|
|
|
this.categoryWms = {
|
|
this.categoryWms = {
|
|
|
isUnpack: 1,
|
|
isUnpack: 1,
|
|
|
isWarn: 1,
|
|
isWarn: 1,
|
|
|
- inventoryMode: this.form.isConsumable
|
|
|
|
|
|
|
+ inventoryMode: this.form.isConsumable,
|
|
|
|
|
+ minPackageCell: '',
|
|
|
|
|
+ secureInventory: '10',
|
|
|
|
|
+ minInventory: '10',
|
|
|
|
|
+ maxInventory: '10',
|
|
|
};
|
|
};
|
|
|
this.packageDispositionVOList = [];
|
|
this.packageDispositionVOList = [];
|
|
|
this.categoryLevelPathId = null;
|
|
this.categoryLevelPathId = null;
|
|
@@ -458,12 +467,21 @@ export default {
|
|
|
},
|
|
},
|
|
|
handleInput3(value) {
|
|
handleInput3(value) {
|
|
|
this.form.netWeight = this.$handleInputPublicHasPoint(value);
|
|
this.form.netWeight = this.$handleInputPublicHasPoint(value);
|
|
|
|
|
+ if (this.form.weightUnit == this.form.measuringUnit) {
|
|
|
|
|
+ this.$refs.warehouseRefs.changeNetWeight(this.form.netWeight);
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
changeConsumable() {
|
|
changeConsumable() {
|
|
|
this.categoryWms.inventoryMode = this.form.isConsumable;
|
|
this.categoryWms.inventoryMode = this.form.isConsumable;
|
|
|
},
|
|
},
|
|
|
|
|
+ changeWeightUnit() {
|
|
|
|
|
+ if (this.form.measuringUnit && this.form.packingUnit && this.form.netWeight) {
|
|
|
|
|
+ this.$refs.warehouseRefs.changeNetWeight(this.form.netWeight);
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
changeUnit() {
|
|
changeUnit() {
|
|
|
if (this.$route.query.id == '' || this.$route.query.id == null) {
|
|
if (this.$route.query.id == '' || this.$route.query.id == null) {
|
|
|
|
|
+
|
|
|
if (this.form.measuringUnit) {
|
|
if (this.form.measuringUnit) {
|
|
|
this.categoryPurchase.measuringUnit = this.form.measuringUnit;
|
|
this.categoryPurchase.measuringUnit = this.form.measuringUnit;
|
|
|
console.log(this.categoryPurchase.measuringUnit, '采购信息');
|
|
console.log(this.categoryPurchase.measuringUnit, '采购信息');
|