Commit 82bfd2c7 authored by 黄奎's avatar 黄奎

页面修改

parent 2d2a1f83
...@@ -162,7 +162,6 @@ ...@@ -162,7 +162,6 @@
</td> </td>
</tr> </tr>
</table> </table>
</div> </div>
<br /> <br />
<!--去掉删除功能 closable @close="handleClose(index)"--> <!--去掉删除功能 closable @close="handleClose(index)"-->
...@@ -209,7 +208,6 @@ ...@@ -209,7 +208,6 @@
CostNumberList: [] CostNumberList: []
}, },
orderList: [], orderList: [],
queryMsg: { queryMsg: {
IsDefault: false, IsDefault: false,
//汇率输入 //汇率输入
...@@ -217,7 +215,7 @@ ...@@ -217,7 +215,7 @@
//人数 //人数
PeopleNumber: "" PeopleNumber: ""
}, },
LineTeamList: [], //系列下拉列表 LineTeamList: [], //系列下拉列表
companyList: [], //出团公司 companyList: [], //出团公司
teamList: [], teamList: [],
...@@ -273,15 +271,14 @@ ...@@ -273,15 +271,14 @@
}, },
handleClose(index) { handleClose(index) {
if (this.orderList.length <= 1) { if (this.orderList.length <= 1) {
return return;
} }
if (this.tabsActive === index) { if (this.tabsActive === index) {
this.tabsActive = 0 this.tabsActive = 0;
this.orderList.splice(index, 1) this.orderList.splice(index, 1);
this.changeTabs() this.changeTabs();
} else { } else {
this.orderList.splice(index, 1);
this.orderList.splice(index, 1)
} }
}, },
changeTabs() { changeTabs() {
...@@ -336,6 +333,20 @@ ...@@ -336,6 +333,20 @@
for (let i = 0; i < this.orderList.length; i++) { for (let i = 0; i < this.orderList.length; i++) {
this.orderList[i].dayCostPrice = this.createDayTripPriceItem([...this.orderList[i].dayCostPrice]); this.orderList[i].dayCostPrice = this.createDayTripPriceItem([...this.orderList[i].dayCostPrice]);
} }
//判断是否选择币种
if (this.orderList && this.orderList.length > 0) {
this.orderList.forEach(rootItem => {
if (rootItem && rootItem.dayCostPrice && rootItem.dayCostPrice.length > 0) {
rootItem.dayCostPrice.forEach(dItem => {
console.log(dItem.CurrencyId, "dItem.CurrencyId ");
if (dItem.CurrencyId == 0 && rootItem.CostCurrencyList && rootItem.CostCurrencyList.length >
0) {
dItem.CurrencyId = rootItem.CostCurrencyList[0].CurrencyId;
}
})
}
});
}
this.$forceUpdate() this.$forceUpdate()
}, },
//生成行程报价 //生成行程报价
...@@ -375,6 +386,7 @@ ...@@ -375,6 +386,7 @@
} else { } else {
dayCostPrice.length = this.postConfig.DayNum; dayCostPrice.length = this.postConfig.DayNum;
} }
return dayCostPrice return dayCostPrice
}, },
//价格转换器 //价格转换器
...@@ -419,6 +431,7 @@ ...@@ -419,6 +431,7 @@
teamPrice: JSON.parse(JSON.stringify(this.teamPrice)), teamPrice: JSON.parse(JSON.stringify(this.teamPrice)),
CostNumberList: JSON.parse(JSON.stringify(this.CostNumberList)), CostNumberList: JSON.parse(JSON.stringify(this.CostNumberList)),
}) })
this.$forceUpdate();
this.tabsActive = this.orderList.length - 1 this.tabsActive = this.orderList.length - 1
this.changeTabs() this.changeTabs()
}, },
...@@ -436,7 +449,7 @@ ...@@ -436,7 +449,7 @@
} }
}); });
} }
return CurrencyNumberListExt return CurrencyNumberListExt;
}, },
}, },
mounted() { mounted() {
......
...@@ -135,6 +135,9 @@ ...@@ -135,6 +135,9 @@
ContractUrl: "", //合同地址 ContractUrl: "", //合同地址
PriceRemark: "", //定价备注 PriceRemark: "", //定价备注
ContractArray: [], ContractArray: [],
TaxPrice:0,//税金
UnionPrice:0,//联运价格
NightPrice:0,//过夜费
}, },
LineList: [], //线路列表 LineList: [], //线路列表
loading: false loading: false
......
...@@ -116,11 +116,11 @@ ...@@ -116,11 +116,11 @@
<div class="switchDiv clearfix" style="width:98%;"> <div class="switchDiv clearfix" style="width:98%;">
<div class="DirectPriceCenter"> <div class="DirectPriceCenter">
<div class="singlePrice clearfix" v-loading="loading"> <div class="singlePrice clearfix" v-loading="loading">
<CostNewPrice ref="CostNewPrice" :postConfig="postData" :OtherPrice="OtherPrice" <CostNewPriceCC ref="CostNewPrice" :postConfig="postData" :OtherPrice="OtherPrice"
:dayCostPrice="dayCostPriceList" :LineList="LineList" :CostCurrencyList="CostCurrencyList" :dayCostPrice="dayCostPriceList" :LineList="LineList" :CostCurrencyList="CostCurrencyList"
:CostNumberList="CostNumberList" :CurrencyNumberListExt="CurrencyNumberListExt" :teamPrice="teamPrice" :CostNumberList="CostNumberList" :CurrencyNumberListExt="CurrencyNumberListExt" :teamPrice="teamPrice"
:loading="loading"> :loading="loading">
</CostNewPrice> </CostNewPriceCC>
</div> </div>
</div> </div>
</div> </div>
...@@ -128,7 +128,7 @@ ...@@ -128,7 +128,7 @@
</div> </div>
</template> </template>
<script> <script>
import CostNewPrice from "../TravelNewQuotation/CostNewPriceCC"; import CostNewPriceCC from "../TravelNewQuotation/CostNewPriceCC";
export default { export default {
props: ['ConfigId', 'OfferId'], props: ['ConfigId', 'OfferId'],
data() { data() {
...@@ -305,6 +305,7 @@ ...@@ -305,6 +305,7 @@
this.postData.OutDateTime = tempData.OutDateTime; this.postData.OutDateTime = tempData.OutDateTime;
this.postData.OfferPayType = tempData.OfferPayType; this.postData.OfferPayType = tempData.OfferPayType;
this.postData.SaleOfferPayType = tempData.SaleOfferPayType; this.postData.SaleOfferPayType = tempData.SaleOfferPayType;
this.postData.TeamTypeName = tempData.TeamTypeName;
this.LineList = tempData.LineList; this.LineList = tempData.LineList;
if (tempData.OfferArray) { if (tempData.OfferArray) {
this.currentData = tempData.OfferArray.find(item => item.IsDefault); this.currentData = tempData.OfferArray.find(item => item.IsDefault);
...@@ -341,7 +342,7 @@ ...@@ -341,7 +342,7 @@
this.getPostData() this.getPostData()
}, },
components: { components: {
CostNewPrice: CostNewPrice CostNewPriceCC: CostNewPriceCC
} }
}; };
......
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