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.
crmeb_php/public/system/js/chunk-17b84f7e.4b898a48.js

1 line
5.6 KiB

1 year ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-17b84f7e"],{"8e1d":function(t,e,n){},c8d2:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"container"},[n("el-form",{attrs:{size:"small",inline:"","label-width":"100px"}},[n("el-form-item",{attrs:{label:"文件类型:"}},[n("el-select",{staticClass:"selWidth",attrs:{clearable:"",filterable:"",placeholder:"请选择"},on:{change:function(e){return t.exportFileList(1)}},model:{value:t.tableFrom.type,callback:function(e){t.$set(t.tableFrom,"type",e)},expression:"tableFrom.type"}},t._l(t.fileTypeList,(function(t){return n("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})})),1)],1)],1)],1),t._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"table",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","highlight-current-row":""}},[n("el-table-column",{attrs:{label:"文件名",prop:"name","min-width":"200"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作者名称",prop:"admin_id","min-width":"80"}}),t._v(" "),n("el-table-column",{attrs:{label:"生成时间",prop:"create_time","min-width":"180"}}),t._v(" "),n("el-table-column",{attrs:{label:"类型","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.type))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"状态","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(t._f("exportOrderStatusFilter")(e.row.status)))])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"100",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.status?n("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(n){return t.downLoad(e.row.path)}}},[t._v("下载")]):t._e()]}}])})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[10,20,30],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)])],1)},a=[],i=n("f8b7"),o={name:"FileList",data:function(){return{fileVisible:!1,loading:!1,tableData:{data:[],total:0},tableFrom:{page:1,limit:10,type:""},fileTypeList:[{name:"订单",value:"order"},{name:"流水记录",value:"financial"},{name:"发货单",value:"delivery"},{name:"导入记录",value:"importDelivery"},{name:"账单信息",value:"exportFinancial"},{name:"用户搜索",value:"searchLog"}]}},mounted:function(){this.exportFileList(""),this.getFileType()},methods:{exportFileList:function(t){var e=this;this.loading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(i["f"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.loading=!1})).catch((function(t){e.$message.error(t.message),e.listLoading=!1}))},getFileType:function(){var t=this;Object(i["e"])().then((function(e){t.fileTypeList=e.data}))},downLoad:function(t){window.open(t)},pageChange:function(t){this.tableFrom.page=t,this.exportFileList("")},pageChangeLog:function(t){this.tableFromLog.page=t,this.exportFileList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.exportFileList("")}}},l=o,u=(n("f722"),n("2877")),c=Object(u["a"])(l,r,a,!1,null,"19410706",null);e["default"]=c.exports},f722:function(t,e,n){"use strict";n("8e1d")},f8b7:function(t,e,n){"use strict";n.d(e,"n",(function(){return a})),n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"p",(function(){return l})),n.d(e,"l",(function(){return u})),n.d(e,"m",(function(){return c})),n.d(e,"o",(function(){return s})),n.d(e,"t",(function(){return d})),n.d(e,"i",(function(){return f})),n.d(e,"j",(function(){return g})),n.d(e,"g",(function