tft-fe/dist/js/2990.145272cf.js
2023-06-30 14:01:06 +08:00

1 line
8.7 KiB
JavaScript

"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[2990],{2990:function(t,e,a){a.r(e),a.d(e,{default:function(){return h}});var r=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=a(475),o=a(4770),u=a(910),l=a(381),s=a.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,a=JSON.parse(localStorage.getItem("publicList")).proLineVoList;a&&a.map((a=>{a.dataName===t.value&&(e=a.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.Sl)().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())}}},m=d,f=a(1001),p=(0,f.Z)(m,r,n,!1,null,null,null),h=p.exports},910:function(t,e,a){a.d(e,{$0:function(){return S},A0:function(){return Q},D0:function(){return o},ER:function(){return P},Kl:function(){return L},ME:function(){return c},Or:function(){return g},P4:function(){return s},Py:function(){return d},Qj:function(){return M},Sc:function(){return h},Sl:function(){return y},WZ:function(){return p},Wj:function(){return l},Zs:function(){return n},_:function(){return F},_1:function(){return C},ag:function(){return W},b8:function(){return b},dN:function(){return m},fZ:function(){return f},jF:function(){return i},oW:function(){return T},qT:function(){return Z},sU:function(){return u},tb:function(){return N},xf:function(){return v}});var r=a(8859);function n(t){return(0,r.Z)({url:"/basic/account/page",method:"post",data:t})}function i(t){return(0,r.Z)({url:"/basic/account/add",method:"post",data:t})}function o(t){return(0,r.Z)({url:"/basic/account/get",method:"post",data:t})}function u(t){return(0,r.Z)({url:"/basic/account/update",method:"post",data:t})}function l(t){return(0,r.Z)({url:"/basic/sparePartsConfiguration/page",method:"post",data:t})}function s(t){return(0,r.Z)({url:"/basic/sparePartsConfiguration/add",method:"post",data:t})}function c(t){return(0,r.Z)({url:"/basic/sparePartsConfiguration/get",method:"post",data:t})}function d(t){return(0,r.Z)({url:"/basic/sparePartsConfiguration/update",method:"post",data:t})}function m(t){return(0,r.Z)({url:"/basic/sparePartsConfiguration/getNameList",method:"post",data:t})}function f(t){return(0,r.Z)({url:"/basic/sparePartsConfiguration/getModelList",method:"post",data:t})}function p(t){return(0,r.Z)({url:"/basic/consumableConfiguration/page",method:"post",data:t})}function h(t){return(0,r.Z)({url:"/basic/consumableConfiguration/add",method:"post",data:t})}function b(t){return(0,r.Z)({url:"/basic/consumableConfiguration/get",method:"post",data:t})}function g(t){return(0,r.Z)({url:"/basic/consumableConfiguration/update",method:"post",data:t})}function y(t){return(0,r.Z)({url:"/basic/consumableConfiguration/getMaterialList",method:"post",data:t})}function C(t){return(0,r.Z)({url:"/basic/consumableConfiguration/materialList",method:"post",data:t})}function Z(t){return(0,r.Z)({url:"/basic/sideLibraryConfiguration/page",method:"post",data:t})}function M(t){return(0,r.Z)({url:"/basic/sideLibraryConfiguration/add",method:"post",data:t})}function N(t){return(0,r.Z)({url:"/basic/sideLibraryConfiguration/get",method:"post",data:t})}function L(t){return(0,r.Z)({url:"/basic/sideLibraryConfiguration/update",method:"post",data:t})}function Q(t){return(0,r.Z)({url:"/basic/sideLibraryConfiguration/list",method:"post",data:t})}function S(t){return(0,r.Z)({url:"/basic/equipmentConfiguration/page",method:"post",data:t})}function W(t){return(0,r.Z)({url:"/basic/equipmentConfiguration/add",method:"post",data:t})}function v(t){return(0,r.Z)({url:"/basic/equipmentConfiguration/get",method:"post",data:t})}function T(t){return(0,r.Z)({url:"/basic/equipmentConfiguration/update",method:"post",data:t})}function F(t){return(0,r.Z)({url:"/basic/equipmentConfiguration/getUnitList",method:"post",formState:!0,data:t})}function P(t){return(0,r.Z)({url:"/basic/equipmentConfiguration/getEqCode",method:"post",data:t})}},4770:function(t,e,a){a.d(e,{Gn:function(){return c},MX:function(){return i},VJ:function(){return s},jp:function(){return o},nK:function(){return p},oR:function(){return m},oz:function(){return f},p0:function(){return n},ql:function(){return d},qw:function(){return l},vN:function(){return u}});var r=a(8859);function n(t){return(0,r.Z)({url:"/material/MaterialManage/selectAll",method:"post",data:t})}function i(t){return(0,r.Z)({url:"/material/MaterialManage/detail",method:"post",data:t})}function o(t){return(0,r.Z)({url:"/material/OutInRecord/record",method:"post",data:t})}function u(t){return(0,r.Z)({url:"/material/MaterialManage/export",method:"post",responseType:"blob",data:t,timeout:6e4})}function l(t){return(0,r.Z)({url:"/material/MaterialManage/updateGet",method:"post",data:t})}function s(t){return(0,r.Z)({url:"/material/MaterialManage/update",method:"post",data:t})}function c(t){return(0,r.Z)({url:"/material/MaterialManage/insert",method:"post",data:t})}function d(t){return(0,r.Z)({url:"/material/MaterialManage/delete",method:"post",data:t})}function m(t){return(0,r.Z)({url:"/material/MaterialManage/SetAlarmValueGet",method:"post",data:t})}function f(t){return(0,r.Z)({url:"/material/MaterialManage/SetAlarmValue",method:"post",data:t})}function p(t){return(0,r.Z)({url:"/material/MaterialManage/onlineMaterialTrackSelect",method:"post",data:t})}}}]);