|
|
@@ -26,11 +26,12 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="出库物品类型">
|
|
|
- <span>{{
|
|
|
+ <!-- <span>{{
|
|
|
infoData.bizType == 3
|
|
|
? '物品'
|
|
|
: getDictValue('类型用途', infoData.assetType)
|
|
|
- }}</span>
|
|
|
+ }}</span> -->
|
|
|
+ <span>{{ handleAssetType(infoData.assetType) }}</span>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
@@ -256,20 +257,12 @@
|
|
|
prop="measuringUnit"
|
|
|
></el-table-column>
|
|
|
<!-- <el-table-column label="领料部门" prop=""></el-table-column> -->
|
|
|
- <el-table-column
|
|
|
- v-if="infoData.bizType == 2 || infoData.bizType == 1"
|
|
|
- label="物料代号"
|
|
|
- prop="materielCode"
|
|
|
- >
|
|
|
+ <el-table-column label="物料代号" prop="materielCode">
|
|
|
<template slot-scope="{ row }">
|
|
|
{{ row.materielCode }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
- v-if="infoData.bizType == 2 || infoData.bizType == 1"
|
|
|
- label="客户代号"
|
|
|
- prop="clientCode"
|
|
|
- >
|
|
|
+ <el-table-column label="客户代号" prop="clientCode">
|
|
|
<template slot-scope="{ row }">
|
|
|
{{ row.clientCode }}
|
|
|
</template>
|
|
|
@@ -356,7 +349,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="计量单位" prop="measuringUnit">
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="物料代号" prop="meterielCode">
|
|
|
+ <el-table-column label="物料代号" prop="materielCode">
|
|
|
</el-table-column>
|
|
|
<el-table-column label="客户代号" prop="clientCode">
|
|
|
</el-table-column>
|
|
|
@@ -379,7 +372,7 @@
|
|
|
import { mapGetters, mapActions } from 'vuex';
|
|
|
import outin from '@/api/warehouseManagement/outin';
|
|
|
import warehouseDefinition from '@/api/warehouseManagement/warehouseDefinition';
|
|
|
-
|
|
|
+ import { allCategoryLevel } from '@/api/classifyManage';
|
|
|
import {
|
|
|
materialType,
|
|
|
warehousingType,
|
|
|
@@ -394,6 +387,7 @@
|
|
|
components: { StatusStep },
|
|
|
data() {
|
|
|
return {
|
|
|
+ codeList: [],
|
|
|
metaList: [],
|
|
|
infoData: {},
|
|
|
warehousingMaterialList: [],
|
|
|
@@ -458,12 +452,23 @@
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- created() {
|
|
|
+ async created() {
|
|
|
+ await this.getCodeList();
|
|
|
this.getUser();
|
|
|
this._getInfo();
|
|
|
this.requestDict('类型用途');
|
|
|
},
|
|
|
methods: {
|
|
|
+ async getCodeList() {
|
|
|
+ const { data } = await allCategoryLevel();
|
|
|
+ this.codeList = data.map((item) => {
|
|
|
+ return { dictCode: item.id, dictValue: item.name };
|
|
|
+ });
|
|
|
+ },
|
|
|
+ handleAssetType(r) {
|
|
|
+ const code = this.codeList.find((item) => item.dictCode == r);
|
|
|
+ return code?.dictValue;
|
|
|
+ },
|
|
|
getUserName(id) {
|
|
|
let obj = this.fromUserList.find((x) => x.id == id);
|
|
|
return obj && obj.name;
|