1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0a87af37"],{"06a8":function(t,a,e){"use strict";var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div")},c=[],i=e("795b"),o=e.n(i),r=(e("7f7f"),e("ac6a"),e("f20c")),s=e("5cab"),u=e("f499"),d=e.n(u),l=e("8982"),f="/industryParkApi",h="/wx/data",p="/wx/public",m="/wx/dictController";function g(t){return Object(l["a"])({url:f+h+"/listBizAll/"+t,method:"post"})}function v(t){return Object(l["a"])({url:f+p+"/listProjectAll",method:"post",data:t})}function b(t){return Object(l["a"])({url:f+m+"/getByCodes",method:"post",data:t})}function _(t){var a={codes:d()(t)};return new o.a(function(t,e){b(a).then(function(a){t(a)}).catch(function(t,a){e(t,a)})})}var k=e("3089"),j={name:"BaseData",data:function(){return{currentPage:1,totalSize:0,pageSize:10,InitialLoading:!0,allLoaded:!1,bottomStatus:"",StaffData:[],StaffMap:{},BizData:[],BizMap:{},UserProject:[],ProjectData:[],ProjectMap:{},dialogImageUrl:"",dialogImageVisible:!1,dc_map:{},dc_data:{},dc_map_no_all:{},dc_data_no_all:{}}},mounted:function(){},methods:{initDict:function(t){var a=this;return t||(t=a.dc_key),_(t).then(function(t){t.data&&a.dc_key.forEach(function(e){var n=a.getDictValue(t.data,e,!0);a.dc_data[e]=n,a.dc_map[e]=a.$common.transDcMap(n);var c=a.getDictValue(t.data,e,!1);a.dc_data_no_all[e]=c,a.dc_map_no_all[e]=a.$common.transDcMap(c)})})},initDict2:function(t){var a=this;return t||(t=a.dc_key),_(t).then(function(t){t.data&&a.dc_key.forEach(function(e){var n=a.getDictValue(t.data,e,!1);a.dc_data[e]=n,a.dc_map[e]=a.$common.transDcMap(n);var c=a.getDictValue(t.data,e,!1);a.dc_data_no_all[e]=c,a.dc_map_no_all[e]=a.$common.transDcMap(c)})})},initBiz:function(){var t=this;return this.BizData=[],g(s["a"].uid()).then(function(a){a.data&&a.data.forEach(function(a){var e={label:a.businessName,value:a.id};t.BizData.push(e),t.BizMap[a.id]=a.businessName})}).catch(function(){})},initProjectData:function(){var t=this;return this.ProjectData=[],v(s["a"].uid()).then(function(a){a.data&&a.data.forEach(function(a){var e={label:a.name,value:a.id};t.ProjectData.push(e),t.ProjectMap[e.value]=a})}).catch(function(){})},pagination:function(t){var a=this.currentPage,e=this.pageSize,n=a*e-e,c=a*e;return t.slice(n,c)},getDictValue:function(t,a,e){var n=t[a]?r["a"].castEval(t[a].dictValue):[],c=[];if(n.forEach(function(t){var a={id:t.id,isSearch:t.isSearch,label:t.label,value:t.value,active:!1};c.push(a)}),e){var i={label:"全部",value:"",active:!0};c.unshift(i)}return c},confirm:function(t,a){return new o.a(function(e,n){k["Dialog"].confirm({title:a,message:t}).then(function(t){e(t)}).catch(function(t){Object(k["Toast"])("已取消"),n(t)})})},handleBottomChange:function(t){console.log("handleBottomChange:"+t),this.bottomStatus=t,"drop"===this.bottomStatus&&this.currentPage++},loadBottom:function(){var t=this,a=this;console.log("loadBottom"),setTimeout(function(){a.getData(),t.$refs.loadmore.onBottomLoaded()},500)},imgPreview:function(t){this.dialogImageUrl="/industryParkApi/wx/img/viewImg/"+t,this.dialogImageVisible=!0},imgRemove:function(t,a){var e=a.indexOf(t);a.splice(e,1)},noImg:function(){var t=event.srcElement;t.src=e("aed7"),t.onerror=null}}},w=j,y=e("2877"),D=Object(y["a"])(w,n,c,!1,null,"3fa5b905",null);a["a"]=D.exports},"0831":function(t,a,e){"use strict";var n=e("b94c"),c=e.n(n);c.a},"3a06":function(t,a,e){"use strict";e.d(a,"a",function(){return o}),e.d(a,"e",function(){return r}),e.d(a,"c",function(){return s}),e.d(a,"b",function(){return u}),e.d(a,"d",function(){return d});var n=e("8982"),c="/industryParkApi",i="/wx/roadShow";function o(t){return Object(n["a"])({url:c+i+"/add",method:"post",data:t})}function r(t){return Object(n["a"])({url:c+i+"/list",method:"post",data:t})}function s(t){return Object(n["a"])({url:c+i+"/getById",method:"post",data:t})}function u(t){return Object(n["a"])({url:c+i+"/edit",method:"post",data:t})}function d(t){return Object(n["a"])({url:c+i+"/getCompanyById",method:"post",data:t})}},"7f7f":function(t,a,e){var n=e("86cc").f,c=Function.prototype,i=/^\s*function ([^ (]*)/,o="name";o in c||e("9e1e")&&n(c,o,{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},"81e0":function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"repair"},[e("div",{staticClass:"top-add",on:{click:function(a){return t.goNavigator("repairDispatch-add-app")}}},[e("i",{staticClass:"iconfont icon-xinzeng"}),e("span",{staticClass:"txt"},[t._v("新增派单")])]),e("div",{staticClass:"info-list"},t._l(t.recordList,function(a){return e("div",{staticClass:"info-item",on:{click:function(e){return t.goNavigator("repairDispatch-detail-app",{id:a.id})}}},[e("div",{staticClass:"info-top"},[e("div",{staticClass:"left"},[e("img",{attrs:{src:null!=a.fileUrl?a.fileUrl[0]:"",alt:""}})]),e("div",{staticClass:"right"},[e("p",{staticClass:"tit"},[t._v("\n "+t._s(a.description)+"\n ")]),e("p",{staticClass:"txt"},[t._v(t._s(a.companyName))])])]),e("div",{staticClass:"info-bottom"},[e("div",{staticClass:"left"},[e("i",{staticClass:"iconfont icon-shijian"}),e("span",[t._v("\n "+t._s(a.createdAt)+"\n ")])]),e("div",{staticClass:"right"},["unAcceptance"==a.status?e("span",{staticClass:"normal-tip yd h-bg"},[t._v("待派单")]):e("span",{staticClass:"normal-tip yd z-bg"},[t._v("已派单")])])])])}),0)])},c=[],i=(e("ac6a"),e("b48a")),o=e("06a8"),r=(e("3a06"),e("5cab"),{data:function(){return{dc_key:["REPAIR_STATUS"],recordList:[],params:{pageNum:1,pageSize:10,groupId:"870261874875170816"},totalPage:1,allData:[],list:[{title:"关于组织2020年无锡市服务业提质增效资金项目申报的通知",name:"无锡 XXXX有限公司",date:"2020-09-18 19:34:06",type:"1"},{title:"关于组织2020年无锡市服务业提质增效资金项目申报的通知关于组织2020年无锡市服务业提质增效资金项目申报的通知",name:"无锡 XXXX有限公司",date:"2020-09-18 19:34:06",type:"2"}]}},mixins:[o["a"]],mounted:function(){var t=this;this.initDict(this.dc_key).then(function(a){t.selectData()}),window.history&&window.history.pushState&&(history.pushState(null,null,document.URL),window.addEventListener("popstate",this.goBack,!1))},destroyed:function(){window.removeEventListener("popstate",this.goBack,!1)},methods:{goBack:function(){this.$router.push({path:"/home-app"})},selectData:function(){var t=this;Object(i["e"])(this.params).then(function(a){a.data&&a.data.forEach(function(a){var e=t.getItemJson(a);t.recordList.push(e)})})},getItemJson:function(t){var a=this,e=this.$common.castEval(t.fileUrl),n=[];return e.forEach(function(t){t=a.$common.replaceThumbnail(t),n.push(t)}),t.fileUrl=n,t.createdAt=this.$common.transServDate(t.createdAt),t.statusName=this.dc_map.REPAIR_STATUS[t.status],t},quickSelect:function(t){this.quickSleced.val&&this.quickSleced.val===t.val?this.quickSleced={}:this.quickSleced=t},afterRead:function(t){console.log(t)},setStatusStyle:function(t){var a=null;switch(t){case"unAcceptance":a="pending-btn";break;case"acceptance":a="accepted-btn";break;case"processed":a="processed-btn";break;case"evaluated":a="evaluated-btn";break}return a}},filters:{statusFilter:function(t){var a=null;switch(t){case"unAcceptance":a="待处理";break;case"acceptance":a="已受理";break;case"processed":a="已处理";break;case"evaluated":a="已评价";break}return a}}}),s=r,u=(e("0831"),e("2877")),d=Object(u["a"])(s,n,c,!1,null,"3321ea14",null);a["default"]=d.exports},8982:function(t,a,e){"use strict";e.d(a,"a",function(){return h}),e.d(a,"b",function(){return p});var n=e("795b"),c=e.n(n),i=e("bc3a"),o=e.n(i),r=e("4328"),s=e.n(r),u=e("4360"),d=e("5cab"),l=e("a18c"),f=e("3089");function h(t,a){t.headers||(t.headers={}),t.headers&&d["a"].getToken()&&(t.headers["RC-Token"]=d["a"].getToken());var e={method:t.method,url:t.url,data:s.a.stringify(t.data)};return a&&(e.data=t.data),t.headers&&(e.headers=t.headers),new c.a(function(a,n){o()(e).then(function(t){if(t&&t.data&&200===t.status){var e=t.data;switch(e.errno){case 501:Object(f["Toast"])(e.errmsg),setTimeout(function(){u["a"].dispatch("user/logout").then(function(){l["a"].push("/login")})},1500),n(e.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(f["Toast"])(e.errmsg),n(e.errmsg);break}a(e)}else console.log(t),n(t)}).catch(function(a,e){console.log(t.url+" fail",a,e),Object(f["Toast"])(a),n(a,e)})})}function p(t){t.headers||(t.headers={}),t.headers&&d["a"].getToken()&&(t.headers["RC-Token"]=d["a"].getToken());var a={method:t.method,url:t.url};return a.data=t.data,t.headers&&(a.headers=t.headers,a.headers["MVVM-Key"]=String((new Date).getTime()),a.headers["xx"]="anything",a.headers["Content-Type"]="application/json;charset=UTF-8"),console.log("request: ",t),new c.a(function(e,n){o.a.defaults.withCredentials=!0,o()(a).then(function(t){if(console.log("response:",t),t&&t.data&&200===t.status){var a=t.data;switch(a.errno){case 501:Object(f["Toast"])(a.errmsg),setTimeout(function(){u["a"].dispatch("user/logout").then(function(){l["a"].push("/login")})},1500),n(a.errmsg);break;case 401:case 402:case 502:case 503:case 504:case 505:case 506:case 507:case 508:case 801:Object(f["Toast"])(a.errmsg),n(a.errmsg);break}e(a)}else console.log(t),n(t)}).catch(function(a,e){console.log(t.url+" fail",a,e),Object(f["Toast"])(a),n(a,e)})})}},aed7:function(t,a,e){t.exports=e.p+"assets/img/no-result.b05bdcd3.jpg"},b48a:function(t,a,e){"use strict";e.d(a,"a",function(){return o}),e.d(a,"e",function(){return r}),e.d(a,"c",function(){return s}),e.d(a,"b",function(){return u}),e.d(a,"d",function(){return d});var n=e("8982"),c="/industryParkApi",i="/wx/repair";function o(t){return Object(n["a"])({url:c+i+"/add",method:"post",data:t})}function r(t){return Object(n["a"])({url:c+i+"/list",method:"post",data:t})}function s(t){return Object(n["a"])({url:c+i+"/getById",method:"post",data:t})}function u(t){return Object(n["a"])({url:c+i+"/edit",method:"post",data:t})}function d(t){return Object(n["a"])({url:c+i+"/getDispatchToPerson",method:"post",data:t})}},b94c:function(t,a,e){}}]);
|