Commit 02b8b5b0 authored by 罗超's avatar 罗超

1

parent 96685c4f
div<template> <template>
<q-dialog <q-dialog
v-model="persistent" v-model="persistent"
persistent persistent
...@@ -115,14 +115,16 @@ div<template> ...@@ -115,14 +115,16 @@ div<template>
</q-step> </q-step>
<q-step :name="2" title="确认" icon="settings" :done="step > 2"> <q-step :name="2" title="确认" icon="settings" :done="step > 2">
<orderForm <orderForm
ref="orderForm"
:save-obj="saveObj" :save-obj="saveObj"
:stuData="stuData" :stuData="stuData"
:isChaBan="isChaBan" :isChaBan="isChaBan"
@success="$emit('close')"
></orderForm> ></orderForm>
</q-step> </q-step>
</q-stepper> </q-stepper>
</q-card-section> </q-card-section>
<q-card-actions align="right" class="bg-white q-mx-md"> <q-card-actions align="right" class="bg-white q-mx-md ">
<q-btn <q-btn
label="取消" label="取消"
flat flat
...@@ -137,7 +139,7 @@ div<template> ...@@ -137,7 +139,7 @@ div<template>
v-if="step > 1" v-if="step > 1"
/> />
<q-btn @click="next" color="primary" label="下一步" v-if="step < 2" /> <q-btn @click="next" color="primary" label="下一步" v-if="step < 2" />
<!-- <q-btn label="保存" color="primary" @click="" v-if="step == 2" /> --> <q-btn label="保存" color="primary" @click="saveOrderForm" v-if="step == 2" />
</q-card-actions> </q-card-actions>
</q-card> </q-card>
</q-dialog> </q-dialog>
...@@ -373,8 +375,16 @@ export default { ...@@ -373,8 +375,16 @@ export default {
resetSearch() { resetSearch() {
this.courseMsg.pageIndex = 1; this.courseMsg.pageIndex = 1;
this.getCourseList(); this.getCourseList();
},
saveOrderForm(){
this.$refs.orderForm.saveOrderInfo()
} }
} }
}; };
</script> </script>
<style scoped></style> <style scoped>
/deep/.el-input__inner{
background-color: transparent;
border:none;
}
</style>
...@@ -19,7 +19,8 @@ ...@@ -19,7 +19,8 @@
}}</span> }}</span>
</div> </div>
</div> --> </div> -->
<div class="row"> <div class="row q-mb-md">
<div class="col-10">
<div v-for="(item, index) in stuData.StuList"> <div v-for="(item, index) in stuData.StuList">
<q-chip icon="person" class="primary" <q-chip icon="person" class="primary"
>{{ item.StuName }} >{{ item.StuName }}
...@@ -27,6 +28,10 @@ ...@@ -27,6 +28,10 @@
</q-chip> </q-chip>
</div> </div>
</div> </div>
<div class="col-2">
<q-toggle v-model="isChaBan" :true-value="1" :false-value='0' label="插班报入" />
</div>
</div>
<div style="row items-center"> <div style="row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md"> <div class="col row wrap q-mr-lg q-col-gutter-md">
<q-input <q-input
...@@ -69,7 +74,6 @@ ...@@ -69,7 +74,6 @@
@input="calcPrice()" @input="calcPrice()"
class="col-6" class="col-6"
label="起始课时" label="起始课时"
:rules="[val =>!!val&&val<0 || '请填起始课时']"
/> />
<q-input <q-input
filled filled
...@@ -335,17 +339,16 @@ ...@@ -335,17 +339,16 @@
class="col-12" class="col-12"
label="备注" label="备注"
/> />
<!-- ?? -->
</div> </div>
<div style="margin:30px 10px 70px 0;" class="flex justify-end"> <!-- <div style="margin:30px 10px 70px 0;" class="flex justify-end savebtn">
<q-btn <q-btn
color="accent" color="accent"
class="q-mr-md" class="q-mr-md"
label="保存" label="保存"
@click="saveOrderInfo()" @click="saveOrderInfo()"
/> />
</div> </div> -->
</div> </div>
<div <div
...@@ -398,6 +401,7 @@ export default { ...@@ -398,6 +401,7 @@ export default {
data() { data() {
return { return {
IsShowEditOrder: true, IsShowEditOrder: true,
OrderMsg: { OrderMsg: {
ClassId: 0, //班级编号 ClassId: 0, //班级编号
GuestNum: 0, //人数 GuestNum: 0, //人数
...@@ -906,3 +910,10 @@ export default { ...@@ -906,3 +910,10 @@ export default {
} }
}; };
</script> </script>
<style>
.savebtn {
position: absolute;
bottom: 0;
right: 0;
}
</style>
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