import{r as s,i as m,e as v}from"./vendor-39c32a1b.js";import{n as b}from"./index-8fa791df.js";const y={__name:"remindDialog",emits:["getList"],setup(u,{expose:l,emit:e}){const t=s(!1),r=s(),a=m({content:"",customer_id:"",way:0}),c=m({content:[{required:!0,message:"\u8BF7\u8F93\u5165\u65E5\u7A0B\u63CF\u8FF0",trigger:"blur"}],remind_date:[{required:!0,message:"\u8BF7\u9009\u62E9\u6267\u884C\u65F6\u95F4",trigger:"change"}]}),d=s([{id:0,name:"\u63D0\u524D5\u5206\u949F"},{id:1,name:"\u63D0\u524D10\u5206\u949F"},{id:2,name:"\u63D0\u524D15\u5206\u949F"},{id:3,name:"\u63D0\u524D30\u5206\u949F"},{id:4,name:"\u63D0\u524D1\u5C0F\u65F6"}]);function n(i){let o=JSON.parse(JSON.stringify(i));a.customer_id=o.id,t.value=!0}function _(i){r.value.validate(o=>{if(o)a.type=1,HTTP.post("visitRemind",a).then(p=>{p.code==0&&(v.exports.Message({message:"\u64CD\u4F5C\u6210\u529F",type:"success"}),t.value=!1,r.value.resetFields(),a.remind_time="",a.way=0,e("getList"))});else return!1})}function f(i){r.value.resetFields(),a.remind_time="",a.way=0,t.value=!1}return l({init:n}),{__sfc:!0,dialogVisible:t,ruleFormRef:r,emits:e,ruleForm:a,rules:c,remindList:d,init:n,submit:_,cancle:f}}};var g=function(){var l=this,e=l._self._c,t=l._self._setupProxy;return e("div",{staticClass:"clue-details"},[e("el-dialog",{attrs:{title:"\u65B0\u589E\u65E5\u7A0B\u63D0\u9192","append-to-body":!0,visible:t.dialogVisible,width:"40%","close-on-click-modal":!1,"before-close":t.cancle},on:{"update:visible":function(r){t.dialogVisible=r}}},[e("div",{staticClass:"remind"},[e("el-form",{ref:"ruleFormRef",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"100px"}},[e("el-form-item",{attrs:{label:"\u65E5\u7A0B\u63CF\u8FF0",prop:"content"}},[e("el-input",{attrs:{type:"textarea"},model:{value:t.ruleForm.content,callback:function(r){l.$set(t.ruleForm,"content",r)},expression:"ruleForm.content"}})],1),e("el-form-item",{attrs:{label:"\u8DDF\u8FDB\u7C7B\u578B"}},[e("el-radio-group",{model:{value:t.ruleForm.way,callback:function(r){l.$set(t.ruleForm,"way",r)},expression:"ruleForm.way"}},[e("el-radio",{attrs:{label:0}},[l._v("\u7535\u8BDD\u62DC\u8BBF")]),e("el-radio",{attrs:{label:1}},[l._v("\u4E0A\u95E8\u62DC\u8BBF")]),e("el-radio",{attrs:{label:2}},[l._v("\u7F51\u7EDC\u62DC\u8BBF")])],1)],1),e("el-form-item",{attrs:{label:"\u6267\u884C\u65F6\u95F4",prop:"remind_date"}},[e("el-date-picker",{staticStyle:{width:"100%"},attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F"},model:{value:t.ruleForm.remind_date,callback:function(r){l.$set(t.ruleForm,"remind_date",r)},expression:"ruleForm.remind_date"}})],1),e("el-form-item",{attrs:{label:"\u63D0\u9192"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"\u8BF7\u9009\u62E9"},model:{value:t.ruleForm.remind_time,callback:function(r){l.$set(t.ruleForm,"remind_time",r)},expression:"ruleForm.remind_time"}},l._l(t.remindList,function(r){return e("el-option",{key:r.id,attrs:{label:r.name,value:r.id}})}),1)],1)],1)],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(r){return t.cancle("ruleForm")}}},[l._v("\u53D6 \u6D88")]),e("el-button",{attrs:{type:"primary"},on:{click:function(r){return t.submit("ruleForm")}}},[l._v("\u786E \u5B9A")])],1)])],1)},F=[],x=b(y,g,F,!1,null,"c34798b1",null,null);const k=x.exports;export{k as r};
