1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-34e06bc0"],{"04e8":function(t,e,n){},"27c7":function(t,e,n){"use strict";n("04e8")},"2dfc":function(t,e,n){"use strict";n.d(e,"e",(function(){return a})),n.d(e,"d",(function(){return o})),n.d(e,"a",(function(){return u})),n.d(e,"f",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return i}));var r=n("b775");function a(t){return Object(r["a"])({url:"/inventory/detail/list",method:"get",params:t})}function o(t){return Object(r["a"])({url:"/inventory/detail/"+t,method:"get"})}function u(t){return Object(r["a"])({url:"/inventory/detail",method:"post",data:t})}function s(t){return Object(r["a"])({url:"/inventory/detail",method:"put",data:t})}function l(t){return Object(r["a"])({url:"/inventory/detail/"+t,method:"delete"})}function i(t){return Object(r["a"])({url:"/inventory/inventory/getDepAssetLossTb",method:"get",params:t})}},"4f58":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:"app-container"},[n("el-form",{ref:"queryForm",staticClass:"queryForm",attrs:{model:t.queryParams,size:"small",inline:!0,"label-width":"68px"}},[n("el-form-item",{attrs:{label:"盘点部门",prop:"inventoryDepartment"}},[n("treeselect",{attrs:{options:t.deptOptions,placeholder:"选择盘点部门"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onQueryLoss(e)}},model:{value:t.queryParams.deptId,callback:function(e){t.$set(t.queryParams,"deptId",e)},expression:"queryParams.deptId"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:t.onQueryLoss}},[t._v("搜索")])],1)],1),n("el-row",{staticClass:"mb8",attrs:{gutter:10}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["inventory:inventory:export"],expression:"['inventory:inventory:export']"}],attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:t.onLossExport}},[t._v("导出")])],1),n("el-table",{attrs:{data:t.lossList}},[n("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("el-table",{ref:"table",attrs:{data:t.row.compareResultList,"header-cell-style":{background:"#dcdfe6"}}},[n("el-table-column",{attrs:{prop:"assetName",label:"资产名称"}}),n("el-table-column",{attrs:{prop:"location",label:"资产位置"}}),n("el-table-column",{attrs:{prop:"category",label:"类别"}}),n("el-table-column",{attrs:{prop:"nowQuantity",label:"账面数量变化"}}),n("el-table-column",{attrs:{prop:"invQuantity",label:"实点数量变化"}}),n("el-table-column",{attrs:{prop:"lossQuantity",label:"损耗数量变化"}}),n("el-table-column",{attrs:{prop:"units",label:"计量单位"}}),n("el-table-column",{attrs:{prop:"lossVal",label:"损耗值变化"}})],1)]}}])}),n("el-table-column",{attrs:{prop:"deptName",label:"盘点部门"}}),n("el-table-column",{attrs:{prop:"lastSecondDate",label:"最后第二次盘点日期"}}),n("el-table-column",{attrs:{prop:"lastFirstDate",label:"最后盘点日期"}})],1)],1)},a=[],o=n("c0c7"),u=n("2dfc"),s=n("ca17"),l=n.n(s),i=(n("542c"),{components:{Treeselect:l.a},data:function(){return{total:0,lossList:[],deptOptions:[],queryParams:{deptId:null}}},created:function(){this.getDeptTree()},methods:{getDeptTree:function(){var t=this;Object(o["d"])().then((function(e){t.deptOptions=e.data,t.queryParams.deptId=t.deptOptions[0].id,t.onQueryLoss()}))},onQueryLoss:function(){var t=this;null!==this.queryParams.deptId?Object(u["c"])(this.queryParams).then((function(e){t.lossList=e.data})):this.$modal.msgWarning("部门不能为空")},onLossExport:function(){if(null!==this.queryParams.deptId){var t=this.queryParams.deptId;this.download("inventory/inventory/exportDepAssetLossTb/"+t,{},"资产报表_".concat((new Date).getTime(),".xlsx")),this.openExport=!1}else this.$modal.msgWarning("部门不能为空")}}}),c=i,d=(n("27c7"),n("2877")),p=Object(d["a"])(c,r,a,!1,null,"1a0eb2af",null);e["default"]=p.exports},c0c7:function(t,e,n){"use strict";n.d(e,"k",(function(){return o})),n.d(e,"i",(function(){return u})),n.d(e,"f",(function(){return s})),n.d(e,"a",(function(){return l})),n.d(e,"m",(function(){return i})),n.d(e,"c",(function(){return c})),n.d(e,"j",(function(){return d})),n.d(e,"b",(function(){return p})),n.d(e,"g",(function(){return m})),n.d(e,"n",(function(){return f})),n.d(e,"o",(function(){return b})),n.d(e,"p",(function(){return y})),n.d(e,"e",(function(){return h})),n.d(e,"l",(function(){return v})),n.d(e,"d",(function(){return O})),n.d(e,"h",(function(){return j}));var r=n("b775"),a=n("c38a");function o(t){return Object(r["a"])({url:"/system/user/search",method:"post",data:t})}function u(t){return Object(r["a"])({url:"/system/user/list",method:"get",params:t})}function s(t){return Object(r["a"])({url:"/system/user/"+Object(a["e"])(t),method:"get"})}function l(t){return Object(r["a"])({url:"/system/user",method:"post",data:t})}function i(t){return Object(r["a"])({url:"/system/user",method:"put",data:t})}function c(t){return Object(r["a"])({url:"/system/user/"+t,method:"delete"})}function d(t,e){var n={userId:t,password:e};return Object(r["a"])({url:"/system/user/resetPwd",method:"put",data:n})}function p(t,e){var n={userId:t,status:e};return Object(r["a"])({url:"/system/user/changeStatus",method:"put",data:n})}function m(){return Object(r["a"])({url:"/system/user/profile",method:"get"})}function f(t){return Object(r["a"])({url:"/system/user/profile",method:"put",data:t})}function b(t,e){var n={oldPassword:t,newPassword:e};return Object(r["a"])({url:"/system/user/profile/updatePwd",method:"put",params:n})}function y(t){return Object(r["a"])({url:"/system/user/profile/avatar",method:"post",data:t})}function h(t){return Object(r["a"])({url:"/system/user/authRole/"+t,method:"get"})}function v(t){return Object(r["a"])({url:"/system/user/authRole",method:"put",params:t})}function O(){return Object(r["a"])({url:"/system/user/deptTree",method:"get"})}function j(t){return Object(r["a"])({url:"/system/user/exists/".concat(t),method:"get"})}}}]);
|