System.register(["@ibiz-template/vue-util","vue","dayjs"],(function(e,t){"use strict";var a,n,r,o,c,s;return{setters:[function(e){a=e.useNamespace,n=e.useEditViewController},function(e){r=e.defineComponent,o=e.getCurrentInstance,c=e.ref},function(e){s=e.default}],execute:function(){e("default",r({props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(e){var t=o().proxy,r=a("byqk-edit-view"),i=n(t,e.modelPath),l=s().subtract(1,"day");i.context.selectDay=l.format("YYYY-MM-DD"),i.params.kqrq=i.context.selectDay,i.context.selectMonth=l.format("YYYY-MM");var u=c(l.toDate()),d=s();return{ns:r,c:i,currentDate:u,onCurrentDateChange:function(e){if(e!==s(u.value).format("YYYY-MM-DD")){var t=s(e);u.value=t.toDate(),i.context.selectDay=t.format("YYYY-MM-DD"),i.params.kqrq=i.context.selectDay,i.context.selectMonth=t.format("YYYY-MM"),i.load()}},options:{disabledDate:function(e){var t=s(e);return d.isSame(t,"day")||d.isBefore(t,"day")}}}},render:function(e){var t=this,a=null;if(this.c.complete){var n=this.c.model.form;this.c.providers[n.name]&&(a=e(this.c.providers[n.name].component,{props:{modelData:n,context:this.c.context,params:this.c.params},on:{neuronInit:this.c.nerve.onNeuronInit(n.name)}}))}return e("view-base",{attrs:{controller:this.c},class:this.ns.b(),scopedSlots:{toolbar:function(){return e("div",{class:t.ns.b("calendar-picker-toolbar")},[e("div",{class:t.ns.be("calendar-picker-toolbar","title")},["按日期查询"]),e("i-CalendarPicker",{class:t.ns.be("calendar-picker-toolbar","tool"),attrs:{value:t.currentDate,clearable:!1,format:"yyyy-MM-dd",placeholder:"请选择",options:t.options,placement:"bottom-end"},on:{"on-change":t.onCurrentDateChange}})])}}},[a])}}))}}}));
