(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e6f4b6f4"],{1684:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-container",[a("el-container",[a("el-card",{staticClass:"box-card",staticStyle:{width:"100%"},attrs:{shadow:"never"}},[a("div",{staticClass:"filter-container"},[a("my-search",{ref:"searchBar",attrs:{items:e.items},on:{search:e.fifterForm}})],1),e._v(" "),a("el-row",{staticStyle:{"margin-top":"15px"}},[a("el-col",[a("my-table-v2",{ref:"myTable",attrs:{filter:e.filterFrom,table:e.table}})],1)],1)],1)],1)],1)],1)},n=[],o=a("80cb"),i=a("f6e8"),l=a("433d"),c=a("2c4d");function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,r)}return a}function d(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?u(Object(a),!0).forEach((function(t){p(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function p(e,t,a){return(t=f(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function f(e){var t=m(e,"string");return"symbol"==s(t)?t:t+""}function m(e,t){if("object"!=s(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,t||"default");if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var b={name:"index",components:{MyButton:i["a"],MyTableV2:o["a"]},data:function(){var e=this;return{items:[{type:"cascader",dataIndex:"agencyId",label:"机构",placeholder:"请选择",defaultValue:"",options:[],cascader:[{key:"warehouseId",queryKey:"agencyId"},{key:"goodsTemplateId",queryKey:"agencyId"}],optionsConfig:{url:"/pc/fin/sys/tenant/select/tree_fin_tenant",props:null}},{type:"select",dataIndex:"warehouseId",label:"仓库",placeholder:"请选择",defaultValue:"",options:[],optionsConfig:{label:"warehouseName",value:"id",url:l["a"].apiBaseURL+"/pc/base/warehouse/select/tenant_warehouse"}},{type:"cascader",dataIndex:"categoryId",label:"分类",placeholder:"请选择",defaultValue:"",options:[],optionsConfig:{label:"label",value:"id",url:l["a"].apiBaseURL+"/pc/base/category/select/tree",props:{checkStrictly:!1,emitPath:!1,value:"id"}},cascader:[{key:"goodsTemplateId",queryKey:"categoryId"}]},{type:"select",dataIndex:"goodsTemplateId",label:"物品名称",placeholder:"请输入",defaultValue:"",options:[],cascader:[{key:"categoryId",queryKey:"goodsTemplatesId"}],optionsConfig:{label:"goodsName",value:"id",url:l["a"].apiBaseURL+"/pc/base/goods/template/query/goodsTemplate"}},{type:"select",dataIndex:"costType",label:"类别",placeholder:"请选择",defaultValue:"",options:[{label:"A",value:"1"},{label:"B",value:"2"},{label:"C",value:"3"}]}],treeDataList:[],filterFrom:{warehouseType:0},table:{showIndex:!0,expand:!1,url:l["a"].apiBaseURL+"/pc/fin/warehouse/ledger/getList",tools:{columnsCtrl:{show:!1},generalExport:{show:!1},custom:[{name:"导出",icon:"el-icon-download",click:function(){e.handleExport()}}]},columns:[{title:"机构",field:"agencyName",align:"left",minWidth:130},{title:"仓库",field:"warehouseName",align:"left",minWidth:130},{title:"分类",field:"categoryName",align:"left",minWidth:130},{title:"所属类别",field:"costType",align:"center",width:80},{title:"物品名称",field:"goodsTemplateName",align:"left",minWidth:140},{title:"规格型号",field:"baseGoodsModelsName",align:"left",minWidth:130},{title:"单位",field:"unit",align:"center",width:80},{title:"当前库存",field:"kucun",align:"center"}],paging:{show:!0,page:{small:!1,pageNum:1,pageSize:10,total:0}}}}},created:function(){},methods:{handleExport:function(){var e=this,t=this.$loading({lock:!0,text:"导出中,请稍候...",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"});Object(c["a"])(d({},this.filterFrom)).then((function(a){var r=new Blob([a],{type:"application/vnd.ms-excel"}),n="库存查询.xls";if("download"in document.createElement("a")){var o=document.createElement("a");o.download=n,o.style.display="none",o.href=URL.createObjectURL(r),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}else navigator.msSaveBlob(r,n);e.$message.success("导出成功!"),t.close()})).catch((function(){t.close()}))},search:function(e){void 0!=e?this.$refs.myTable.search({pageNum:e}):this.$refs.myTable.search()},fifterForm:function(e){this.filterFrom=Object.assign(this.filterFrom,e),this.search(1)}}},g=b,y=a("2877"),h=Object(y["a"])(g,r,n,!1,null,"f6a9786c",null);t["default"]=h.exports},"2c4d":function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"d",(function(){return o})),a.d(t,"g",(function(){return i})),a.d(t,"e",(function(){return l})),a.d(t,"f",(function(){return c})),a.d(t,"b",(function(){return s})),a.d(t,"c",(function(){return u}));var r=a("b775");function n(e){return Object(r["a"])({url:"/pc/fin/warehouse/ledger/getListExport",responseType:"blob",method:"post",params:e})}function o(e){return Object(r["a"])({url:"/pc/warehouse/warningConfig/add",method:"post",data:e})}function i(e){return Object(r["a"])({url:"/pc/warehouse/warningConfig/upd",method:"post",data:e})}function l(e){return Object(r["a"])({url:"/pc/warehouse/warningConfig/getById",method:"get",params:e})}function c(e){return Object(r["a"])({url:"/pc/warehouse/warningConfig/del",method:"delete",data:e})}function s(e){return Object(r["a"])({url:"/pc/warehouse/warning/getList",method:"get",params:e})}function u(e){return Object(r["a"])({url:"/pc/warehouse/warning/getWarningTypeNum",method:"get",params:e})}},"433d":function(e,t,a){"use strict";var r=a("c559"),n={ftpUrl:r["a"].ftpUrl,apiBaseURL:r["a"].apiBaseURL};t["a"]=n}}]);
|