"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[2033],{2033:function(t,e,r){r.r(e),r.d(e,{default:function(){return h}});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-box"},[e("search-bar",{ref:"searchBarForm",attrs:{formConfigs:t.formConfig},on:{headBtnClick:t.buttonClick,"select-changed":t.selectChanged}}),e("base-table",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,"table-props":t.tableProps,"table-data":t.tableData,"max-height":t.tableH}}),e("pagination",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,total:t.total},on:{"update:page":function(e){return t.$set(t.listQuery,"current",e)},"update:limit":function(e){return t.$set(t.listQuery,"size",e)},pagination:t.getList}})],1)},n=[],i=r(475),o=r(4770),u=r(910),l=r(381),s=r.n(l);const c=[{prop:"type",label:"类型",minWidth:120,filter:(0,i.fW)("materialVoList")},{prop:"line",label:"产线",minWidth:120},{prop:"sidelibraryName",label:"所属线边库",minWidth:120},{prop:"materialName",label:"耗材名称",minWidth:150},{prop:"spec",label:"规格",minWidth:150},{prop:"batchCode",label:"批次编码",minWidth:140},{prop:"num",label:"数量",minWidth:100},{prop:"unit",label:"单位",minWidth:100},{prop:"supplier",label:"供应商",minWidth:140},{prop:"recipient",label:"领取人",minWidth:140},{prop:"creatorName",label:"登记人",minWidth:140},{prop:"createTime",label:"登记时间",filter:i.g6,minWidth:160},{prop:"remark",label:"备注",minWidth:150}];var d={name:"InAndOutRecords",data(){return{activeName:"stock",formConfig:[{type:"datePicker",label:"登记时间",dateType:"datetimerange",format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-ddTHH:mm:ss",rangeSeparator:"-",startPlaceholder:"开始时间",endPlaceholder:"结束时间",param:"timeVal",defaultSelect:[],width:350},{type:"select",label:"类型",selectOptions:JSON.parse(localStorage.getItem("publicList")).materialVoList,labelField:"dataName",valueField:"dataCode",param:"type",defaultSelect:"",width:100},{type:"select",label:"产线",selectOptions:JSON.parse(localStorage.getItem("publicList")).proLineVoList,labelField:"dataName",valueField:"dataName",onchange:!0,param:"line",defaultSelect:"",width:100},{type:"select",label:"线边库名称",selectOptions:[],param:"sidelibraryName",labelField:"name",valueField:"name",defaultSelect:"",width:180},{type:"select",label:"耗材名称",selectOptions:[],param:"materialName",labelField:"name",valueField:"name",defaultSelect:"",width:180},{type:"button",btnName:"查询",name:"search",color:"primary"},{type:"button",btnName:"重置",name:"reset"}],tableProps:c,tableData:[],tableH:(0,i.NC)(275),total:0,listQuery:{current:1,size:20}}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,i.NC)(275)})),this.formConfig[0].defaultSelect=[s()().format("yyyy-MM-DD")+"T00:00:00",s()().format("yyyy-MM-DD")+"T23:59:59"],this.listQuery.startTime=s()().format("yyyy-MM-DD")+"T00:00:00",this.listQuery.endTime=s()().format("yyyy-MM-DD")+"T23:59:59",this.getMaterialList(),this.getList()},methods:{getList(){(0,o.jp)({...this.listQuery}).then((t=>{0===t.code&&(this.total=t.data.total,this.tableData=t.data.records)}))},selectChanged(t){if(t.value){let e=null,r=JSON.parse(localStorage.getItem("publicList")).proLineVoList;r&&r.map((r=>{r.dataName===t.value&&(e=r.dataCode)})),(0,u.A0)({id:e}).then((t=>{0===t.code&&(this.formConfig[0].defaultSelect=this.$refs.searchBarForm.formInline.timeVal,this.formConfig[3].selectOptions=t.data,this.formConfig[3].defaultSelect=null)}))}},getMaterialList(){(0,u._1)().then((t=>{0===t.code&&(this.formConfig[4].selectOptions=t.data)}))},buttonClick(t){"search"===t.btnName?(this.listQuery.startTime=t.timeVal?t.timeVal[0]:"",this.listQuery.endTime=t.timeVal?t.timeVal[1]:"",this.listQuery.type=t.type,this.listQuery.line=t.line,this.listQuery.sidelibraryName=t.sidelibraryName,this.listQuery.materialName=t.materialName,this.listQuery.current=1,this.getList()):"reset"===t.btnName&&(this.formConfig[0].defaultSelect=[],this.$refs.searchBarForm.resetForm(),this.listQuery.startTime="",this.listQuery.endTime="",this.listQuery.type="",this.listQuery.line="",this.listQuery.sidelibraryName="",this.listQuery.materialName="",this.getList())}}},p=d,m=r(1001),f=(0,m.Z)(p,a,n,!1,null,null,null),h=f.exports},910:function(t,e,r){r.d(e,{$0:function(){return S},A0:function(){return Q},D0:function(){return o},ER:function(){return k},Hg:function(){return z},J_:function(){return P},Kl:function(){return L},ME:function(){return c},Or:function(){return g},P4:function(){return s},Py:function(){return d},QL:function(){return w},Qj:function(){return M},Sc:function(){return h},W0:function(){return A},WZ:function(){return f},Wj:function(){return l},Zs:function(){return n},_:function(){return F},_1:function(){return y},a:function(){return _},ag:function(){return W},b8:function(){return b},dN:function(){return p},fZ:function(){return m},gz:function(){return Z},jF:function(){return i},kB:function(){return V},m3:function(){return H},oW:function(){return T},qT:function(){return C},sU:function(){return u},sy:function(){return D},tb:function(){return N},wy:function(){return O},xf:function(){return v},yk:function(){return q}});var a=r(8859);function n(t){return(0,a.Z)({url:"/basic/account/page",method:"post",data:t})}function i(t){return(0,a.Z)({url:"/basic/account/add",method:"post",data:t})}function o(t){return(0,a.Z)({url:"/basic/account/get",method:"post",data:t})}function u(t){return(0,a.Z)({url:"/basic/account/update",method:"post",data:t})}function l(t){return(0,a.Z)({url:"/basic/sparePartsConfiguration/page",method:"post",data:t})}function s(t){return(0,a.Z)({url:"/basic/sparePartsConfiguration/add",method:"post",data:t})}function c(t){return(0,a.Z)({url:"/basic/sparePartsConfiguration/get",method:"post",data:t})}function d(t){return(0,a.Z)({url:"/basic/sparePartsConfiguration/update",method:"post",data:t})}function p(t){return(0,a.Z)({url:"/basic/sparePartsConfiguration/getNameList",method:"post",data:t})}function m(t){return(0,a.Z)({url:"/basic/sparePartsConfiguration/getModelList",method:"post",data:t})}function f(t){return(0,a.Z)({url:"/basic/consumableConfiguration/page",method:"post",data:t})}function h(t){return(0,a.Z)({url:"/basic/consumableConfiguration/add",method:"post",data:t})}function b(t){return(0,a.Z)({url:"/basic/consumableConfiguration/get",method:"post",data:t})}function g(t){return(0,a.Z)({url:"/basic/consumableConfiguration/update",method:"post",data:t})}function y(t){return(0,a.Z)({url:"/basic/consumableConfiguration/materialAndUnit",method:"post",data:t})}function Z(t){return(0,a.Z)({url:"/basic/consumableConfiguration/specList",method:"post",data:t})}function C(t){return(0,a.Z)({url:"/basic/sideLibraryConfiguration/page",method:"post",data:t})}function M(t){return(0,a.Z)({url:"/basic/sideLibraryConfiguration/add",method:"post",data:t})}function N(t){return(0,a.Z)({url:"/basic/sideLibraryConfiguration/get",method:"post",data:t})}function L(t){return(0,a.Z)({url:"/basic/sideLibraryConfiguration/update",method:"post",data:t})}function Q(t){return(0,a.Z)({url:"/basic/sideLibraryConfiguration/list",method:"post",data:t})}function S(t){return(0,a.Z)({url:"/basic/equipmentConfiguration/page",method:"post",data:t})}function W(t){return(0,a.Z)({url:"/basic/equipmentConfiguration/add",method:"post",data:t})}function v(t){return(0,a.Z)({url:"/basic/equipmentConfiguration/get",method:"post",data:t})}function T(t){return(0,a.Z)({url:"/basic/equipmentConfiguration/update",method:"post",data:t})}function F(t){return(0,a.Z)({url:"/basic/equipmentConfiguration/getUnitList",method:"post",formState:!0,data:t})}function k(t){return(0,a.Z)({url:"/basic/equipmentConfiguration/getEqCode",method:"post",data:t})}function P(t){return(0,a.Z)({url:"/report/report-sheet-category/list",method:"post",data:t})}function V(t){return(0,a.Z)({url:"/report/report-sheet/page",method:"post",data:t})}function D(t){return(0,a.Z)({url:"/report/report-sheet/update",method:"post",data:t})}function O(t){return(0,a.Z)({url:"/report/report-sheet/delete",method:"post",data:t})}function w(t){return(0,a.Z)({url:"/report/report-sheet/get",method:"post",data:t})}function q(t){return(0,a.Z)({url:"/report/report-sheet-category/page",method:"post",data:t})}function H(t){return(0,a.Z)({url:"/report/report-sheet-category/add",method:"post",data:t})}function _(t){return(0,a.Z)({url:"/report/report-sheet-category/update",method:"post",data:t})}function z(t){return(0,a.Z)({url:"/report/report-sheet-category/get",method:"post",data:t})}function A(t){return(0,a.Z)({url:"/report/report-sheet-category/delete",method:"post",data:t})}},4770:function(t,e,r){r.d(e,{Gn:function(){return c},MX:function(){return i},VJ:function(){return s},jp:function(){return o},nK:function(){return f},oR:function(){return p},oz:function(){return m},p0:function(){return n},ql:function(){return d},qw:function(){return l},vN:function(){return u}});var a=r(8859);function n(t){return(0,a.Z)({url:"/material/MaterialManage/selectAll",method:"post",data:t})}function i(t){return(0,a.Z)({url:"/material/MaterialManage/detail",method:"post",data:t})}function o(t){return(0,a.Z)({url:"/material/OutInRecord/record",method:"post",data:t})}function u(t){return(0,a.Z)({url:"/material/MaterialManage/export",method:"post",responseType:"blob",data:t,timeout:6e4})}function l(t){return(0,a.Z)({url:"/material/MaterialManage/updateGet",method:"post",data:t})}function s(t){return(0,a.Z)({url:"/material/MaterialManage/update",method:"post",data:t})}function c(t){return(0,a.Z)({url:"/material/MaterialManage/insert",method:"post",data:t})}function d(t){return(0,a.Z)({url:"/material/MaterialManage/delete",method:"post",data:t})}function p(t){return(0,a.Z)({url:"/material/MaterialManage/SetAlarmValueGet",method:"post",data:t})}function m(t){return(0,a.Z)({url:"/material/MaterialManage/SetAlarmValue",method:"post",data:t})}function f(t){return(0,a.Z)({url:"/material/MaterialManage/onlineMaterialTrackSelect",method:"post",data:t})}}}]);