马宇豪
2022-12-12 c63545c5e3f297a5b9545f0cb2afeaa843ce52cb
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-598e"],{G6aV:function(t,e,r){"use strict";r.r(e);var n=r("cLjf"),a=r.n(n),o=r("hDQ3"),c=r.n(o),i=r("bS4n"),u=r.n(i),s=r("8t5x"),d=(r("jJIE"),r("Na1v"),r("7Qib"),r("8fCU"),r("nK5B")),l={name:"areaForm",components:{AreaEnterprises:r("cjnV").default},data:function(){return{recordTotal:0,pageSize:10,currentPage:1,unitType:null,taskId:null,enterpriseType:null,enterpriseCity:"",enterpriseArea:"",listLoading:!1,tableKey:0,checkData:[]}},created:function(){var t=this;t.getCheckUnitType(),t.taskId&&t.getAreaStatistics()},computed:u()({},Object(s.b)(["userType","name"])),methods:{getCheckUnitType:function(){var t=this;return c()(a.a.mark(function e(){var r,n;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t).listLoading=!0,e.next=4,Object(d.a)();case 4:"200"===(n=e.sent).data.code?r.unitType=n.data.result.checkUnitType:r.$message({type:"warning",message:n.data.message}),r.listLoading=!1;case 7:case"end":return e.stop()}},e,t)}))()},getAreaStatistics:function(){var t=this;return c()(a.a.mark(function e(){var r,n,o;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n={id:(r=t).taskId,enterpriseType:r.enterpriseType,enterpriseCity:r.enterpriseCity,enterpriseArea:r.enterpriseArea,pageIndex:r.currentPage,pageSize:r.pageSize},e.next=4,Object(d.b)(n);case 4:"200"===(o=e.sent).data.code?(r.checkData=o.data.result.records,r.recordTotal=o.data.result.total):r.$message({type:"warning",message:o.data.message});case 6:case"end":return e.stop()}},e,t)}))()},handleSizeChange:function(t){this.pageSize=t,this.currentPage=1,this.getAreaStatistics()},handleCurrentChange:function(t){this.currentPage=t,this.getAreaStatistics()},toEnterprises:function(t){this.$refs.enterPrises.checkList=t,this.$refs.enterPrises.enterpriseType=this.enterpriseType,this.$refs.enterPrises.dialogVisible=!0}}},h=(r("w9Iu"),r("ZrdR")),p=Object(h.a)(l,function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"table"},[r("div",{staticClass:"table_content"},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],key:t.tableKey,staticStyle:{width:"100%"},attrs:{data:t.checkData,border:"",fit:"",id:"areaSheet","highlight-current-row":""}},[r("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"80"}}),t._v(" "),r("el-table-column",{attrs:{label:"单位名称",prop:"enterpriseName",align:"center",width:"180"}}),t._v(" "),r("el-table-column",{attrs:{label:"联系电话",prop:"enterpriseOfficephone",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"库存数量/万箱",prop:"stockNum",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"库容量/万箱",prop:"storageCapacity",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"是否查出隐患",prop:"hiddendangerStatus",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(1==e.row.hiddendangerStatus?"是":"否"))])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"是否自查",prop:"selfcheckStatus",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(1==e.row.selfcheckStatus?"已自查":"未自查"))])]}}])}),t._v(" "),r("el-table-column",{attrs:{label:"被检查次数",prop:"checkedTimes",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"隐患数量",prop:"hiddendangerSum",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"整改数量",prop:"rectifyHiddendangerSum",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{label:"重大整改数量",prop:"rectifyMajorHiddendangerNum",align:"center"}}),t._v(" "),r("el-table-column",{attrs:{fixed:"right",label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{type:"text"},on:{click:function(r){t.toEnterprises(e.row.selfAndcheckInfos)}}},[t._v("查看")])]}}])})],1),t._v(" "),r("el-pagination",{directives:[{name:"show",rawName:"v-show",value:t.recordTotal>0,expression:"recordTotal>0"}],staticStyle:{float:"right",margin:"3px"},attrs:{"current-page":t.currentPage,"page-sizes":[10,15],"page-size":t.pageSize,total:t.recordTotal,layout:"total, sizes, prev, pager, next, jumper",background:""},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1),t._v(" "),r("area-enterprises",{ref:"enterPrises"})],1)},[],!1,null,"7ae0ca36",null);p.options.__file="areaForm.vue";e.default=p.exports},Na1v:function(t,e,r){"use strict";r.d(e,"c",function(){return o}),r.d(e,"e",function(){return c}),r.d(e,"h",function(){return i}),r.d(e,"y",function(){return u}),r.d(e,"j",function(){return s}),r.d(e,"x",function(){return d}),r.d(e,"f",function(){return l}),r.d(e,"t",function(){return h}),r.d(e,"k",function(){return p}),r.d(e,"d",function(){return f}),r.d(e,"q",function(){return b}),r.d(e,"l",function(){return g}),r.d(e,"g",function(){return m}),r.d(e,"a",function(){return j}),r.d(e,"o",function(){return O}),r.d(e,"i",function(){return A}),r.d(e,"r",function(){return v}),r.d(e,"n",function(){return z}),r.d(e,"w",function(){return y}),r.d(e,"u",function(){return k}),r.d(e,"v",function(){return _}),r.d(e,"s",function(){return S}),r.d(e,"p",function(){return w}),r.d(e,"m",function(){return x}),r.d(e,"b",function(){return C}),r.d(e,"z",function(){return P});var n=r("X4fA"),a=r("t3Un");function o(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/getApply",method:"get",params:t||{}})}function c(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/getConfirm",method:"get",params:t||{}})}function i(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/addApply",method:"post",data:t})}function u(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/putApply",method:"post",data:t})}function s(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/delApply",method:"post",data:t})}function d(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/submitApply",method:"post",data:t})}function l(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/confirmProduct",method:"post",data:t})}function h(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/rejectProduct",method:"post",data:t})}function p(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/exportRFID",method:"post",data:t})}function f(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/batchBarCode",method:"post",data:t})}function b(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/printBarCode",method:"post",data:t})}function g(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/replenishBox?code="+t,method:"get"})}function m(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/contractUnitList",method:"post",data:t})}function j(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/addContractUnit",method:"post",data:t})}function O(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/contractUnit",method:"post",data:t})}function A(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/delContractUnit",method:"post",params:t})}function v(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/zplPrint",method:"post",data:t})}function z(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/replenishBoxPrint",method:"post",data:t})}function y(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/replenishInnerPrint",method:"post",data:t})}function k(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/replenishBoxBatch",method:"post",data:t})}function _(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/replenishBoxBatchPrint",method:"post",data:t})}function S(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/produce",method:"post",data:t})}function w(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/getControlParams",method:"get",params:t||{}})}function x(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/getOwnSelectType?type="+t,method:"get"})}function C(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/addControlParams",method:"post",data:t})}function P(t){return Object(a.a)({headers:{Authorization:Object(n.a)()},url:"http://39.104.85.193:4105/contract/updateControlParams",method:"post",data:t})}},w9Iu:function(t,e,r){"use strict";var n=r("xaZI");r.n(n).a},xaZI:function(t,e,r){}}]);