2020-11-12 14:57:34 +08:00

1 line
8.2 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{"00a8":function(e,a,t){"use strict";var n=t("c411"),i=t.n(n);i.a},"0d23":function(e,a,t){"use strict";t.r(a);var n=t("2c19"),i=t.n(n);for(var o in n)"default"!==o&&function(e){t.d(a,e,(function(){return n[e]}))}(o);a["default"]=i.a},"116e":function(e,a,t){"use strict";t.r(a);var n=t("b39d"),i=t("0d23");for(var o in i)"default"!==o&&function(e){t.d(a,e,(function(){return i[e]}))}(o);t("00a8");var s,c=t("f0c5"),r=Object(c["a"])(i["default"],n["b"],n["c"],!1,null,"5f0fdbdc",null,!1,n["a"],s);a["default"]=r.exports},"2c19":function(e,a,t){"use strict";(function(e){Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n=t("2f62");function i(e,a){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);a&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),t.push.apply(t,n)}return t}function o(e){for(var a=1;a<arguments.length;a++){var t=null!=arguments[a]?arguments[a]:{};a%2?i(Object(t),!0).forEach((function(a){s(e,a,t[a])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))}))}return e}function s(e,a,t){return a in e?Object.defineProperty(e,a,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[a]=t,e}var c=[{name:"财务审批",id:"1a2907bd-c2f5-4ef9-9ead-70496650ace6",modelName:"FinancialApproval",imagePath:"../../static/images/index/cwsp.png",noImagePath:"../../static/images/index/cwsp-no.png",homeUrl:"/pages/expenseApproval/expenseApproval"},{name:"招标投标",id:"916cdbb5-f05b-4624-b6c4-9f111d4389fc",modelName:"Tender",imagePath:"../../static/images/index/zbtb.png",noImagePath:"../../static/images/index/zbtb-no.png",homeUrl:"/pages/tender/tender"},{name:"服务区报销",id:"8fea5036-d67e-476e-9e56-5f379ba6ae18",modelName:"ServerPartFinancialApproval",imagePath:"../../static/images/index/fwqbx.png",noImagePath:"../../static/images/index/fwqbx-no.png",homeUrl:"/pages/serviceAreaReimbursement/serviceAreaReimbursement"},{name:"合同审批",id:"ac661db4-1af1-4732-88db-76bc05eec335",modelName:"ServerPartCompactApproval",imagePath:"../../static/images/index/htsp.png",noImagePath:"../../static/images/index/htsp-no.png",homeUrl:"/pages/contract/contract"}],r=[{name:"公文阅办",id:"2580cb9f-ad2c-4d0b-b478-0be52eaf6ef6",modelName:"Publicity",imagePath:"../../static/images/index/gwyb.png",noImagePath:"../../static/images/index/gwyb-no.png",homeUrl:"/pages/officialDocManagement/officialDocManagement"},{name:"阳光公示",id:"c870b1bc-95c8-473d-81c8-8596eb793bd4",modelName:"Publicity",imagePath:"../../static/images/index/publicity.png",noImagePath:"../../static/images/index/publicity-no.png",homeUrl:"/pages/publicity/publicity"},{name:"请假加班",id:"1ceeaa5c-d11e-4dcd-8d33-0c3df4cd4937",modelName:"Publicity",imagePath:"../../static/images/index/qjjb.png",noImagePath:"../../static/images/index/qjjb-no.png",homeUrl:"/pages/askForLeave/askForLeave"},{name:"安全问答",id:"5733dfdd-29f6-4233-9ff0-6f077d80d778",modelName:"Questionnaire",imagePath:"../../static/images/index/aqwd.png",noImagePath:"../../static/images/index/aqwd-no.png",homeUrl:"/pages/webview/webview?name=questionnaire"}],d=[{name:"走动式管理",id:"c26c1620-2149-4b3d-ac2e-07e0c0494042",modelName:"Mbwa",imagePath:"../../static/images/index/zdsgl.png",noImagePath:"../../static/images/index/zdsgl-no.png",homeUrl:"/pages/mbwa/mbwa"},{name:"投诉建议",id:"d405ae13-3388-41c0-a5f6-d11194d0a943",modelName:"Suggestion",imagePath:"../../static/images/index/tsjy.png",noImagePath:"../../static/images/index/tsjy-no.png",homeUrl:"/pages/suggestion/suggestion"},{name:"收银稽核",id:"",modelName:"Mbwa",imagePath:"../../static/images/index/syjh.png",noImagePath:"../../static/images/index/syjh-no.png",homeUrl:""},{name:"设备巡检",id:"",modelName:"Suggestion",imagePath:"../../static/images/index/sbxj.png",noImagePath:"../../static/images/index/sbxj-no.png",homeUrl:""},{name:"物业管理",id:"",modelName:"Suggestion",imagePath:"../../static/images/index/wygl.png",noImagePath:"../../static/images/index/wygl-no.png",homeUrl:""}],m=[{name:"每日营收",id:"74934d31-385a-4eed-80bb-9c9ed7da29b5",modelName:"EverdayRenven",imagePath:"../../static/images/index/mrys.png",noImagePath:"../../static/images/index/mrys-no.png",homeUrl:"/pages/everdayRenven/index"},{name:"商品审批",id:"056b29d7-4721-47ee-ad25-660814e1f3a9",modelName:"CommodityApproval",imagePath:"../../static/images/index/spsp.png",noImagePath:"../../static/images/index/spsp-no.png",homeUrl:"/pages/businessApproval/businessApproval"},{name:"招商审批",id:"2290e96d-c6d7-4dde-b5b7-e699b615ff2f",modelName:"Mnangement",imagePath:"../../static/images/index/zsgl.png",noImagePath:"../../static/images/index/zsgl-no.png",homeUrl:"/pages/investment/investment"},{name:"商业BI",id:"9125e837-1961-4d92-bdc1-2200260d9643",modelName:"AnnualData",imagePath:"../../static/images/index/ndsj.png",noImagePath:"../../static/images/index/ndsj-no.png",homeUrl:"/pages/webview/webview?src=https://datav.aliyuncs.com/share/4c027574b3a124835e767f1b7dea1a86"}],g={data:function(){return{workMode:r,yewuMode:c,sceneMode:d,managementMode:m,ToDoList:{}}},onLoad:function(){var e=this;setTimeout((function(){e.user.UserId&&e.getTodoList()}),2e3)},computed:o({},(0,n.mapGetters)({user:"getUser",menus:"getMenu"})),methods:o(o(o({},(0,n.mapMutations)(["isGetTodoList"])),(0,n.mapActions)(["updateUser"])),{},{scanCode:function(){e.scanCode({onlyFromCamera:!0,success:function(a){if(console.log("条码类型:"+a.scanType),console.log("条码内容:"+a.result),a.scanType.indexOf("QR_CODE")>-1){var t=a.result.toLocaleLowerCase();if(t.indexOf("http://eshangtech.com:8000/mbwa/index.html")>-1){var n=a.result.split("?")[1];n=n.split("=")[1],console.log(n),e.navigateTo({url:"/pages/mbwa/mbwaUpload?mbwaID="+n})}else if(a.result.indexOf("http")>-1)e.navigateTo({url:"/pages/webview/webview?src="+encodeURIComponent(a.result)});else{var i=a.result.split(",");console.log(i.length),9==i.length?e.navigateTo({url:"/pages/invoice/invoice?invoice="+i}):e.showModal({title:"温馨提示",content:"不识别该二维码,请扫描发票或商品条形码",showCancel:!1,confirmText:"确定"})}}else a.scanType.indexOf("EAN_13")>-1?e.navigateTo({url:"/pages/commodtity/commodtity?commodtity="+a.result}):e.showModal({title:"温馨提示",content:"不识别该二维码,请扫描发票或商品条形码",showCancel:!1,confirmText:"确定"})}})},getTodoList:function(){var e=this,a=this;a.$request.get({action_type:"ToDoList",userId:a.user.UserId,userName:a.user.UserName||""}).then((function(t){a.ToDoList=t.Data,e.$eventHub.$off("hasInfo",(function(){}))}))},recordBrowsing:function(a){var t=this;a.id?t.menus&&1==t.menus[a.id]?(t.$request.post({action_type:"recordUserOperate",operateType:3e3,moduleGUID:a.id}),e.navigateTo({url:a.homeUrl})):e.showToast({title:"您没有该模块权限",icon:"none"}):e.showModal({title:" 温馨提示",content:"该模块正在开发,尽请期待",success:function(e){e.confirm}})},toPage:function(a){this.user.Membership_Phone?""==this.user.UserId?e.showModal({title:" 温馨提示",content:"您的账户未绑定综管平台账户,请先绑定以获取业务权限",success:function(a){a.confirm&&e.navigateTo({url:"/pages/bindingBack/bindingBack"})}}):this.recordBrowsing(a):e.showModal({title:" 温馨提示",content:"您还没有登录,快去登录吧!",success:function(a){a.confirm&&e.navigateTo({url:"/pages/register/register"})}})}}),onReady:function(){this.isGetTodoList(!1)},onPullDownRefresh:function(){var a=this;this.updateUser(),setTimeout((function(){e.stopPullDownRefresh(),a.getTodoList()}),1e3)}};a.default=g}).call(this,t("543d")["default"])},"57d4":function(e,a,t){"use strict";(function(e){t("5fd4");n(t("66fd"));var a=n(t("116e"));function n(e){return e&&e.__esModule?e:{default:e}}e(a.default)}).call(this,t("543d")["createPage"])},b39d:function(e,a,t){"use strict";var n;t.d(a,"b",(function(){return i})),t.d(a,"c",(function(){return o})),t.d(a,"a",(function(){return n}));var i=function(){var e=this,a=e.$createElement;e._self._c},o=[]},c411:function(e,a,t){}},[["57d4","common/runtime","common/vendor"]]]);