|
|
@@ -1,40 +1,32 @@
|
|
|
<template>
|
|
|
<div class="baseinfo-container">
|
|
|
+ <basicInfoVue ref="basicInfoRef" />
|
|
|
<div class="basic-details-title border-none">
|
|
|
- <span class="border-span">基本信息</span>
|
|
|
+ <span class="border-span">舟皿信息</span>
|
|
|
</div>
|
|
|
<el-descriptions title="" :column="4" size="medium" border>
|
|
|
<el-descriptions-item>
|
|
|
- <template slot="label"> 类别编码 </template>
|
|
|
- {{ information.code }}
|
|
|
+ <template slot="label">槽数</template>
|
|
|
+ {{ categoryPallet.slotNum }}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item>
|
|
|
- <template slot="label"> 舟皿名称 </template>
|
|
|
- {{ information.name }}
|
|
|
+ <template slot="label">角度</template>
|
|
|
+ {{ categoryPallet.angle }}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item>
|
|
|
- <template slot="label"> 型号</template>
|
|
|
- {{ information.modelType }}
|
|
|
+ <template slot="label">长</template>
|
|
|
+ {{ categoryPallet.palletLen ? categoryPallet.palletLen + 'mm' : null }}
|
|
|
</el-descriptions-item>
|
|
|
<el-descriptions-item>
|
|
|
- <template slot="label"> 规格 </template>
|
|
|
- {{ information.specification }}
|
|
|
+ <template slot="label">宽</template>
|
|
|
+ {{ categoryPallet.wilde ? categoryPallet.wilde + 'mm' : null }}
|
|
|
</el-descriptions-item>
|
|
|
- <el-descriptions-item :span="2">
|
|
|
- <template slot="label"> 分类 </template>
|
|
|
- {{ information.categoryLevelPath }}
|
|
|
- </el-descriptions-item>
|
|
|
- <!-- <el-descriptions-item>
|
|
|
- <template slot="label"> 长/宽/高(mm) </template>
|
|
|
- {{ information.extendField.palletLen }}/{{
|
|
|
- information.extendField.wilde
|
|
|
- }}/{{ information.extendField.hight }}
|
|
|
- </el-descriptions-item> -->
|
|
|
<el-descriptions-item>
|
|
|
- <template slot="label"> 计量单位</template>
|
|
|
- {{ information.measuringUnit }}
|
|
|
+ <template slot="label">高</template>
|
|
|
+ {{ categoryPallet.hight ? categoryPallet.hight + 'mm' : null }}
|
|
|
</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
|
+
|
|
|
<div class="basic-details-title border-none">
|
|
|
<span class="border-span">舟皿明细</span>
|
|
|
</div>
|
|
|
@@ -113,13 +105,34 @@
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <warehouseConfigVue ref="warehouseConfigRef" />
|
|
|
+ <productInfoVue ref="productInfoRef" />
|
|
|
+ <planVue ref="planRef" />
|
|
|
+ <qualityConfig ref="qualityConfigRef" />
|
|
|
+ <footerVue ref="footerVueRef" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import { getPageSingle, getCount } from '@/api/ledgerAssets';
|
|
|
import { getDetails } from '@/api/classifyManage/itemInformation.js';
|
|
|
+ import basicInfoVue from '../../components/basicInfo.vue';
|
|
|
+ import warehouseConfigVue from '../../components/warehouseConfig.vue';
|
|
|
+ import productInfoVue from '../../components/productInfo.vue';
|
|
|
+ import planVue from '../../components/plan.vue';
|
|
|
+ import qualityConfig from '../../components/qualityConfig.vue';
|
|
|
+ import { sysDict } from '@/utils/sys';
|
|
|
+ import footerVue from '../../components/footer.vue';
|
|
|
+
|
|
|
export default {
|
|
|
+ components: {
|
|
|
+ basicInfoVue,
|
|
|
+ warehouseConfigVue,
|
|
|
+ productInfoVue,
|
|
|
+ planVue,
|
|
|
+ qualityConfig,
|
|
|
+ footerVue
|
|
|
+ },
|
|
|
props: {
|
|
|
rowId: {
|
|
|
type: String,
|
|
|
@@ -142,7 +155,8 @@
|
|
|
categoryId: this.rowId,
|
|
|
positionType: 1
|
|
|
},
|
|
|
- countInfo: {}
|
|
|
+ countInfo: {},
|
|
|
+ categoryPallet: {}
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
@@ -151,12 +165,24 @@
|
|
|
this.getCountNum();
|
|
|
},
|
|
|
methods: {
|
|
|
- getDetilInfo() {
|
|
|
- getDetails(this.rowId).then((res) => {
|
|
|
+ async getDetilInfo() {
|
|
|
+ getDetails(this.rowId).then(async (res) => {
|
|
|
this.information = res.category;
|
|
|
if (typeof res.categoryPallet != 'string') {
|
|
|
this.$set(this.information, 'extendField', res.categoryPallet);
|
|
|
}
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.basicInfoRef.getDetailInfoAugr(res.category);
|
|
|
+ this.$refs.warehouseConfigRef.getDetailInfoAugr(res.categoryWms);
|
|
|
+ this.$refs.productInfoRef.getDetailInfoAugr(res.categoryMes);
|
|
|
+ this.$refs.planRef.getDetailInfoAugr(res.categoryAps);
|
|
|
+ this.$refs.qualityConfigRef.getDetailInfoAugr(res.categoryQms);
|
|
|
+ this.$refs.footerVueRef.getDetailInfoAugr(res.category);
|
|
|
+ });
|
|
|
+ this.categoryPallet = {
|
|
|
+ ...res.categoryPallet,
|
|
|
+ angle: await sysDict('角度', res.categoryPallet.angle)
|
|
|
+ };
|
|
|
});
|
|
|
},
|
|
|
tabClick(val) {
|