You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1 lines
5.1 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-136798ba"],{"0546":function(e,t,a){"use strict";var n=a("e7e5");a.n(n).a},"1a86":function(e,t,a){"use strict";t.a={data:function(){return{isSearch:!1,total:null}},created:function(){},methods:{handleSizeChange:function(e){this.queryInfo.pageSize=e,this.initTable()},handleCurrentChange:function(e){this.queryInfo.pageNum=e,this.initTable()},searchClick:function(){this.isSearch=!this.isSearch}}}},b98a:function(e,t,a){"use strict";a.r(t);a("cca6"),a("96cf");var n=a("1da1"),r=a("10bd"),i={mixins:[a("1a86").a],data:function(){return{total:null,queryInfo:{name:"",code:"",pageNo:1,pageSize:10},editform:{value:"",desc:""},dialogFormVisible:!1,tableData:[]}},mounted:function(){this.initTable()},methods:{editClick:function(e){var t=Object.assign(e,{});this.editform=t,this.dialogFormVisible=!0},confirmEdit:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(r.lb)(e.editform);case 2:if(200!=(a=t.sent).status){t.next=10;break}return e.dialogFormVisible=!1,t.next=7,e.initTable();case 7:e.$message.success("修改成功"),t.next=11;break;case 10:e.$message.warning(a.message);case 11:case"end":return t.stop()}}),t)})))()},onSubmit:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.initTable();case 1:case"end":return t.stop()}}),t)})))()},initTable:function(){var e=this;return Object(n.a)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(r.D)(e.queryInfo);case 2:a=t.sent,e.tableData=a.result.data,e.total=a.result.pagination.total;case 5:case"end":return t.stop()}}),t)})))()}}},o=(a("0546"),a("2877")),l=Object(o.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"takeDelivery",staticStyle:{padding:"20px"}},[a("div",{staticClass:"selectConditions"},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:e.queryInfo}},[a("el-form-item",{attrs:{label:"NAME"}},[a("el-input",{attrs:{placeholder:"name"},model:{value:e.queryInfo.name,callback:function(t){e.$set(e.queryInfo,"name",t)},expression:"queryInfo.name"}})],1),a("el-form-item",{attrs:{label:"CODE"}},[a("el-input",{attrs:{placeholder:"code"},model:{value:e.queryInfo.code,callback:function(t){e.$set(e.queryInfo,"code",t)},expression:"queryInfo.code"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.onSubmit}},[e._v("查询")])],1)],1)],1),a("div",{staticClass:"bg-fff"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,stripe:"",border:""}},[a("el-table-column",{attrs:{label:"操作",width:"120",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("span",{staticClass:"text-color cursor",on:{click:function(t){return e.editClick(n)}}},[e._v(" 编辑 ")])]}}])}),a("el-table-column",{attrs:{label:"name",align:"center",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.name))]}}])}),a("el-table-column",{attrs:{label:"code",width:"300",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.code))]}}])}),a("el-table-column",{attrs:{label:"value",width:"300",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.value))]}}])}),a("el-table-column",{attrs:{label:"desc",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.desc))]}}])})],1),a("div",{staticClass:"m-y-1"},[a("el-pagination",{attrs:{background:"","current-page":e.queryInfo.pageNo,"page-size":e.queryInfo.pageSize,"page-sizes":[10,20,30,50],layout:" prev, pager, next,total, sizes, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:currentPage":function(t){return e.$set(e.queryInfo,"pageNo",t)},"update:current-page":function(t){return e.$set(e.queryInfo,"pageNo",t)}}})],1)],1),a("el-dialog",{attrs:{title:"编辑",visible:e.dialogFormVisible},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[a("el-form",{attrs:{model:e.editform,"label-width":"100px"}},[a("el-form-item",{staticClass:"m-top-2",attrs:{label:"value"}},[a("el-input",{attrs:{autocomplete:"off"},model:{value:e.editform.value,callback:function(t){e.$set(e.editform,"value",t)},expression:"editform.value"}})],1),a("el-form-item",{staticClass:"m-top-2",attrs:{label:"desc"}},[a("el-input",{attrs:{autocomplete:"off"},model:{value:e.editform.desc,callback:function(t){e.$set(e.editform,"desc",t)},expression:"editform.desc"}})],1)],1),a("div",{staticClass:"dialog-footer d-flex j-fe",attrs:{slot:"footer"},slot:"footer"},[a("FeesButton",{attrs:{text:"取 消",icon:"el-icon-circle-close"},on:{buttonClick:function(t){e.dialogFormVisible=!e.dialogFormVisible}}}),a("FeesButton",{attrs:{icon:"el-icon-circle-check",text:"确 定"},on:{buttonClick:e.confirmEdit}})],1)],1)],1)}),[],!1,null,"641a3a9d",null);t.default=l.exports},e7e5:function(e,t,a){}}]);