|
@@ -789,7 +789,7 @@ export default {
|
|
|
{
|
|
|
title: "选择",
|
|
|
align: "center",
|
|
|
- minWidth: 60,
|
|
|
+ resizable: true,width: 60,
|
|
|
render: (h, params) => {
|
|
|
let id = params.row.id;
|
|
|
let flag = false;
|
|
@@ -815,10 +815,10 @@ export default {
|
|
|
]);
|
|
|
},
|
|
|
},
|
|
|
- { title: "序号", align: "center", type: "index", minWidth: 60 },
|
|
|
- { title: "部件名称", align: "center", key: "part_name", minWidth: 100 },
|
|
|
- { title: "行号", align: "center", key: "line", minWidth: 70 },
|
|
|
- { title: "木皮1", align: "center", key: "skin1", minWidth: 60 },
|
|
|
+ { title: "序号", align: "center", type: "index", resizable: true,width: 60 },
|
|
|
+ { title: "部件名称", align: "center", key: "part_name", resizable: true,width: 100 },
|
|
|
+ { title: "行号", align: "center", key: "line", resizable: true,width: 70 },
|
|
|
+ { title: "木皮1", align: "center", key: "skin1", resizable: true,width: 60 },
|
|
|
{
|
|
|
title: "原材料",
|
|
|
align: "center",
|
|
@@ -827,89 +827,76 @@ export default {
|
|
|
return h("span", {}, params.row.board1 + ";" + params.row.board2);
|
|
|
},
|
|
|
},
|
|
|
- { title: "木皮2", align: "center", key: "skin2", minWidth: 60 },
|
|
|
- { title: "毛料尺寸", align: "center", key: "wool_size", minWidth: 80 },
|
|
|
+ { title: "木皮2", align: "center", key: "skin2", resizable: true,width: 60 },
|
|
|
+ { title: "毛料尺寸", align: "center", key: "wool_size", resizable: true,width: 80 },
|
|
|
{
|
|
|
title: "原料数量",
|
|
|
align: "center",
|
|
|
key: "wool_number",
|
|
|
- minWidth: 80,
|
|
|
+ resizable: true,width: 80,
|
|
|
},
|
|
|
- { title: "精裁尺寸", align: "center", key: "cut_size", minWidth: 80 },
|
|
|
+ { title: "精裁尺寸", align: "center", key: "cut_size", resizable: true,width: 80 },
|
|
|
{
|
|
|
title: "零部件数量",
|
|
|
align: "center",
|
|
|
key: "cut_number",
|
|
|
- minWidth: 90,
|
|
|
+ resizable: true,width: 90,
|
|
|
},
|
|
|
{
|
|
|
title: "未匹配数量",
|
|
|
align: "center",
|
|
|
key: "unbind_number",
|
|
|
- minWidth: 90,
|
|
|
+ resizable: true,width: 90,
|
|
|
},
|
|
|
- { title: "贴皮面积", align: "center", key: "stick", minWidth: 80 },
|
|
|
- { title: "精裁面积", align: "center", key: "cut", minWidth: 80 },
|
|
|
- { title: "工艺要求", align: "center", key: "remark", minWidth: 80 },
|
|
|
+ { title: "贴皮面积", align: "center", key: "stick", resizable: true,width: 80 },
|
|
|
+ { title: "精裁面积", align: "center", key: "cut",resizable: true,width: 80 },
|
|
|
+ { title: "工艺要求", align: "center", key: "remark", resizable: true,width: 80 },
|
|
|
], //未匹配码单表头
|
|
|
unmatchedRoomTableColumns: [
|
|
|
- { title: "全选", align: "center", minWidth: 60, type: "selection" },
|
|
|
- { title: "序号", align: "center", type: "index", minWidth: 60 },
|
|
|
- { title: "区域", align: "center", key: "region", minWidth: 60 },
|
|
|
- { title: "楼栋", align: "center", key: "house", minWidth: 60 },
|
|
|
- { title: "单元", align: "center", key: "unit", minWidth: 60 },
|
|
|
- { title: "楼层", align: "center", key: "layer", minWidth: 60 },
|
|
|
+ { title: "全选", align: "center", resizable: true,width: 60, type: "selection" },
|
|
|
+ { title: "序号", align: "center", type: "index", resizable: true,width: 60 },
|
|
|
+ { title: "区域", align: "center", key: "region", resizable: true,width: 60 },
|
|
|
+ { title: "楼栋", align: "center", key: "house", resizable: true,width: 60 },
|
|
|
+ { title: "单元", align: "center", key: "unit", resizable: true,width: 60 },
|
|
|
+ { title: "楼层", align: "center", key: "layer", resizable: true,width: 60 },
|
|
|
{ title: "房号", align: "center", key: "number", minWidth: 60 },
|
|
|
], //未匹配房间表头
|
|
|
unmatchedRoomTableColumnsUsed: [],
|
|
|
+ copy_unmatchedRoomTableColumnsUsed:[],
|
|
|
matchedSheetTableColumns: [
|
|
|
// { title: "全选", align: "center", minWidth: 60, type: "selection" },
|
|
|
- { title: "序号", align: "center", type: "index", resizable: true,
|
|
|
- width: 60 },
|
|
|
- { title: "区域名称", align: "center", key: "region", resizable: true,
|
|
|
- width: 100 },
|
|
|
- { title: "房号", align: "center", key: "house_number", resizable: true,
|
|
|
- width: 100},
|
|
|
- { title: "部件名称", align: "center", key: "part_name", resizable: true,
|
|
|
- width: 100 },
|
|
|
- { title: "行号", align: "center", key: "line", resizable: true,
|
|
|
- width: 80 },
|
|
|
- { title: "木皮1", align: "center", key: "skin1", resizable: true,
|
|
|
- width: 100 },
|
|
|
+ { title: "序号", align: "center", type: "index", minWidth: 60 },
|
|
|
+ { title: "区域名称", align: "center", key: "region", minWidth: 100 },
|
|
|
+ { title: "房号", align: "center", key: "house_number", minWidth: 100},
|
|
|
+ { title: "部件名称", align: "center", key: "part_name", minWidth: 100 },
|
|
|
+ { title: "行号", align: "center", key: "line", minWidth: 80 },
|
|
|
+ { title: "木皮1", align: "center", key: "skin1", minWidth: 100 },
|
|
|
{
|
|
|
title: "原材料",
|
|
|
align: "center",
|
|
|
- resizable: true,
|
|
|
- width: 100,
|
|
|
+ minWidth: 100,
|
|
|
render: (h, params) => {
|
|
|
return h("span", {}, params.row.board1 + ";" + params.row.board2);
|
|
|
},
|
|
|
},
|
|
|
- { title: "木皮2", align: "center", key: "skin2", resizable: true,
|
|
|
- width: 100 },
|
|
|
- { title: "毛料尺寸", align: "center", key: "wool_size", resizable: true,
|
|
|
- width: 100 },
|
|
|
+ { title: "木皮2", align: "center", key: "skin2", minWidth: 100 },
|
|
|
+ { title: "毛料尺寸", align: "center", key: "wool_size", minWidth: 100 },
|
|
|
{
|
|
|
title: "原料数量",
|
|
|
align: "center",
|
|
|
key: "wool_number",
|
|
|
- resizable: true,
|
|
|
- width: 80,
|
|
|
+ minWidth: 80,
|
|
|
},
|
|
|
- { title: "精裁尺寸", align: "center", key: "cut_size", resizable: true,
|
|
|
- width: 100 },
|
|
|
+ { title: "精裁尺寸", align: "center", key: "cut_size", minWidth: 100 },
|
|
|
{
|
|
|
title: "零部件数量",
|
|
|
align: "center",
|
|
|
key: "num",
|
|
|
- resizable: true,
|
|
|
- width: 80
|
|
|
+ minWidth: 80
|
|
|
},
|
|
|
- { title: "贴皮面积", align: "center", key: "stick", resizable: true,
|
|
|
- width: 100 },
|
|
|
- { title: "精裁面积", align: "center", key: "cut", resizable: true,
|
|
|
- width: 100 },
|
|
|
- { title: "工艺要求", align: "center", key: "remark", minWidth: 120 },
|
|
|
+ { title: "贴皮面积", align: "center", key: "stick", minWidth: 100 },
|
|
|
+ { title: "精裁面积", align: "center", key: "cut", minWidth: 100 },
|
|
|
+ { title: "工艺要求", align: "center", key: "remark",minWidth:60}
|
|
|
// {
|
|
|
// title: "操作",
|
|
|
// align: "center",
|
|
@@ -1039,10 +1026,11 @@ export default {
|
|
|
this.unmatchedRoomList.house_list = res.data.house_list;
|
|
|
this.unmatchedRoomTableColumnsUsed = this.unmatchedRoomTableColumns.concat(
|
|
|
res.data.head_word.map((v) => {
|
|
|
- return { title: v, align: "center", key: v, minWidth: 60 };
|
|
|
+ return { title: v, align: "center", key: v, resizable: true,width: 60 };
|
|
|
})
|
|
|
);
|
|
|
- this.unmatchedRoomTableColumnsModal = this.unmatchedRoomTableColumnsUsed.concat(
|
|
|
+ this.copy_unmatchedRoomTableColumnsUsed = JSON.parse(JSON.stringify(this.unmatchedRoomTableColumnsUsed));
|
|
|
+ this.unmatchedRoomTableColumnsModal = this.copy_unmatchedRoomTableColumnsUsed.concat(
|
|
|
{
|
|
|
title: "匹配数量",
|
|
|
align: "center",
|
|
@@ -1084,7 +1072,7 @@ export default {
|
|
|
this.unmatchedRoomList.house_list = res.data.house_list;
|
|
|
this.unmatchedRoomTableColumnsUsed = this.unmatchedRoomTableColumns.concat(
|
|
|
res.data.head_word.map((v) => {
|
|
|
- return { title: v, align: "center", key: v, minWidth: 60 };
|
|
|
+ return { title: v, align: "center", key: v,resizable: true,width: 60 };
|
|
|
})
|
|
|
);
|
|
|
this.unmatchedRoomTableColumnsModal = this.unmatchedRoomTableColumnsUsed.concat(
|