(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-23546704"],{"5c30":function(e,t,a){},"7b48":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("task-design-view",{attrs:{processIndex:4,taskTemplateName:e.templateName,taskTemplateId:e.templateId},on:{saveData:e.handleTitleChange}},[a("div",{staticClass:"task-design-content"},[a("div",{staticClass:"task-design-content-sm"},[a("a-card",{attrs:{bordered:!1}},[a("div",{staticClass:"setting-form"},[a("a-form",{attrs:{form:e.form,layout:"vertical"}},[a("a-form-item",{attrs:{label:"审批人去重"}},[a("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["approveRepeat",{rules:[{required:!0,message:"请选择"}]}],expression:"[\n                    'approveRepeat',\n                    {rules: [{ required: true, message: '请选择' }]}\n                  ]"}],attrs:{placeholder:"请选择"}},[a("a-select-option",{attrs:{value:"",disabled:""}},[e._v("请选择")]),e._l(e.approveRepeatList,function(t,r){return a("a-select-option",{key:r,attrs:{value:t.value}},[e._v("\n                    "+e._s(t.name)+"\n                  ")])})],2)],1),a("a-form-item",{attrs:{label:"审批意见填写提示"}},[a("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["approveTips",{rules:[{required:!0,message:"请输入"},{max:20,message:"最多填写20字"}]}],expression:"[\n                    'approveTips',\n                    {rules: [{ required: true, message: '请输入' }, { max: 20, message: '最多填写20字' }]}\n                  ]"}],attrs:{placeholder:"请输入"}})],1),a("a-form-item",{attrs:{label:"审批意见",required:!0,help:""}},[a("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["isRequired",{rules:[{required:!0,message:"请输入标题"}]}],expression:"[\n                    'isRequired',\n                    {rules: [{ required: true, message: '请输入标题' }]}\n                  ]"}]},[a("a-radio",{attrs:{value:"0"}},[e._v("是")]),a("a-radio",{attrs:{value:"1"}},[e._v("否")])],1)],1)],1)],1)])],1)])])},s=[],o=a("5176"),i=a.n(o),n=a("cebc"),l=a("680a"),m=a("290c"),c=(a("b199"),a("2f62")),p={name:"taskOtherSetting",components:{ARow:m["a"],PageView:l["c"],TaskDesignView:l["d"]},computed:Object(n["a"])({},Object(c["c"])(["workTemplateOtherSettings"])),data:function(){return{templateId:"",templateName:"",form:this.$form.createForm(this),approveRepeatList:[{name:"是",value:"1"},{name:"否",value:"0"}]}},methods:Object(n["a"])({},Object(c["b"])(["saveWorkTemplateOtherSettings"]),{handleTitleChange:function(e,t){var a=this;console.log(e),this.form.validateFields(function(e,r){console.error(e);var s=i()(r,{templateId:a.templateId});a.saveWorkTemplateOtherSettings(s).then(function(e){console.log("res",e),t()}).catch(function(e){console.error("err",e)})})},initForm:function(){var e=this;this.form=this.$form.createForm(this,{onFieldsChange:function(t,a){e.$emit("change",a)},mapPropsToFields:function(){return{approveRepeat:e.$form.createFormField({value:e.workTemplateOtherSettings.approveRepeat}),isRequired:e.$form.createFormField({value:e.workTemplateOtherSettings.isRequired}),approveTips:e.$form.createFormField({value:e.workTemplateOtherSettings.approveTips}),createRoles:e.$form.createFormField({value:e.workTemplateOtherSettings.phone})}},onValuesChange:function(e,t){console.log(t)}})}}),mounted:function(){this.initForm(),this.templateId=this.$route.query.templateId,this.templateName=this.$route.query.templateNm}},u=p,d=(a("8265"),a("2877")),v=Object(d["a"])(u,r,s,!1,null,"65904961",null),h=v.exports;t["default"]=h},8265:function(e,t,a){"use strict";var r=a("5c30"),s=a.n(r);s.a}}]);