(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/repair/comps/item"],{2614:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return i}));var i={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"))}},o=function(){var e=this,t=e.$createElement;e._self._c},u=[]},3908:function(e,t,n){"use strict";n.r(t);var i=n("a2a9"),o=n.n(i);for(var u in i)"default"!==u&&function(e){n.d(t,e,(function(){return i[e]}))}(u);t["default"]=o.a},"4d42":function(e,t,n){"use strict";n.r(t);var i=n("2614"),o=n("3908");for(var u in o)"default"!==u&&function(e){n.d(t,e,(function(){return o[e]}))}(u);n("6572");var s,l=n("f0c5"),r=Object(l["a"])(o["default"],i["b"],i["c"],!1,null,"5f9ac383",null,!1,i["a"],s);t["default"]=r.exports},"561d":function(e,t,n){},6572:function(e,t,n){"use strict";var i=n("561d"),o=n.n(i);o.a},a2a9:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(){Promise.all([n.e("common/vendor"),n.e("components/mescroll-body/mescroll-uni")]).then(function(){return resolve(n("0e49"))}.bind(null,n)).catch(n.oe)},o=function(){n.e("components/repair/repair").then(function(){return resolve(n("514d"))}.bind(null,n)).catch(n.oe)},u=(getApp(),void 0),s={components:{MeScroll:i,card:o},props:{refresh:Boolean,type:Number,i:Number,item:Object},data:function(){return{imgList:[],imgMaxNum:4,detail:"",detailTemp:{},popupShow:!1,isInit:!1,list:[],mescroll:null,up:{noMoreSize:5,auto:!0,page:{page:0,size:10}},down:{use:!0,auto:!1}}},watch:{refresh:function(){console.log("我要刷新了"),this.mescroll.resetUpScroll()},type:function(e){this.isInit||e!==this.i||this.mescroll.resetUpScroll()}},mounted:function(){this.isInit||0!==this.i||this.mescroll.resetUpScroll()},methods:{handleRepair:function(e){console.log("进入时item：",e),this.detailTemp=e,this.popupShow=!0,this.imgList=[],this.detail=""},submit:function(){var e=this;this.detailTemp.picArr=this.imgList.join(","),console.log("临时item",this.detailTemp),this.$showModel("确定把该工单置为已处理状态？").then((function(t){""!=e.detail?(e.detailTemp.handleStatus=1,e.detailTemp.estimateStatus=0,e.$api.estateRepair.submit(e.detailTemp).then((function(t){e.$u.toast("操作成功"),e.mescroll.resetUpScroll(),e.popupShow=!1}))):e.$u.toast("请填写处理情况")}))},ChooseImage:function(){u=this,e.chooseImage({count:4,sizeType:["original"],sourceType:["camera","album"],success:function(t){var n=t.tempFilePaths;if(u.imgList.length+n.length>u.imgMaxNum)e.showToast({title:"超过上传图片的最大数量",icon:"none"});else{0!=u.imgList.length?u.imgList=u.imgList.concat(t.tempFilePaths):u.imgList=t.tempFilePaths;for(var i=0;i<n.length;i++)e.uploadFile({url:"https://www.example.com/upload",filePath:n[i],name:"file",success:function(e){console.log(e)}})}}})},ViewImage:function(t){e.previewImage({urls:this.imgList,current:t.currentTarget.dataset.url})},DelImg:function(e){this.imgList.splice(e.currentTarget.dataset.index,1)},initMeScroll:function(e){this.mescroll=e},upFn:function(e){var t=this,n={current:e.num,size:e.size,handleStatus:this.item.value};try{this.$api.estateRepair.page(n).then((function(n){var i=n.data.records;console.log(i);var o=i.length;e.endBySize(o,n.data.total),1==e.num&&(t.list=[]),t.list=t.list.concat(i)}))}catch(i){e.endErr()}},downFn:function(e){var t=this;setTimeout((function(){t.list=[],t.mescroll.resetUpScroll()}),1500)}}};t.default=s}).call(this,n("543d")["default"])}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'pages/repair/comps/item-create-component',
    {
        'pages/repair/comps/item-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("4d42"))
        })
    },
    [['pages/repair/comps/item-create-component']]
]);
