|
@@ -103,7 +103,7 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import { getCBomAPI } from '@/api/main';
|
|
import { getCBomAPI } from '@/api/main';
|
|
|
- import {getInventoryTotalAPI} from "@/api/wms";
|
|
|
|
|
|
|
+ import { getInventoryTotalAPI } from '@/api/wms';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
props: {
|
|
props: {
|
|
@@ -132,7 +132,7 @@
|
|
|
where: {
|
|
where: {
|
|
|
name: '',
|
|
name: '',
|
|
|
code: '',
|
|
code: '',
|
|
|
- specification:''
|
|
|
|
|
|
|
+ specification: ''
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
@@ -183,13 +183,13 @@
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: 'specification',
|
|
|
|
|
|
|
+ prop: 'category.specification',
|
|
|
label: '规格',
|
|
label: '规格',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: 'modelType',
|
|
|
|
|
|
|
+ prop: 'category.modelType',
|
|
|
label: '型号',
|
|
label: '型号',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
@@ -201,7 +201,7 @@
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: 'unit',
|
|
|
|
|
|
|
+ prop: 'category.measuringUnit',
|
|
|
label: '单位',
|
|
label: '单位',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
@@ -210,7 +210,10 @@
|
|
|
prop: 'versions',
|
|
prop: 'versions',
|
|
|
label: '版本',
|
|
label: '版本',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
|
|
+ showOverflowTooltip: true,
|
|
|
|
|
+ formatter: (_row, _column, cellValue) => {
|
|
|
|
|
+ return cellValue?'V'+cellValue+'.0':'';
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
];
|
|
];
|
|
|
}
|
|
}
|
|
@@ -224,7 +227,7 @@
|
|
|
this.loading = true;
|
|
this.loading = true;
|
|
|
this.datasource = await getCBomAPI({
|
|
this.datasource = await getCBomAPI({
|
|
|
categoryId: this.currentRow?.id,
|
|
categoryId: this.currentRow?.id,
|
|
|
- bomType: 1,
|
|
|
|
|
|
|
+ bomType: 1
|
|
|
// produceType: 2
|
|
// produceType: 2
|
|
|
});
|
|
});
|
|
|
this.oldDatasource = this.datasource;
|
|
this.oldDatasource = this.datasource;
|