(("undefined"!==typeof self?self:this)["webpackJsonpcontractor_management_sm"]=("undefined"!==typeof self?self:this)["webpackJsonpcontractor_management_sm"]||[]).push([[12],{c592:function(e,i,t){"use strict";t.r(i);var o=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],staticClass:"mini-dialog",attrs:{"close-on-click-modal":!1,title:"审批",visible:e.dialogVisible,"append-to-body":""},on:{"update:visible":function(i){e.dialogVisible=i},close:e.cancel}},[t("el-form",{ref:"form",attrs:{"label-width":"150px",model:e.form}},[t("el-form-item",{attrs:{label:"审批结果",prop:"isPass",rules:[{required:!0,message:"请选择审批结果",trigger:"blur"}]}},[t("el-radio-group",{model:{value:e.form.isPass,callback:function(i){e.$set(e.form,"isPass",i)},expression:"form.isPass"}},[t("el-radio",{attrs:{label:!0}},[e._v("审批通过")]),t("el-radio",{attrs:{label:!1}},[e._v("不通过")])],1)],1),t("el-form-item",{attrs:{label:"审批意见",prop:"opinion",rules:[{required:!0,message:"请输入审批意见",trigger:"blur"}]}},[t("el-input",{attrs:{type:"textarea",rows:4,maxlength:"500","show-word-limit":""},model:{value:e.form.opinion,callback:function(i){e.$set(e.form,"opinion",i)},expression:"form.opinion"}})],1)],1),t("div",{staticClass:"flex justify-center",attrs:{slot:"footer"},slot:"footer"},[t("el-button",{attrs:{size:"small",type:"primary",loading:e.loading},on:{click:e.save}},[e._v("保存")]),t("el-button",{attrs:{size:"small"},on:{click:e.cancel}},[e._v("取消")])],1)],1)},s=[],l={props:{visible:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},data:function(){return{form:{isPass:!0,opinion:""}}},computed:{dialogVisible:{get:function(){return console.log("get dialogVisible",this.visible),this.visible},set:function(e){console.log("set dialogVisible",e),this.$emit("update:visible",e)}}},methods:{save:function(){var e=this;this.$refs.form.validate((function(i){i&&e.$emit("submit",e.form)}))},cancel:function(){this.form=this.$options.data().form,this.dialogVisible=!1}}},a=l,r=t("2877"),n=Object(r["a"])(a,o,s,!1,null,null,null);i["default"]=n.exports}}]);