hz-zhhq-web/node_modules/.cache/babel-loader/f111128fab2f558d53e4ae4c69d...

1 line
7.7 KiB
JSON

{"remainingRequest":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js!E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js!E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!E:\\hz-zhhq-web\\src\\views\\menuCard\\provide\\history.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\menuCard\\provide\\history.vue","mtime":1737610069437},{"path":"E:\\hz-zhhq-web\\babel.config.js","mtime":1737610069371},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport Paging from \"@/views/Public/paging.vue\";\nimport { GetHistory, GetBmList, Own } from \"@/api/getdata\";\nimport Popup from \"@/views/estate/examine/dialog/popup.vue\";\nexport default {\n components: {\n Paging: Paging,\n Popup: Popup\n },\n data: function data() {\n return {\n iscontinue: true,\n iscontinue2: false,\n loading: false,\n //初始化loading\n loadingMsg: \"\",\n row: {},\n validation: false,\n completeTitle: \"\",\n btns: 3,\n nav: \"\",\n options: [] /**拜访部门 */,\n formInline: {\n time: \"\",\n name: \"\",\n // foodName:\"\",\n bm: \"\"\n },\n page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n },\n tableData: []\n };\n },\n // created() {\n // this.getbmlist();\n // },\n mounted: function mounted() {\n this.createLoad();\n this.getbmlist();\n /**注 */\n // this.tableData = this.tableData2;\n this.getDate();\n },\n methods: {\n onOut: function onOut() {\n var _this = this;\n Own().then(function (res) {\n if (res.returnCode === \"1\") {\n var a = _this.formInline.time ? _this.formInline.time[0] : \"\";\n var b = _this.formInline.time ? _this.formInline.time[1] : \"\";\n // let str = \"beginDate=\"+a+\"&endDate=\"+b+\"&realName=\"+this.formInline.name+\"&roomId=\"+this.formInline.foodName;\n var str = \"beginDate=\" + a + \"&endDate=\" + b + \"&departmentId=\" + _this.formInline.bm;\n // console.log(str,240)\n // http://192.168.222.89:8080/greenH5/greenWebmodul/rest/greenOfficeDevice/exportByExcel\n var url = \"/greenH5/greenWebmodul/rest/greenFoodsKinds/downloadFoodOrder?\" + str;\n console.log(url, 241);\n window.location.href = url;\n }\n });\n },\n createLoad: function createLoad() {\n this.loading = true;\n this.loadingMsg = \"加载中...\";\n },\n clearLoad: function clearLoad() {\n this.loading = false;\n this.loadingMsg = \"\";\n },\n // 获取部门数据\n getbmlist: function getbmlist() {\n var _this2 = this;\n GetBmList().then(function (res) {\n if (res.returnCode == \"1\") {\n _this2.options = res.returnData;\n } else {\n _this2.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n console.log(err);\n });\n },\n closeEnd: function closeEnd() {\n this.validation = false;\n },\n onSubmit: function onSubmit() {\n // var chinese = /^[\\u4e00-\\u9fa5]+$/;\n // var englist = /^[a-zA-Z]+$/;\n // this.iscontinue = false;\n // this.iscontinue2 = false;\n // // console.log(chinese.test(this.formInline.visitedPersonName))\n // if (\n // chinese.test(this.formInline.visitedPersonName) ||\n // englist.test(this.formInline.visitedPersonName) ||\n // this.formInline.visitedPersonName == \"\"\n // ) {\n // this.iscontinue = true;\n // }\n // if (\n // chinese.test(this.formInline.visitorName) ||\n // englist.test(this.formInline.visitorName) ||\n // this.formInline.visitorName == \"\"\n // ) {\n // this.iscontinue2 = true;\n // }\n // if (!this.iscontinue || !this.iscontinue2) {\n // this.validation = true;\n // this.completeTitle = \"警告\";\n // this.btns = 2;\n // this.nav = \"姓名格式只支持输入全中或全英文!\";\n // } else {\n // // iscontinue = false;\n // // this.validation = false;\n // this.page.limit = 1;\n // this.createLoad();\n // this.getDate();\n // }\n this.getDate();\n },\n // 分页\n currentChanges: function currentChanges(val) {\n this.page.limit = val;\n this.createLoad();\n this.getDate();\n },\n getDate: function getDate() {\n var _this3 = this;\n var Content = {\n currentPage: this.page.limit == 0 ? 1 : this.page.limit,\n queryObj: {\n beginDate: this.formInline.time ? this.formInline.time[0] : \"\",\n endDate: this.formInline.time ? this.formInline.time[1] : \"\",\n // realName:this.formInline.name,\n // roomId:this.formInline.foodName,\n departmentId: this.formInline.bm\n }\n };\n console.log(Content, 338);\n GetHistory(Content).then(function (res) {\n console.log(res, 339);\n if (res.returnCode == \"1\") {\n _this3.clearLoad();\n _this3.tableData = res.returnData.data;\n _this3.page.total = res.returnData.total;\n _this3.page.limit = res.returnData.currentPage;\n if (_this3.page.total == 0) {\n _this3.$message({\n message: \"当前无数据\",\n type: \"success\"\n });\n }\n // else {\n // this.$message({\n // message: res.returnMsg,\n // type: \"success\"\n // });\n // }\n } else {\n _this3.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this3.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this3.clearLoad();\n }, 300);\n });\n },\n handleClick: function handleClick(index, row) {\n // this.validation = true;\n this.$router.push({\n // path: `/approve/visitor/details/${id}` ,\n path: \"detailsk\",\n query: {\n id: row.id\n }\n });\n },\n closeDialog: function closeDialog() {\n this.ruleForm = {};\n this.$refs.ruleForm.resetFields();\n }\n }\n};",null]}