|
@@ -6,9 +6,9 @@
|
|
|
<header-title title="物料BOM"> </header-title>
|
|
<header-title title="物料BOM"> </header-title>
|
|
|
|
|
|
|
|
<el-row>
|
|
<el-row>
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
<el-form-item label="BOM编码:" prop="code">
|
|
<el-form-item label="BOM编码:" prop="code">
|
|
|
<el-input v-model="form.code" disabled />
|
|
<el-input v-model="form.code" disabled />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -73,13 +73,22 @@
|
|
|
<template v-slot:subCode="{ row }">
|
|
<template v-slot:subCode="{ row }">
|
|
|
<el-input v-model="row.subCode" placeholder="请输入"></el-input>
|
|
<el-input v-model="row.subCode" placeholder="请输入"></el-input>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+
|
|
|
|
|
+ <template v-slot:isReworkBom="{ row }">
|
|
|
|
|
+ <el-select v-model="row.isReworkBom">
|
|
|
|
|
+ <el-option v-for="item in isReworkBomList" :key="item.value" :label="item.label"
|
|
|
|
|
+ :value="item.value">
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </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(
|
|
|
/^(-)*(\d+)\.(\d\d\d\d\d\d).*$/,
|
|
/^(-)*(\d+)\.(\d\d\d\d\d\d).*$/,
|
|
|
'$1$2.$3'
|
|
'$1$2.$3'
|
|
@@ -125,7 +134,7 @@ export default {
|
|
|
// 修改回显的数据
|
|
// 修改回显的数据
|
|
|
categoryId: [String, Number],
|
|
categoryId: [String, Number],
|
|
|
data: Object,
|
|
data: Object,
|
|
|
- taskId: [String, Number],
|
|
|
|
|
|
|
+ taskId: [String, Number],
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
|
|
|
|
@@ -147,12 +156,12 @@ export default {
|
|
|
factoryId: '',
|
|
factoryId: '',
|
|
|
type: 0,
|
|
type: 0,
|
|
|
status: '',
|
|
status: '',
|
|
|
-
|
|
|
|
|
|
|
+ isReworkBom: 0,
|
|
|
baseCount: '',
|
|
baseCount: '',
|
|
|
baseCountUnit: '',
|
|
baseCountUnit: '',
|
|
|
taskId: '',
|
|
taskId: '',
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
|
|
|
};
|
|
};
|
|
|
return {
|
|
return {
|
|
@@ -183,7 +192,7 @@ export default {
|
|
|
{ required: true, message: '请选择状态', trigger: 'change' }
|
|
{ required: true, message: '请选择状态', trigger: 'change' }
|
|
|
],
|
|
],
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
factoryId: [
|
|
factoryId: [
|
|
|
{ required: true, message: '请输入所属工厂', trigger: 'change' }
|
|
{ required: true, message: '请输入所属工厂', trigger: 'change' }
|
|
@@ -213,6 +222,13 @@ export default {
|
|
|
slot: 'categoryName',
|
|
slot: 'categoryName',
|
|
|
action: 'categoryName'
|
|
action: 'categoryName'
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '是否反工料',
|
|
|
|
|
+ prop: 'isReworkBom',
|
|
|
|
|
+ slot: 'isReworkBom',
|
|
|
|
|
+ action: 'isReworkBom'
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
label: '物料编码',
|
|
label: '物料编码',
|
|
|
prop: 'categoryCode'
|
|
prop: 'categoryCode'
|
|
@@ -236,7 +252,7 @@ export default {
|
|
|
action: 'unit'
|
|
action: 'unit'
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
action: 'action',
|
|
action: 'action',
|
|
@@ -252,6 +268,11 @@ export default {
|
|
|
{ label: '生效', value: 1 }
|
|
{ label: '生效', value: 1 }
|
|
|
],
|
|
],
|
|
|
|
|
|
|
|
|
|
+ isReworkBomList: [
|
|
|
|
|
+ { label: '否', value: 0 },
|
|
|
|
|
+ { label: '是', value: 1 }
|
|
|
|
|
+ ],
|
|
|
|
|
+
|
|
|
// 提交状态
|
|
// 提交状态
|
|
|
loading: false,
|
|
loading: false,
|
|
|
// 是否是修改
|
|
// 是否是修改
|
|
@@ -291,6 +312,7 @@ export default {
|
|
|
subCode,
|
|
subCode,
|
|
|
categoryId: '',
|
|
categoryId: '',
|
|
|
categoryName: '',
|
|
categoryName: '',
|
|
|
|
|
+ isReworkBom: 0,
|
|
|
brandNum: '',
|
|
brandNum: '',
|
|
|
count: '',
|
|
count: '',
|
|
|
modelType: '',
|
|
modelType: '',
|
|
@@ -384,7 +406,7 @@ export default {
|
|
|
async visible(visible) {
|
|
async visible(visible) {
|
|
|
if (visible) {
|
|
if (visible) {
|
|
|
this._getCode()
|
|
this._getCode()
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
this.removeSubBomIdList = []
|
|
this.removeSubBomIdList = []
|
|
|
if (this.data) {
|
|
if (this.data) {
|
|
|
this.tableData = this.data.subDetailList
|
|
this.tableData = this.data.subDetailList
|