Commit 9c5d971e authored by 罗超's avatar 罗超

新增停课

parent 65ce850f
This diff is collapsed.
...@@ -8,9 +8,10 @@ ...@@ -8,9 +8,10 @@
<div class="text-caption q-mb-lg q-px-md text-grey-6">基本资料</div> <div class="text-caption q-mb-lg q-px-md text-grey-6">基本资料</div>
<div class="col flex items-center"> <div class="col flex items-center">
<div class="col-2 text-grey-6"> <div class="col-2 text-grey-6">
选择停课开始时间 选择停课生效日期
</div> </div>
<el-date-picker v-model="msg.TakeEffectTime" value-format="yyyy-MM-dd" type="date" placeholder="选择日期"> <el-date-picker v-model="msg.TakeEffectTime" value-format="yyyy-MM-dd" type="date" placeholder="选择日期"
:picker-options="pickeroptions">
</el-date-picker> </el-date-picker>
</div> </div>
<q-input filled type="textarea" :rows="3" style="margin-top:20px;" stack-label maxlength="2000" <q-input filled type="textarea" :rows="3" style="margin-top:20px;" stack-label maxlength="2000"
...@@ -46,8 +47,14 @@ ...@@ -46,8 +47,14 @@
CourseId: 0, CourseId: 0,
OrderGuestId: 0, OrderGuestId: 0,
TakeEffectTime: "", TakeEffectTime: "",
OldStudentStatus: 0,
Remarks: "" Remarks: ""
}, },
pickeroptions: {
disabledDate(time) {
return time.getTime() <= Date.now()- 8.64e7;
}
},
} }
}, },
mounted() { mounted() {
...@@ -55,6 +62,7 @@ ...@@ -55,6 +62,7 @@
this.msg.ClassId = this.setObj.ClassId this.msg.ClassId = this.setObj.ClassId
this.msg.CourseId = this.setObj.CourseId this.msg.CourseId = this.setObj.CourseId
this.msg.OrderGuestId = this.setObj.Id this.msg.OrderGuestId = this.setObj.Id
this.msg.OldStudentStatus = this.setObj.GuestState
} }
console.log(57, this.msg) console.log(57, this.msg)
}, },
...@@ -68,7 +76,7 @@ ...@@ -68,7 +76,7 @@
this.$q.notify({ this.$q.notify({
type: 'negative', type: 'negative',
position: "top", position: "top",
message: `请选择停课开始时间` message: `请选择停课生效日期:`
}) })
return return
} }
...@@ -80,17 +88,17 @@ ...@@ -80,17 +88,17 @@
}) })
return return
} }
this.saveLoading=true this.saveLoading = true
setStopClassApply(this.msg).then(res => { setStopClassApply(this.msg).then(res => {
this.saveLoading=false this.saveLoading = false
if (res.Code === 1) { if (res.Code === 1) {
this.$message.success("操作成功") this.$message.success("操作成功")
this.$emit("success") this.$emit("success")
} else { } else {
this.$message.error(res.Message) this.$message.error(res.Message)
} }
}).catch(err=>{ }).catch(err => {
this.saveLoading=false this.saveLoading = false
}) })
} }
}, },
......
...@@ -115,6 +115,9 @@ ...@@ -115,6 +115,9 @@
<changebill-form v-if="isShowChangeBillForm" :seting-obj="billObj" :showType="showType" @close="closeBillForm" <changebill-form v-if="isShowChangeBillForm" :seting-obj="billObj" :showType="showType" @close="closeBillForm"
@success="refreshPage"> @success="refreshPage">
</changebill-form> </changebill-form>
<stopbill-form v-if="isShowStopBillForm" :seting-obj="billObj" :showType="showType" @close="closeBillForm"
@success="refreshPage">
</stopbill-form>
</div> </div>
</div> </div>
</template> </template>
...@@ -127,7 +130,7 @@ ...@@ -127,7 +130,7 @@
import backbillForm from '../../components/sale/backbill-form'; import backbillForm from '../../components/sale/backbill-form';
import changebillForm from '../../components/sale/changebill-form'; import changebillForm from '../../components/sale/changebill-form';
import stopbillForm from '../../components/sale/stopbill-form';
import createbackbillForm from '../../components/sale/createbackbill-form'; import createbackbillForm from '../../components/sale/createbackbill-form';
export default { export default {
meta: { meta: {
...@@ -136,7 +139,8 @@ ...@@ -136,7 +139,8 @@
components: { components: {
backbillForm, backbillForm,
createbackbillForm, createbackbillForm,
changebillForm changebillForm,
stopbillForm
}, },
data() { data() {
return { return {
...@@ -222,6 +226,8 @@ ...@@ -222,6 +226,8 @@
billObj: {}, //单据信息 billObj: {}, //单据信息
showType: 1, //1-查看,2-审核 showType: 1, //1-查看,2-审核
OrderTypeList: [], OrderTypeList: [],
isShowStopBillForm:false,
} }
}, },
created() { created() {
...@@ -254,6 +260,7 @@ ...@@ -254,6 +260,7 @@
this.isShowBillForm = false; this.isShowBillForm = false;
this.isShowChangeBillForm = false; this.isShowChangeBillForm = false;
this.isShowCreateBillForm = false; this.isShowCreateBillForm = false;
this.isShowStopBillForm=false
this.billObj = {}; this.billObj = {};
}, },
//显示表单 //显示表单
...@@ -265,6 +272,10 @@ ...@@ -265,6 +272,10 @@
//退课 //退课
else if (item.ReceiptType == 2) { else if (item.ReceiptType == 2) {
this.isShowBillForm = true; this.isShowBillForm = true;
}
//停课
else if (item.ReceiptType == 3) {
this.isShowStopBillForm = true;
} }
this.showType = type; this.showType = type;
this.billObj = item; this.billObj = item;
......
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