Commit 358eb8ef authored by youjie's avatar youjie

no message

parent c3a9c237
......@@ -48,11 +48,11 @@
<el-col :span="6">
{{ moneyFormat(z.Unit_Price) }}/人
</el-col>
<el-col :span="6">
<el-col :span="5">
{{ z.PeopleNumber }}{{ z.Number }}
</el-col>
<el-col :span="6" class="row-JCE">
<span>小计:13400.00</span>
<el-col :span="7" class="row-JCE">
<span>小计:{{ moneyFormat(z.Unit_Price * z.PeopleNumber) }}</span>
</el-col>
</el-row>
</div>
......@@ -64,8 +64,9 @@
</div>
</div>
</div>
<div v-if="cars.length==0" style="text-align: center;padding: 20px 0;">暂无数据</div>
</div>
<div class="ListCar-bottom">
<div class="ListCar-bottom" v-if="cars.length>0">
<el-form label-width="60px" :model="parameters" :rules="rules" ref="parameters">
<el-row :gutter="20">
<el-col :span="12">
......@@ -105,11 +106,11 @@
<span class="coloref1416c fz12">订单总金额:</span>
<span class="coloref1416c fbold">
<span class="fz13">¥</span>
<span class="fz18">37000</span>
<span class="fz18">{{parameters.Money}}</span>
</span>
</div>
<div>
<button class="normalBtn" :class="{'normalBtn':'','hollowFixedBtn':''}" type="primary" @click="submit">
<button :class="{'normalBtn':!loading,'hollowFixedBtn':loading}" type="primary" @click="submit">
确认下单
</button>
</div>
......@@ -206,10 +207,12 @@
},
methods: {
// 关闭购物车
close(){
localStorage.removeItem('editor')
this.$emit('close')
},
// 合计
getMoney() {
this.parameters.Money = 0
this.cars.forEach((item) => {
......@@ -218,6 +221,7 @@
})
})
},
// 确定下单
submit() {
this.$refs['parameters'].validate((valid) => {
if (valid) {
......@@ -229,16 +233,17 @@
},
setFormMsg(){
let temp = JSON.parse(JSON.stringify(this.cars))
if(this.loading) return
if(this.loading||this.cars.length==0) return
this.loading = true
this.parameters.DetailList = []
temp.forEach((x)=>{
x.Hotels.forEach((y)=>{
y.RoomList = JSON.parse(JSON.stringify(y.DetailList))
delete y.DetailList
this.parameters.DetailList.push(y)
})
x.Hotels.forEach((y)=>{
y.RoomList = JSON.parse(JSON.stringify(y.DetailList))
delete y.DetailList
this.parameters.DetailList.push(y)
})
})
this.apipost("dict_post_SetSaleCustomerOrder", this.parameters,
res => {
this.loading = false;
......@@ -282,6 +287,7 @@
});
},
// 编辑
setEditorHandler(x){
localStorage.setItem('editor',JSON.stringify(x))
this.$emit('editor',x)
......@@ -355,7 +361,7 @@
bottom: 0;
width: 550px;
background: #ffffff;
z-index: 9999999;
z-index: 100;
}
.ListCar-box{
width: 100%;
......
......@@ -4618,7 +4618,9 @@
width: 100%;
margin: 0 auto;
height: 100%;
z-index: 2019128;
z-index: 99;
display: flex;
flex-wrap: nowrap;
}
.nav-middle ul li {
......
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