1 line
7.4 KiB
JavaScript
1 line
7.4 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-42a83818","chunk-2d0b59c3"],{"0585":function(t,e,n){"use strict";n.r(e);var a=n("1a41"),r={name:"historyData",data:function(){return{projectSn:"",options:[],time:[],formInline:{endTime:"",startTime:"",devSn:""},tableData:[],pageNo:1,pageSize:10,total:0}},created:function(){this.projectSn=this.$store.state.projectSn,this.getDevListData(),this.onSubmit()},methods:{exportFn:function(){window.location.href=this.$http.defaults.baseURL+"xmgl/standardCurrentData/exportExcelStandardCurrentData?devSn="+this.formInline.devSn+"&projectSn="+this.projectSn+"&startTime="+this.formInline.startTime+"&endTime="+this.formInline.endTime},getDevListData:function(){var t=this,e={projectSn:this.projectSn};Object(a.v)(e).then((function(e){200==e.code&&(t.options=e.result)}))},onSubmit:function(){var t=this;this.time&&0!=this.time.length?(this.formInline.startTime=this.time[0],this.formInline.endTime=this.time[1]):(this.formInline.endTime="",this.formInline.startTime="");var e=this.formInline;e.projectSn=this.projectSn,e.pageNo=this.pageNo,e.pageSize=this.pageSize,Object(a.p)(e).then((function(e){200==e.code&&(t.total=e.result.total,t.tableData=e.result.records)}))},handleSizeChange:function(t){this.pageSize=t,this.onSubmit()},handleCurrentChange:function(t){this.pageNo=t,this.onSubmit()}}},i=n("2877"),o=Object(i.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fullHeight"},[n("div",{staticClass:"searchBox whiteBlock"},[n("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:t.formInline,size:"medium"}},[n("el-form-item",{attrs:{label:t.$t("message.deviceManage.date")}},[n("el-date-picker",{attrs:{type:"datetimerange","range-separator":t.$t("message.deviceManage.to"),"start-placeholder":t.$t("message.deviceManage.startDate"),"value-format":"yyyy-MM-dd HH:mm:ss","end-placeholder":t.$t("message.deviceManage.endDate")},model:{value:t.time,callback:function(e){t.time=e},expression:"time"}})],1),n("el-form-item",{attrs:{label:t.$t("message.deviceManage.facility")}},[n("el-select",{attrs:{placeholder:t.$t("message.deviceManage.placeholder_select")+t.$t("message.deviceManage.facility"),size:"small"},model:{value:t.formInline.devSn,callback:function(e){t.$set(t.formInline,"devSn",e)},expression:"formInline.devSn"}},[n("el-option",{attrs:{label:t.$t("message.deviceManage.all"),value:""}}),t._l(t.options,(function(e){return t.options.length>0?n("el-option",{key:e.value,attrs:{label:e.laboratoryName,value:e.devSn}}):t._e()}))],2)],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",plain:""},on:{click:t.onSubmit}},[t._v(t._s(t.$t("message.deviceManage.query")))]),n("el-button",{attrs:{type:"primary"},on:{click:t.exportFn}},[t._v(" "+t._s(t.$t("message.projectInfo.export"))+" ")])],1)],1)],1),n("div",{staticClass:"table_wrap whiteBlock"},[n("el-table",{staticClass:"tables",attrs:{data:t.tableData}},[n("el-table-column",{attrs:{prop:"laboratoryName",label:t.$t("message.deviceManage.devName")}}),n("el-table-column",{attrs:{prop:"temperature",label:t.$t("message.projectInfo.temperatureUnit")}}),n("el-table-column",{attrs:{prop:"humidity",label:t.$t("message.projectInfo.humidityUnit")}}),n("el-table-column",{attrs:{prop:"receiveTime",label:t.$t("message.deviceManage.uploadTime")}})],1),n("el-pagination",{staticClass:"pagerBox",attrs:{"current-page":t.pageNo,"page-sizes":t.$store.state.PAGESIZRS,"page-size":t.pageSize,layout:"total, sizes, prev, pager, next",total:Number(t.total),background:""},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)])}),[],!1,null,"72189ede",null);e.default=o.exports},"1a41":function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"k",(function(){return i})),n.d(e,"g",(function(){return o})),n.d(e,"v",(function(){return c})),n.d(e,"d",(function(){return u})),n.d(e,"l",(function(){return l})),n.d(e,"h",(function(){return s})),n.d(e,"w",(function(){return d})),n.d(e,"f",(function(){return m})),n.d(e,"n",(function(){return f})),n.d(e,"j",(function(){return b})),n.d(e,"y",(function(){return g})),n.d(e,"e",(function(){return p})),n.d(e,"m",(function(){return h})),n.d(e,"i",(function(){return S})),n.d(e,"x",(function(){return j})),n.d(e,"z",(function(){return v})),n.d(e,"o",(function(){return x})),n.d(e,"C",(function(){return O})),n.d(e,"B",(function(){return y})),n.d(e,"s",(function(){return D})),n.d(e,"p",(function(){return C})),n.d(e,"H",(function(){return I})),n.d(e,"F",(function(){return T})),n.d(e,"I",(function(){return $})),n.d(e,"G",(function(){return w})),n.d(e,"D",(function(){return k})),n.d(e,"t",(function(){return z})),n.d(e,"E",(function(){return L})),n.d(e,"q",(function(){return M})),n.d(e,"a",(function(){return R})),n.d(e,"b",(function(){return A})),n.d(e,"A",(function(){return B})),n.d(e,"u",(function(){return N})),n.d(e,"r",(function(){return _}));var a=n("22b6"),r=function(t){return Object(a.b)("xmgl/standardDev/add",t)},i=function(t){return Object(a.b)("xmgl/standardDev/edit",t)},o=function(t){return Object(a.b)("xmgl/standardDev/delete",t)},c=function(t){return Object(a.b)("xmgl/standardDev/list",t,"aa")},u=function(t){return Object(a.b)("xmgl/standardLocation/add",t)},l=function(t){return Object(a.b)("xmgl/standardLocation/edit",t)},s=function(t){return Object(a.b)("xmgl/standardLocation/delete",t)},d=function(t){return Object(a.b)("xmgl/standardLocation/list",t)},m=function(t){return Object(a.b)("xmgl/standardSampleType/add",t)},f=function(t){return Object(a.b)("xmgl/standardSampleType/edit",t)},b=function(t){return Object(a.b)("xmgl/standardSampleType/delete",t)},g=function(t){return Object(a.b)("xmgl/standardSampleType/list",t)},p=function(t){return Object(a.b)("xmgl/standardSampleRecord/add",t)},h=function(t){return Object(a.b)("xmgl/standardSampleRecord/edit",t)},S=function(t){return Object(a.b)("xmgl/standardSampleRecord/delete",t)},j=function(t){return Object(a.b)("xmgl/standardSampleRecord/list",t)},v=function(t){return Object(a.b)("xmgl/standardWarning/selelctDevStandardWarning",t)},x=function(t){return Object(a.b)("xmgl/standardWarning/updateStandardWarning",t)},O=function(t){return Object(a.b)("xmgl/standardCurrentData/selectNewCurrentData",t)},y=function(t){return Object(a.b)("xmgl/standardCurrentData/selectDayCurrentDataList",t)},D=function(t){return Object(a.b)("xmgl/standardAlarm/getStandardAlarmStatistics",t)},C=function(t){return Object(a.b)("xmgl/standardCurrentData/list",t)},I=function(t){return Object(a.b)("xmgl/standardCurrentData/selectStandardCurrentDataList",t)},T=function(t){return Object(a.b)("xmgl/standardAlarm/selectStandardAlarmListByTime",t)},$=function(t){return Object(a.b)("xmgl/standardDev/selectStandardDevStatisticsBySn",t)},w=function(t){return Object(a.b)("xmgl/standardCurrentData/selectStandardAnalysisReport",t)},k=function(t){return Object(a.b)("xmgl/standardSampleRecord/selectSampleAnalysisReport",t)},z=function(t){return Object(a.b)("xmgl/standardDev/getStandardDevStatistics",t)},L=function(t){return Object(a.b)("xmgl/standardAlarm/selectStandardAlarmByMonthList",t)},M=function(t){return Object(a.a)("xmgl/materialPoundBill/getRepertory",t)},R=function(t){return Object(a.a)("xmgl/materialPurchaseOrder/lastTwentyList",t)},A=function(t){return Object(a.a)("xmgl/materialPurchaseWayBill/lastTwentyList",t)},B=function(t){return Object(a.b)("xmgl/procurementContractInfo/selectProcurementContractPage",t)},N=function(t){return Object(a.a)("/xmgl/materialDetails/sumConsumeList",t)},_=function(t){return Object(a.a)("/xmgl/materialDetails/passConsumeRatio",t)}}}]); |