1 line
8.7 KiB
JavaScript
1 line
8.7 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{1441:function(e,t,a){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a("2f62");function i(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function o(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?i(Object(a),!0).forEach((function(t){s(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):i(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function s(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,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"}],d=[{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"},{name:"考勤打卡",id:"ff04b551-c382-4638-a947-f95c42387ada",modelName:"positionPunching",imagePath:"../../static/images/index/kqdk.png",noImagePath:"../../static/images/index/kqdk-no.png",homeUrl:"/pages/additionalFeatures/positionPunching"}],m=[{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:""}],r=[{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:"b0b63a75-56c9-4f1d-aacb-a26e62b47e3e",modelName:"DataValidation",imagePath:"../../static/images/index/sjjy.png",noImagePath:"../../static/images/index/sjjy-no.png",homeUrl:"/pages/dataSummary/dataSummary"},{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:d,yewuMode:c,sceneMode:m,managementMode:r,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(){var t=this;e.scanCode({onlyFromCamera:!0,success:function(a){if(console.log("条码类型:"+a.scanType),console.log("条码内容:"+a.result),a.scanType.indexOf("QR_CODE")>-1){var n=a.result.toLocaleLowerCase();if(n.indexOf("http://eshangtech.com:8000/mbwa/index.html")>-1){var i=a.result.split("?")[1];i=i.split("=")[1],t.$util.toNextRoute("navigateTo","/pages/mbwa/mbwaUpload?mbwaID="+i)}else if(a.result.indexOf("http")>-1)t.$util.toNextRoute("navigateTo","/pages/webview/webview?src="+encodeURIComponent(a.result));else{var o=a.result.split(",");9==o.length?t.$util.toNextRoute("navigateTo","/pages/invoice/invoice?invoice="+o):e.showModal({title:"温馨提示",content:"不识别该二维码,请扫描发票或商品条形码",showCancel:!1,confirmText:"确定"})}}else a.scanType.indexOf("EAN_13")>-1?this.$util.toNextRoute("navigateTo","/pages/commodtity/commodtity?commodtity="+a.result):e.showModal({title:"温馨提示",content:"不识别该二维码,请扫描发票或商品条形码",showCancel:!1,confirmText:"确定"})}})},getTodoList:function(){var e=this;e.$request.$get("ToDoList",{userId:e.user.UserId,userName:e.user.UserName||""}).then((function(t){e.ToDoList=t.Data}))},recordBrowsing:function(t){var a=this;t.id?a.menus&&1==a.menus[t.id]?this.$util.toNextRoute("navigateTo",t.homeUrl):e.showToast({title:"您没有该模块权限",icon:"none"}):e.showModal({title:" 温馨提示",content:"该模块正在开发,尽请期待"})},toPage:function(t){var a=this;this.user.Membership_Phone?""==this.user.UserId?e.showModal({title:" 温馨提示",content:"您的账户未绑定综管平台账户,请先绑定以获取业务权限",success:function(e){e.confirm&&a.$util.toNextRoute("navigateTo","/pages/bindingBack/bindingBack")}}):this.recordBrowsing(t):e.showModal({title:" 温馨提示",content:"您还没有登录,快去登录吧!",success:function(e){e.confirm&&a.$util.toNextRoute("navigateTo","/pages/register/register")}})}}),onReady:function(){this.isGetTodoList(!1)},onShow:function(){this.user.UserId&&this.getTodoList()},onPullDownRefresh:function(){var t=this;this.updateUser(),setTimeout((function(){e.stopPullDownRefresh(),t.getTodoList()}),1e3)},onTabItemTap:function(e){this.$util.addUserBehavior({outtoRoute:"/pages/index/index",intoRoute:"/pages/userCenter/userCenter"})}};t.default=g}).call(this,a("543d")["default"])},"4e8e":function(e,t,a){"use strict";a.r(t);var n=a("c2ec"),i=a("6ecc");for(var o in i)"default"!==o&&function(e){a.d(t,e,(function(){return i[e]}))}(o);a("880f");var s,c=a("f0c5"),d=Object(c["a"])(i["default"],n["b"],n["c"],!1,null,"204d4e82",null,!1,n["a"],s);t["default"]=d.exports},"6ecc":function(e,t,a){"use strict";a.r(t);var n=a("1441"),i=a.n(n);for(var o in n)"default"!==o&&function(e){a.d(t,e,(function(){return n[e]}))}(o);t["default"]=i.a},"7ecd":function(e,t,a){"use strict";(function(e){a("40da");n(a("66fd"));var t=n(a("4e8e"));function n(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,a("543d")["createPage"])},"880f":function(e,t,a){"use strict";var n=a("f56e"),i=a.n(n);i.a},c2ec:function(e,t,a){"use strict";var n;a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return o})),a.d(t,"a",(function(){return n}));var i=function(){var e=this,t=e.$createElement;e._self._c},o=[]},f56e:function(e,t,a){}},[["7ecd","common/runtime","common/vendor"]]]); |