| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679 |
- const qualityResultList = { 1: '合格', 2: '不合格' };
- const disposalStatustList = { 0: '待处置', 1: '处置中', 2: '处置完成' };
- export default {
- data() {
- return {
- infoList: [
- {
- label: '编码',
- prop: 'code',
- span: 6
- },
- {
- label: '产品名称',
- prop: 'productName',
- span: 6
- },
- {
- label: '产品编码',
- prop: 'productCode',
- span: 6
- },
- {
- label: '批次号',
- prop: 'batchNo',
- span: 6
- },
- {
- label: '规格',
- prop: 'specification',
- span: 6
- },
- {
- label: '型号',
- prop: 'modelType',
- span: 6
- },
- {
- label: '牌号',
- prop: 'brandNo',
- span: 6
- },
- {
- label: '计量类型',
- prop: 'inspectionStandardsName',
- span: 6
- },
- {
- label: '质检部门',
- prop: 'groupName',
- span: 6
- },
- {
- label: '质检人',
- prop: 'qualityName',
- span: 6
- },
- {
- label: '质检时间',
- prop: 'qualityTime',
- span: 6
- },
- {
- prop: 'executeJobName',
- span: 6,
- label: '执行班组',
- },
- {
- prop: 'executeUserName',
- span: 6,
- label: '执行人'
- },
- {
- label: '工时(h)',
- prop: 'hours',
- span: 6
- },
- {
- label: '合格率',
- prop: 'qualificationRate',
- span: 6
- },
- {
- label: '不合格率',
- prop: 'noQualificationRate',
- span: 6
- },
- {
- label: '检验方式',
- prop: 'qualityModeName',
- span: 6
- },
- {
- label: '质检结果',
- prop: 'qualityResultsName',
- span: 6
- },
- {
- label: '总重量',
- prop: 'totalWeight',
- span: 6
- },
- {
- label: '总数量',
- prop: 'total',
- span: 6
- }
- ],
- disposeTypeMap: {
- 1: '返工',
- 2: '返修',
- 3: '报废',
- 4: '降级使用',
- 5: '让步接收',
- 6: '留样',
- 7: '消耗',
- 8: '回用/归批',
- 9: '转试销',
- 10: '退货'
- },
- tableColumns1: [
- {
- columnKey: 'index',
- label: '序号',
- type: 'index',
- width: 55,
- align: 'center',
- fixed: 'left'
- },
- {
- label: '编码',
- prop: 'categoryCode',
- width: 150,
- align: 'center',
- showOverflowTooltip: true
- },
- {
- label: '名称',
- prop: 'categoryName',
- width: '150',
- align: 'center',
- width: 120,
- showOverflowTooltip: true
- },
- {
- label: '批次号',
- prop: 'batchNo',
- align: 'center',
- width: 120,
- showOverflowTooltip: true
- },
- {
- label: '发货条码',
- prop: 'barcodes',
- align: 'center',
- showOverflowTooltip: true
- },
- {
- label: '包装编码',
- prop: 'packageNo',
- align: 'center',
- width: 120,
- showOverflowTooltip: true
- },
- { label: '包装数量', prop: 'packingQuantity', align: 'center' },
- { label: '包装单位', prop: 'packingUnit', align: 'center' },
- { label: '计量数量', prop: 'measureQuantity', align: 'center' },
- { label: '计量单位', prop: 'measureUnit', align: 'center' },
- {
- label: '物料代号',
- prop: 'materielDesignation',
- align: 'center',
- showOverflowTooltip: true
- },
- {
- label: '客户代号',
- prop: 'clientCode',
- align: 'center',
- showOverflowTooltip: true
- },
- {
- label: '供应商名称',
- prop: 'supplierName',
- align: 'center',
- width: 120,
- showOverflowTooltip: true
- },
- {
- label: '供应商代号',
- prop: 'supplierCode',
- align: 'center',
- width: '120',
- showOverflowTooltip: true
- },
- { label: '刻码', prop: 'engrave', align: 'center' },
- { label: '重量', prop: 'weight', align: 'center' },
- { label: '重量单位', prop: 'weightUnit', align: 'center' },
- {
- label: '仓库',
- prop: 'warehouseName',
- align: 'center',
- width: 120,
- showOverflowTooltip: true
- },
- { label: '货区', prop: 'areaName', align: 'center' },
- { label: '货架', prop: 'goodsShelfName', align: 'center' },
- { label: '货位', prop: 'goodsAllocationName', align: 'center' },
- {
- label: '生产日期',
- prop: 'productionDate',
- align: 'center',
- width: 120,
- showOverflowTooltip: true
- },
- {
- label: '采购日期',
- prop: 'purchaseDate',
- align: 'center',
- width: 120,
- 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',
- 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: '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: [
- {
- type: 'index',
- columnKey: 'index',
- align: 'center',
- label: '序号',
- width: 55,
- showOverflowTooltip: true
- },
- {
- label: '样品编码',
- prop: 'sampleCode',
- minWidth: '150',
- align: 'center',
- showOverflowTooltip: true
- },
- {
- label: '物品编码',
- prop: 'categoryCode',
- minWidth: '150',
- align: 'center',
- showOverflowTooltip: true
- },
- {
- label: '物品名称',
- prop: 'categoryName',
- minWidth: '180',
- align: 'center',
- showOverflowTooltip: true
- },
- {
- prop: 'batchNo',
- label: '批次号',
- align: 'center',
- minWidth: '120',
- showOverflowTooltip: true
- },
- {
- label: '规格',
- prop: 'specification',
- width: '120',
- align: 'center',
- showOverflowTooltip: true
- },
- {
- label: '牌号',
- prop: 'brandNum',
- width: '120',
- align: 'center',
- showOverflowTooltip: true
- },
- {
- prop: 'modelType',
- label: '型号',
- align: 'center',
- width: '120',
- showOverflowTooltip: true
- },
- {
- prop: 'measureQuantity',
- label: '计量数量',
- align: 'center',
- width: '120',
- showOverflowTooltip: true
- },
- {
- prop: 'measureUnit',
- label: '计量单位',
- align: 'center',
- width: '120',
- showOverflowTooltip: true
- },
- {
- prop: 'weight',
- label: '重量',
- align: 'center',
- width: '120',
- showOverflowTooltip: true
- },
- {
- prop: 'weightUnit',
- label: '重量单位',
- align: 'center',
- width: '120',
- showOverflowTooltip: true
- },
- {
- prop: 'disposalStatus',
- label: '处置状态',
- align: 'center',
- width: '120',
- showOverflowTooltip: true,
- formatter: (row, column, cellValue) => {
- return disposalStatustList[cellValue ? cellValue : 0];
- }
- },
- {
- prop: 'disposeType',
- label: '处置类型',
- align: 'center',
- width: '120',
- showOverflowTooltip: true,
- formatter: (row, column, cellValue) => {
- return this.disposeTypeMap[cellValue];
- }
- },
- {
- prop: 'qualityResults',
- label: '质检结果',
- align: 'center',
- width: '120',
- showOverflowTooltip: true,
- formatter: (row, column, cellValue) => {
- return qualityResultList[cellValue];
- }
- }
- ],
- tableColumns5: [
- {
- columnKey: 'index',
- label: '序号',
- type: 'index',
- width: 55,
- align: 'center',
- showOverflowTooltip: true,
- fixed: 'left'
- },
- {
- label: '样品编码',
- prop: 'sampleCode',
- width: '150',
- align: 'center',
- showOverflowTooltip: true
- },
- {
- prop: 'categoryCode',
- label: '物品编码',
- width: '150',
- align: 'center',
- showOverflowTooltip: true
- },
- {
- prop: 'categoryName',
- label: '物品名称',
- width: '150',
- align: 'center',
- showOverflowTooltip: true
- },
- {
- label: '规格',
- prop: 'specification',
- width: '120',
- align: 'center',
- showOverflowTooltip: true
- },
- {
- prop: 'brandNum',
- label: '牌号',
- align: 'center'
- },
- {
- prop: 'modelType',
- label: '型号',
- align: 'center',
- width: '120',
- showOverflowTooltip: true
- },
- {
- prop: 'batchNo',
- label: '批次号',
- align: 'center',
- width: '120',
- showOverflowTooltip: true
- },
- {
- prop: 'weight',
- label: '重量',
- align: 'center',
- width: '120',
- showOverflowTooltip: true
- },
- {
- prop: 'weightUnit',
- label: '重量单位',
- align: 'center',
- width: '120',
- showOverflowTooltip: true
- },
- {
- prop: 'engrave',
- label: '刻码',
- align: 'center'
- },
- { label: '计量数量', prop: 'measureQuantity', align: 'center' },
- { label: '计量单位', prop: 'measureUnit', align: 'center' },
- {
- prop: 'produceRoutingName',
- label: '工艺路线',
- align: 'center'
- },
- {
- prop: 'produceTaskName',
- label: '工序',
- align: 'center'
- },
- {
- prop: 'unqualifiedReason',
- label: '原因',
- align: 'center'
- },
- {
- prop: 'disposeTime',
- label: '处置时间',
- align: 'center',
- width: '180',
- showOverflowTooltip: true
- },
- {
- prop: 'disposalStatus',
- label: '处置状态',
- align: 'center',
- width: '120',
- showOverflowTooltip: true,
- formatter: (row, column, cellValue) => {
- return disposalStatustList[cellValue ? cellValue : 0];
- }
- },
- {
- prop: 'disposeType',
- label: '处置类型',
- align: 'center',
- width: '120',
- showOverflowTooltip: true,
- formatter: (_row) => {
- return this.disposeTypeMap[_row.disposeType];
- }
- }
- ]
- };
- }
- };
|