|
|
@@ -25,9 +25,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="入库物品类型:">
|
|
|
- <span>{{
|
|
|
- getDictValue('类型用途', infoData.assetType)
|
|
|
- }}</span>
|
|
|
+ <span>{{ handleAssetType(infoData.assetType) }}</span>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
@@ -244,7 +242,7 @@
|
|
|
<div class="mt20">
|
|
|
<!-- =={{ getDictValue('类型用途', infoData.assetType) }} -->
|
|
|
<header-title
|
|
|
- :title="`${getDictValue('类型用途', infoData.assetType)}明细`"
|
|
|
+ :title="`${handleAssetType(infoData.assetType)}明细`"
|
|
|
size="16px"
|
|
|
></header-title>
|
|
|
|
|
|
@@ -310,6 +308,7 @@
|
|
|
import StatusStep from '@/components/StatusStep/common.vue';
|
|
|
// import { fileSystemDownload } from '@/utils';
|
|
|
import outin from '@/api/warehouseManagement/outin';
|
|
|
+ import { getTreeByPid } from '@/api/classifyManage';
|
|
|
|
|
|
import {
|
|
|
materialType,
|
|
|
@@ -328,6 +327,7 @@
|
|
|
components: { StatusStep, PageHeader },
|
|
|
data() {
|
|
|
return {
|
|
|
+ codeList: [],
|
|
|
auditStatus,
|
|
|
infoData: {},
|
|
|
warehousingMaterialList: {},
|
|
|
@@ -409,7 +409,10 @@
|
|
|
getMaterialType: useDictLabel(materialType),
|
|
|
getInputStatus: useDictLabel(inputStatus),
|
|
|
getSceneState: useDictLabel(sceneState),
|
|
|
-
|
|
|
+ handleAssetType(r) {
|
|
|
+ const code = this.codeList.find((item) => item.dictCode == r);
|
|
|
+ return code.dictValue;
|
|
|
+ },
|
|
|
rowClass({ row, column, rowIndex, columnIndex }) {
|
|
|
if (rowIndex === 1) {
|
|
|
return {
|
|
|
@@ -427,6 +430,10 @@
|
|
|
this.infoData = res.inOutVO;
|
|
|
this.warehousingMaterialList = res.warehouseLedgerInfos;
|
|
|
}
|
|
|
+ const { data } = await getTreeByPid(0);
|
|
|
+ this.codeList = data.map((item) => {
|
|
|
+ return { dictCode: item.id, dictValue: item.name };
|
|
|
+ });
|
|
|
},
|
|
|
calcSum(a, b, c, row) {
|
|
|
if (
|