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.partDesc = row.partDesc
this.modalData.printUnit = row.printUnit this.modalData.printUnit = row.printUnit
this.modalData.printUnitName = row.printUnitName 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() this.modalData.shrinkageFactor = new Decimal(100).sub(new Decimal(row.yieldRate)).toNumber()
// routing // routing
getBomEngChgLevel(this.modalData).then(({data}) => { getBomEngChgLevel(this.modalData).then(({data}) => {

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

@ -1087,43 +1087,43 @@ export default {
fixed: '', fixed: '',
columnWidth: 300 columnWidth: 300
}, },
],
columnSubDetailList2: [
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 601002, functionId: 601002,
serialNumber: '601002Table2ConsumptionItem',
serialNumber: '601002Table2PrintUnit',
tableId: '601002Table2', tableId: '601002Table2',
tableName: 'BOM子物料表', tableName: 'BOM子物料表',
columnProp: 'consumptionItem',
columnProp: 'printUnitName',
headerAlign: 'center', headerAlign: 'center',
align: 'center', align: 'center',
columnLabel: '消耗项目',
columnLabel: '物料单位',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 80
columnWidth: 60
}, },
],
columnSubDetailList2: [
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
functionId: 601002, functionId: 601002,
serialNumber: '601002Table2PrintUnit',
serialNumber: '601002Table2ConsumptionItem',
tableId: '601002Table2', tableId: '601002Table2',
tableName: 'BOM子物料表', tableName: 'BOM子物料表',
columnProp: 'printUnitName',
columnProp: 'consumptionItem',
headerAlign: 'center', headerAlign: 'center',
align: 'center', align: 'center',
columnLabel: '物料单位',
columnLabel: '消耗项目',
columnHidden: false, columnHidden: false,
columnImage: false, columnImage: false,
columnSortable: false, columnSortable: false,
sortLv: 0, sortLv: 0,
status: true, status: true,
fixed: '', fixed: '',
columnWidth: 60
columnWidth: 80
}, },
{ {
userId: this.$store.state.user.name, userId: this.$store.state.user.name,
@ -1452,8 +1452,8 @@ export default {
printUnitName: row.printUnitName, printUnitName: row.printUnitName,
yieldRate: '', yieldRate: '',
shrinkageFactor: row.shrinkageFactor, shrinkageFactor: row.shrinkageFactor,
processUnit: '',
processUnitName: ''
processUnit: row.printUnit,
processUnitName: row.printUnitName
} }
this.detailData = { this.detailData = {
site: row.site, 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-col :span="7" :style="{height: this.height + 'px'}" style="display: block;overflow-y: scroll">
<el-card style="width: 99%"> <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 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="buildAllLoading" @click="batchBuild" style="margin-left: 10px">批量Build</el-button>
<!-- <el-button size="mini" type="primary" round :loading="resetAllLoading" @click="resetNodePart">重置物料</el-button>--> <!-- <el-button size="mini" type="primary" round :loading="resetAllLoading" @click="resetNodePart">重置物料</el-button>-->
</div> </div>

Loading…
Cancel
Save