(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/repair/detail"],{"3b10":function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={uCellGroup:function(){return n.e("node-modules/uview-ui/components/u-cell-group/u-cell-group").then(n.bind(null,"9797"))},uCellItem:function(){return n.e("node-modules/uview-ui/components/u-cell-item/u-cell-item").then(n.bind(null,"af48"))},uPopup:function(){return n.e("node-modules/uview-ui/components/u-popup/u-popup").then(n.bind(null,"0266"))},uForm:function(){return n.e("node-modules/uview-ui/components/u-form/u-form").then(n.bind(null,"459a"))},uFormItem:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-form-item/u-form-item")]).then(n.bind(null,"5690"))},uInput:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-input/u-input")]).then(n.bind(null,"1c95"))}},u=function(){var t=this,e=t.$createElement;t._self._c},o=[]},"4f09":function(t,e,n){"use strict";(function(t){n("4481");i(n("66fd"));var e=i(n("fcb8"));function i(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"6e47":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;getApp();var n=void 0,i={data:function(){return{id:"",content:"",dataDetail:{},picArr:[],imgList:[],imgMaxNum:4,detail:"",popupShow:!1}},onLoad:function(t){this,this.id=t.id,this.fetchDataDetail()},methods:{fetchDataDetail:function(){var t=this;this.$api.estateRepair.detail(this.id).then((function(e){t.dataDetail=e.data,t.dataDetail.pic?t.picArr=t.dataDetail.pic.split(","):t.picArr=[]}))},previewPic:function(e,n){console.log(e),t.previewImage({urls:n,current:e})},copy:function(e){t.setClipboardData({data:e})},handleRepair:function(){this.popupShow=!0,this.imgList=[],this.detail=""},submit:function(){var t=this;this.dataDetail.pic=this.imgList.join(","),this.$showModel("确定把该工单置为已处理状态？").then((function(e){""!=t.detail?(t.detailTemp.handleStatus=1,t.detailTemp.estimateStatus=0,t.$api.estateRepair.submit(t.detailTemp).then((function(e){t.$u.toast("操作成功"),t.mescroll.resetUpScroll(),t.popupShow=!1}))):t.$u.toast("请填写处理情况")}))},ChooseImage:function(){n=this,t.chooseImage({count:4,sizeType:["original"],sourceType:["camera","album"],success:function(e){var i=e.tempFilePaths;if(n.imgList.length+i.length>n.imgMaxNum)t.showToast({title:"超过上传图片的最大数量",icon:"none"});else{0!=n.imgList.length?n.imgList=n.imgList.concat(e.tempFilePaths):n.imgList=e.tempFilePaths;for(var u=0;u<i.length;u++)t.uploadFile({url:"https://www.example.com/upload",filePath:i[u],name:"file",success:function(t){console.log(t)}})}}})},ViewImage:function(e){t.previewImage({urls:this.imgList,current:e.currentTarget.dataset.url})},DelImg:function(t){this.imgList.splice(t.currentTarget.dataset.index,1)},cancel:function(){var e=this;t.showModal({title:"提示",showCancel:!0,content:"确定要取消该工单吗？",success:function(n){console.log(n.confirm),n.confirm&&(e.dataDetail.handleStatus=-1,e.$api.residential.addOrEditEstateRepair(e.dataDetail).then((function(n){e.$showModel("操作成功",!1).then((function(e){t.navigateBack({delta:1})}))})))}})}}};e.default=i}).call(this,n("543d")["default"])},"79c1":function(t,e,n){"use strict";n.r(e);var i=n("6e47"),u=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=u.a},fcb8:function(t,e,n){"use strict";n.r(e);var i=n("3b10"),u=n("79c1");for(var o in u)"default"!==o&&function(t){n.d(e,t,(function(){return u[t]}))}(o);var a,l=n("f0c5"),c=Object(l["a"])(u["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],a);e["default"]=c.exports}},[["4f09","common/runtime","common/vendor"]]]);