|
@@ -136,7 +136,7 @@
|
|
|
</Col>
|
|
|
<Col span="4">
|
|
|
<Button
|
|
|
- @click="handleShowCurrencySheet(url_info)"
|
|
|
+ @click="handleShowCurrencySheet(url_info,1)"
|
|
|
size="small"
|
|
|
type="text"
|
|
|
>
|
|
@@ -225,7 +225,7 @@
|
|
|
</Col>
|
|
|
<Col span="6">
|
|
|
<Button
|
|
|
- @click="getSheetDetailList(url_info)"
|
|
|
+ @click="getSheetDetailList(url_info,1)"
|
|
|
size="small"
|
|
|
type="primary"
|
|
|
>
|
|
@@ -316,7 +316,7 @@
|
|
|
</Col>
|
|
|
<Col span="4">
|
|
|
<Button
|
|
|
- @click="handleShowCurrencySheet(url_info)"
|
|
|
+ @click="handleShowCurrencySheet(url_info,2)"
|
|
|
size="small"
|
|
|
type="text"
|
|
|
>{{ url_info.isCurrenct ? "收缩" : "展开" }}</Button
|
|
@@ -412,7 +412,7 @@
|
|
|
</Col>
|
|
|
<Col span="12" style="padding:10px 0">
|
|
|
<Button
|
|
|
- @click="getSheetDetailList(url_info)"
|
|
|
+ @click="getSheetDetailList(url_info,2)"
|
|
|
size="small"
|
|
|
type="primary"
|
|
|
>搜索</Button
|
|
@@ -698,7 +698,7 @@
|
|
|
:max-height="500"
|
|
|
:data="unmatchedSelectedList"
|
|
|
>
|
|
|
- <template slot="numSlot" slot-scope="{ row, index }">
|
|
|
+ <template slot="numSlot" slot-scope="{ index }">
|
|
|
<Input
|
|
|
@on-change="handleHandingMatchNumChange"
|
|
|
v-model="unmatchedSelectedList[index].num"
|
|
@@ -940,14 +940,14 @@ export default {
|
|
|
this.productMatchedList = res.data.product_name;
|
|
|
});
|
|
|
},
|
|
|
- handleShowCurrencySheet(row) {
|
|
|
+ handleShowCurrencySheet(row,type) {
|
|
|
if (row.isCurrenct) {
|
|
|
row.isCurrenct = !row.isCurrenct;
|
|
|
} else {
|
|
|
this.unmatchedObj.urlList.map((v) => (v.isCurrenct = false));
|
|
|
row.isCurrenct = true;
|
|
|
}
|
|
|
- this.getSheetDetailList(row);
|
|
|
+ this.getSheetDetailList(row,type);
|
|
|
},
|
|
|
handleHiddenSheetDetail(row) {
|
|
|
if (row.isHidden) {
|
|
@@ -974,8 +974,51 @@ export default {
|
|
|
}
|
|
|
this.getMatchedDetailList(row);
|
|
|
},
|
|
|
- getSheetDetailList(row) {
|
|
|
- row.isCurrenct &&
|
|
|
+ getSheetDetailList(row,type) {
|
|
|
+ switch (type) {
|
|
|
+ case 1:
|
|
|
+ row.isCurrenct &&
|
|
|
+ this.axios
|
|
|
+ .get("/api/bst_matching_un_product_detail", {
|
|
|
+ params: {
|
|
|
+ cut_order_product_id: row.id,
|
|
|
+ id: this.info.id,
|
|
|
+ cut_size: this.info.cut_size,
|
|
|
+ number: this.info.number,
|
|
|
+ part_name: this.info.part_name,
|
|
|
+ region: this.info.region,
|
|
|
+ wool_size1: this.info.wool_size,
|
|
|
+ },
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ this.unmatchedObj.part_list = res.data.part_list;
|
|
|
+ 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 };
|
|
|
+ })
|
|
|
+ );
|
|
|
+ this.unmatchedRoomTableColumnsModal = this.unmatchedRoomTableColumnsUsed.concat(
|
|
|
+ {
|
|
|
+ title: "匹配数量",
|
|
|
+ align: "center",
|
|
|
+ minWidth: 60,
|
|
|
+ slot: "numSlot",
|
|
|
+ }
|
|
|
+ );
|
|
|
+ this.unmatchedRoomTableColumnsModal = this.unmatchedRoomTableColumnsModal.splice(
|
|
|
+ 1
|
|
|
+ );
|
|
|
+ this.cut_size = res.data.search_word.cut_size;
|
|
|
+ this.number = res.data.search_word.number;
|
|
|
+ this.part_name = res.data.search_word.part_name;
|
|
|
+ this.regionList = res.data.search_word.region;
|
|
|
+ this.wool_size1 = res.data.search_word.wool_size1;
|
|
|
+ this.wool_size2 = res.data.search_word.wool_size2;
|
|
|
+ });
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ row.isCurrenct &&
|
|
|
this.axios
|
|
|
.get("/api/bst_matching_un_product_detail", {
|
|
|
params: {
|
|
@@ -985,7 +1028,7 @@ export default {
|
|
|
number: this.info.number,
|
|
|
part_name: this.info.part_name,
|
|
|
region: this.info.region,
|
|
|
- wool_size: this.info.wool_size,
|
|
|
+ wool_size2: this.info.wool_size,
|
|
|
},
|
|
|
})
|
|
|
.then((res) => {
|
|
@@ -1014,6 +1057,8 @@ export default {
|
|
|
this.wool_size1 = res.data.search_word.wool_size1;
|
|
|
this.wool_size2 = res.data.search_word.wool_size2;
|
|
|
});
|
|
|
+ break;
|
|
|
+ }
|
|
|
},
|
|
|
getMatchedDetailList(row) {
|
|
|
row.isCurrenct &&
|
|
@@ -1121,6 +1166,7 @@ export default {
|
|
|
this.matchedList.map((v) => {
|
|
|
if (v.produce_status == 0) {
|
|
|
v.isSelect = this.isMatchedSelectAll;
|
|
|
+ this.matchedSelectedList.push(v.id)
|
|
|
}
|
|
|
});
|
|
|
},
|