Commit 21bfcf23 authored by youjie's avatar youjie

优化门票类型多币种

parent 50a0a9ac
......@@ -318,8 +318,12 @@
<span>购买张数:</span>
<div style="display: flex;flex-direction: column;">
<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">
<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>
</div>
</div>
......@@ -438,7 +442,15 @@
<div>
<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 class="right-Submit">
......@@ -464,6 +476,7 @@
components: { TicketCard },
data() {
return {
checkedTyps:0,//记录选多币种票型
isCheck:true,
showDetails: false,
loading: false,
......@@ -609,6 +622,8 @@
changeDetailListHandler(e) {
e.checked = !e.checked
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){
this.calcMoneyHandler()
}else{
......
......@@ -518,7 +518,7 @@
</div>
</div>
<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!='销售'">
/来源<template v-if="!item.OrderSource&&!item.CustomerId">销售</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