|
@@ -106,7 +106,13 @@
|
|
|
tool-class="ele-toolbar-form"
|
|
tool-class="ele-toolbar-form"
|
|
|
:selection.sync="selection"
|
|
:selection.sync="selection"
|
|
|
height="400px"
|
|
height="400px"
|
|
|
- ></ele-pro-table>
|
|
|
|
|
|
|
+ >
|
|
|
|
|
+ <template v-slot:componentAttribute="{ row }">
|
|
|
|
|
+ <div>
|
|
|
|
|
+ {{ getDictValueFn(row.componentAttribute) }}
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </ele-pro-table>
|
|
|
</div>
|
|
</div>
|
|
|
<div slot="footer" class="footer">
|
|
<div slot="footer" class="footer">
|
|
|
<el-button type="primary" @click="submitAdd">确认</el-button>
|
|
<el-button type="primary" @click="submitAdd">确认</el-button>
|
|
@@ -222,7 +228,8 @@
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: 'productCategoryName',
|
|
|
|
|
|
|
+ slot: 'componentAttribute',
|
|
|
|
|
+ prop: 'componentAttribute',
|
|
|
label: '类型',
|
|
label: '类型',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
@@ -284,7 +291,25 @@
|
|
|
],
|
|
],
|
|
|
contactId: '',
|
|
contactId: '',
|
|
|
goodsShow: false,
|
|
goodsShow: false,
|
|
|
- searchForm: {}
|
|
|
|
|
|
|
+ searchForm: {},
|
|
|
|
|
+ sxtList: [
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '自制件',
|
|
|
|
|
+ value: 1
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '采购件',
|
|
|
|
|
+ value: 2
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '外协件',
|
|
|
|
|
+ value: 3
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '受托件',
|
|
|
|
|
+ value: 4
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created() {},
|
|
created() {},
|
|
@@ -405,15 +430,20 @@
|
|
|
this.infoData = res;
|
|
this.infoData = res;
|
|
|
this.productList = res?.outInDetailList?.map(
|
|
this.productList = res?.outInDetailList?.map(
|
|
|
(productItem, productIndex) => {
|
|
(productItem, productIndex) => {
|
|
|
|
|
+ console.log(productItem);
|
|
|
return {
|
|
return {
|
|
|
...productItem,
|
|
...productItem,
|
|
|
outInDetailRecordRequestList:
|
|
outInDetailRecordRequestList:
|
|
|
productItem.outInDetailRecordRequestList.map((packingItem) => {
|
|
productItem.outInDetailRecordRequestList.map((packingItem) => {
|
|
|
return {
|
|
return {
|
|
|
...packingItem,
|
|
...packingItem,
|
|
|
|
|
+ componentAttribute: productItem.componentAttribute,
|
|
|
|
|
+
|
|
|
categoryName: productItem.categoryName,
|
|
categoryName: productItem.categoryName,
|
|
|
categoryCode: productItem.categoryCode,
|
|
categoryCode: productItem.categoryCode,
|
|
|
|
|
+ productBrand: productItem.brandNum,
|
|
|
categoryModel: productItem.categoryModel,
|
|
categoryModel: productItem.categoryModel,
|
|
|
|
|
+ packingSpecification: productItem.specification,
|
|
|
produceTime: packingItem.produceTime || null,
|
|
produceTime: packingItem.produceTime || null,
|
|
|
shipmentDate: res.createTime || null,
|
|
shipmentDate: res.createTime || null,
|
|
|
guaranteePeriodDeadline: this.getTime(res.createTime)[0],
|
|
guaranteePeriodDeadline: this.getTime(res.createTime)[0],
|
|
@@ -442,6 +472,21 @@
|
|
|
let warrantyStatus =
|
|
let warrantyStatus =
|
|
|
new Date(time).getTime() > new Date().getTime() ? 0 : 1;
|
|
new Date(time).getTime() > new Date().getTime() ? 0 : 1;
|
|
|
return [time, warrantyStatus];
|
|
return [time, warrantyStatus];
|
|
|
|
|
+ },
|
|
|
|
|
+ findFn(e) {
|
|
|
|
|
+ return this.sxtList.find((item) => item.value == Number(e));
|
|
|
|
|
+ },
|
|
|
|
|
+ getDictValueFn(e) {
|
|
|
|
|
+ if (e.length) {
|
|
|
|
|
+ let arr = [];
|
|
|
|
|
+ e.map((v) => {
|
|
|
|
|
+ arr.push(this.findFn(v)?.label);
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ return arr.join(',');
|
|
|
|
|
+ } else {
|
|
|
|
|
+ return '';
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|