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

1 line
12 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"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\\canteen\\foodPrepare\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\canteen\\foodPrepare\\index.vue","mtime":1737610069407},{"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;\nrequire(\"core-js/modules/es6.number.constructor\");\nrequire(\"core-js/modules/es6.regexp.to-string\");\nrequire(\"core-js/modules/es7.string.pad-start\");\nvar _paging = _interopRequireDefault(require(\"@/views/Public/paging.vue\"));\nvar _getdata = require(\"@/api/getdata\");\nvar _popup = _interopRequireDefault(require(\"@/views/estate/examine/dialog/popup.vue\"));\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 Paging: _paging.default,\n Popup: _popup.default\n },\n data: function data() {\n var valNum = function valNum(rule, value, callback) {\n var reg = /^[0-9]+(\\.[0-9]{1,2})?$/;\n if (reg.test(value)) {\n callback();\n } else {\n callback(new Error('请输入正数(包含两位小数)'));\n }\n };\n var checkUnit = function checkUnit(rule, value, callback) {\n var reg = \"克千克件\";\n if (reg.indexOf(value) != -1) {\n callback();\n } else {\n callback(new Error('请输入克,千克,件'));\n }\n };\n return {\n loading: false,\n loadingMsg: \"\",\n row: {\n UUID: '',\n NUM: '',\n UNIT: '',\n NOTES: '',\n RAW_NAME: ''\n },\n title: '编辑',\n updatePopup: false,\n rowRule: {\n NUM: [{\n required: true,\n message: \"请输入数量\",\n trigger: \"blur\"\n }, {\n validator: valNum,\n trigger: \"blur\"\n }],\n UNIT: [{\n required: true,\n message: \"请输入单位\",\n trigger: \"blur\"\n }, {\n validator: checkUnit,\n trigger: \"blur\"\n }]\n },\n fileList: [],\n validation: false,\n completeTitle: \"删除\",\n nav: \"是否删除?\",\n isview: false,\n formInline: {\n staffName: \"\",\n TIME: ''\n },\n healthStatus: [],\n page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n },\n tableData: []\n };\n },\n created: function created() {\n window.addEventListener('keydown', this.handleKeyDown, true);\n },\n mounted: function mounted() {\n this.getNowDate();\n this.createLoad();\n if (this.$route.params.index) {\n this.currentChanges(this.$route.params.index);\n } else {\n this.getlist();\n }\n },\n methods: {\n getNowDate: function getNowDate() {\n var now = new Date();\n var year = now.getFullYear();\n var month = now.getMonth();\n var date = now.getDate();\n month = month + 1;\n month = month.toString().padStart(2, '0'); //指定长度为2不足2的话从开始填充字符串0\n date = date.toString().padStart(2, '0');\n var defaultDate = \"\".concat(year, \"-\").concat(month, \"-\").concat(date);\n this.$set(this.formInline, 'TIME', defaultDate);\n },\n handleKeyDown: function handleKeyDown(e) {\n var key = null;\n if (window.event === undefined) {\n key = e.keyCode;\n } else {\n key = window.event.keyCode;\n }\n if (key === 13) {\n this.onSubmit();\n }\n },\n mouseoverSpan: function mouseoverSpan(e) {\n if (e.target.scrollWidth > e.target.offsetWidth) {\n e.target.setAttribute(\"class\", \"cell-box span-overflow\");\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 bs64: function bs64(_bs) {\n var reader = new FileReader();\n reader.readAsDataURL(_bs);\n return new Promise(function (resolve) {\n reader.onload = function (e) {\n resolve(e.target.result);\n };\n });\n },\n // 分页\n currentChanges: function currentChanges(val) {\n this.createLoad();\n this.page.limit = val;\n this.getlist();\n },\n getlist: function getlist() {\n var _this = this;\n var limit = this.page.limit == \"0\" || this.page.limit == \"undefined\" ? 1 : this.page.limit;\n var Content = {\n currentPage: this.page.limit == 0 ? 1 : this.page.limit,\n TIME: this.formInline.TIME,\n pageNum: limit,\n pageSize: this.page.sizePage\n };\n console.log(Content);\n (0, _getdata.listCanteenPlan)(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n console.log(res.returnData);\n _this.clearLoad();\n _this.tableData = res.returnData.data;\n // console.log(this.tableData)\n _this.page.total = res.returnData.total;\n _this.page.limit = res.returnData.currentPage;\n _this.tableData.id = res.returnData.data.id;\n } else {\n _this.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\n });\n },\n onError: function onError() {},\n onSuccess: function onSuccess() {},\n onSubmit: function onSubmit() {\n this.page.limit = 1;\n this.createLoad();\n this.getlist();\n },\n //新增\n addHouse: function addHouse() {\n var id = 1;\n this.$router.push({\n path: \"/addfoodPrepare\",\n query: {\n til: \"添加\",\n id: id\n }\n });\n // window.localStorage.setItem(\"pageIndex\", this.page.limit);\n },\n // 导出\n onOut: function onOut() {\n var _this2 = this;\n (0, _getdata.Own)().then(function (res) {\n if (res.returnCode === \"1\") {\n var str = \"TIME=\" + _this2.formInline.TIME;\n var url = process.env.VUE_APP_BASE_API + \"/greenH5/greenWebmodul/rest/greenCanteenPlan/exportByExcel?\" + str;\n // console.log(11111,url)\n window.location.href = url;\n }\n });\n },\n view: function view(row) {\n this.title = '查看';\n this.row.RAW_NAME = row.RAW_NAME;\n this.row.UUID = row.UUID;\n this.row.UNIT = row.UNIT;\n this.row.NOTES = row.NOTES;\n this.row.NUM = Number(row.NUM);\n // console.log(this.row)\n this.updatePopup = true;\n this.isview = true;\n },\n //编辑\n editRecord: function editRecord(row) {\n this.title = '编辑';\n this.row.RAW_NAME = row.RAW_NAME;\n this.row.UUID = row.UUID;\n this.row.UNIT = row.UNIT;\n this.row.NOTES = row.NOTES;\n this.row.NUM = Number(row.NUM);\n console.log(this.row);\n this.updatePopup = true;\n this.isview = false;\n },\n submitUpdateForm: function submitUpdateForm(formName) {\n var _this3 = this;\n this.$refs[formName].validate(function (valid) {\n if (valid) {\n _this3.validation = true;\n _this3.nav = \"确认修改?\";\n _this3.completeTitle = \"修改\";\n _this3.btn = \"2\";\n }\n });\n },\n cancal: function cancal(formName) {\n this.getlist();\n this.updatePopup = false;\n },\n //删除\n closeDialogDel: function closeDialogDel(val) {\n var _this4 = this;\n if (val == \"1\") {\n this.createLoad();\n var Content = {\n UUID: this.row.UUID\n };\n (0, _getdata.delCanteenPlan)(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this4.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this4.page.limit = 1;\n _this4.getlist();\n } else {\n _this4.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this4.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(\"error\");\n setTimeout(function () {\n _this4.clearLoad();\n }, 300);\n });\n } else if (val == \"2\") {\n console.log(this.row, 888);\n var _Content = {\n UUID: this.row.UUID,\n NUM: this.row.NUM,\n UNIT: this.row.UNIT,\n NOTES: this.row.NOTES\n };\n //编辑\n (0, _getdata.modifyCanteenPlan)(_Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this4.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this4.getlist();\n _this4.updatePopup = false;\n } else {\n _this4.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this4.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this4.clearLoad();\n }, 300);\n });\n }\n this.validation = false;\n setTimeout(function () {\n _this4.clearLoad();\n }, 300);\n },\n //删除\n handleModifyStatus: function handleModifyStatus(row) {\n this.row = row;\n this.validation = true;\n this.nav = \"是否删除?\";\n this.completeTitle = \"删除\";\n this.btn = \"1\";\n },\n formatJson: function formatJson(filterVal, jsonData) {\n return jsonData.map(function (v) {\n return filterVal.map(function (j) {\n if (j === \"timestamp\") {\n return parseTime(v[j]);\n } else {\n return v[j];\n }\n });\n });\n }\n }\n};",null]}