|
@@ -1,5 +1,7 @@
|
|
|
const qualityResultList = { 1: '合格', 2: '不合格', 3: '让步接收' };
|
|
const qualityResultList = { 1: '合格', 2: '不合格', 3: '让步接收' };
|
|
|
const disposalStatustList = { 0: '待处置', 1: '处置中', 2: '处置完成' };
|
|
const disposalStatustList = { 0: '待处置', 1: '处置中', 2: '处置完成' };
|
|
|
|
|
+import { inspectionProjectStatus } from '@/enum/dict.js';
|
|
|
|
|
+
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -229,233 +231,7 @@ export default {
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
- tableColumns2: [
|
|
|
|
|
- {
|
|
|
|
|
- columnKey: 'index',
|
|
|
|
|
- label: '序号',
|
|
|
|
|
- type: 'index',
|
|
|
|
|
- width: 55,
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- fixed: 'left'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '样品编码',
|
|
|
|
|
- prop: 'sampleCode',
|
|
|
|
|
- width: '200',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- fixed: 'left',
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '编码',
|
|
|
|
|
- prop: 'categoryCode',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- slot: 'categoryCode',
|
|
|
|
|
- fixed: 'left',
|
|
|
|
|
- width: '150',
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '名称',
|
|
|
|
|
- prop: 'categoryName',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- width: '150',
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '批次号',
|
|
|
|
|
- prop: 'batchNo',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '发货条码',
|
|
|
|
|
- prop: 'barcodes',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '包装编码',
|
|
|
|
|
- prop: 'packageNo',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- width: '170',
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- },
|
|
|
|
|
- { label: '包装数量', prop: 'packingQuantity', align: 'center' },
|
|
|
|
|
- { label: '包装单位', prop: 'packingUnit', align: 'center' },
|
|
|
|
|
- { label: '计量数量', prop: 'measureQuantity', align: 'center' },
|
|
|
|
|
- { label: '计量单位', prop: 'measureUnit', align: 'center' },
|
|
|
|
|
- {
|
|
|
|
|
- label: '供应商名称',
|
|
|
|
|
- prop: 'supplierName',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- width: '120',
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '供应商代号',
|
|
|
|
|
- prop: 'supplierCode',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- width: '120',
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '物料代号',
|
|
|
|
|
- prop: 'materielDesignation',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- slot: 'materielDesignation',
|
|
|
|
|
- width: '120',
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '客户代号',
|
|
|
|
|
- prop: 'clientCode',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- slot: 'clientCode',
|
|
|
|
|
- width: '120',
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '刻码',
|
|
|
|
|
- prop: 'engrave',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- slot: 'engrave',
|
|
|
|
|
- width: '120',
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '机型',
|
|
|
|
|
- prop: 'modelKey',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '颜色',
|
|
|
|
|
- prop: 'colorKey',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '重量',
|
|
|
|
|
- prop: 'weight',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- slot: 'weight',
|
|
|
|
|
- width: '120'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '重量单位',
|
|
|
|
|
- prop: 'weightUnit',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- width: 100
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '仓库',
|
|
|
|
|
- prop: 'warehouseName',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- width: 150,
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '货区',
|
|
|
|
|
- prop: 'areaName',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- },
|
|
|
|
|
- { label: '货架', prop: 'goodsShelfName', align: 'center' },
|
|
|
|
|
- { label: '货位', prop: 'goodsAllocationName', align: 'center' },
|
|
|
|
|
- {
|
|
|
|
|
- label: '生产日期',
|
|
|
|
|
- prop: 'productionDate',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- width: 150,
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '采购日期',
|
|
|
|
|
- prop: 'purchaseDate',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- width: 150,
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '处置状态',
|
|
|
|
|
- prop: 'disposeType',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- formatter: (_row) => {
|
|
|
|
|
- return this.disposeTypeMap[_row.disposeType] || '';
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '处置时间',
|
|
|
|
|
- prop: 'disposeTime',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- showOverflowTooltip: true,
|
|
|
|
|
- width: 150
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '质检状态',
|
|
|
|
|
- prop: 'qualityStatus',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- formatter: (row) => {
|
|
|
|
|
- if (row.qualityStatus == 0) {
|
|
|
|
|
- return '未检';
|
|
|
|
|
- }
|
|
|
|
|
- if (row.qualityStatus == 1) {
|
|
|
|
|
- return '已检';
|
|
|
|
|
- }
|
|
|
|
|
- if (row.qualityStatus == 2) {
|
|
|
|
|
- return '待检';
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- ],
|
|
|
|
|
- tableColumns3: [
|
|
|
|
|
- {
|
|
|
|
|
- columnKey: 'index',
|
|
|
|
|
- label: '序号',
|
|
|
|
|
- type: 'index',
|
|
|
|
|
- width: 55,
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- fixed: 'left'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '质检方案编码',
|
|
|
|
|
- prop: 'qualitySchemeTemplateCode',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '质检方案名称',
|
|
|
|
|
- prop: 'qualitySchemeTemplateName',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '质检类型',
|
|
|
|
|
- prop: 'categoryLevelClassName',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '质检项编码',
|
|
|
|
|
- prop: 'inspectionCode',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '质检项名称',
|
|
|
|
|
- prop: 'inspectionName',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- label: '工艺参数',
|
|
|
|
|
- prop: 'defaultValue',
|
|
|
|
|
- align: 'center',
|
|
|
|
|
- showOverflowTooltip: true,
|
|
|
|
|
- slot: 'defaultValue'
|
|
|
|
|
- }
|
|
|
|
|
- ],
|
|
|
|
|
|
|
+
|
|
|
tableColumns4: [
|
|
tableColumns4: [
|
|
|
{
|
|
{
|
|
|
type: 'index',
|
|
type: 'index',
|
|
@@ -721,6 +497,262 @@ export default {
|
|
|
]
|
|
]
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
+ computed: {
|
|
|
|
|
+ tableColumns2() {
|
|
|
|
|
+ return [
|
|
|
|
|
+ {
|
|
|
|
|
+ columnKey: 'index',
|
|
|
|
|
+ label: '序号',
|
|
|
|
|
+ type: 'index',
|
|
|
|
|
+ width: 55,
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ fixed: 'left'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '样品编码',
|
|
|
|
|
+ prop: 'sampleCode',
|
|
|
|
|
+ width: '200',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ fixed: 'left',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '编码',
|
|
|
|
|
+ prop: 'categoryCode',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ slot: 'categoryCode',
|
|
|
|
|
+ fixed: 'left',
|
|
|
|
|
+ width: '150',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '名称',
|
|
|
|
|
+ prop: 'categoryName',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ width: '150',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '批次号',
|
|
|
|
|
+ prop: 'batchNo',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '发货条码',
|
|
|
|
|
+ prop: 'barcodes',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '包装编码',
|
|
|
|
|
+ prop: 'packageNo',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ width: '170',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ { label: '包装数量', prop: 'packingQuantity', align: 'center' },
|
|
|
|
|
+ { label: '包装单位', prop: 'packingUnit', align: 'center' },
|
|
|
|
|
+ { label: '计量数量', prop: 'measureQuantity', align: 'center' },
|
|
|
|
|
+ { label: '计量单位', prop: 'measureUnit', align: 'center' },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '供应商名称',
|
|
|
|
|
+ prop: 'supplierName',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ width: '120',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '供应商代号',
|
|
|
|
|
+ prop: 'supplierCode',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ width: '120',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '物料代号',
|
|
|
|
|
+ prop: 'materielDesignation',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ slot: 'materielDesignation',
|
|
|
|
|
+ width: '120',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '客户代号',
|
|
|
|
|
+ prop: 'clientCode',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ slot: 'clientCode',
|
|
|
|
|
+ width: '120',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '刻码',
|
|
|
|
|
+ prop: 'engrave',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ slot: 'engrave',
|
|
|
|
|
+ width: '120',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '机型',
|
|
|
|
|
+ prop: 'modelKey',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '颜色',
|
|
|
|
|
+ prop: 'colorKey',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '重量',
|
|
|
|
|
+ prop: 'weight',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ slot: 'weight',
|
|
|
|
|
+ width: '120'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '重量单位',
|
|
|
|
|
+ prop: 'weightUnit',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ width: 100
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '仓库',
|
|
|
|
|
+ prop: 'warehouseName',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ width: 150,
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '货区',
|
|
|
|
|
+ prop: 'areaName',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ { label: '货架', prop: 'goodsShelfName', align: 'center' },
|
|
|
|
|
+ { label: '货位', prop: 'goodsAllocationName', align: 'center' },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '生产日期',
|
|
|
|
|
+ prop: 'productionDate',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ width: 150,
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '采购日期',
|
|
|
|
|
+ prop: 'purchaseDate',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ width: 150,
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '处置状态',
|
|
|
|
|
+ prop: 'disposeType',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ formatter: (_row) => {
|
|
|
|
|
+ return this.disposeTypeMap[_row.disposeType] || '';
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '处置时间',
|
|
|
|
|
+ prop: 'disposeTime',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true,
|
|
|
|
|
+ width: 150
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '质检状态',
|
|
|
|
|
+ prop: 'qualityStatus',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ show: this.form.recordingMethod != 1,
|
|
|
|
|
+ formatter: (row) => {
|
|
|
|
|
+ if (row.qualityStatus == 0) {
|
|
|
|
|
+ return '未检';
|
|
|
|
|
+ }
|
|
|
|
|
+ if (row.qualityStatus == 1) {
|
|
|
|
|
+ return '已检';
|
|
|
|
|
+ }
|
|
|
|
|
+ if (row.qualityStatus == 2) {
|
|
|
|
|
+ return '待检';
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ ];
|
|
|
|
|
+ },
|
|
|
|
|
+ tableColumns3() {
|
|
|
|
|
+ return [
|
|
|
|
|
+ {
|
|
|
|
|
+ columnKey: 'index',
|
|
|
|
|
+ label: '序号',
|
|
|
|
|
+ type: 'index',
|
|
|
|
|
+ width: 55,
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ fixed: 'left'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '质检方案编码',
|
|
|
|
|
+ prop: 'qualitySchemeTemplateCode',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '质检方案名称',
|
|
|
|
|
+ prop: 'qualitySchemeTemplateName',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '质检类型',
|
|
|
|
|
+ prop: 'categoryLevelClassName',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '质检项编码',
|
|
|
|
|
+ prop: 'inspectionCode',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '质检项名称',
|
|
|
|
|
+ prop: 'inspectionName',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '工艺参数',
|
|
|
|
|
+ prop: 'defaultValue',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true,
|
|
|
|
|
+ slot: 'defaultValue'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '质检状态',
|
|
|
|
|
+ prop: 'defaultValue',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ showOverflowTooltip: true,
|
|
|
|
|
+ show: this.form.recordingMethod == 1,
|
|
|
|
|
+ formatter: (row) => {
|
|
|
|
|
+ return inspectionProjectStatus.find(
|
|
|
|
|
+ (item) => item.value == row.status
|
|
|
|
|
+ )?.label;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ label: '质检结果',
|
|
|
|
|
+ prop: 'defaultValue',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ show: this.form.recordingMethod == 1,
|
|
|
|
|
+ showOverflowTooltip: true,
|
|
|
|
|
+ formatter: (row, column, cellValue) => {
|
|
|
|
|
+ return qualityResultList[cellValue];
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ ];
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
methods: {
|
|
methods: {
|
|
|
//样品数操作
|
|
//样品数操作
|
|
|
isSampleQuantity(item, index) {
|
|
isSampleQuantity(item, index) {
|