1 line
13 KiB
JavaScript
1 line
13 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-837a30c4"],{"135d":function(t,e,n){},"42f7":function(t,e,n){"use strict";n.r(e);var r=n("9e47"),u={data:function(){return{tableData:[],dialogTitle:"",dialogVisible:!1,dialogdata:{eventType:"",detectionDate:"",status:""},rules:{},fileList:[],current:1,size:10,total:0}},created:function(){this.getData()},methods:{getStatus:function(t){return 1===t?"合格":"不合格"},getData:function(){var t=this;Object(r.T)({projectSn:this.$store.state.projectSn,size:this.size,current:this.current}).then((function(e){t.tableData=e.result.records,t.total=e.result.total}))},addForm:function(){this.dialogVisible=!0,this.dialogTitle="新增材料检测报告",this.dialogdata={eventType:"",detectionDate:"",status:""}},editData:function(t){this.dialogVisible=!0,this.dialogTitle="编辑材料检测报告",this.dialogdata=JSON.parse(JSON.stringify(t))},deleteData:function(t){var e=this;this.$confirm("此操作将永久删除, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(r.u)({id:t.id}).then((function(t){e.$message({type:"success",message:"删除成功!"}),e.getData()}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},submitForm:function(){var t=this,e=JSON.parse(JSON.stringify(this.dialogdata));e.projectSn=this.$store.state.projectSn,this.$refs.form.validate((function(n){n&&("新增材料检测报告"==t.dialogTitle?Object(r.o)(e).then((function(e){t.$message.success("新增成功"),t.dialogVisible=!1,t.getData()})):"编辑材料检测报告"==t.dialogTitle&&Object(r.rb)(e).then((function(e){t.$message.success("编辑成功"),t.dialogVisible=!1,t.getData()})))}))},handleSizeChange:function(t){this.size=t,this.getData()},handleCurrentChange:function(t){this.current=t,this.getData()}}},i=(n("62f3"),n("2877")),o=Object(i.a)(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"panoramaPlan"},[n("div",{staticClass:"header-box"},[n("el-button",{attrs:{type:"primary"},on:{click:t.addForm}},[t._v(" 新增 ")])],1),n("div",{staticClass:"table-box"},[n("el-table",{staticClass:"tables",attrs:{data:t.tableData}},[n("el-table-column",{attrs:{prop:"eventType",label:"事件类型",align:"center"}}),n("el-table-column",{attrs:{prop:"detectionDate",label:"检测时间",align:"center"}}),n("el-table-column",{attrs:{prop:"status",label:"检测结果",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(t.getStatus(e.row.status))+" ")]}}])}),n("el-table-column",{attrs:{label:"操作",width:"220"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text",icon:"el-icon-edit-outline"},on:{click:function(n){return t.editData(e.row)}}},[t._v(" 编辑 ")]),n("el-button",{staticClass:"delete-btn",attrs:{type:"text",icon:"el-icon-delete"},on:{click:function(n){return t.deleteData(e.row)}}},[t._v(" 删除 ")])]}}])})],1),n("el-pagination",{staticClass:"pagerBox",attrs:{"current-page":t.current,"page-sizes":t.$store.state.PAGESIZRS,"page-size":t.size,layout:"total, sizes, prev, pager, next",total:Number(t.total),background:""},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1),n("el-dialog",{staticClass:"dialog",attrs:{title:t.dialogTitle,"modal-append-to-body":!1,visible:t.dialogVisible,width:"667px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("div",{staticClass:"dialog-content"},[n("vue-scroll",[n("el-form",{ref:"form",staticClass:"dialogFormBox",attrs:{model:t.dialogdata,rules:t.rules,"label-width":"155px",size:"medium"}},[n("el-form-item",{attrs:{label:"事件类型",prop:"eventType"}},[n("el-input",{attrs:{placeholder:"请输入"},model:{value:t.dialogdata.eventType,callback:function(e){t.$set(t.dialogdata,"eventType",e)},expression:"dialogdata.eventType"}})],1),n("el-form-item",{attrs:{label:"检测结果",prop:"status"}},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:t.dialogdata.status,callback:function(e){t.$set(t.dialogdata,"status",e)},expression:"dialogdata.status"}},[n("el-option",{attrs:{value:1,label:"合格"}}),n("el-option",{attrs:{value:2,label:"不合格"}})],1)],1),n("el-form-item",{attrs:{label:"检测时间",prop:"detectionDate"}},[n("el-date-picker",{attrs:{type:"date",placeholder:"选择日期","value-format":"yyyy-MM-dd"},model:{value:t.dialogdata.detectionDate,callback:function(e){t.$set(t.dialogdata,"detectionDate",e)},expression:"dialogdata.detectionDate"}})],1)],1)],1)],1),n("div",{staticClass:"dialog-btn"},[n("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v(" 确定 ")]),n("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v(" 取消 ")])],1)])],1)}),[],!1,null,"5e67fe4f",null);e.default=o.exports},"62f3":function(t,e,n){"use strict";var r=n("135d");n.n(r).a},"9e47":function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"C",(function(){return i})),n.d(e,"N",(function(){return o})),n.d(e,"L",(function(){return c})),n.d(e,"a",(function(){return a})),n.d(e,"B",(function(){return d})),n.d(e,"M",(function(){return l})),n.d(e,"K",(function(){return s})),n.d(e,"p",(function(){return b})),n.d(e,"q",(function(){return f})),n.d(e,"ob",(function(){return g})),n.d(e,"I",(function(){return m})),n.d(e,"i",(function(){return p})),n.d(e,"Y",(function(){return O})),n.d(e,"y",(function(){return j})),n.d(e,"H",(function(){return x})),n.d(e,"R",(function(){return R})),n.d(e,"ab",(function(){return y})),n.d(e,"k",(function(){return v})),n.d(e,"Z",(function(){return h})),n.d(e,"nb",(function(){return D})),n.d(e,"g",(function(){return S})),n.d(e,"F",(function(){return I})),n.d(e,"w",(function(){return T})),n.d(e,"W",(function(){return P})),n.d(e,"h",(function(){return w})),n.d(e,"G",(function(){return B})),n.d(e,"x",(function(){return C})),n.d(e,"X",(function(){return A})),n.d(e,"d",(function(){return M})),n.d(e,"D",(function(){return k})),n.d(e,"t",(function(){return L})),n.d(e,"O",(function(){return z})),n.d(e,"S",(function(){return F})),n.d(e,"kb",(function(){return $})),n.d(e,"lb",(function(){return q})),n.d(e,"mb",(function(){return _})),n.d(e,"J",(function(){return V})),n.d(e,"f",(function(){return J})),n.d(e,"P",(function(){return Q})),n.d(e,"Q",(function(){return N})),n.d(e,"jb",(function(){return E})),n.d(e,"fb",(function(){return U})),n.d(e,"j",(function(){return H})),n.d(e,"hb",(function(){return W})),n.d(e,"s",(function(){return G})),n.d(e,"c",(function(){return Z})),n.d(e,"db",(function(){return K})),n.d(e,"qb",(function(){return X})),n.d(e,"vb",(function(){return Y})),n.d(e,"U",(function(){return tt})),n.d(e,"E",(function(){return et})),n.d(e,"ib",(function(){return nt})),n.d(e,"gb",(function(){return rt})),n.d(e,"tb",(function(){return ut})),n.d(e,"bb",(function(){return it})),n.d(e,"l",(function(){return ot})),n.d(e,"ub",(function(){return ct})),n.d(e,"z",(function(){return at})),n.d(e,"T",(function(){return dt})),n.d(e,"o",(function(){return lt})),n.d(e,"rb",(function(){return st})),n.d(e,"u",(function(){return bt})),n.d(e,"eb",(function(){return ft})),n.d(e,"n",(function(){return gt})),n.d(e,"wb",(function(){return mt})),n.d(e,"A",(function(){return pt})),n.d(e,"cb",(function(){return Ot})),n.d(e,"m",(function(){return jt})),n.d(e,"pb",(function(){return xt})),n.d(e,"r",(function(){return Rt})),n.d(e,"V",(function(){return yt})),n.d(e,"e",(function(){return vt})),n.d(e,"sb",(function(){return ht})),n.d(e,"v",(function(){return Dt}));var r=n("22b6"),u=function(t){return Object(r.b)("xmgl/dangerTypeRecord/add",t)},i=function(t){return Object(r.b)("xmgl/dangerTypeRecord/edit",t)},o=function(t){return Object(r.b)("xmgl/dangerTypeRecord/selectDangerTypeAndItemList",t)},c=function(t){return Object(r.b)("xmgl/dangerTypeRecord/selectCompanyDangerTypeList",t)},a=function(t){return Object(r.b)("xmgl/dangerItemRecord/add",t)},d=function(t){return Object(r.b)("xmgl/dangerItemRecord/edit",t)},l=function(t){return Object(r.b)("xmgl/dangerItemRecord/list",t)},s=function(t){return Object(r.b)("xmgl/dangerItemRecord/selectCompanyDangerItemRecordList",t)},b=function(t){return Object(r.b)("xmgl/dangerItemRecord/delete",t)},f=function(t){return Object(r.a)("/xmgl/dangerTypeRecord/deleteByDangerTypeId",t)},g=function(t){return Object(r.b)("xmgl/dangerTypeRecord/updateDangerTypeRecordUsable",t)},m=function(t){return Object(r.b)("xmgl/dangerItemRecord/updateDangerItemRecordUsable",t)},p=function(t){return Object(r.b)("xmgl/qualityRegion/add",t)},O=function(t){return Object(r.b)("xmgl/qualityRegion/list",t)},j=function(t){return Object(r.b)("xmgl/qualityRegion/delete",t)},x=function(t){return Object(r.b)("xmgl/qualityRegion/edit",t)},R=function(t){return Object(r.b)("xmgl/qualityInspectionRecord/list",t)},y=function(t){return Object(r.b)("xmgl/projectEnterprise/list",t)},v=function(t){return Object(r.b)("xmgl/qualityInspectionRecord/add",t)},h=function(t){return Object(r.b)("xmgl/routineInspect/list",t)},D=function(t){return Object(r.b)("xmgl/qualityRectifyRecord/selectRectifyRecordList",t)},S=function(t){return Object(r.b)("xmgl/massReboundBuild/add",t)},I=function(t){return Object(r.b)("xmgl/massReboundBuild/edit",t)},T=function(t){return Object(r.b)("xmgl/massReboundBuild/delete",t)},P=function(t){return Object(r.b)("xmgl/massReboundBuild/getBuildFloorList",t)},w=function(t){return Object(r.b)("xmgl/massReboundFloor/add",t)},B=function(t){return Object(r.b)("xmgl/massReboundFloor/edit",t)},C=function(t){return Object(r.b)("xmgl/massReboundFloor/delete",t)},A=function(t){return Object(r.b)("xmgl/massReboundFloor/getMassReboundFloorList",t)},M=function(t){return Object(r.b)("xmgl/electronPourOrder/add",t)},k=function(t){return Object(r.b)("xmgl/electronPourOrder/edit",t)},L=function(t){return Object(r.b)("xmgl/electronPourOrder/delete",t)},z=function(t){return Object(r.b)("xmgl/electronPourOrder/list",t)},F=function(t){return Object(r.b)("xmgl/massReboundSurveyArea/getMassReboundSurveyAreaList",t)},$=function(t){return Object(r.b)("xmgl/massReboundSurveyArea/selectMassReboundSurveyAreaStatistics",t)},q=function(t){return Object(r.b)("xmgl/massReboundSurveyArea/selectProjectListByProvince",t)},_=function(t){return Object(r.b)("xmgl/massReboundSurveyArea/selectProvinceMassReboundSurveyAreaCountList",t)},V=function(t){return Object(r.b)("/xmgl/massReboundPouringOrder/list",t)},J=function(t){return Object(r.b)("/xmgl/massReboundOnDutyRecord/saveOrUpdateRecord",t)},Q=function(t){return Object(r.b)("/xmgl/massReboundHandoverRecord/selectList",t)},N=function(t){return Object(r.b)("/xmgl/massReboundDutyImageRecord/selectList",t)},E=function(t){return Object(r.b)("/xmgl/massReboundPouringOrder/rejectAudit",t)},U=function(t){return Object(r.b)("/xmgl/massReboundPouringOrder/adoptAudit",t)},H=function(t){return Object(r.b)("/xmgl/massReboundHandoverRecord/add",t)},W=function(t){return Object(r.b)("/xmgl/massReboundOnDutyRecord/selectOnDutyRecordByPouringId",t)},G=function(t){return Object(r.b)("/xmgl/massReboundDutyImageRecord/delete",t)},Z=function(t){return Object(r.b)("/xmgl/massReboundDutyImageRecord/add",t)},K=function(t){return Object(r.b)("/xmgl/massReboundSampleStorageRecord/selectList",t)},X=function(t){return Object(r.b)("/xmgl/massReboundSampleStorageRecord/updateInspectionBatch",t)},Y=function(t){return Object(r.b)("/xmgl/massReboundSampleStorageRecord/edit",t)},tt=function(t){return Object(r.b)("/xmgl/massReboundMainMeasureRecord/selectMeasureRecordList",t)},et=function(t){return Object(r.b)("/xmgl/massReboundMainMeasureRecord/edit",t)},nt=function(t){return Object(r.b)("/xmgl/massReboundMainMeasureRecord/queryById",t)},rt=function(t){return Object(r.b)("/xmgl/massReboundPouringOrder/queryById",t)},ut=function(t){return Object(r.b)("/xmgl/massReboundFloor/edit",t)},it=function(t){return Object(r.a)("/xmgl/subdivisionAcceptance/selectPage",t)},ot=function(t){return Object(r.b)("/xmgl/subdivisionAcceptance/addSubdivisionAcceptance",t)},ct=function(t){return Object(r.b)("/xmgl/subdivisionAcceptance/updateSubdivisionAcceptance",t)},at=function(t){return Object(r.a)("/xmgl/subdivisionAcceptance/deleteById",t)},dt=function(t){return Object(r.a)("/xmgl/materialDetectionReport/selectPage",t)},lt=function(t){return Object(r.b)("/xmgl/materialDetectionReport/addMaterialDetectionReport",t)},st=function(t){return Object(r.b)("/xmgl/materialDetectionReport/updateMaterialDetectionReport",t)},bt=function(t){return Object(r.a)("/xmgl/materialDetectionReport/deleteById",t)},ft=function(t){return Object(r.a)("/xmgl/windowDisplay/selectPage",t)},gt=function(t){return Object(r.b)("/xmgl/windowDisplay/addWindowDisplay",t)},mt=function(t){return Object(r.b)("/xmgl/windowDisplay/updateWindowDisplay",t)},pt=function(t){return Object(r.a)("/xmgl/windowDisplay/deleteById",t)},Ot=function(t){return Object(r.a)("/xmgl/subdivisionProject/getParentChildList",t)},jt=function(t){return Object(r.b)("/xmgl/subdivisionProject/addSubdivisionProject",t)},xt=function(t){return Object(r.b)("/xmgl/subdivisionProject/updateSubdivisionProject",t)},Rt=function(t){return Object(r.a)("/xmgl/subdivisionProject/deleteById",t)},yt=function(t){return Object(r.a)("/xmgl/measuredRealQuantity/selectPage",t)},vt=function(t){return Object(r.b)("/xmgl/measuredRealQuantity/addMeasuredRealQuantity",t)},ht=function(t){return Object(r.b)("/xmgl/measuredRealQuantity/updateMeasuredRealQuantity",t)},Dt=function(t){return Object(r.a)("/xmgl/measuredRealQuantity/deleteById",t)}}}]); |