"use strict";(self["webpackChunkerp"]=self["webpackChunkerp"]||[]).push([[688],{4702:function(e,t,a){a.r(t),a.d(t,{default:function(){return p}});var r=function(){var e=this,t=e._self._c;return t("div",[t("el-card",{attrs:{"body-style":{padding:"20px 20px 0 20px"}}},[t("el-form",{ref:"form",attrs:{inline:!0,model:e.form}},[t("el-form-item",{attrs:{label:"查询类别："}},[t("el-select",{attrs:{placeholder:"全部"},model:{value:e.form.targetField,callback:function(t){e.$set(e.form,"targetField",t)},expression:"form.targetField"}},e._l(e.options,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),t("el-form-item",{attrs:{label:"操作用户"}},[t("el-select",{attrs:{placeholder:"输入操作用户"},model:{value:e.form.userId,callback:function(t){e.$set(e.form,"userId",t)},expression:"form.userId"}},e._l(e.options1,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),t("el-form-item",{attrs:{label:"操作时间："}},[t("el-date-picker",{attrs:{type:"datetimerange","range-separator":"-","start-placeholder":"起","end-placeholder":"止","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.value1,callback:function(t){e.value1=t},expression:"value1"}})],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.query(1)}}},[e._v("查询")])],1)],1)],1),t("el-card",{staticStyle:{"margin-top":"10px"}},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData,border:""}},[t("el-table-column",{attrs:{prop:"id",label:"序号",width:"70"}}),t("el-table-column",{attrs:{prop:"created_at",label:"时间",width:"200"}}),t("el-table-column",{attrs:{prop:"target_field",label:"类别",width:"100"}}),t("el-table-column",{attrs:{prop:"before_update",label:"操作前",resizable:e.ture}}),t("el-table-column",{attrs:{prop:"after_update",label:"操作后",resizable:e.ture}}),t("el-table-column",{attrs:{prop:"user.name",label:"操作人",width:"100"}})],1),t("div",{staticClass:"block"},[t("el-pagination",{attrs:{"current-page":e.current_page,"page-sizes":[15,50,100],"page-size":e.per_page,layout:"total, sizes, prev, pager, next, jumper",total:e.Paginationdata.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)],1)},l=[],n=a(2900),i=a(6791),u={data(){return{options:[{value:"cost",label:"成本"},{value:"stock",label:"库存"},{value:"inventory",label:"库存盘点"},{value:"status",label:"状态"},{value:"set",label:"设置"}],options1:[],form:{targetField:"",userId:""},value1:"",loading:!0,tableData:[],Paginationdata:{},current_page:1,per_page:15,moudule:"goods"}},methods:{getList(){let e={userId:this.form.userId,target_field:this.form.targetField,moudule:this.moudule,target_id:this.$route.query.id,startTime:this.value1[0],endTime:this.value1[1],page:this.current_page,per_page:this.per_page};(0,i.m)(e).then((e=>{this.tableData=e.data.data,this.Paginationdata=e.data.meta})),this.loading=!1},handleSizeChange(e){this.per_page=e,this.query(1)},handleCurrentChange(e){this.current_page=e,this.query(this.current_page)},getUser(){(0,n.Lh)().then((e=>{this.options1=e.data.data}))},query(e){let t={userId:this.form.userId,target_field:this.form.targetField,page:e,per_page:this.per_page,moudule:this.moudule,target_id:this.$route.query.id,startTime:this.value1[0],endTime:this.value1[1]};const a=r(t);function r(e){const t={};for(const a in e)0!==e[a]&&!e[a]||""===e[a].toString().replace(/(^\s*)|(\s*$)/g,"")||(t[a]=e[a]);return t}(0,i.m)(a).then((e=>{this.tableData=e.data.data,this.Paginationdata=e.data.meta}))}},mounted(){this.getList(),this.getUser()}},o=u,s=a(1001),d=(0,s.Z)(o,r,l,!1,null,"891ad2ec",null),p=d.exports},6791:function(e,t,a){a.d(t,{m:function(){return l}});var r=a(8430);function l(e){return(0,r.Z)({url:"/api/logs",method:"get",params:e})}},2900:function(e,t,a){a.d(t,{A0:function(){return d},AX:function(){return o},Lh:function(){return n},RF:function(){return i},Uy:function(){return l},Vb:function(){return p},f7:function(){return u},nO:function(){return s}});var r=a(8430);function l(){return(0,r.Z)({url:"/api/roles",method:"get"})}function n(e){return(0,r.Z)({url:"/api/users",method:"get",params:e})}function i(e){return(0,r.Z)({url:"/api/users",method:"post",data:e})}function u(e){return(0,r.Z)({url:`/api/users/${e}`,method:"get"})}function o(e,t){return(0,r.Z)({url:`/api/users/${e}`,method:"patch",data:t})}function s(e){return(0,r.Z)({url:"/api/website_message",method:"get",params:e})}function d(e,t){return(0,r.Z)({url:`/api/website_message/${e}`,method:"patch",data:t})}function p(e){return(0,r.Z)({url:"/api/website_message/batchRead",method:"post",data:e})}}}]);
//# sourceMappingURL=688.1ffe9e5d.js.map