|
|
@@ -127,15 +127,19 @@
|
|
|
<span>产品名称:</span>
|
|
|
<span>{{ url_info.product_name }}</span>
|
|
|
</Col>
|
|
|
- <Col span="4">
|
|
|
+ <Col span="3">
|
|
|
<span>批量数:</span>
|
|
|
<span>{{ url_info.number }}</span>
|
|
|
</Col>
|
|
|
- <Col span="2">
|
|
|
+ <Col span="3">
|
|
|
<span>区域:</span>
|
|
|
<span>{{ url_info.region }}</span>
|
|
|
</Col>
|
|
|
- <Col span="2" offset="4">
|
|
|
+ <Col span="4">
|
|
|
+ <span>生产通知单号:</span>
|
|
|
+ <span>{{ url_info.product_no }}</span>
|
|
|
+ </Col>
|
|
|
+ <Col span="2" offset="1">
|
|
|
<span>
|
|
|
总计
|
|
|
<span style="color:red">{{
|
|
|
@@ -144,7 +148,7 @@
|
|
|
条数据
|
|
|
</span>
|
|
|
</Col>
|
|
|
- <Col span="4">
|
|
|
+ <Col span="3">
|
|
|
<Button
|
|
|
@click="handleShowCurrencySheet(url_info, 1)"
|
|
|
size="small"
|
|
|
@@ -263,7 +267,6 @@
|
|
|
>
|
|
|
{{ match_info.key }}={{ match_info.value }}
|
|
|
</span>
|
|
|
- <span>{{ table_info.key.num }}组</span>
|
|
|
</Col>
|
|
|
<Col span="3" offset="8">
|
|
|
总计{{ table_info.part_list.length }}条数据
|
|
|
@@ -343,7 +346,7 @@
|
|
|
</Col>
|
|
|
</Row>
|
|
|
<Row>
|
|
|
- <Col span="4">
|
|
|
+ <Col span="7">
|
|
|
<span>批量数:</span>
|
|
|
<span>{{ url_info.number }}</span>
|
|
|
</Col>
|
|
|
@@ -531,6 +534,10 @@
|
|
|
<Col span="2">
|
|
|
<span>区域:{{ matched_info.region }}</span>
|
|
|
</Col>
|
|
|
+ <Col span="4">
|
|
|
+ <span>生产通知单号:</span>
|
|
|
+ <span>{{ url_info.number }}</span>
|
|
|
+ </Col>
|
|
|
<Col span="2" offset="8">
|
|
|
<Button
|
|
|
@click="handleMatchedSet(matched_info, -1, 5)"
|
|
|
@@ -658,7 +665,6 @@
|
|
|
>
|
|
|
{{ matched_info.key }}={{ matched_info.value }}
|
|
|
</span>
|
|
|
- <span>{{ matched_detail.num }}组</span>
|
|
|
</Col>
|
|
|
<Col span="2" offset="12" style="padding:10px 0">
|
|
|
<Button
|
|
|
@@ -818,86 +824,109 @@ export default {
|
|
|
{ title: "序号", align: "center", type: "index", minWidth: 60 },
|
|
|
{ title: "组合名称", align: "center", key: "compose_name", minWidth: 100 },
|
|
|
{ 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", key: "line_number", minWidth: 100 },
|
|
|
{
|
|
|
- title: "原材料",
|
|
|
+ title: "产品材料",
|
|
|
align: "center",
|
|
|
minWidth: 80,
|
|
|
- render: (h, params) => {
|
|
|
- return h("span", {}, params.row.board1 + (params.row.board2?(';'+params.row.board2):''));
|
|
|
- },
|
|
|
+ key:'material_remark'
|
|
|
},
|
|
|
- { title: "木皮2", align: "center", key: "skin2", minWidth: 60 },
|
|
|
+ { title: "饰面名称", align: "center", key: "finish_remark", minWidth: 60 },
|
|
|
{ title: "毛料尺寸", align: "center", key: "wool_size", minWidth: 80 },
|
|
|
+
|
|
|
+ { title: "精裁尺寸", align: "center", key: "cut_size", minWidth: 80 },
|
|
|
{
|
|
|
- title: "原料数量",
|
|
|
+ title: "数量",
|
|
|
align: "center",
|
|
|
- key: "wool_number",
|
|
|
+ key: "cut_number",
|
|
|
minWidth: 80,
|
|
|
},
|
|
|
- { title: "精裁尺寸", align: "center", key: "cut_size", minWidth: 80 },
|
|
|
{
|
|
|
- title: "零部件数量",
|
|
|
+ title: "贴皮方式",
|
|
|
align: "center",
|
|
|
- key: "cut_number",
|
|
|
+ key: "skin",
|
|
|
minWidth: 90,
|
|
|
+ render:(h,params)=>{
|
|
|
+ return h('span',{},params.row.skin==1?'单':params.row.skin ==2?'双':'素板')
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
- title: "未匹配数量",
|
|
|
+ title: "封边",
|
|
|
align: "center",
|
|
|
- key: "unbind_number",
|
|
|
+ key: "band",
|
|
|
minWidth: 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: "skin_area", minWidth: 80 },
|
|
|
+ { title: "精裁面积", align: "center", key: "cut_area", minWidth: 80 },
|
|
|
+ { title: "备注", align: "center", key: "remark", minWidth: 80 },
|
|
|
+ { title: "打印芯片", align: "center", key: "chip_state", minWidth: 80,render:(h,params)=>{
|
|
|
+ const {row} = params;
|
|
|
+ return h('span',{},row.chip_state==1?'是':'否')
|
|
|
+ } },
|
|
|
], //未匹配码单表头
|
|
|
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", key: "region", minWidth: 60 },
|
|
|
+ { title: "户型", align: "center", key: "household", minWidth: 60 },
|
|
|
{ title: "房号", align: "center", key: "number", minWidth: 60 },
|
|
|
+ { title: "生产数量", align: "center", key: "num", minWidth: 60 },
|
|
|
+ { title: "备注", align: "center", key: "remark", minWidth: 60 },
|
|
|
], //未匹配房间表头
|
|
|
unmatchedRoomTableColumnsUsed: [],
|
|
|
matchedSheetTableColumns: [
|
|
|
// { title: "全选", align: "center", minWidth: 60, type: "selection" },
|
|
|
- { title: "序号", align: "center", type: "index", minWidth: 60 },
|
|
|
- { title: "组合名称", align: "center", key:'compose_name', minWidth: 100 },
|
|
|
- { title: "区域名称", align: "center", key: "region", minWidth: 100 },
|
|
|
- { title: "房号", align: "center", key: "house_number", minWidth: 100 },
|
|
|
+ { title: "序号", align: "center", type: "index", minWidth: 60 },
|
|
|
+ { title: "楼栋", align: "center",minWidth: 100,key:'house' },
|
|
|
+ { title: "单元", align: "center",minWidth: 100,key:'unit' },
|
|
|
+ { title: "楼层", align: "center", minWidth: 100,key:'layer'},
|
|
|
+ { title: "区域", align: "center", minWidth: 100,key:'region'},
|
|
|
+ { title: "户型", align: "center", minWidth: 100,key:'household'},
|
|
|
+ { title: "房号", align: "center", minWidth: 100,key:'house_number'},
|
|
|
+ { title: "生产数量", align: "center", minWidth: 100,key:'product_num'},
|
|
|
+ { title: "组合名称", align: "center", key: "compose_name", 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: "原材料",
|
|
|
+ title: "产品材料",
|
|
|
align: "center",
|
|
|
- minWidth: 100,
|
|
|
- render: (h, params) => {
|
|
|
- return h("span", {}, params.row.board1 + (params.row.board2?(';'+params.row.board2):''));
|
|
|
- },
|
|
|
+ minWidth: 80,
|
|
|
+ key:'material_remark'
|
|
|
},
|
|
|
- { title: "木皮2", align: "center", key: "skin2", minWidth: 100 },
|
|
|
- { title: "毛料尺寸", align: "center", key: "wool_size", minWidth: 100 },
|
|
|
+ { title: "饰面名称", align: "center", key: "finish_remark", minWidth: 60 },
|
|
|
+ { title: "毛料尺寸", align: "center", key: "wool_size", minWidth: 80 },
|
|
|
+
|
|
|
+ { title: "精裁尺寸", align: "center", key: "cut_size", minWidth: 80 },
|
|
|
{
|
|
|
- title: "原料数量",
|
|
|
+ title: "数量",
|
|
|
align: "center",
|
|
|
- key: "wool_number",
|
|
|
+ key: "num",
|
|
|
minWidth: 80,
|
|
|
},
|
|
|
- { title: "精裁尺寸", align: "center", key: "cut_size", minWidth: 100 },
|
|
|
+ {
|
|
|
+ title: "贴皮方式",
|
|
|
+ align: "center",
|
|
|
+ key: "skin",
|
|
|
+ minWidth: 90,
|
|
|
+ render:(h,params)=>{
|
|
|
+ return h('span',{},params.row.skin==1?'单':params.row.skin ==2?'双':'素板')
|
|
|
+ }
|
|
|
+ },
|
|
|
{
|
|
|
- title: "零部件数量",
|
|
|
+ title: "封边",
|
|
|
align: "center",
|
|
|
- key: "num",
|
|
|
- minWidth: 80,
|
|
|
+ key: "band",
|
|
|
+ minWidth: 90,
|
|
|
},
|
|
|
- { title: "贴皮面积", align: "center", key: "stick", minWidth: 100 },
|
|
|
- { title: "精裁面积", align: "center", key: "cut", minWidth: 100 },
|
|
|
- { title: "工艺要求", align: "center", key: "remark", minWidth: 60 },
|
|
|
+ { title: "贴皮面积", align: "center", key: "skin_area", minWidth: 80 },
|
|
|
+ { title: "精裁面积", align: "center", key: "cut_area", minWidth: 80 },
|
|
|
+ { title: "备注", align: "center", key: "remark", minWidth: 80 },
|
|
|
+ { title: "打印芯片", align: "center", key: "", minWidth: 80,render:(h,params)=>{
|
|
|
+ const {row} = params;
|
|
|
+ return h('span',{},row.chip_state==1?'是':'否')
|
|
|
+ } },
|
|
|
// {
|
|
|
// title: "操作",
|
|
|
// align: "center",
|
|
|
@@ -943,13 +972,13 @@ export default {
|
|
|
},
|
|
|
handleMatchedListInit() {
|
|
|
this.axios
|
|
|
- .get("/api/bst_matching_on_product_list", {
|
|
|
- params: {
|
|
|
+ .post("/api/bst_matching_on_product_list_2",
|
|
|
+ {
|
|
|
id: this.info.id,
|
|
|
image_number: this.matchedInfo.image_number,
|
|
|
product_name: this.matchedInfo.product_name,
|
|
|
},
|
|
|
- })
|
|
|
+ )
|
|
|
.then((res) => {
|
|
|
res.data.list.map((v) => {
|
|
|
v.isCurrenct = false;
|
|
|
@@ -1012,7 +1041,7 @@ export default {
|
|
|
case 1:
|
|
|
row.isCurrenct &&
|
|
|
this.axios
|
|
|
- .post("/api/bst_matching_un_product_detail", {
|
|
|
+ .post("/api/bst_matching_un_product_detail_2", {
|
|
|
cut_order_product_id: row.id,
|
|
|
id: this.info.id,
|
|
|
cut_size: this.info.cut_size,
|
|
|
@@ -1023,7 +1052,6 @@ export default {
|
|
|
key: this.matchedReopenList,
|
|
|
})
|
|
|
.then((res) => {
|
|
|
- console.log(`123`, 123);
|
|
|
this.unmatchedObj.part_list = [];
|
|
|
this.unmatchedObj.part_list = res.data.part_list;
|
|
|
this.unmatchedObj.part_list = res.data.part_list;
|
|
|
@@ -1033,11 +1061,11 @@ export default {
|
|
|
console.log(res.data.house_list);
|
|
|
this.unmatchedRoomList.house_list = [];
|
|
|
this.unmatchedRoomList.house_list = res.data.house_list;
|
|
|
- this.unmatchedRoomList.house_list.forEach((v,index) => {
|
|
|
- this.unmatchedObj.part_list[index].key.list.forEach((item) => {
|
|
|
- v[item.key] = item.value;
|
|
|
- });
|
|
|
- });
|
|
|
+ // this.unmatchedRoomList.house_list.forEach((v,index) => {
|
|
|
+ // this.unmatchedObj.part_list[index].key.list.forEach((item) => {
|
|
|
+ // v[item.key] = item.value;
|
|
|
+ // });
|
|
|
+ // });
|
|
|
|
|
|
this.unmatchedRoomTableColumnsUsed = this.unmatchedRoomTableColumns.concat(
|
|
|
res.data.head_word.map((v) => {
|
|
|
@@ -1072,7 +1100,7 @@ export default {
|
|
|
case 2:
|
|
|
row.isCurrenct &&
|
|
|
this.axios
|
|
|
- .post("/api/bst_matching_un_product_detail", {
|
|
|
+ .post("/api/bst_matching_un_product_detail_2", {
|
|
|
cut_order_product_id: row.id,
|
|
|
id: this.info.id,
|
|
|
cut_size: this.info.cut_size,
|
|
|
@@ -1119,15 +1147,15 @@ export default {
|
|
|
getMatchedDetailList(row) {
|
|
|
row.isCurrenct &&
|
|
|
this.axios
|
|
|
- .get("/api/bst_matching_on_product_detail", {
|
|
|
- params: {
|
|
|
+ .post("/api/bst_matching_on_product_detail_2",
|
|
|
+ {
|
|
|
cut_order_product_id: row.id || 14,
|
|
|
id: this.matchedInfo.id,
|
|
|
number: this.matchedInfo.number,
|
|
|
part_name: this.matchedInfo.part_name,
|
|
|
region: this.matchedInfo.region,
|
|
|
},
|
|
|
- })
|
|
|
+ )
|
|
|
.then((res) => {
|
|
|
this.regionMatchedList = res.data.region;
|
|
|
this.numberMatchedList = res.data.number;
|
|
|
@@ -1137,9 +1165,9 @@ export default {
|
|
|
},
|
|
|
handleSearchUnmatchedInfo() {
|
|
|
this.axios({
|
|
|
- method: "get",
|
|
|
- url: "/api/bst_matching_un_product_list",
|
|
|
- params: {
|
|
|
+ method: "post",
|
|
|
+ url: "/api/bst_matching_un_product_list_2",
|
|
|
+ data:{
|
|
|
id: this.info.id,
|
|
|
image_number: this.info.image_number,
|
|
|
product_name: this.info.product_name,
|
|
|
@@ -1199,7 +1227,7 @@ export default {
|
|
|
},
|
|
|
handleAutoMatching() {
|
|
|
this.axios
|
|
|
- .post("/api/matching_product_house", {
|
|
|
+ .post("/api/matching_product_house_2", {
|
|
|
id: this.info.id,
|
|
|
image_number: this.info.image_number,
|
|
|
product_title: this.info.product_name,
|
|
|
@@ -1216,7 +1244,7 @@ export default {
|
|
|
return { cut_order_product_room_id: v.id, num: v.num };
|
|
|
});
|
|
|
this.axios
|
|
|
- .post("/api/bst_hand_matching", {
|
|
|
+ .post("/api/bst_hand_matching_2", {
|
|
|
cut_order_product_detail_id: this.currentChooseId,
|
|
|
house,
|
|
|
})
|