|
@@ -293,7 +293,7 @@
|
|
|
</Col>
|
|
</Col>
|
|
|
<Col span="2">
|
|
<Col span="2">
|
|
|
<Button
|
|
<Button
|
|
|
- @click="getMatchedDetailList(matched_info)"
|
|
|
|
|
|
|
+ @click="getMatchedDetailList(matched_info,1)"
|
|
|
size="small"
|
|
size="small"
|
|
|
type="primary"
|
|
type="primary"
|
|
|
>
|
|
>
|
|
@@ -999,6 +999,7 @@ export default {
|
|
|
})
|
|
})
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
|
|
+ console.log(res.data);
|
|
|
this.contractData = res.data.data;
|
|
this.contractData = res.data.data;
|
|
|
this.contractTotal = res.data.total;
|
|
this.contractTotal = res.data.total;
|
|
|
this.searchRegionList = res.data.region_list;
|
|
this.searchRegionList = res.data.region_list;
|
|
@@ -1258,7 +1259,7 @@ export default {
|
|
|
checkedDeepen(se) {
|
|
checkedDeepen(se) {
|
|
|
this.checkedDeepenList = se;
|
|
this.checkedDeepenList = se;
|
|
|
},
|
|
},
|
|
|
- getMatchedDetailList(row) {
|
|
|
|
|
|
|
+ getMatchedDetailList(row,type) {
|
|
|
this.matched_detail.forEach((e) => {
|
|
this.matched_detail.forEach((e) => {
|
|
|
if (e.total_price > 0) {
|
|
if (e.total_price > 0) {
|
|
|
this.checkedDeepenList.push(e);
|
|
this.checkedDeepenList.push(e);
|
|
@@ -1279,14 +1280,17 @@ export default {
|
|
|
this.$set(item, "total_price", 0);
|
|
this.$set(item, "total_price", 0);
|
|
|
});
|
|
});
|
|
|
this.matched_detail = res.data.data;
|
|
this.matched_detail = res.data.data;
|
|
|
- this.matched_detail.forEach((e) => {
|
|
|
|
|
- this.checkedDeepenList.forEach((l) => {
|
|
|
|
|
- if (e.id == l.id) {
|
|
|
|
|
- e._checked = true;
|
|
|
|
|
- e.total_price = l.total_price;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if(type != 1){
|
|
|
|
|
+ this.matched_detail.forEach((e) => {
|
|
|
|
|
+ this.checkedDeepenList.forEach((l) => {
|
|
|
|
|
+ if (e.id == l.id) {
|
|
|
|
|
+ e._checked = true;
|
|
|
|
|
+ e.total_price = l.total_price;
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
});
|
|
});
|
|
|
- });
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
this.regionMatchedList = res.data.region_list; //区域
|
|
this.regionMatchedList = res.data.region_list; //区域
|
|
|
this.urlMatchedList = res.data.url_number_list; //图号
|
|
this.urlMatchedList = res.data.url_number_list; //图号
|
|
|
this.productList = res.data.product_title_list;
|
|
this.productList = res.data.product_title_list;
|
|
@@ -1372,6 +1376,9 @@ export default {
|
|
|
if (this.checkedDeepenList.length < 1) {
|
|
if (this.checkedDeepenList.length < 1) {
|
|
|
return this.$Message.warning("请选择深化信息中的内容");
|
|
return this.$Message.warning("请选择深化信息中的内容");
|
|
|
}
|
|
}
|
|
|
|
|
+ if(this.checkedDeepenList.length > 1 && this.checkedContractList.length > 1 ){
|
|
|
|
|
+ return this.$Message.warning("多个产品不能对应多个图号");
|
|
|
|
|
+ }
|
|
|
let priceValue = 0;
|
|
let priceValue = 0;
|
|
|
this.checkedContractList.forEach((e) => {
|
|
this.checkedContractList.forEach((e) => {
|
|
|
priceValue += e.total_price; //这是合同选择的价格的和
|
|
priceValue += e.total_price; //这是合同选择的价格的和
|