1 line
8.5 KiB
JSON
1 line
8.5 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\\statistics\\detail\\make.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\menuCard\\statistics\\detail\\make.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":["import \"core-js/modules/es6.function.name\";\nimport _defineProperty from \"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { GetMake, GetBmList, cqSelect } from \"@/api/getdata\";\nexport default {\n components: {\n Paging: Paging\n },\n data: function data() {\n return {\n loading: false,\n //初始化loading\n loadingMsg: \"\",\n options: [] /**拜访部门 */,\n\n /**select */\n details: {},\n ruleForm: {\n bm: \"\",\n name: \"\",\n time: \"\",\n applyTime: \"\"\n },\n rules: {\n name: [{\n required: true,\n message: \"请输入菜品名称\",\n trigger: \"blur\"\n }, {\n min: 3,\n max: 5,\n message: \"长度在 3 到 5 个字符\",\n trigger: \"blur\"\n }]\n },\n tableCols: [_defineProperty({\n type: \"normal\",\n is_show: true,\n minWidth: \"150\",\n prop: \"id\",\n label: \"序号\",\n align: \"center\"\n }, \"minWidth\", \"80\"),\n // {\n // type: \"normal\",\n // is_show: true,\n // minWidth: \"120\",\n // prop: \"departmentName\",\n // label: \"部门\",\n // minWidth: \"110\"\n // },\n {\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"applicantName\",\n label: \"领取人\"\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"ticketVariety\",\n label: \"餐券种类\"\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"applyDate\",\n label: \"申请时间\"\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"useDate\",\n label: \"使用时间\"\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"applyReason\",\n label: \"申请原因\"\n }\n // {\n // type: \"normal\",\n // is_show: true,\n // minWidth: \"120\",\n // prop: \"meal_ticket_variety\",\n // label: \"餐券种类\"\n // },\n // {\n // type: \"normal\",\n // is_show: true,\n // minWidth: \"120\",\n // prop: \"meal_ticket_num\",\n // label: \"每日餐券数量\"\n // },\n // {\n // type: \"normal\",\n // is_show: true,\n // minWidth: \"120\",\n // prop: \"start_date\",\n // label: \"开始日期\"\n // },\n // {\n // type: \"normal\",\n // is_show: true,\n // minWidth: \"120\",\n // prop: \"end_date\",\n // label: \"结束日期\",\n // align: \"left\"\n // },\n // {\n // type: \"normal\",\n // is_show: true,\n // minWidth: \"120\",\n // prop: \"apply_reason\",\n // label: \"申请原因\"\n // },\n // {\n // type: \"normal\",\n // is_show: true,\n // minWidth: \"180\",\n // prop: \"apply_date\",\n // label: \"申请时间\",\n // align: \"left\"\n // }\n ],\n tableData: [],\n page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n }\n };\n },\n created: function created() {\n this.details = this.$route.params.data ? this.$route.params.data.row : JSON.parse(window.localStorage.getItem(\"make\"));\n // console.log( JSON.parse(window.localStorage.getItem('receive')),1111)\n /**total = tableDate 条数 */\n // this.page.total = this.tableData2.length;\n // this.getDate(1);\n },\n mounted: function mounted() {\n this.createLoad();\n this.getDate();\n this.getbmlist();\n },\n methods: {\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 comeBack: function comeBack() {\n // detailIndex\n var index = localStorage.getItem(\"detailIndex\");\n this.$router.push({\n path: \"/menuCard/detailid\",\n query: {\n id: index\n }\n });\n },\n getbmlist: function getbmlist() {\n var _this = this;\n // console.log(this.details,286)\n var Content = {\n deptId: this.details.department_id\n };\n // console.log(Content,290)\n cqSelect(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n // this.$message({\n // message: res.returnMsg,\n // type: \"success\"\n // });\n _this.options = res.returnData;\n } else {\n _this.$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 search: function search() {\n this.page.limit = 1;\n this.createLoad();\n this.getDate();\n },\n currentChanges: function currentChanges(val) {\n this.createLoad();\n this.page.limit = val;\n // console.log(this.$route.params.data.row)\n\n this.getDate();\n },\n // cheid(id){\n // this.ruleForm.bm=id\n // },\n getDate: function getDate() {\n var _this2 = this;\n // let row = this.$route.params.data.row;\n var Content = {\n currentPage: this.page.limit == 0 ? 1 : this.page.limit,\n queryObj: {\n // applicantDepartmentId: this.ruleForm.bm /**部门 */,\n applicantName: this.ruleForm.name /**申请人姓名 */,\n applyStartTime: this.ruleForm.applyTime ? this.ruleForm.applyTime[0] : \"\" /**申请开始时间 */,\n applyEndTime: this.ruleForm.applyTime ? this.ruleForm.applyTime[1] : \"\" /**申请结束时间 */,\n departmentId: this.details.department_id,\n time: this.details.time\n }\n };\n console.log(Content, 340);\n GetMake(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this2.clearLoad();\n console.log(res.returnData.data, 888);\n _this2.tableData = res.returnData.data;\n _this2.page.total = res.returnData.total;\n _this2.page.limit = res.returnData.currentPage;\n if (_this2.page.total == 0) {\n _this2.$message({\n message: \"当前无数据\",\n type: \"success\"\n });\n } else {\n _this2.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n }\n } else {\n _this2.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this2.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this2.clearLoad();\n }, 300);\n });\n }\n }\n};",null]} |