Commit 2c3ee94d authored by 吴春's avatar 吴春
parents 8bc84eac b6918424
...@@ -5486,13 +5486,6 @@ ...@@ -5486,13 +5486,6 @@
this.addMsg.CommissionShareMoney = "0"; this.addMsg.CommissionShareMoney = "0";
}, },
saveOrder() { saveOrder() {
// 判断单团类型
if (this.addMsg.GroupType == 2) {
// if (this.addMsg.QuotationUrl == "") {
// this.Error(this.$t('objFill.v101.FinancialModule.qingscfj'));
// return;
// }
}
// 选择联运,联运备注必填 // 选择联运,联运备注必填
if (this.addMsg.IsIntermodal == 1 || this.addMsg.IsReturnIntermodal == 1) { if (this.addMsg.IsIntermodal == 1 || this.addMsg.IsReturnIntermodal == 1) {
if (!this.addMsg.UnionRemark) { if (!this.addMsg.UnionRemark) {
......
...@@ -1252,7 +1252,7 @@ ...@@ -1252,7 +1252,7 @@
</template> </template>
</table> </table>
<font style="color:red;font-weight:bold;cursor:pointer;" slot="reference"> <font style="color:red;font-weight:bold;cursor:pointer;" slot="reference">
{{subItem.ChangeNum>0?'+':'-'}}{{subItem.ChangeNum}}</font> {{subItem.ChangeNum>0?'+':''}}{{subItem.ChangeNum}}</font>
</el-popover> </el-popover>
</template> </template>
</td> </td>
......
...@@ -858,7 +858,7 @@ ...@@ -858,7 +858,7 @@
</template> </template>
</table> </table>
<font style="color:red;font-weight:bold;cursor:pointer;" slot="reference"> <font style="color:red;font-weight:bold;cursor:pointer;" slot="reference">
{{subItem.ChangeNum>0?'+':'-'}}{{subItem.ChangeNum}}</font> {{subItem.ChangeNum>0?'+':''}}{{subItem.ChangeNum}}</font>
</el-popover> </el-popover>
</template> </template>
</td> </td>
......
...@@ -56,15 +56,17 @@ ...@@ -56,15 +56,17 @@
.el-input-group__prepend { .el-input-group__prepend {
padding: 0 5px !important; padding: 0 5px !important;
} }
/deep/.SimulateDrop-box {
width: 176px; /deep/.SimulateDrop-box {
min-height: 34px; width: 176px;
position: relative; min-height: 34px;
padding: 5px 21px 5px 6px; position: relative;
float: left; padding: 5px 21px 5px 6px;
/* margin: 4px 0 0 10px; */ float: left;
border: 1px solid #d1d1d1; /* margin: 4px 0 0 10px; */
} border: 1px solid #d1d1d1;
}
.SD_flight { .SD_flight {
display: inline-block; display: inline-block;
height: 24px; height: 24px;
...@@ -73,12 +75,14 @@ ...@@ -73,12 +75,14 @@
line-height: 22px; line-height: 22px;
background-color: #f0f2f5; background-color: #f0f2f5;
} }
.SimulaDrop {
.SimulaDrop {
position: absolute; position: absolute;
top: 3px; top: 3px;
right: 10px; right: 10px;
color: #c0c4cc; color: #c0c4cc;
} }
._TravelPricePopover .jiDiv { ._TravelPricePopover .jiDiv {
width: 750px; width: 750px;
max-height: 400px; max-height: 400px;
...@@ -118,6 +122,7 @@ ...@@ -118,6 +122,7 @@
._TravelPricePopover table td._d_name { ._TravelPricePopover table td._d_name {
background-color: #ededed; background-color: #ededed;
} }
</style> </style>
<!--下单表单--> <!--下单表单-->
<template> <template>
...@@ -207,8 +212,8 @@ ...@@ -207,8 +212,8 @@
<!--同行联系人Id--> <!--同行联系人Id-->
<el-form-item :label="$t('hotel.suplier_contact')" prop="CustomerChildrenId"> <el-form-item :label="$t('hotel.suplier_contact')" prop="CustomerChildrenId">
<el-select v-model="addMsg.CustomerChildrenId" filterable :placeholder="$t('pub.pleaseSel')"> <el-select v-model="addMsg.CustomerChildrenId" filterable :placeholder="$t('pub.pleaseSel')">
<el-option v-for="(item, index) in customerChildrenList" :label="item.contactName +'-'+item.contactPhone+ '/' + item.contactDuty" <el-option v-for="(item, index) in customerChildrenList"
:value="item.id" :key="index"> :label="item.contactName +'-'+item.contactPhone+ '/' + item.contactDuty" :value="item.id" :key="index">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
...@@ -605,43 +610,45 @@ ...@@ -605,43 +610,45 @@
</template> </template>
<el-col :span="4" v-if="showCity && pagesTitle == '跟团游产品'"> <el-col :span="4" v-if="showCity && pagesTitle == '跟团游产品'">
<!-- {{ScenicRefundList}} --> <!-- {{ScenicRefundList}} -->
<el-form-item :label="$t('salesModule.ScenicRefund')"> <el-form-item :label="$t('salesModule.ScenicRefund')">
<el-popover popper-class="_TravelPricePopover" trigger="click"> <el-popover popper-class="_TravelPricePopover" trigger="click">
<div> <div>
<div class="ScenicDiv"> <div class="ScenicDiv">
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<!-- <td class="_color_666">{{$t('fnc.xuanze')}}</td> --> <!-- <td class="_color_666">{{$t('fnc.xuanze')}}</td> -->
<td class="_color_666">{{$t('visaT.jdname')}}</td> <td class="_color_666">{{$t('visaT.jdname')}}</td>
<td class="_color_666">{{$t('fnc.tkjine')}}</td> <td class="_color_666">{{$t('fnc.tkjine')}}</td>
<td class="_color_666">{{$t('fnc.qxrenshu')}}</td> <td class="_color_666">{{$t('fnc.qxrenshu')}}</td>
</tr> </tr>
<tr v-for="item in ScenicRefundList"> <tr v-for="item in ScenicRefundList">
<!-- <td> <!-- <td>
<el-checkbox :checked="item.IsChecked" ></el-checkbox> <el-checkbox :checked="item.IsChecked" ></el-checkbox>
@change="getScenic(item)" @change="getScenic(item)"
</td> --> </td> -->
<td> <td>
{{item.CouponsName}} {{item.CouponsName}}
</td> </td>
<td> <td>
-¥{{item.RefundMoney}} -¥{{item.RefundMoney}}
</td> </td>
<td> <td>
<el-input class="w80" type="Number" :max='addMsg.GuestNum' v-model="item.Number" @keyup.native="initScenic()"></el-input> <el-input class="w80" type="Number" :max='addMsg.GuestNum' v-model="item.Number"
<!-- --> @keyup.native="initScenic()"></el-input>
</td> <!-- -->
</td>
</tr>
</table> </tr>
</div> </table>
</div> </div>
<div slot="reference" class="SimulateDrop-box"> </div>
<span class="SD_flight" v-for="subItem in addMsg.ScenicList">{{subItem.ScenicName}}*{{subItem.Number}}</span> <div slot="reference" class="SimulateDrop-box">
<i class="iconfont icon-arrow-down SimulaDrop"></i> <span class="SD_flight"
</div> v-for="subItem in addMsg.ScenicList">{{subItem.ScenicName}}*{{subItem.Number}}</span>
</el-popover> <i class="iconfont icon-arrow-down SimulaDrop"></i>
</el-form-item> </div>
</el-popover>
</el-form-item>
<!-- <el-form-item :label="$t('salesModule.ScenicRefund')"> <!-- <el-form-item :label="$t('salesModule.ScenicRefund')">
<el-select filterable multiple class="multiple_input" v-model="addMsg.ScenicRefundArr" <el-select filterable multiple class="multiple_input" v-model="addMsg.ScenicRefundArr"
:placeholder="$t('pub.pleaseSel')" @change="ScenicRefundMethods"> :placeholder="$t('pub.pleaseSel')" @change="ScenicRefundMethods">
...@@ -882,7 +889,7 @@ ...@@ -882,7 +889,7 @@
returnPriceShow: false, returnPriceShow: false,
minPrice: 0, minPrice: 0,
Unit_PriceList: [], //成交单价下拉数据 Unit_PriceList: [], //成交单价下拉数据
// ScenicList:[],//已输入景点的退款人数 // ScenicList:[],//已输入景点的退款人数
LessMoney: 0, LessMoney: 0,
addMsg: { addMsg: {
price: "0", price: "0",
...@@ -896,7 +903,7 @@ ...@@ -896,7 +903,7 @@
ContactName: "", ContactName: "",
ContactMobile: "", ContactMobile: "",
CustomerId: "", CustomerId: "",
CustomerChildrenId:"", CustomerChildrenId: "",
DepartureCityId: "0", DepartureCityId: "0",
ReturnArriveCityId: "", ReturnArriveCityId: "",
IsIntermodal: "2", IsIntermodal: "2",
...@@ -935,7 +942,7 @@ ...@@ -935,7 +942,7 @@
SafeNum: "0", SafeNum: "0",
AirticketNum: "0", AirticketNum: "0",
ScenicRefundArr: [], ScenicRefundArr: [],
ScenicList:[],//可退景点人数 ScenicList: [], //可退景点人数
GoCityTime: "", GoCityTime: "",
BackCityTime: "", BackCityTime: "",
CommissionSharePeople: "0", CommissionSharePeople: "0",
...@@ -965,7 +972,7 @@ ...@@ -965,7 +972,7 @@
}, ], }, ],
CustomerChildrenId: [{ CustomerChildrenId: [{
required: true, required: true,
message: this.$t('objFill.qingxzkhmd')+this.$t('hotel.suplier_contact'), message: this.$t('objFill.qingxzkhmd') + this.$t('hotel.suplier_contact'),
trigger: "change", trigger: "change",
}, ], }, ],
ManNum: [{ ManNum: [{
...@@ -1150,19 +1157,16 @@ ...@@ -1150,19 +1157,16 @@
//初始化景点 //初始化景点
initScenic() { initScenic() {
this.addMsg.ScenicList = []; this.addMsg.ScenicList = [];
var totalGuest=(Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum)) var totalGuest = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum))
this.ScenicRefundList.forEach(x => { this.ScenicRefundList.forEach(x => {
if (/^\d+$/.test(x.Number)&&x.Number>0&&x.Number<=totalGuest) { if (/^\d+$/.test(x.Number) && x.Number > 0 && x.Number <= totalGuest) {
this.addMsg.ScenicList.push(x); this.addMsg.ScenicList.push(x);
} } else {
else{ x.Number = 0;
x.Number=0;
} }
}) })
this.getTotalPrice(); this.getTotalPrice();
this.getTicheng(); this.getTicheng();
console.log("this.ScenicList",this.addMsg.ScenicList);
}, },
// 获取已选优惠券 // 获取已选优惠券
getDiscountAmount() { getDiscountAmount() {
...@@ -1296,7 +1300,6 @@ ...@@ -1296,7 +1300,6 @@
this.addMsg.ManNum = 0; this.addMsg.ManNum = 0;
this.addMsg.BabyNum = 0; this.addMsg.BabyNum = 0;
this.addMsg.OldPeopleNum = 0; this.addMsg.OldPeopleNum = 0;
this.addMsg.PreferPrice = 0; this.addMsg.PreferPrice = 0;
this.addMsg.LessPrice = 0; this.addMsg.LessPrice = 0;
this.addMsg.LessAvgPrice = 0; this.addMsg.LessAvgPrice = 0;
...@@ -1310,7 +1313,6 @@ ...@@ -1310,7 +1313,6 @@
this.addMsg.ManNum = 0; this.addMsg.ManNum = 0;
this.addMsg.BabyNum = 0; this.addMsg.BabyNum = 0;
this.addMsg.OldPeopleNum = 0; this.addMsg.OldPeopleNum = 0;
this.addMsg.PreferPrice = 0; this.addMsg.PreferPrice = 0;
this.addMsg.LessPrice = 0; this.addMsg.LessPrice = 0;
this.addMsg.LessAvgPrice = 0; this.addMsg.LessAvgPrice = 0;
...@@ -1752,8 +1754,8 @@ ...@@ -1752,8 +1754,8 @@
resetSelect() { resetSelect() {
if (this.addMsg.CustomerType == 1 || this.addMsg.CustomerType == 2) { if (this.addMsg.CustomerType == 1 || this.addMsg.CustomerType == 2) {
this.addMsg.CustomerId = ""; this.addMsg.CustomerId = "";
this.addMsg.CustomerChildrenId =""; this.addMsg.CustomerChildrenId = "";
this.customerChildrenList=[]; this.customerChildrenList = [];
} }
}, },
//清空联系人和联系电话 //清空联系人和联系电话
...@@ -1905,8 +1907,10 @@ ...@@ -1905,8 +1907,10 @@
Number(this.addMsg.ChirdNoNeedBedNum) : Number(this.addMsg.ChirdNoNeedBedNum) :
0; 0;
} }
// this.addMsg.PredictRoomNum = (Number(this.addMsg.AirticketNum) + (Number(this.addMsg.ManNum) +Number(this.addMsg.ChirdNeedBedNum) -Number(etbzc) +Number(this.addMsg.OldPeopleNum)) -Number(this.addMsg.TripleRoomNum) * 3 -Number(this.addMsg.SingleRoomNum)) /2 +Number(this.addMsg.SingleRoomNum) +Number(this.addMsg.TripleRoomNum); this.addMsg.PredictRoomNum = (Number(this.addMsg.AirticketNum) + (Number(this.addMsg.ManNum) + Number(this
this.addMsg.PredictRoomNum = (Number(this.addMsg.AirticketNum) + (Number(this.addMsg.ManNum) +Number(this.addMsg.ChirdNeedBedNum) -Number(etbzc) +Number(this.addMsg.OldPeopleNum)) -Number(this.addMsg.TripleRoomNum) * 3 -Number(this.addMsg.SingleRoomNum)) /2 +Number(this.addMsg.SingleRoomNum) +Number(this.addMsg.TripleRoomNum); .addMsg.ChirdNeedBedNum) - Number(etbzc) + Number(this.addMsg.OldPeopleNum)) - Number(this.addMsg
.TripleRoomNum) * 3 - Number(this.addMsg.SingleRoomNum)) / 2 + Number(this.addMsg.SingleRoomNum) + Number(
this.addMsg.TripleRoomNum);
}, },
getNumber() { getNumber() {
if ( if (
...@@ -2023,7 +2027,8 @@ ...@@ -2023,7 +2027,8 @@
let danfang = Number(this.addMsg.SingleRoomNum) * this.priceObj.SingleRoomPrice; let danfang = Number(this.addMsg.SingleRoomNum) * this.priceObj.SingleRoomPrice;
//儿童占床、不占床价格 //儿童占床、不占床价格
let ertongbed = this.priceObj.ChildNeedPrice * Number(this.addMsg.ChirdNeedBedNum) - this.priceObj.ChildNoNeedPrice * (Number(this.addMsg.ChirdNum) - Number(this.addMsg.ChirdNeedBedNum)); let ertongbed = this.priceObj.ChildNeedPrice * Number(this.addMsg.ChirdNeedBedNum) - this.priceObj
.ChildNoNeedPrice * (Number(this.addMsg.ChirdNum) - Number(this.addMsg.ChirdNeedBedNum));
//联运 (单价已包含联运价格了,所以不需要联运价格) //联运 (单价已包含联运价格了,所以不需要联运价格)
let lianyun = 0; let lianyun = 0;
...@@ -2033,16 +2038,17 @@ ...@@ -2033,16 +2038,17 @@
// (Number(this.stratPrice) + Number(this.returnPrice)); // (Number(this.stratPrice) + Number(this.returnPrice));
//退景点费用 //退景点费用
var refundScenicPrice =0; var refundScenicPrice = 0;
if(this.addMsg.ScenicList!=null&&this.addMsg.ScenicList.length>0){ if (this.addMsg.ScenicList != null && this.addMsg.ScenicList.length > 0) {
var totalGuest=(Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum)) var totalGuest = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg
.OldPeopleNum))
this.addMsg.ScenicList.forEach(item => { this.addMsg.ScenicList.forEach(item => {
if(totalGuest>=item.Number){ if (totalGuest >= item.Number) {
refundScenicPrice+=item.Number*item.RefundMoney;} refundScenicPrice += item.Number * item.RefundMoney;
}
}); });
} }
// var refundScenicPrice = this.ScenicRefundMoney * (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) +
// Number(this.addMsg.OldPeopleNum));
//单地接 //单地接
let dandijie = 0; let dandijie = 0;
if (this.addMsg.GroupType == 4) { if (this.addMsg.GroupType == 4) {
...@@ -2066,9 +2072,22 @@ ...@@ -2066,9 +2072,22 @@
dandijie = this.priceObj.SingleDMCPrice * Number(this.addMsg.AirticketNum); dandijie = this.priceObj.SingleDMCPrice * Number(this.addMsg.AirticketNum);
} }
//总应收价格 //总应收价格
this.addMsg.PreferPrice = Number(dandijie) + Number(lianyun) + Number(chengren) + Number(ertong) + Number(yinger) + Number(laoren) + Number(zafeiqianzhen) + Number(danfang) + Number(ertongbed) - Number(refundScenicPrice) this.addMsg.PreferPrice = Number(dandijie) + Number(lianyun) + Number(chengren) + Number(ertong) + Number(
console.log(dandijie +'--',lianyun +'--',chengren +'--',ertong +'--',yinger +'--',laoren +'--',zafeiqianzhen +'--',danfang +'--',ertongbed +'--',refundScenicPrice) yinger) + Number(laoren) + Number(zafeiqianzhen) + Number(danfang) + Number(ertongbed) - Number(
if (this.priceObj.IsLessPrice == 1 && this.addMsg.GroupType == 1 && (this.addMsg.CustomerType == '1' || this.addMsg.CustomerType == '2') && this.priceObj.LineID > 0 && this.LessRule && this.LessRule.length > 0) { refundScenicPrice)
var logStr = "单地接:" + dandijie;
logStr += ",联运:" + lianyun;
logStr += ",成人:" + chengren;
logStr += ",儿童:" + ertong;
logStr += ",婴儿:" + yinger;
logStr += ",老人:" + laoren;
logStr += ",杂费签证:" + zafeiqianzhen;
logStr += ",单房:" + danfang;
logStr += ",儿童不占床:" + ertongbed;
logStr += ",退景点:" + refundScenicPrice;
console.log(logStr);
if (this.priceObj.IsLessPrice == 1 && this.addMsg.GroupType == 1 && (this.addMsg.CustomerType == '1' || this
.addMsg.CustomerType == '2') && this.priceObj.LineID > 0 && this.LessRule && this.LessRule.length > 0) {
let LessNum = (Number(this.addMsg.ManNum) + let LessNum = (Number(this.addMsg.ManNum) +
Number(this.addMsg.ChirdNum) + Number(this.addMsg.ChirdNum) +
Number(this.addMsg.OldPeopleNum)); Number(this.addMsg.OldPeopleNum));
...@@ -2126,76 +2145,76 @@ ...@@ -2126,76 +2145,76 @@
}, },
//清空表单信息 //清空表单信息
clearMsg() { clearMsg() {
this.DiscountAmountId = null, this.DiscountAmountId = null;
this.DiscountAmountObj = {}, this.DiscountAmountObj = {};
this.ScenicRefundList=[], this.ScenicRefundList = [];
this.addMsg.ScenicList=[]; this.addMsg.ScenicList = [];
this.addMsg = { this.addMsg = {
price: "0", price: "0",
GroupTypeNeedHouse: "0", GroupTypeNeedHouse: "0",
OrderId: "0", OrderId: "0",
OneSex: "0", OneSex: "0",
TCID: "0", TCID: "0",
CustomerType: "", CustomerType: "",
GroupType: "", GroupType: "",
IndustryCategory: "", IndustryCategory: "",
ContactName: "", ContactName: "",
ContactMobile: "", ContactMobile: "",
CustomerId: "", CustomerId: "",
CustomerChildrenId: "", CustomerChildrenId: "",
DepartureCityId: "0", DepartureCityId: "0",
ReturnArriveCityId: "", ReturnArriveCityId: "",
IsIntermodal: "2", IsIntermodal: "2",
IsReturnIntermodal: "2", IsReturnIntermodal: "2",
Unit_Price: "0", Unit_Price: "0",
TC_Price: "0", TC_Price: "0",
ManNum: "0", // 成人数量 ManNum: "0", // 成人数量
ChirdNum: "0", // 小孩数量 ChirdNum: "0", // 小孩数量
ChirdNoNeedBedNum: "", ChirdNoNeedBedNum: "",
ChirdNeedBedNum: "", ChirdNeedBedNum: "",
BabyNum: "0", BabyNum: "0",
OldPeopleNum: "0", OldPeopleNum: "0",
SingleRoomNum: "0", SingleRoomNum: "0",
PreferPrice: "0", PreferPrice: "0",
LessPrice: "0", LessPrice: "0",
LessAvgPrice: "0", LessAvgPrice: "0",
YSeatNum: "0", YSeatNum: "0",
ESeatNum: "0", ESeatNum: "0",
FSeatNum: "0", FSeatNum: "0",
Commission: "0", Commission: "0",
ClientSource: "", ClientSource: "",
BrandId: "", BrandId: "",
TradeWay: "2", TradeWay: "2",
PlatformAccount: "", PlatformAccount: "",
PlatformOrder: "", PlatformOrder: "",
GuestNum: "0", GuestNum: "0",
IsChildrenTour: "0", IsChildrenTour: "0",
IsBirdDiscount: "0", IsBirdDiscount: "0",
PredictRoomNum: "0", PredictRoomNum: "0",
BigRoomNum: "0", BigRoomNum: "0",
TripleRoomNum: "0", TripleRoomNum: "0",
TradeDate: "", TradeDate: "",
CostType: "", CostType: "",
Remarks: "", Remarks: "",
VisaNum: "0", VisaNum: "0",
SafeNum: "0", SafeNum: "0",
AirticketNum: "0", AirticketNum: "0",
ScenicRefundArr: [], ScenicRefundArr: [],
ScenicList:[], ScenicList: [],
GoCityTime: "", GoCityTime: "",
BackCityTime: "", BackCityTime: "",
CommissionSharePeople: "-1", CommissionSharePeople: "-1",
CommissionShareMoney: "0", CommissionShareMoney: "0",
OrderForm: "1", OrderForm: "1",
SonControlID: "-1", SonControlID: "-1",
IsShowMessagesMoney: "2", IsShowMessagesMoney: "2",
QuotationUrl: "", //单团附件 QuotationUrl: "", //单团附件
GuestList: [], GuestList: [],
GatherAddress: "", GatherAddress: "",
LureEmpId: 0, //引流id LureEmpId: 0, //引流id
CRMGuestId: 0, //客人ID CRMGuestId: 0, //客人ID
CouponAllotIds: '', CouponAllotIds: '',
}; };
this.remarkMsg = { this.remarkMsg = {
zc: "", zc: "",
bzc: "", bzc: "",
...@@ -2352,12 +2371,9 @@ ...@@ -2352,12 +2371,9 @@
this.DiscountAmountId = null this.DiscountAmountId = null
this.DiscountAmountObj = {} this.DiscountAmountObj = {}
this.Success(res.data.message); this.Success(res.data.message);
this.cancelSubmit();
this.$refs["addMsg"].resetFields();
this.clearMsg(); this.clearMsg();
//调用父组件方法 //调用父组件方法
this.$emit("success"); this.$emit("success");
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
...@@ -2520,13 +2536,15 @@ ...@@ -2520,13 +2536,15 @@
(err) => {} (err) => {}
); );
}, },
getCustomerChildrenList(){ getCustomerChildrenList() {
this.apipost( this.apipost(
"app_today_visit_GerOrderCustomerChildrenList", {CustomerId: this.addMsg.CustomerId}, "app_today_visit_GerOrderCustomerChildrenList", {
CustomerId: this.addMsg.CustomerId
},
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.customerChildrenList = res.data.data; this.customerChildrenList = res.data.data;
if(this.customerChildrenList && this.customerChildrenList.length>0){ if (this.customerChildrenList && this.customerChildrenList.length > 0) {
this.addMsg.CustomerChildrenId = this.customerChildrenList[0].id; this.addMsg.CustomerChildrenId = this.customerChildrenList[0].id;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment