|
@@ -1,6 +1,6 @@
|
|
|
|
|
|
|
|
<template>
|
|
<template>
|
|
|
- <ele-modal width="1060px" :visible="visible" v-if="visible" :append-to-body="true" :close-on-click-modal="true"
|
|
|
|
|
|
|
+ <ele-modal width="1160px" :visible="visible" v-if="visible" :append-to-body="true" :close-on-click-modal="true"
|
|
|
custom-class="ele-dialog-form" title="物料BOM" @update:visible="updateVisible">
|
|
custom-class="ele-dialog-form" title="物料BOM" @update:visible="updateVisible">
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
|
|
<header-title title="物料BOM"> </header-title>
|
|
<header-title title="物料BOM"> </header-title>
|
|
@@ -80,8 +80,10 @@
|
|
|
<el-input v-model="row.subCode" placeholder="请输入"></el-input>
|
|
<el-input v-model="row.subCode" placeholder="请输入"></el-input>
|
|
|
</template>
|
|
</template>
|
|
|
<template v-slot:unit="{ row }">
|
|
<template v-slot:unit="{ row }">
|
|
|
- <DictSelection dictName="重量单位" v-model="row.unit"></DictSelection>
|
|
|
|
|
|
|
+ <DictSelection dictName="计量单位" v-model="row.unit"></DictSelection>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
<template v-slot:count="{ row }">
|
|
<template v-slot:count="{ row }">
|
|
|
<el-input v-model="row.count" placeholder="请输入" @input="(value) =>
|
|
<el-input v-model="row.count" placeholder="请输入" @input="(value) =>
|
|
|
(row.count = value.replace(
|
|
(row.count = value.replace(
|
|
@@ -90,6 +92,21 @@
|
|
|
))
|
|
))
|
|
|
"></el-input>
|
|
"></el-input>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <template v-slot:netWeight="{ row }">
|
|
|
|
|
+ <el-input v-model="row.netWeight" placeholder="请输入" @input="(value) =>
|
|
|
|
|
+ (row.netWeight = value.replace(
|
|
|
|
|
+ /^(-)*(\d+)\.(\d\d\d\d\d\d).*$/,
|
|
|
|
|
+ '$1$2.$3'
|
|
|
|
|
+ ))
|
|
|
|
|
+ "></el-input>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+ <template v-slot:weightUnit="{ row }">
|
|
|
|
|
+ <DictSelection dictName="重量单位" v-model="row.weightUnit"></DictSelection>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
<template v-slot:categoryName="{ row, $index }">
|
|
<template v-slot:categoryName="{ row, $index }">
|
|
|
<el-input :value="row.categoryName" placeholder="请选择"
|
|
<el-input :value="row.categoryName" placeholder="请选择"
|
|
|
@click.native="categorySelect(row, $index)"></el-input>
|
|
@click.native="categorySelect(row, $index)"></el-input>
|
|
@@ -227,15 +244,27 @@ export default {
|
|
|
prop: 'modelType'
|
|
prop: 'modelType'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: '净重',
|
|
|
|
|
|
|
+ label: '数量',
|
|
|
slot: 'count',
|
|
slot: 'count',
|
|
|
action: 'count'
|
|
action: 'count'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- label: '重量单位',
|
|
|
|
|
|
|
+ label: '计量单位',
|
|
|
slot: 'unit',
|
|
slot: 'unit',
|
|
|
action: 'unit'
|
|
action: 'unit'
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '重量',
|
|
|
|
|
+ slot: 'netWeight',
|
|
|
|
|
+ action: 'netWeight'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '重量单位',
|
|
|
|
|
+ slot: 'weightUnit',
|
|
|
|
|
+ action: 'weightUnit'
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
{
|
|
{
|
|
|
action: 'action',
|
|
action: 'action',
|
|
|
slot: 'action',
|
|
slot: 'action',
|
|
@@ -292,7 +321,9 @@ export default {
|
|
|
brandNum: '',
|
|
brandNum: '',
|
|
|
count: '',
|
|
count: '',
|
|
|
modelType: '',
|
|
modelType: '',
|
|
|
- unit: ''
|
|
|
|
|
|
|
+ unit: '',
|
|
|
|
|
+ netWeight: '',
|
|
|
|
|
+ weightUnit: ''
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -367,6 +398,7 @@ export default {
|
|
|
this.$set(this.tableData[idx], 'categoryId', row.id)
|
|
this.$set(this.tableData[idx], 'categoryId', row.id)
|
|
|
this.$set(this.tableData[idx], 'categoryCode', row.code)
|
|
this.$set(this.tableData[idx], 'categoryCode', row.code)
|
|
|
this.$set(this.tableData[idx], 'unit', row.measuringUnit)
|
|
this.$set(this.tableData[idx], 'unit', row.measuringUnit)
|
|
|
|
|
+ this.$set(this.tableData[idx], 'weightUnit', row.weightUnit)
|
|
|
this.$set(this.tableData[idx], 'brandNum', row.brandNum)
|
|
this.$set(this.tableData[idx], 'brandNum', row.brandNum)
|
|
|
this.$set(this.tableData[idx], 'modelType', row.modelType)
|
|
this.$set(this.tableData[idx], 'modelType', row.modelType)
|
|
|
|
|
|