|
|
@@ -635,7 +635,7 @@
|
|
|
{{ row.weightUnit }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <!-- <el-table-column label="机型" prop="modelKey">
|
|
|
+ <el-table-column label="机型" prop="modelKey" width="300">
|
|
|
<template slot-scope="{ row }">
|
|
|
<DictSelection
|
|
|
dictName="物品机型"
|
|
|
@@ -650,7 +650,7 @@
|
|
|
</DictSelection>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="颜色" prop="colorKey">
|
|
|
+ <el-table-column label="颜色" prop="colorKey" width="300">
|
|
|
<template slot-scope="{ row }">
|
|
|
<DictSelection
|
|
|
dictName="物品颜色"
|
|
|
@@ -664,7 +664,7 @@
|
|
|
>
|
|
|
</DictSelection>
|
|
|
</template>
|
|
|
- </el-table-column> -->
|
|
|
+ </el-table-column>
|
|
|
|
|
|
<el-table-column label="质检结果" prop="result" width="120">
|
|
|
<template slot-scope="{ row }">
|
|
|
@@ -985,6 +985,7 @@
|
|
|
import { isBoolean } from 'mathjs';
|
|
|
import { parameterGetByCode } from '@/api/sys/index.js';
|
|
|
import tabMixins from '@/mixins/tableColumnsMixin';
|
|
|
+ import { color } from 'echarts';
|
|
|
|
|
|
export default {
|
|
|
mixins: [tabMixins],
|
|
|
@@ -1234,20 +1235,22 @@
|
|
|
width: 300,
|
|
|
align: 'center'
|
|
|
},
|
|
|
- // {
|
|
|
- // width: 200,
|
|
|
- // prop: 'modelKey',
|
|
|
- // label: '机型',
|
|
|
- // slot: 'modelKey',
|
|
|
- // align: 'center'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // width: 200,
|
|
|
- // prop: 'colorKey',
|
|
|
- // label: '颜色',
|
|
|
- // slot: 'colorKey',
|
|
|
- // align: 'center'
|
|
|
- // },
|
|
|
+ {
|
|
|
+ minWidth: 300,
|
|
|
+ prop: 'modelKey',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ label: '机型',
|
|
|
+ slot: 'modelKey',
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ minWidth: 300,
|
|
|
+ prop: 'colorKey',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ label: '颜色',
|
|
|
+ slot: 'colorKey',
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
{
|
|
|
label: '采购原因',
|
|
|
prop: 'purpose',
|
|
|
@@ -2220,6 +2223,12 @@
|
|
|
}
|
|
|
// 处理包装数据
|
|
|
this.packingList = this.packingList.map((packingItem) => {
|
|
|
+ if (packingItem.modelKey) {
|
|
|
+ packingItem.modelKey = packingItem.modelKey.toString();
|
|
|
+ }
|
|
|
+ if (packingItem.colorKey) {
|
|
|
+ packingItem.colorKey = packingItem.colorKey.toString();
|
|
|
+ }
|
|
|
return {
|
|
|
...packingItem,
|
|
|
materialDetailList: this.materialList.filter(
|
|
|
@@ -2231,6 +2240,12 @@
|
|
|
});
|
|
|
// 处理产品数据
|
|
|
this.productList = this.productList.map((productItem) => {
|
|
|
+ if (productItem.modelKey) {
|
|
|
+ productItem.modelKey = productItem.modelKey.toString();
|
|
|
+ }
|
|
|
+ if (productItem.colorKey) {
|
|
|
+ productItem.colorKey = productItem.colorKey.toString();
|
|
|
+ }
|
|
|
return {
|
|
|
...productItem,
|
|
|
outInDetailRecordRequestList: this.packingList.filter(
|
|
|
@@ -2645,6 +2660,9 @@
|
|
|
categoryCode: item.code, // 物品编码
|
|
|
categoryModel: item.modelType, // 物品型号
|
|
|
specification: item.specification, // 规格
|
|
|
+ modelKey: item.modelKey?item.modelKey.split(','):'', // 机型
|
|
|
+ colorKey: item.colorKey?item.colorKey.split(','):'', // 颜色
|
|
|
+ color: item.color,
|
|
|
brandNum: item.brandNum, // 牌号
|
|
|
batchNo: batchNo, // 批次号
|
|
|
supplierListOptions: supplierList[item.id], // 供应商列表
|
|
|
@@ -3033,6 +3051,10 @@
|
|
|
packingUnit: packingUnit, //包装单位
|
|
|
measureQuantity: measureQuantity, // 计量数量
|
|
|
measureUnit: measureUnit, // 计量单位
|
|
|
+ modelKey: row.modelKey, // 机型
|
|
|
+ colorKey: row.colorKey, //颜色
|
|
|
+ measureType: row.measureType,
|
|
|
+ measureUnit: measureUnit, // 计量单位
|
|
|
weight: 0, // 重量
|
|
|
packingSpecificationOption: row.packingSpecificationOption, // 包装规格
|
|
|
weightUnit: row.weightUnit, // 重量单位
|
|
|
@@ -3151,6 +3173,8 @@
|
|
|
supplierCode: row.supplierCode, // 供应商编码
|
|
|
brandNum: row.brandNum, // 牌号
|
|
|
parentIndex: row.index, // 产品索引
|
|
|
+ modelKey: row.modelKey, // 机型
|
|
|
+ colorKey: row.colorKey, //颜色
|
|
|
batchNo: row.batchNo, // 批次号
|
|
|
packageNo: packingCodeList[index]?.onlyCode, // 包装编码
|
|
|
packingQuantity: packingQuantity, // 包装数量
|