Commit 358eb8ef authored by youjie's avatar youjie

no message

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