Commit a20891ef authored by youjie's avatar youjie

no message

parent d5190dca
...@@ -324,8 +324,8 @@ ...@@ -324,8 +324,8 @@
<div class="flexOne-type"> <div class="flexOne-type">
<b>取票方式:</b> <b>取票方式:</b>
<div> <div>
<el-radio v-model="msg.MailingState" label="1">自行取票</el-radio> <el-radio v-model="msg.MailingState" label="1" @change="changePeople">自行取票</el-radio>
<el-radio v-model="msg.MailingState" label="2" >邮寄票券</el-radio> <el-radio v-model="msg.MailingState" label="2" @change="changePeople">邮寄票券</el-radio>
</div> </div>
</div> </div>
<div class="flexOne-description"> <div class="flexOne-description">
...@@ -409,12 +409,20 @@ ...@@ -409,12 +409,20 @@
</template> </template>
</template> </template>
<div v-else class="noData">没有选择票券</div> <div v-else class="noData">没有选择票券</div>
<div class="right-list" v-if="msg.MailingMoney>0&&msg.Money>msg.MailingMoney">
<div>
<el-tag size="mini" type="danger">邮寄费</el-tag>
</div>
<div class="right-list-right">
{{msg.MailingMoney}}
</div>
</div>
</div> </div>
</div> </div>
<div class="right-Money"> <div class="right-Money">
<div> <div>
<span>订单总金额:</span> <span>订单总金额:</span>
<b>{{ msg.Money.toFixed(2) }} <span class="fz12">{{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">{{types[0].CurrencyName}}</span></b>
</div> </div>
</div> </div>
<div class="right-Submit"> <div class="right-Submit">
...@@ -447,6 +455,7 @@ ...@@ -447,6 +455,7 @@
Remark: '', Remark: '',
MailingState: '1',//邮寄状态 1自取 2邮寄 MailingState: '1',//邮寄状态 1自取 2邮寄
MailingAddress: '',//MailingState =2 填写邮寄 MailingAddress: '',//MailingState =2 填写邮寄
MailingMoney: null,
UseDate:'',//门票日期 UseDate:'',//门票日期
Name:'', Name:'',
EName:'', EName:'',
...@@ -506,6 +515,7 @@ ...@@ -506,6 +515,7 @@
setFormMsg(){ setFormMsg(){
if(this.msg.MailingState=='1'){ if(this.msg.MailingState=='1'){
this.msg.MailingAddress = '' this.msg.MailingAddress = ''
this.msg.MailingMoney = null
} }
this.msg.DetailList = [] this.msg.DetailList = []
this.types.forEach(x=>{ this.types.forEach(x=>{
...@@ -552,11 +562,18 @@ ...@@ -552,11 +562,18 @@
}, },
calcMoneyHandler(){ calcMoneyHandler(){
this.msg.Money=0.0 this.msg.Money=0.0
let Money= 0
if(this.msg.MailingState == '2'){
this.msg.MailingMoney = this.detailsObj.MailingMoney
}else{
this.msg.MailingMoney = 0
}
this.types.forEach(x=>{ this.types.forEach(x=>{
if(x.checked){ if(x.checked){
this.msg.Money+=x.B2BPrice*x.num Money+=x.B2BPrice*x.num
} }
}) })
this.msg.Money = Number(Money)+Number(this.msg.MailingMoney)
}, },
changeDetailListHandler(e) { changeDetailListHandler(e) {
if (e.checked) { if (e.checked) {
......
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