{"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\\market\\order\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\market\\order\\index.vue","mtime":1737610069435},{"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":["import \"core-js/modules/es6.function.name\";\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 { MarketOrders, 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 takeFoodPlace: \"\"\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 /**注 */\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 var str = \"beginDate=\" + a + \"&endDate=\" + b + \"&realName=\" + encodeURI(encodeURI(_this.formInline.name)) + \"&roomId=\" + _this.formInline.foodName + \"&takeFoodPlace=\" + encodeURI(encodeURI(_this.formInline.takeFoodPlace));\n var url = process.env.VUE_APP_BASE_API + \"/greenH5/greenWebmodul/rest/greenMarketKinds/downloadFoodOrder?\" + str;\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 getbmlist: function getbmlist() {\n var _this2 = this;\n GetBmList().then(function (res) {\n if (res.returnCode == \"1\") {\n // this.$message({\n // message: res.returnMsg,\n // type: \"success\"\n // });\n _this2.options = res.returnData;\n } else {\n _this2.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n\n // console.log(res,'部门');\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 (chinese.test(this.formInline.visitedPersonName) || englist.test(this.formInline.visitedPersonName) || this.formInline.visitedPersonName == \"\") {\n this.iscontinue = true;\n }\n if (chinese.test(this.formInline.visitorName) || englist.test(this.formInline.visitorName) || this.formInline.visitorName == \"\") {\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 },\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 // == 0?1:this.page.limit\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 takeFoodPlace: this.formInline.takeFoodPlace\n }\n };\n console.log(Content, 'Content');\n MarketOrders(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]}