(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d216215"],{c0c5:function(t,e,l){"use strict";l.r(e);var a=function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("div",[l("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list,stripe:""}},[l("el-table-column",{attrs:{prop:"applicantName",label:"申请者"}}),l("el-table-column",{attrs:{prop:"documentName",label:"名称"}}),l("el-table-column",{attrs:{prop:"applyTime",label:"申请时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("date")(e.row.applyTime)))]}}])}),l("el-table-column",{attrs:{prop:"approverName",label:"审批人"}}),l("el-table-column",{attrs:{prop:"approvalTime",label:"审批时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("date")(e.row.approvalTime)))]}}])}),l("el-table-column",{attrs:{prop:"status",label:"状态"}}),l("el-table-column",{attrs:{label:"审核"},scopedSlots:t._u([{key:"default",fn:function(e){return"通过"==e.row.status?[l("el-button",{attrs:{size:"small"},on:{click:function(l){return t.pass(e.row.id)}}},[t._v("打印")])]:void 0}}],null,!0)})],1),l("el-dialog",{attrs:{title:"选择打印机",visible:t.dialogFormVisible},on:{"update:visible":function(e){t.dialogFormVisible=e}}},[l("el-form",{attrs:{model:t.form}},[l("el-form-item",{attrs:{label:"选择打印机",prop:"printId"}},[l("el-select",{attrs:{placeholder:"请选择打印机"},model:{value:t.form.printerId,callback:function(e){t.$set(t.form,"printerId",e)},expression:"form.printerId"}},t._l(t.PrintList,(function(t){return l("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{on:{click:function(e){t.dialogFormVisible=!1}}},[t._v("取 消")]),l("el-button",{attrs:{type:"primary"},on:{click:t.post}},[t._v("确 定")])],1)],1)],1)},o=[],r=(l("4de4"),l("ade3")),i=l("69f8"),n=Object(r["a"])({components:{},data:function(){return{list:[],PrintList:[],dialogFormVisible:!1,form:{applyId:null,printerId:null},rules:{printId:[{required:!0,message:"请选择打印机",trigger:"blur"}]}}},computed:{},watch:{},methods:{},created:function(){var t=this;Object(i["h"])().then((function(e){e.data.filter((function(t){return 0==t.status&&(t.status="未审核"),1==t.status&&(t.status="通过"),2==t.status&&(t.status="拒绝"),t})),console.log(e),t.list=e.data})),Object(i["e"])().then((function(e){t.PrintList=e.data}))}},"methods",{pass:function(t){this.dialogFormVisible=!0,this.form.applyId=t},post:function(){var t=this;if(null!=this.form.printerId){var e=this.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});Object(i["f"])(this.form).then((function(l){0==l.code&&(e.close(),t.$alert("打印成功"))})),this.dialogFormVisible=!1}else t.$alert("请选择打印机")}}),s=n,u=l("2877"),c=Object(u["a"])(s,a,o,!1,null,"ea256cc0",null);e["default"]=c.exports}}]);
//# sourceMappingURL=chunk-2d216215.8ce6f56c.js.map