repair.js
2.9 KB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/repair/repair"],{"00c5":function(e,t,n){"use strict";(function(e,t){var u=n("47a9");n("9a91");u(n("3240"));var o=u(n("91e6"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"21d5":function(e,t,n){"use strict";n.r(t);var u=n("69bb"),o=n.n(u);for(var i in u)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return u[e]}))}(i);t["default"]=o.a},"46cd":function(e,t,n){"use strict";var u=n("cbb0"),o=n.n(u);o.a},"4e21":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return u}));var u={uUpload:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-upload/u-upload")]).then(n.bind(null,"aa16"))},uInput:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-input/u-input")]).then(n.bind(null,"b0e7"))},uSelect:function(){return n.e("node-modules/uview-ui/components/u-select/u-select").then(n.bind(null,"26fa"))}},o=function(){var e=this.$createElement;this._self._c},i=[]},"69bb":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{fileList:[],ruleForm:{onSitePhoto:"",deviceName:"",deviceType:"",warrantyIssue:"",memo:"",applicationTime:"",status:"1"},lableXian:"",shelei:"",list:[{value:"水管问题",label:"水管问题"},{value:"物业问题",label:"物业问题"}],list1:[{value:"类型1",label:"类型1"},{value:"类型2",label:"类型2"}],popup1:!1,popup2:!1}},methods:{chooseLocation:function(e,t){this.popup1=!0},choose:function(e,t){this.popup2=!0},pops:function(e){this.ruleForm.warrantyIssue=e[0].label},pops1:function(e){this.ruleForm.deviceType=e[0].label},submit:function(){var t=this,n=[];n=this.$refs.uUpload.lists.filter((function(e){return 100==e.progress})),n.map((function(e){t.ruleForm.onSitePhoto=e.response.data.url})),this.ruleForm.applicationTime=this.currentTime(),this.$http.sendRequest("/cereReportIssuesRepairs/add","POST",this.ruleForm,1).then((function(t){e.navigateTo({url:"/pages/serve/serve"})})).catch((function(e){console.log(e)}))},currentTime:function(){var e=new Date,t=e.getFullYear(),n=e.getMonth()+1,u=e.getDate(),o=e.getHours(),i=e.getMinutes(),a=e.getSeconds();n=n<10?"0"+n:n,u=u<10?"0"+u:u,o=o<10?"0"+o:o,i=i<10?"0"+i:i,a=a<10?"0"+a:a;var r="".concat(t,"-").concat(n,"-").concat(u," ").concat(o,":").concat(i,":").concat(a);return r}}};t.default=n}).call(this,n("df3c")["default"])},"91e6":function(e,t,n){"use strict";n.r(t);var u=n("4e21"),o=n("21d5");for(var i in o)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(i);n("46cd");var a=n("828b"),r=Object(a["a"])(o["default"],u["b"],u["c"],!1,null,"fdd805a0",null,!1,u["a"],void 0);t["default"]=r.exports},cbb0:function(e,t,n){}},[["00c5","common/runtime","common/vendor"]]]);