|
|
@@ -45,7 +45,12 @@
|
|
|
@done="onDone"
|
|
|
>
|
|
|
<template v-slot:toolbar>
|
|
|
- <el-alert type="info" :closable="false" class="ele-alert-border" style="width: 300px;">
|
|
|
+ <el-alert
|
|
|
+ type="info"
|
|
|
+ :closable="false"
|
|
|
+ class="ele-alert-border"
|
|
|
+ style="width: 300px"
|
|
|
+ >
|
|
|
<i class="el-icon-info ele-text-info"></i>
|
|
|
<span class="ele-text">
|
|
|
<span>
|
|
|
@@ -88,6 +93,42 @@
|
|
|
<template v-slot:availableCountBase="{ row }">
|
|
|
{{ row.availableCountBase }} {{ row.measuringUnit }}
|
|
|
</template>
|
|
|
+
|
|
|
+ <template v-slot:weight="{ row }">
|
|
|
+ {{ row.weight }} {{ row.weightUnit }}
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <!-- 库存保质期 -->
|
|
|
+ <template v-slot:expirationDate="{ row }">
|
|
|
+ <span v-if="row.expirationDate">
|
|
|
+ {{ row.expirationDate ? row.expirationDate : '-' }}
|
|
|
+ {{
|
|
|
+ row.expirationDateUnit == 'year'
|
|
|
+ ? '年'
|
|
|
+ : row.expirationDateUnit == 'month'
|
|
|
+ ? '月'
|
|
|
+ : '日'
|
|
|
+ }}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ <!-- 质检状态 -->
|
|
|
+ <template v-slot:qualityStatus="{ row }">
|
|
|
+ <span v-if="row.qualityResult == 0 || row.qualityResult == 1"
|
|
|
+ >已检</span
|
|
|
+ >
|
|
|
+ <span v-else-if="row.qualityStatus == 1">已检</span>
|
|
|
+ <span v-else-if="row.qualityStatus == 0">未检</span>
|
|
|
+ <span v-else>-</span>
|
|
|
+ </template>
|
|
|
+ <!-- 质检结果 -->
|
|
|
+ <template v-slot:qualityResult="{ row }">
|
|
|
+ <span v-if="row.qualityResult == 0 || row.qualityResult == ''"
|
|
|
+ >合格</span
|
|
|
+ >
|
|
|
+ <span v-else-if="row.qualityResult == 1">不合格</span>
|
|
|
+ <span v-else-if="row.qualityResult == 3">让步接收</span>
|
|
|
+ <span v-else>-</span>
|
|
|
+ </template>
|
|
|
</ele-pro-table>
|
|
|
</template>
|
|
|
</ele-split-layout>
|
|
|
@@ -117,6 +158,7 @@
|
|
|
return {
|
|
|
visible: false,
|
|
|
|
|
|
+ id: null,
|
|
|
treeIds: null,
|
|
|
categoryLevelId: null,
|
|
|
rootCategoryLevelId: null,
|
|
|
@@ -170,6 +212,11 @@
|
|
|
label: '名称',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
+ {
|
|
|
+ prop: 'brandNum',
|
|
|
+ label: '牌号',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
{
|
|
|
prop: 'modelType',
|
|
|
label: '型号',
|
|
|
@@ -180,69 +227,131 @@
|
|
|
label: '规格',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
+ {
|
|
|
+ prop: 'batchNo',
|
|
|
+ label: '批次号',
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'manualBatchNo',
|
|
|
+ label: '批号',
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'availableCountBase',
|
|
|
+ label: '计量库存数量',
|
|
|
+ sortable: 'custom',
|
|
|
+ slot: 'availableCountBase',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ width: 130,
|
|
|
+ align: 'center'
|
|
|
+ },
|
|
|
|
|
|
- ...[
|
|
|
- {
|
|
|
- prop: 'brandNum',
|
|
|
- label: '牌号',
|
|
|
- showOverflowTooltip: true
|
|
|
- }
|
|
|
- ],
|
|
|
-
|
|
|
- ...(this.rootCategoryLevelId == '4'
|
|
|
+ ...([1, 23, 8].includes(Number(this.rootCategoryLevelId))
|
|
|
? [
|
|
|
{
|
|
|
- prop: 'workstationName',
|
|
|
- label: '工位',
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
-
|
|
|
- {
|
|
|
- prop: 'runStatus',
|
|
|
- label: '状态',
|
|
|
- slot: 'runStatus',
|
|
|
+ prop: 'packingCountBase',
|
|
|
+ label: '包装库存',
|
|
|
+ slot: 'packingCountBase',
|
|
|
showOverflowTooltip: true
|
|
|
}
|
|
|
]
|
|
|
: []),
|
|
|
|
|
|
- ...(this.rootCategoryLevelId == '5'
|
|
|
- ? [
|
|
|
- {
|
|
|
- prop: 'dieHoleNum',
|
|
|
- label: '模孔数量',
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'mandrelDiameter',
|
|
|
- label: '芯棒直径',
|
|
|
- showOverflowTooltip: true
|
|
|
- },
|
|
|
- {
|
|
|
- prop: 'shrinkEffictive',
|
|
|
- label: '收缩系数',
|
|
|
- showOverflowTooltip: true
|
|
|
- }
|
|
|
- ]
|
|
|
- : []),
|
|
|
+ {
|
|
|
+ prop: 'weight',
|
|
|
+ label: '重量',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ slot: 'weight'
|
|
|
+ },
|
|
|
|
|
|
- ...(this.rootCategoryLevelId == '7'
|
|
|
+ {
|
|
|
+ prop: 'expirationDate',
|
|
|
+ slot: 'expirationDate',
|
|
|
+ label: '库存保质期',
|
|
|
+ width: 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'expirationTime',
|
|
|
+ label: '周期倒计时',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ width: 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'qualityResult',
|
|
|
+ slot: 'qualityResult',
|
|
|
+ label: '质检结果',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ width: 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'qualityStatus',
|
|
|
+ slot: 'qualityStatus',
|
|
|
+ label: '质检状态',
|
|
|
+ showOverflowTooltip: true,
|
|
|
+ width: 100
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: 'pathName',
|
|
|
+ width: 230,
|
|
|
+ label: '仓库',
|
|
|
+ showOverflowTooltip: true
|
|
|
+ },
|
|
|
+
|
|
|
+ ...(this.rootCategoryLevelId == '4'
|
|
|
? [
|
|
|
{
|
|
|
- prop: 'materialQuality',
|
|
|
- label: '材质',
|
|
|
+ prop: 'workstationName',
|
|
|
+ label: '工位',
|
|
|
showOverflowTooltip: true
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- prop: 'vehicleLen',
|
|
|
- label: '长宽高',
|
|
|
- slot: 'vehicleLen',
|
|
|
+ prop: 'runStatus',
|
|
|
+ label: '状态',
|
|
|
+ slot: 'runStatus',
|
|
|
showOverflowTooltip: true
|
|
|
}
|
|
|
]
|
|
|
: []),
|
|
|
|
|
|
+ // ...(this.rootCategoryLevelId == '5'
|
|
|
+ // ? [
|
|
|
+ // {
|
|
|
+ // prop: 'dieHoleNum',
|
|
|
+ // label: '模孔数量',
|
|
|
+ // showOverflowTooltip: true
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // prop: 'mandrelDiameter',
|
|
|
+ // label: '芯棒直径',
|
|
|
+ // showOverflowTooltip: true
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // prop: 'shrinkEffictive',
|
|
|
+ // label: '收缩系数',
|
|
|
+ // showOverflowTooltip: true
|
|
|
+ // }
|
|
|
+ // ]
|
|
|
+ // : []),
|
|
|
+
|
|
|
+ // ...(this.rootCategoryLevelId == '7'
|
|
|
+ // ? [
|
|
|
+ // {
|
|
|
+ // prop: 'materialQuality',
|
|
|
+ // label: '材质',
|
|
|
+ // showOverflowTooltip: true
|
|
|
+ // },
|
|
|
+
|
|
|
+ // {
|
|
|
+ // prop: 'vehicleLen',
|
|
|
+ // label: '长宽高',
|
|
|
+ // slot: 'vehicleLen',
|
|
|
+ // showOverflowTooltip: true
|
|
|
+ // }
|
|
|
+ // ]
|
|
|
+ // : []),
|
|
|
+
|
|
|
...(this.rootCategoryLevelId == '8'
|
|
|
? [
|
|
|
{
|
|
|
@@ -262,28 +371,6 @@
|
|
|
showOverflowTooltip: true
|
|
|
}
|
|
|
]
|
|
|
- : []),
|
|
|
-
|
|
|
- ...([1, 23, 8].includes(Number(this.rootCategoryLevelId))
|
|
|
- ? [
|
|
|
- {
|
|
|
- prop: 'packingCountBase',
|
|
|
- label: '包装库存',
|
|
|
- slot: 'packingCountBase',
|
|
|
- showOverflowTooltip: true
|
|
|
- }
|
|
|
- ]
|
|
|
- : []),
|
|
|
-
|
|
|
- ...([1, 23].includes(Number(this.rootCategoryLevelId))
|
|
|
- ? [
|
|
|
- {
|
|
|
- prop: 'availableCountBase',
|
|
|
- label: '计量库存数量',
|
|
|
- slot: 'availableCountBase',
|
|
|
- showOverflowTooltip: true
|
|
|
- }
|
|
|
- ]
|
|
|
: [])
|
|
|
];
|
|
|
}
|
|
|
@@ -326,8 +413,9 @@
|
|
|
});
|
|
|
},
|
|
|
|
|
|
- /* 清空选择 */
|
|
|
- clearChoose() {
|
|
|
+ /* 清空选择 */
|
|
|
+ clearChoose() {
|
|
|
+ this.allSelection = [];
|
|
|
this.$refs.table.clearSelection();
|
|
|
},
|
|
|
rowStyle({ row }) {
|
|
|
@@ -354,17 +442,20 @@
|
|
|
});
|
|
|
},
|
|
|
open(id, item) {
|
|
|
- if (item) {
|
|
|
- }
|
|
|
+ this.id = id;
|
|
|
this.visible = true;
|
|
|
},
|
|
|
|
|
|
handleClose() {
|
|
|
+ this.clearChoose();
|
|
|
this.visible = false;
|
|
|
},
|
|
|
selected() {
|
|
|
- console.log(this.selection);
|
|
|
-
|
|
|
+ if (this.allSelection.length == 0) {
|
|
|
+ this.$message.warning('请选择物料');
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ this.$emit('allSelection', this.id, this.allSelection);
|
|
|
this.handleClose();
|
|
|
}
|
|
|
},
|