|
@@ -2,7 +2,7 @@
|
|
|
<div>
|
|
|
<Toptitle title="匹配">
|
|
|
<Button
|
|
|
- @click="back"
|
|
|
+ @click="handleAutoMatching"
|
|
|
v-if="currencyTag == 1"
|
|
|
type="primary"
|
|
|
style="margin-right: 10px"
|
|
@@ -746,6 +746,7 @@ export default {
|
|
|
slot: "setSlot",
|
|
|
},
|
|
|
], //匹配表头
|
|
|
+ unmatchedSelectedList: [],
|
|
|
};
|
|
|
},
|
|
|
// 生命周期 - 创建完成(可以访问当前this实例)
|
|
@@ -756,7 +757,16 @@ export default {
|
|
|
back() {
|
|
|
this.$router.go(-1);
|
|
|
},
|
|
|
- handleSelectChange(selection) {},
|
|
|
+ handleSelectChange(selection) {
|
|
|
+ this.unmatchedSelectedList = this.unmatchedSelectedList.concat(
|
|
|
+ selection.map((v) => {
|
|
|
+ return v.product_title;
|
|
|
+ })
|
|
|
+ );
|
|
|
+ // = Array.from(
|
|
|
+ // new Set([...res.data.support_remark, ...this.support_remark])
|
|
|
+ // );
|
|
|
+ },
|
|
|
handleTabsClick(name) {
|
|
|
name == 2 &&
|
|
|
this.axios
|
|
@@ -861,6 +871,16 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ handleAutoMatching() {
|
|
|
+ this.axios.post('/api/matching_product_house',{
|
|
|
+ id:this.info.id,
|
|
|
+ image_number:this.info.image_number,
|
|
|
+ product_title:this.info.product_name,
|
|
|
+ })
|
|
|
+ .then(res => {
|
|
|
+ console.log(res)
|
|
|
+ })
|
|
|
+ },
|
|
|
handleMatchedSet(row, index, type) {},
|
|
|
},
|
|
|
// 监听属性 类似于data概念
|