diff --git a/src/views/mes/prod/prodOrderDetail/index.vue b/src/views/mes/prod/prodOrderDetail/index.vue index 9842a66..f0ca42c 100644 --- a/src/views/mes/prod/prodOrderDetail/index.vue +++ b/src/views/mes/prod/prodOrderDetail/index.vue @@ -28,30 +28,30 @@ end-placeholder="结束时间" > - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + 搜索 重置 @@ -59,17 +59,17 @@ - - - - - - - - - - - + + + + + + + + + + + - + + + + - - + - + @@ -147,26 +155,80 @@ - + + + - + + + - + + + - + + + - + + + - + + + @@ -182,7 +244,9 @@ - + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + 取 消 + + + + + {{ clothData.MaterialNo }} + {{ clothData.MaterialName }} + {{ clothData.MaterialSpecification }} + {{ clothData.MaterialLargeCategories }} + {{ clothData.MaterialSmallCategories }} + + + + + + + {{ glueData.AfterPromotionTotalWeight }} + + + + + + + + + + + + + + @@ -454,6 +558,13 @@ export default { name: 'ProdOrderDetail', data() { return { + //布料弹出抽屉 + clothTable: false, + clothData: {}, + clothTitle: '', + glueTable: false, + glueData: {}, + glueTitle: '', // 遮罩层 loading: true, // 选中数组 @@ -794,6 +905,53 @@ export default { } }) }, + + //表格查看详情 + detailsSearch(row, type) { + this.clothData = {}; + this.glueData = {}; + if (type === 1) { + this.clothTable = true + this.clothData = JSON.parse(row.FabricSpecifications) + this.clothTitle = '布料规格|任务编号:' + row.SeqNo + return + } + if (type === 2) { + this.clothTable = true + this.clothData = JSON.parse(row.SmallFabricSpecificationsDic) + this.clothTitle = '小布使用布料规格|任务编号:' + row.SeqNo + return + } + if ([3, 4, 5, 6].includes(type)) { + if (type === 3){ + this.glueData = JSON.parse(row.UpperLowerGlue) + this.glueTitle = '上下胶使用胶料|任务编号:' + row.SeqNo + } else if (type === 4) { + this.glueData = JSON.parse(row.LowerGlue) + this.glueTitle = '下胶使用胶料|任务编号:' + row.SeqNo + } else if (type === 5) { + this.glueData = JSON.parse(row.LargeClothGlue) + this.glueTitle = '大布胶使用胶料|任务编号:' + row.SeqNo + } else if (type === 6) { + this.glueData = JSON.parse(row.MiddleGlue) + this.glueTitle = '中间胶|任务编号:' + row.SeqNo + } + this.glueData.MaterialList_1.forEach(item => { + item.MaterialName = item.Material.MaterialName + item.MaterialSpecification = item.Material.MaterialSpecification + item.MaterialLargeCategories = item.Material.MaterialLargeCategories + item.MaterialSmallCategories = item.Material.MaterialSmallCategories + }) + this.glueData.MaterialList_2.forEach(item => { + item.MaterialName = item.Material.MaterialName + item.MaterialSpecification = item.Material.MaterialSpecification + item.MaterialLargeCategories = item.Material.MaterialLargeCategories + item.MaterialSmallCategories = item.Material.MaterialSmallCategories + }) + this.glueTable = true + } + }, + /** 删除按钮操作 */ handleDelete(row) { const objIds = row.objId || this.ids