Browse Source

2025-03-17

优化
java8
fengyuan_yang 10 months ago
parent
commit
46e9a046b1
  1. 2
      src/views/modules/part/bomManagement.vue
  2. 24
      src/views/modules/part/bom_create.vue
  3. 4
      src/views/modules/part/quicklyCreateBom.vue

2
src/views/modules/part/bomManagement.vue

@ -3110,6 +3110,8 @@ export default {
this.modalData.partDesc = row.partDesc
this.modalData.printUnit = row.printUnit
this.modalData.printUnitName = row.printUnitName
this.modalData.processUnit = row.printUnit
this.modalData.processUnitName = row.printUnitName
this.modalData.shrinkageFactor = new Decimal(100).sub(new Decimal(row.yieldRate)).toNumber()
// routing
getBomEngChgLevel(this.modalData).then(({data}) => {

24
src/views/modules/part/bom_create.vue

@ -1087,43 +1087,43 @@ export default {
fixed: '',
columnWidth: 300
},
],
columnSubDetailList2: [
{
userId: this.$store.state.user.name,
functionId: 601002,
serialNumber: '601002Table2ConsumptionItem',
serialNumber: '601002Table2PrintUnit',
tableId: '601002Table2',
tableName: 'BOM子物料表',
columnProp: 'consumptionItem',
columnProp: 'printUnitName',
headerAlign: 'center',
align: 'center',
columnLabel: '消耗项目',
columnLabel: '物料单位',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 80
columnWidth: 60
},
],
columnSubDetailList2: [
{
userId: this.$store.state.user.name,
functionId: 601002,
serialNumber: '601002Table2PrintUnit',
serialNumber: '601002Table2ConsumptionItem',
tableId: '601002Table2',
tableName: 'BOM子物料表',
columnProp: 'printUnitName',
columnProp: 'consumptionItem',
headerAlign: 'center',
align: 'center',
columnLabel: '物料单位',
columnLabel: '消耗项目',
columnHidden: false,
columnImage: false,
columnSortable: false,
sortLv: 0,
status: true,
fixed: '',
columnWidth: 60
columnWidth: 80
},
{
userId: this.$store.state.user.name,
@ -1452,8 +1452,8 @@ export default {
printUnitName: row.printUnitName,
yieldRate: '',
shrinkageFactor: row.shrinkageFactor,
processUnit: '',
processUnitName: ''
processUnit: row.printUnit,
processUnitName: row.printUnitName
}
this.detailData = {
site: row.site,

4
src/views/modules/part/quicklyCreateBom.vue

@ -25,9 +25,9 @@
<!-- 树形结构 -->
<el-col :span="7" :style="{height: this.height + 'px'}" style="display: block;overflow-y: scroll">
<el-card style="width: 99%">
<div slot="header" style="height: 20px;margin-top: -10px">
<div slot="header" style="height: 20px;margin-top: -10px;text-align: center">
<!-- <el-button type="primary" style="margin-left: -5px" @click="addTree">添加</el-button>-->
<el-button size="mini" type="info" round @click="getNodeTree" style="margin-left: 90px">刷新</el-button>
<el-button size="mini" type="info" round @click="getNodeTree">刷新</el-button>
<el-button size="mini" type="primary" round :loading="buildAllLoading" @click="batchBuild" style="margin-left: 10px">批量Build</el-button>
<!-- <el-button size="mini" type="primary" round :loading="resetAllLoading" @click="resetNodePart">重置物料</el-button>-->
</div>

Loading…
Cancel
Save