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

新增停课

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