|
@@ -30,11 +30,11 @@
|
|
|
<el-table v-show="activeName === '2'" v-if="sampleList.length > 0" ref="showSampleListTable"
|
|
<el-table v-show="activeName === '2'" v-if="sampleList.length > 0" ref="showSampleListTable"
|
|
|
:data="paginatedSampleList" tooltip-effect="dark" :max-height="300" border row-key="id"
|
|
:data="paginatedSampleList" tooltip-effect="dark" :max-height="300" border row-key="id"
|
|
|
@selection-change="handleSelectionChange">
|
|
@selection-change="handleSelectionChange">
|
|
|
- <el-table-column type="selection" width="55" align="center"></el-table-column>
|
|
|
|
|
- <el-table-column label="序号" type="index" width="50" align="center"></el-table-column>
|
|
|
|
|
|
|
+ <el-table-column type="selection" width="55" align="center" fixed="left"></el-table-column>
|
|
|
|
|
+ <el-table-column label="序号" type="index" width="50" align="center" fixed="left"></el-table-column>
|
|
|
|
|
|
|
|
<template v-for="column in tableColumns">
|
|
<template v-for="column in tableColumns">
|
|
|
- <el-table-column :key="column.prop" :label="column.label" :prop="column.prop" :show-overflow-tooltip="true"
|
|
|
|
|
|
|
+ <el-table-column :key="column.prop" :label="column.label" :prop="column.prop" :fixed="column.fixed" :show-overflow-tooltip="true"
|
|
|
:width="column.width" :align="column.align">
|
|
:width="column.width" :align="column.align">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<template v-if="column.prop === 'categoryCode'">
|
|
<template v-if="column.prop === 'categoryCode'">
|
|
@@ -42,16 +42,28 @@
|
|
|
{{ scope.row.categoryCode }}
|
|
{{ scope.row.categoryCode }}
|
|
|
</el-link>
|
|
</el-link>
|
|
|
</template>
|
|
</template>
|
|
|
- <template v-else-if="column.prop === 'weight'">
|
|
|
|
|
- <el-input v-model="scope.row.weight"></el-input>
|
|
|
|
|
- </template>
|
|
|
|
|
|
|
+<!-- <template v-else-if="column.prop === 'weight'">-->
|
|
|
|
|
+<!-- <el-input v-model="scope.row.weight"></el-input>-->
|
|
|
|
|
+<!-- </template>-->
|
|
|
<template v-else>
|
|
<template v-else>
|
|
|
{{ scope.row[column.prop] }}
|
|
{{ scope.row[column.prop] }}
|
|
|
</template>
|
|
</template>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</template>
|
|
</template>
|
|
|
- <el-table-column label="质检结果" prop="qualityResults" align="center" width="120">
|
|
|
|
|
|
|
+ <el-table-column label="重量" prop="weight" align="center" width="100" fixed="right">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-input type="number" v-model="scope.row.weight" :min="0"></el-input>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="重量单位" prop="weightUnit" align="center" width="80" fixed="right"></el-table-column>
|
|
|
|
|
+ <el-table-column label="质检状态" prop="qualityStatus" align="center" width="120" fixed="right">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <span v-if="scope.row.qualityStatus == 0 ">未质检</span>
|
|
|
|
|
+ <span v-if="scope.row.qualityStatus == 1 ">已质检</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="质检结果" prop="qualityResults" align="center" width="120" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-select v-model="scope.row.qualityResults" placeholder="请选择" style="width: 100%;"
|
|
<el-select v-model="scope.row.qualityResults" placeholder="请选择" style="width: 100%;"
|
|
|
:disabled="type == 'detail'" size="mini">
|
|
:disabled="type == 'detail'" size="mini">
|
|
@@ -183,7 +195,8 @@ export default {
|
|
|
label: '编码',
|
|
label: '编码',
|
|
|
prop: 'categoryCode',
|
|
prop: 'categoryCode',
|
|
|
width: '160',
|
|
width: '160',
|
|
|
- align: 'center'
|
|
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ fixed:'left'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
label: '名称',
|
|
label: '名称',
|
|
@@ -201,15 +214,14 @@ export default {
|
|
|
{ label: '物料代号', prop: 'materielDesignation', align: 'center' },
|
|
{ label: '物料代号', prop: 'materielDesignation', align: 'center' },
|
|
|
{ label: '客户代号', prop: 'clientCode', align: 'center' },
|
|
{ label: '客户代号', prop: 'clientCode', align: 'center' },
|
|
|
{ label: '刻码', prop: 'engrave', align: 'center' },
|
|
{ label: '刻码', prop: 'engrave', align: 'center' },
|
|
|
- { label: '重量', prop: 'weight', align: 'center' },
|
|
|
|
|
- { label: '重量单位', prop: 'weightUnit', align: 'center' },
|
|
|
|
|
|
|
+ // { label: '重量', prop: 'weight', align: 'center' },
|
|
|
|
|
+ // { label: '重量单位', prop: 'weightUnit', align: 'center' },
|
|
|
{ label: '仓库', prop: 'warehouseName', align: 'center' },
|
|
{ label: '仓库', prop: 'warehouseName', align: 'center' },
|
|
|
{ label: '货区', prop: 'areaName', align: 'center' },
|
|
{ label: '货区', prop: 'areaName', align: 'center' },
|
|
|
{ label: '货架', prop: 'goodsShelfName', align: 'center' },
|
|
{ label: '货架', prop: 'goodsShelfName', align: 'center' },
|
|
|
{ label: '货位', prop: 'goodsAllocationName', align: 'center' },
|
|
{ label: '货位', prop: 'goodsAllocationName', align: 'center' },
|
|
|
{ label: '生产日期', prop: 'productionDate', align: 'center' },
|
|
{ label: '生产日期', prop: 'productionDate', align: 'center' },
|
|
|
{ label: '采购日期', prop: 'purchaseDate', align: 'center' },
|
|
{ label: '采购日期', prop: 'purchaseDate', align: 'center' },
|
|
|
- { label: '报工状态', prop: '', align: 'center' },
|
|
|
|
|
],
|
|
],
|
|
|
|
|
|
|
|
packingList: [],
|
|
packingList: [],
|
|
@@ -325,6 +337,7 @@ export default {
|
|
|
let addStatus = res.map((item) => {
|
|
let addStatus = res.map((item) => {
|
|
|
item.isValid = true;
|
|
item.isValid = true;
|
|
|
item.qualityResults = 1;
|
|
item.qualityResults = 1;
|
|
|
|
|
+ item.qualityStatus = 0;
|
|
|
return {
|
|
return {
|
|
|
...item
|
|
...item
|
|
|
}
|
|
}
|
|
@@ -405,6 +418,11 @@ export default {
|
|
|
this.$router.go(-1);
|
|
this.$router.go(-1);
|
|
|
},
|
|
},
|
|
|
handleDetail(index, row, type) {
|
|
handleDetail(index, row, type) {
|
|
|
|
|
+ if (row.isStatus == undefined) {
|
|
|
|
|
+ row.isStatus = true;
|
|
|
|
|
+ }else {
|
|
|
|
|
+ row.isStatus = false;
|
|
|
|
|
+ }
|
|
|
if (!this.sampleList[index] || !this.schemeList) {
|
|
if (!this.sampleList[index] || !this.schemeList) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
@@ -479,6 +497,7 @@ export default {
|
|
|
|
|
|
|
|
const processedList = list.map(item => {
|
|
const processedList = list.map(item => {
|
|
|
item.qualityResults = hasInvalidItem ? 2 : 1;
|
|
item.qualityResults = hasInvalidItem ? 2 : 1;
|
|
|
|
|
+ item.qualityStatus = 1;
|
|
|
item.qualitySampleTemplateList = item.children;
|
|
item.qualitySampleTemplateList = item.children;
|
|
|
item.isValid = !hasInvalidItem
|
|
item.isValid = !hasInvalidItem
|
|
|
delete item.children;
|
|
delete item.children;
|
|
@@ -493,7 +512,7 @@ export default {
|
|
|
|
|
|
|
|
this.SampleListbyReportList = processedList;
|
|
this.SampleListbyReportList = processedList;
|
|
|
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|