| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3a0e4162"],{"7efe":function(t,e,r){"use strict";r.r(e);r("14d9");var n=r("9ab4"),i=r("9b74"),a=r("1b40"),s=r("3c50"),p=r("6ddb"),o=r("4201"),l=r("0a6d");let u=class extends a.e{constructor(){super(...arguments),this.pager=new p.a}getList(){this.pager.request({callback:i.m,params:{}}).catch(()=>{this.$message.error("数据请求失败,刷新重载!")})}onDel(t){Object(i.e)({id:t}).then(()=>{this.getList()})}goTemplateAdd(){this.$router.push({path:"/print/edit_template",query:{mode:o.g.ADD}})}goTemplateEdit(t){this.$router.push({path:"/print/edit_template",query:{id:t,mode:o.g.EDIT}})}created(){this.getList()}};u=Object(n.a)([Object(a.a)({components:{LsDialog:l.a,LsPagination:s.a}})],u);var d=u,c=r("2877"),m=Object(c.a)(d,(function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",[e("div",{staticClass:"ls-card"},[e("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.goTemplateAdd}},[t._v("新增小票模版")]),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.pager.loading,expression:"pager.loading"}],ref:"paneTable",staticClass:"m-t-24",staticStyle:{width:"100%"},attrs:{data:t.pager.lists,size:"mini"}},[e("el-table-column",{attrs:{prop:"template_name",label:"模板名称","min-width":"180"}}),e("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"180"}}),e("el-table-column",{attrs:{label:"操作","min-width":"180"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("el-button",{attrs:{type:"text",size:"small"},on:{click:function(e){return t.goTemplateEdit(r.row.id)}}},[t._v("编辑")]),e("ls-dialog",{staticClass:"m-l-10 m-t-4 m-b-4 inline",attrs:{content:"确定要删除这个小票模版吗?请谨慎操作"},on:{confirm:function(e){return t.onDel(r.row.id)}}},[e("el-button",{attrs:{slot:"trigger",type:"text",size:"mini"},slot:"trigger"},[t._v(" 删除 ")])],1)]}}])})],1),e("div",{staticClass:"m-t-24 flex row-right"},[e("ls-pagination",{on:{change:t.getList},model:{value:t.pager,callback:function(e){t.pager=e},expression:"pager"}})],1)],1)])}),[],!1,null,null,null);e.default=m.exports},"9b74":function(t,e,r){"use strict";r.d(e,"j",(function(){return i})),r.d(e,"i",(function(){return a})),r.d(e,"k",(function(){return s})),r.d(e,"a",(function(){return p})),r.d(e,"f",(function(){return o})),r.d(e,"d",(function(){return l})),r.d(e,"n",(function(){return u})),r.d(e,"h",(function(){return d})),r.d(e,"c",(function(){return c})),r.d(e,"m",(function(){return m})),r.d(e,"b",(function(){return g})),r.d(e,"g",(function(){return f})),r.d(e,"e",(function(){return b})),r.d(e,"l",(function(){return h}));var n=r("f175");const i=t=>n.a.get("/printer.printer/printerLists",{params:t}),a=t=>n.a.get("/printer.printer/printerDetail",{params:t}),s=t=>n.a.get("/printer.printer/getPrinterType",{params:t}),p=t=>n.a.post("/printer.printer/addPrinter",t),o=t=>n.a.post("/printer.printer/editPrinter",t),l=t=>n.a.post("/printer.printer/deletePrinter",t),u=t=>n.a.post("/printer.printer/testPrinter",t),d=t=>n.a.post("/order.order/orderPrint",t),c=t=>n.a.post("/printer.printer/autoPrint",t),m=t=>n.a.get("/printer.printer/printerTemplateLists",{params:t}),g=t=>n.a.post("/printer.printer/addTemplate",t),f=t=>n.a.post("/printer.printer/editTemplate",t),b=t=>n.a.post("/printer.printer/deleteTemplate",t),h=t=>n.a.get("/printer.printer/templateDetail",{params:t})}}]);
|