From dbc0f5c69a35e5aaa62fdc7a77cb46f0498b702b Mon Sep 17 00:00:00 2001 From: yinq Date: Thu, 7 Dec 2023 09:51:40 +0800 Subject: [PATCH] =?UTF-8?q?update=20-=20=E8=AE=A2=E5=8D=95BOM=E3=80=81?= =?UTF-8?q?=E7=94=9F=E4=BA=A7BOM?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/production/baseBomInfo.js | 9 ++ src/views/base/materialInfo/index.vue | 30 ++--- src/views/base/orderBomInfo/addBom.vue | 3 +- src/views/base/orderBomInfo/index.vue | 118 ++++++++++-------- src/views/base/orderInfo/index.vue | 16 +-- src/views/production/baseBomInfo/childBom.vue | 30 ++--- src/views/production/baseBomInfo/index.vue | 30 ++++- src/views/production/planInfo/index.vue | 42 +++---- 8 files changed, 163 insertions(+), 115 deletions(-) diff --git a/src/api/production/baseBomInfo.js b/src/api/production/baseBomInfo.js index 6369d1f..b192410 100644 --- a/src/api/production/baseBomInfo.js +++ b/src/api/production/baseBomInfo.js @@ -9,6 +9,15 @@ export function listBaseBomInfo(query) { }) } +// 自动同步生产BOM +export function addAutomaticSynchronizationBOM(query) { + return request({ + url: '/production/baseBomInfo/addAutomaticSynchronizationBOM', + method: 'get', + params: query, + timeout: 60000 + }) +} // 查询生产BOM列表 export function listTreeBaseBomInfo(query) { return request({ diff --git a/src/views/base/materialInfo/index.vue b/src/views/base/materialInfo/index.vue index cba5b77..ca5bb2e 100644 --- a/src/views/base/materialInfo/index.vue +++ b/src/views/base/materialInfo/index.vue @@ -29,8 +29,8 @@ /> - - + + 新增 + >手动新增物料 - + @@ -164,13 +164,13 @@ @click="handleUpdate(scope.row)" v-hasPermi="['base:materialInfo:edit']" >修改 - 删除 + + + + + + + @@ -212,8 +212,8 @@ > - - + + { + listMaterialInfo(this.queryParams).then(response => { this.orderBomInfoList = response.rows this.total = response.total this.loading = false diff --git a/src/views/base/orderBomInfo/index.vue b/src/views/base/orderBomInfo/index.vue index 9fa4a81..befa40f 100644 --- a/src/views/base/orderBomInfo/index.vue +++ b/src/views/base/orderBomInfo/index.vue @@ -1,6 +1,6 @@ @@ -159,31 +173,31 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - + + @@ -220,7 +234,7 @@ import { export default { name: 'OrderBomInfo', - dicts: ['material_type'], + dicts: ['material_type','material_subclass'], data() { return { // 遮罩层 @@ -248,7 +262,7 @@ export default { bomCode: null, materialCode: null, materialName: null, - materialType: 'FERT', + materialType: null, standardAmount: null, parentId: null, isFlag: null, @@ -267,12 +281,12 @@ export default { rules: {}, columns: [ { key: 0, label: `主键标识`, visible: false }, - { key: 1, label: `BOM编号`, visible: true }, - { key: 2, label: `物料编码`, visible: true }, - { key: 3, label: `物料名称`, visible: true }, - { key: 4, label: `物料类别`, visible: true }, + { key: 1, label: `BOM编号`, visible: false }, + { key: 2, label: `子物料编号`, visible: true }, + { key: 3, label: `子物料名称`, visible: true }, + { key: 4, label: `子物料小类`, visible: true }, { key: 5, label: `标准数量`, visible: true }, - { key: 6, label: `父级编号`, visible: true }, + { key: 6, label: `父级物料编号`, visible: true }, { key: 7, label: `是否标识`, visible: false }, { key: 8, label: `创建人`, visible: false }, { key: 9, label: `创建时间`, visible: false }, @@ -281,7 +295,9 @@ export default { { key: 12, label: `工厂编号`, visible: true }, { key: 13, label: `排序`, visible: true }, { key: 14, label: `销售凭证`, visible: false }, - { key: 15, label: `销售单据项目`, visible: false } + { key: 15, label: `销售单据项目`, visible: false }, + { key: 16, label: `父级物料名称`, visible: true }, + { key: 17, label: `父级物料小类`, visible: true } ] } }, diff --git a/src/views/base/orderInfo/index.vue b/src/views/base/orderInfo/index.vue index 73df02f..6b34a79 100644 --- a/src/views/base/orderInfo/index.vue +++ b/src/views/base/orderInfo/index.vue @@ -107,12 +107,12 @@ - + - + @@ -221,20 +221,20 @@ > - + + placeholder="请选择计划开始日期"> - + + placeholder="请选择计划结束日期"> @@ -341,8 +341,8 @@ export default { { key: 8, label: `完成数量`, visible: true }, { key: 9, label: `工单类型`, visible: true }, { key: 10, label: `工单状态`, visible: true }, - { key: 11, label: `开始日期`, visible: true }, - { key: 12, label: `结束日期`, visible: true }, + { key: 11, label: `计划开始日期`, visible: true }, + { key: 12, label: `计划结束日期`, visible: true }, { key: 13, label: `工厂编码`, visible: true }, { key: 14, label: `启用标识`, visible: false }, { key: 15, label: `创建人`, visible: false }, diff --git a/src/views/production/baseBomInfo/childBom.vue b/src/views/production/baseBomInfo/childBom.vue index 81b1973..5f2891a 100644 --- a/src/views/production/baseBomInfo/childBom.vue +++ b/src/views/production/baseBomInfo/childBom.vue @@ -60,13 +60,13 @@ - + @@ -135,7 +135,7 @@ - + - - - - - + + + + + + + + + + @@ -205,7 +205,7 @@ import addBom from '@//views/base/orderBomInfo/addBom.vue'; export default { name: "BaseBomInfo", - dicts: ['material_type', 'is_flag'], + dicts: ['material_type', 'is_flag','material_subclass'], components: { Treeselect, 'add-bom': addBom diff --git a/src/views/production/baseBomInfo/index.vue b/src/views/production/baseBomInfo/index.vue index c8eeb6e..3db7bcf 100644 --- a/src/views/production/baseBomInfo/index.vue +++ b/src/views/production/baseBomInfo/index.vue @@ -66,6 +66,15 @@ v-hasPermi="['production:baseBomInfo:export']" >导出 + + 自动同步生产BOM + @@ -157,7 +166,6 @@ :key="item.factoryCode" :label="item.factoryName" :value="item.factoryCode" - :disabled="true" > @@ -208,9 +216,17 @@