(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/suggestion/suggestionDetail"],{2611:function(e,t,i){"use strict";i.r(t);var n=i("bec1"),s=i.n(n);for(var o in n)"default"!==o&&function(e){i.d(t,e,(function(){return n[e]}))}(o);t["default"]=s.a},"450c":function(e,t,i){"use strict";var n;i.d(t,"b",(function(){return s})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return n}));var s=function(){var e=this,t=e.$createElement;e._self._c},o=[]},"91c9":function(e,t,i){"use strict";i.r(t);var n=i("450c"),s=i("2611");for(var o in s)"default"!==o&&function(e){i.d(t,e,(function(){return s[e]}))}(o);i("b578");var r,a=i("f0c5"),u=Object(a["a"])(s["default"],n["b"],n["c"],!1,null,"262b7d46",null,!1,n["a"],r);t["default"]=u.exports},"9ab9":function(e,t,i){},ab36:function(e,t,i){"use strict";(function(e){i("40da");n(i("66fd"));var t=n(i("91c9"));function n(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,i("543d")["createPage"])},b578:function(e,t,i){"use strict";var n=i("9ab9"),s=i.n(n);s.a},bec1:function(e,t,i){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i("2f62");function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function o(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?s(Object(i),!0).forEach((function(t){r(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function r(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var a={data:function(){return{isShow:!1,isLoadingDelPerson:!0,loadingType:1,pickerIndex:-1,isDirector:0,SUGGESTION_ID:"",suggestionDetail:[],imgList:[],suggestionHandle:"请选择",DispostionStaffId:"",suggestionIdea:"",dealerList:[],isPostMsg:!1}},computed:o(o({},(0,n.mapGetters)({user:"getUser"})),{},{imageList:function(){var e=[];return this.suggestionDetail&&this.suggestionDetail.ImgList&&this.suggestionDetail.ImgList.map((function(t){e.push(t.IMAGE_URL)})),e}}),methods:o(o({},(0,n.mapMutations)(["shouldReLoadingList"])),{},{getSuggestionDetail:function(){var e=this,t={1e3:"待处理",2e3:"待反馈",3e3:"已处理"};this.$request.$get("GetSuggestionDetail",{action_data:e.SUGGESTION_ID}).then((function(i){if(i.ResultCode&&"100"==i.ResultCode){var n=i.Data;if(n.SUGGESTION_STATE_TEXT=t[n.SUGGESTION_STATE],0==n.SORTNUM)switch(n.SUGGESTION_STATE){case 1e3:e.isDirector=1,e.GetDispostion();break;case 2e3:e.isDirector=2;break;case 3e3:e.isDirector=3;break}e.suggestionDetail=n,e.isShow=!0}else e.isShow=!1}))},GetDispostion:function(){var t=this;t.isLoadingDelPerson=!0,this.$request.$get("GetDispostion",{SUGGESTION_ID:t.SUGGESTION_ID}).then((function(i){t.isLoadingDelPerson=!1,e.hideLoading(),t.dealerList=i.Data.List}))},submitSuggestion:function(){var t=this;if(1e3==t.suggestionDetail.SUGGESTION_STATE&&-1==t.pickerIndex)return e.showToast({icon:"none",title:"请选择处理人"}),!1;if(""==t.suggestionIdea)return e.showToast({icon:"none",title:"请填写处理意见"}),!1;e.showLoading({title:"正在提交"});var i={action_data:t.SUGGESTION_ID,action_record:t.suggestionIdea,Person:t.user.Membership_Id,USER_ID:t.user.UserId,DispostionId:t.dealerList.length>0?t.dealerList[t.pickerIndex].MEMBERSHIP_ID:"",DispostionStaffId:t.dealerList.length>0?t.dealerList[t.pickerIndex].STAFF_ID:"",DispostionName:t.dealerList.length>0?t.dealerList[t.pickerIndex].MEMBERSHIP_NAME:""};2e3==t.suggestionDetail.SUGGESTION_STATE&&(delete i.DispostionId,delete i.DispostionStaffId,delete i.DispostionIdName),t.isPostMsg=!0,t.$request.$post("ComplaintsHandling",i).then((function(i){100==i.ResultCode?(e.showToast({title:i.ResultDesc,icon:"success",success:function(){setTimeout((function(){e.navigateBack({delta:1})}),500)}}),t.shouldReLoadingList(!0)):e.showToast({title:i.ResultDesc}),t.isPostMsg=!1}))},showImg:function(t){e.previewImage({urls:this.imageList,current:t,loop:!0,indicator:"number"})},choeseDelPerson:function(){if(!this.isLoadingDelPerson)return 0==this.dealerList.length?(e.showToast({icon:"none",title:"您没有可选择的处理人。请联系相关人员添加后重试！",duration:2e3}),!1):void 0;e.showLoading({title:" 正在加载..."})},pickerChange:function(e){this.pickerIndex=e.detail.value}}),onLoad:function(e){if(this.SUGGESTION_ID=e.SUGGESTION_ID,e.source&&"push"==e.source){var t=this;setTimeout((function(){t.getSuggestionDetail()}),1e3)}else this.getSuggestionDetail()},onUnload:function(){this.$util.addUserBehavior()}};t.default=a}).call(this,i("543d")["default"])}},[["ab36","common/runtime","common/vendor"]]]);