(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2ee4c1a3"],{"77d0":function(e,t,r){"use strict";var a=r("795b6"),n=r.n(a);n.a},"795b6":function(e,t,r){},f447: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:"gzbxApp app"},[r("header-app"),r("p",{staticClass:"topTitle"},[e._v("故障报修")]),r("van-cell-group",[r("van-field",{attrs:{clearable:"",label:"原用户名称",placeholder:"请输入原用户名称",type:"number"},model:{value:e.from.clientName,callback:function(t){e.$set(e.from,"clientName",t)},expression:"from.clientName"}}),r("van-field",{attrs:{type:"text",clearable:"",label:"原用户地址",placeholder:"请输入原用户地址"},model:{value:e.from.address,callback:function(t){e.$set(e.from,"address",t)},expression:"from.address"}}),r("van-field",{attrs:{type:"text",clearable:"",label:"联系人",placeholder:"请输入联系人",required:""},model:{value:e.from.relation,callback:function(t){e.$set(e.from,"relation",t)},expression:"from.relation"}}),r("van-field",{attrs:{type:"text",clearable:"",label:"联系电话",placeholder:"请输入联系电话",required:""},model:{value:e.from.mobile,callback:function(t){e.$set(e.from,"mobile",t)},expression:"from.mobile"}}),r("van-field",{attrs:{type:"text",clearable:"",label:"联系地址",placeholder:"请输入联系地址",required:""},model:{value:e.from.newAddress,callback:function(t){e.$set(e.from,"newAddress",t)},expression:"from.newAddress"}}),r("van-field",{attrs:{readonly:"",clickable:"",label:"报修类型",value:e.from.repairType,placeholder:"请选择故障类型","is-link":"",required:""},on:{click:function(t){e.showPicker=!0}}}),r("van-cell-group",[r("van-field",{attrs:{label:"您的建议",type:"textarea",placeholder:"请输入建议",rows:"1",autosize:"",clickable:""},model:{value:e.from.remark,callback:function(t){e.$set(e.from,"remark",t)},expression:"from.remark"}})],1)],1),r("div",{staticClass:"up_load"},[r("van-cell",{attrs:{value:""}},[r("template",{slot:"title"},[r("span",{staticClass:"custom-text"},[e._v("上传图片")]),r("span",{staticClass:"input_tip"},[e._v("请上传现场照片")])])],2),r("up-Upload",{attrs:{fileList:e.fileList,uploadUrl:"khfw/upload",data:e.pppss},on:{remove:e.remove}})],1),r("div",{staticClass:"query"},[r("van-button",{attrs:{size:"large"},on:{click:function(t){return e.khfwApply()}}},[e._v("提交")])],1),r("van-popup",{attrs:{position:"bottom"},model:{value:e.showPicker,callback:function(t){e.showPicker=t},expression:"showPicker"}},[r("van-picker",{attrs:{"show-toolbar":"",columns:e.columns},on:{cancel:function(t){e.showPicker=!1},confirm:e.onConfirm}})],1)],1)},n=[],l=(r("96cf"),r("3b8d")),o=r("ff32"),s=r("cf45"),i=r("fe7b"),c=r("4ec3"),p=r("b970"),u={components:{upUpload:i["a"],headerApp:o["a"]},data:function(){return{from:{categoryId:"4001",projectName:"故障报修",clientName:"",address:"",relation:"",mobile:"",newAddress:"",repairType:"",remark:"",batchId:""},fileList:[],pppss:{batchId:"",fileTag:"故障报修"},columns:[{text:"水管设备"},{text:"水压问题"},{text:"水质问题"},{text:"表务问题"},{text:"其他"}],url:baseUrl+"Upload/UploadFile",showPicker:!1}},created:function(){this.pppss.batchId=Object(s["a"])(),this.from.batchId=Object(s["a"])()},methods:{onConfirm:function(e){this.from.repairType=e.text,this.showPicker=!1},remove:function(){var e=Object(l["a"])(regeneratorRuntime.mark(function e(t,r){var a;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return console.log(t,r),e.next=3,Object(c["n"])({uploadId:t.uid});case 3:a=e.sent,console.log(a);case 5:case"end":return e.stop()}},e)}));function t(t,r){return e.apply(this,arguments)}return t}(),khfwApply:function(){var e=Object(l["a"])(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(""!=this.from.relation){e.next=5;break}return p["a"].fail("联系人不能为空"),e.abrupt("return");case 5:if(""!=this.from.mobile){e.next=10;break}return p["a"].fail("联系电话不能为空"),e.abrupt("return");case 10:if(""!=this.from.newAddress){e.next=15;break}return p["a"].fail("联系地址不能为空"),e.abrupt("return");case 15:if(""!=this.from.repairType){e.next=18;break}return p["a"].fail("请选择故障类型"),e.abrupt("return");case 18:return e.next=20,Object(c["l"])(this.from);case 20:t=e.sent,"00"==t.code&&this.$router.push("/successTipsApp");case 22:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()}},f=u,d=(r("77d0"),r("2877")),m=Object(d["a"])(f,a,n,!1,null,null,null);t["default"]=m.exports}}]);
//# sourceMappingURL=chunk-2ee4c1a3.0ddc8082.js.map