1 line
12 KiB
JSON
1 line
12 KiB
JSON
{"remainingRequest":"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\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\menuCard\\provide\\index.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\\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":["\"use strict\";\n\nvar _interopRequireDefault = require(\"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/interopRequireDefault.js\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _defineProperty2 = _interopRequireDefault(require(\"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/defineProperty.js\"));\nvar _ticketpop = _interopRequireDefault(require(\"../popup/ticketpop.vue\"));\nvar _everydata = _interopRequireDefault(require(\"../popup/everydata.vue\"));\nvar _popup = _interopRequireDefault(require(\"@/views/estate/examine/dialog/popup.vue\"));\nvar _paging = _interopRequireDefault(require(\"@/views/Public/paging.vue\"));\nvar _getdata = require(\"@/api/getdata\");\nvar _axios = _interopRequireDefault(require(\"axios\"));\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n// 弹窗\nvar _default = exports.default = {\n components: {\n Ticketopop: _ticketpop.default,\n Popup: _popup.default,\n Paging: _paging.default,\n Everydata: _everydata.default\n },\n data: function data() {\n return {\n loading: false,\n //初始化loading\n loadingMsg: \"\",\n faOpen: false,\n num: 3,\n delTitle: \"\",\n typeIf: \"cq\" /**用于判断是设置还是编辑 */,\n isflag: false /**用于设置弹窗 */,\n content: \"\" /**删除 */,\n row: {},\n validation: false,\n tableCols: [(0, _defineProperty2.default)({\n type: \"normal\",\n is_show: true,\n minWidth: \"150\",\n prop: \"id\",\n label: \"序号\",\n align: \"center\"\n }, \"minWidth\", \"80\"), (0, _defineProperty2.default)({\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"departmentName\",\n label: \"部门\"\n }, \"minWidth\", \"110\"), {\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"daily_issued_num\",\n label: \"每日固定餐券数量\"\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"120\",\n prop: \"issueNum\",\n label: \"今日餐券数量\"\n }, {\n type: \"normal\",\n is_show: true,\n minWidth: \"180\",\n prop: \"option\",\n label: \"操作\",\n align: \"left\"\n }],\n tableData: [],\n tableData2: [{\n Order: \"1\",\n Name: \"后勤部\",\n bm: \"100\",\n Month: \"2019年3月\",\n departmentName: \"12\"\n }, {\n Order: \"2\",\n Name: \"科技部\",\n bm: \"130\",\n Month: \"130\",\n Logistics_hq: \"17\",\n departmentName: \"120\",\n Logistics_jjc: \"120\",\n Logistics_cwc: \"120\",\n Logistics_hqc: \"120\",\n Average: \"0\",\n Idea: \"120\",\n Zchange: \"120\",\n Status: \"进行中\",\n Operate: \"\"\n }, {\n Order: \"3\",\n Name: \"营销部\",\n bm: \"200\",\n Month: \"2019年在月\",\n Logistics_hq: \"120\",\n departmentName: \"120\",\n Logistics_jjc: \"12\",\n Logistics_cwc: \"120\",\n Logistics_hqc: \"120\",\n Average: \"0\",\n Idea: \"120\",\n Zchange: \"120\",\n Status: \"进行中\",\n Operate: \"\"\n }, {\n Order: \"4\",\n Name: \"审计部\",\n bm: \"300\",\n Month: \"2019年在月\",\n departmentName: \"120\",\n Logistics_gl: \"120\",\n Logistics_jjc: \"12\",\n Logistics_cwc: \"120\",\n Logistics_hqc: \"120\",\n Average: \"0\",\n Idea: \"120\",\n Zchange: \"120\",\n Status: \"进行中\",\n Operate: \"\"\n }],\n page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n },\n ids: \"\",\n everydata: '20'\n };\n },\n created: function created() {},\n mounted: function mounted() {\n this.createLoad();\n this.getlist();\n this.getEvenyData();\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 updHistory: function updHistory() {\n this.$router.push({\n name: \"History\",\n params: {\n data: {}\n }\n });\n // window.localStorage.setItem('make',JSON.stringify(row))\n },\n getEvenyData: function getEvenyData() {\n var _this = this;\n var Content = {\n issueDay: \"1\"\n };\n (0, _getdata.GetChanEveny)(Content).then(function (res) {\n // console.log(res);\n if (res.returnCode == '1') {\n // this.$message({g\n // message: res.returnMsg,\n // type: \"success\"\n // });\n _this.everydata = res.returnData[0].issueDay ? res.returnData[0].issueDay : 20;\n // console.log( res.returnData[0],999)\n // this.getlist();\n } else {\n _this.$message({\n message: res.returnMsg,\n type: \"warning\"\n }).catch(function (err) {\n console.log(err);\n });\n }\n }).catch(function (err) {\n console.log(\"error\");\n });\n },\n settingdata: function settingdata(val, title) {\n var _this2 = this;\n this.isflag = false;\n this.validation = false;\n // console.log(val,888)\n var Content;\n debugger;\n if (title == \"sz\") {\n Content = {\n dailyIssuedNum: val.cq,\n departmentId: val.bm,\n beginDate: val.beginDate,\n endDate: val.endDate,\n yxq: val.yxq\n };\n } else {\n Content = {\n dailyIssuedNum: val.cq,\n departmentId: val.bm,\n id: this.row.id,\n beginDate: val.beginDate,\n endDate: val.endDate,\n yxq: val.yxq\n };\n }\n // console.log(Content,'333')\n\n if (title == \"sz\") {\n this.createLoad();\n (0, _getdata.AddffList)(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this2.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this2.getlist();\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(\"error\");\n setTimeout(function () {\n _this2.clearLoad();\n }, 300);\n });\n } else if (title == \"bj\") {\n this.createLoad();\n (0, _getdata.WitffList)(Content).then(function (res) {\n if (res.returnCode == 1) {\n _this2.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this2.getlist();\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 getlist: function getlist() {\n var _this3 = this;\n var Content = {\n currentPage: this.page.limit\n };\n (0, _getdata.GetffList)(Content).then(function (res) {\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 } else {\n _this3.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n setTimeout(function () {\n _this3.clearLoad();\n }, 300);\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 });\n },\n /**设置 */settingChange: function settingChange() {\n this.isflag = true;\n this.typeIf = \"sz\";\n },\n settingdate: function settingdate() {\n this.faOpen = true;\n },\n closeEvery: function closeEvery() {\n // console.log(1111)\n this.faOpen = false;\n },\n settingEveny: function settingEveny(val) {\n var _this4 = this;\n var Content = {\n id: val.data,\n issueDay: val.data\n };\n // console.log(Content,351)\n // this.createLoad()\n (0, _getdata.GetChangeChan)(Content).then(function (res) {\n if (res.returnCode == 1) {\n _this4.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this4.faOpen = false;\n _this4.getlist();\n _this4.getEvenyData();\n } else {\n _this4.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n // setTimeout(()=>{\n // this.clearLoad();\n // },300)\n }\n }).catch(function (err) {\n // setTimeout(()=>{\n // this.clearLoad();\n // },300)\n console.log(err);\n });\n\n // console.log(val,315)\n },\n /**操作 */optionChange: function optionChange(row) {\n // console.log(row, 11);\n\n this.isflag = true;\n this.typeIf = \"bj\";\n this.row = row;\n },\n /**删除 */delChange: function delChange(id) {\n this.delTitle = \"删除\";\n this.content = \"确认进行删除嘛?\";\n this.validation = true;\n this.ids = id;\n },\n /**关闭弹窗 */closeDialog: function closeDialog(val) {\n var _this5 = this;\n this.isflag = false;\n this.validation = false;\n var Content = {\n id: this.ids\n };\n if (val == 1) {\n this.createLoad();\n (0, _getdata.DelffList)(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this5.$message({\n message: \"删除成功\",\n type: \"success\"\n });\n _this5.getlist();\n } else {\n setTimeout(function () {\n _this5.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n setTimeout(function () {\n _this5.clearLoad();\n }, 300);\n console.log(err);\n });\n }\n },\n currentChanges: function currentChanges(val) {\n this.createLoad();\n this.page.limit = val;\n this.getlist(val);\n }\n }\n};",null]} |