Commit 21bfcf23 authored by youjie's avatar youjie

优化门票类型多币种

parent 50a0a9ac
...@@ -318,8 +318,12 @@ ...@@ -318,8 +318,12 @@
<span>购买张数:</span> <span>购买张数:</span>
<div style="display: flex;flex-direction: column;"> <div style="display: flex;flex-direction: column;">
<template v-for="x in types"> <template v-for="x in types">
<el-input-number v-if="x.checked" v-model="x.num" @change="changePeople" :min="1" label="购买数量" <div style="flex-direction: row;" v-if="x.checked">
style="margin-bottom: 10px;"></el-input-number> <el-input-number v-model="x.num" @change="changePeople" :min="1" label="购买数量"
style="margin-bottom: 10px;"></el-input-number>
<!-- <span> {{x.CurrencyName
}} </span> -->
</div>
</template> </template>
</div> </div>
</div> </div>
...@@ -438,7 +442,15 @@ ...@@ -438,7 +442,15 @@
<div> <div>
<span>订单总金额:</span> <span>订单总金额:</span>
<b>{{ msg.Money>msg.MailingMoney?msg.Money.toFixed(2):0.0 }} <span class="fz12" v-if="types&&types.length>0">{{types[0].CurrencyName}}</span></b> <b>{{ msg.Money>msg.MailingMoney?msg.Money.toFixed(2):0.0 }}
<span class="fz12" v-if="types&&types.length>0">
<template v-for="x in types" v-if="checkedTyps==1&&x.checked">
{{x.CurrencyName}}
</template>
<template v-if="checkedTyps>1">
{{types[0].CurrencyName}}
</template>
</span></b>
</div> </div>
</div> </div>
<div class="right-Submit"> <div class="right-Submit">
...@@ -464,6 +476,7 @@ ...@@ -464,6 +476,7 @@
components: { TicketCard }, components: { TicketCard },
data() { data() {
return { return {
checkedTyps:0,//记录选多币种票型
isCheck:true, isCheck:true,
showDetails: false, showDetails: false,
loading: false, loading: false,
...@@ -609,6 +622,8 @@ ...@@ -609,6 +622,8 @@
changeDetailListHandler(e) { changeDetailListHandler(e) {
e.checked = !e.checked e.checked = !e.checked
this.isCheck = this.types.findIndex(x => x.checked) > -1 this.isCheck = this.types.findIndex(x => x.checked) > -1
this.checkedTyps = 0
this.types.forEach(item=>{ if(item.checked==true){ this.checkedTyps++}})
if(this.isCheck){ if(this.isCheck){
this.calcMoneyHandler() this.calcMoneyHandler()
}else{ }else{
......
...@@ -518,7 +518,7 @@ ...@@ -518,7 +518,7 @@
</div> </div>
</div> </div>
<div class="c9e fz12"> <div class="c9e fz12">
<span>客人信息:{{ item.Name }}({{ item.EName }})/{{ item.Mobile }}</span> <span v-if="item.Name||item.EName">客人信息:{{ item.Name }}({{ item.EName }})<template v-if="item.Mobile"> /{{ item.Mobile }}</template></span>
<span v-if="pagesTitle!='销售'"> <span v-if="pagesTitle!='销售'">
/来源<template v-if="!item.OrderSource&&!item.CustomerId">销售</template> /来源<template v-if="!item.OrderSource&&!item.CustomerId">销售</template>
<template v-if="!item.OrderSource&&item.CustomerId>0">B2B</template> <template v-if="!item.OrderSource&&item.CustomerId>0">B2B</template>
......
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