(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1b731472"],{1329:function(e,t,r){"use strict";var a=r("2b5d"),s=r.n(a);s.a},"2b5d":function(e,t,r){},"454f":function(e,t,r){r("46a7");var a=r("584a").Object;e.exports=function(e,t,r){return a.defineProperty(e,t,r)}},"46a7":function(e,t,r){var a=r("63b6");a(a.S+a.F*!r("8e60"),"Object",{defineProperty:r("d9f6").f})},"85f2":function(e,t,r){e.exports=r("454f")},8766:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"ghsq khfw"},[r("div",{staticClass:"message"},[e._m(0),r("div",{staticClass:"center"},[r("div",{staticClass:"contain"},[r("p",[e._v("网上抄表")]),r("div",{staticClass:"item1 clearfix"},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.from,rules:e.rules,"label-width":"93px"}},[r("el-form-item",{staticClass:"t1",attrs:{label:"客户号",prop:"clientNo"}},[r("span"),r("el-input",{model:{value:e.from.clientNo,callback:function(t){e.$set(e.from,"clientNo",t)},expression:"from.clientNo"}})],1),r("el-form-item",{staticClass:"t2",attrs:{label:"本期报数",prop:"desc"}},[r("span"),r("el-input",{model:{value:e.from.remark,callback:function(t){e.$set(e.from,"remark",t)},expression:"from.remark"}})],1)],1)],1),r("div",{staticClass:"item3"},[r("p",[e._v("附件上传")]),r("div",{staticClass:"item3-upload clearfix"},[r("div",{staticClass:"upload"},[r("el-upload",{staticClass:"upload-demo",attrs:{action:e.url,"on-preview":e.handlePreview,"on-remove":e.handleRemove,headers:e.myHeaders,"before-remove":e.beforeRemove,data:e.pppss,"before-upload":e.beforeAvatarUpload,multiple:"","file-list":e.fileList}},[r("el-button",{attrs:{size:"small",type:"primary"}},[e._v("点击上传")])],1),r("p",[e._v("水表读数照片")])],1)])])]),r("div",{directives:[{name:"show",rawName:"v-show",value:!this.$route.query.id,expression:"!this.$route.query.id"}],staticClass:"contain"},[r("div",{staticClass:"item4"},[r("input",{staticClass:"submit",attrs:{type:"button",value:"提交"},on:{click:function(t){return e.submitForm("ruleForm")}}})])])])])])},s=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("p",[r("a",[e._v("网上营业厅")]),e._v("  >  \n      "),r("a",[e._v("客服服务")]),e._v("  >  \n      "),r("a",[e._v("网上抄表")])])}],i=(r("7f7f"),r("96cf"),r("3b8d")),n=r("bd86"),o=r("4ec3"),l=r("cf45"),c=r("5d2d"),u=(r("61f7"),{name:"water",data:function(){var e;return e={from:{categoryId:"4004",projectName:"网上抄表",clientNo:"",remark:"",batchId:""},url:baseUrl+"khfw/upload",pppss:{batchId:"",fileTag:"资料上传"},myHeaders:{token:Object(c["a"])("token")},fileList:[],dialogImageUrl:"",dialogVisible:!1},Object(n["a"])(e,"fileList",[]),Object(n["a"])(e,"rules",{clientNo:[{required:!0,message:"请输入燃气表号",trigger:"blur"}],remark:[{required:!0,message:"请输入本期报数",trigger:"blur"}]}),e},created:function(){var e=this,t=Object(l["a"])();this.pppss.batchId=t,this.from.batchId=t,this.$route.query.id&&(this.from=this.$route.query.id,this.fileList=this.from.uploadList.map(function(t,r,a){return e.$set(t,"url",baseUrl+t.uploadFile),e.$set(t,"name",t.fileName),t}))},methods:{handleRemove:function(e,t){console.log(e,t)},handlePreview:function(e){this.dialogImageUrl=e.url,this.dialogVisible=!0},handleExceed:function(e,t){this.$message.warning("当前限制选择 3 个文件，本次选择了 ".concat(e.length," 个文件，共选择了 ").concat(e.length+t.length," 个文件"))},beforeRemove:function(){var e=Object(i["a"])(regeneratorRuntime.mark(function e(t,r){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return console.log(t,r),e.next=3,Object(o["k"])({uploadId:t.uid});case 3:return e.sent,e.abrupt("return",this.$confirm("确定移除 ".concat(t.name,"？")));case 5:case"end":return e.stop()}},e,this)}));function t(t,r){return e.apply(this,arguments)}return t}(),khfwApply:function(){var e=Object(i["a"])(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return console.log("提交clientNo:"+this.from.clientNo),e.next=3,Object(o["i"])(this.from);case 3:t=e.sent,"00"==t.code&&(this.$message({message:"提交成功！",type:"success"}),this.$router.push("/caips")),console.log(t);case 6:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}(),submitForm:function(e){var t=this;this.$refs[e].validate(function(e){if(!e)return console.log("error submit!!"),!1;t.khfwApply()})},resetForm:function(e){this.$refs[e].resetFields()},beforeAvatarUpload:function(e){var t=e.size/1024/1024<10;return t||this.$message.error("上传文件大小不超过10M!"),t}}}),f=u,m=(r("1329"),r("2877")),d=Object(m["a"])(f,a,s,!1,null,null,null);t["default"]=d.exports},bd86:function(e,t,r){"use strict";r.d(t,"a",function(){return i});var a=r("85f2"),s=r.n(a);function i(e,t,r){return t in e?s()(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}}}]);
//# sourceMappingURL=chunk-1b731472.aa76b219.js.map