1 line
6.3 KiB
JSON
1 line
6.3 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\\popup\\ticketpop.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\menuCard\\popup\\ticketpop.vue","mtime":1737610069436},{"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\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _fs = require(\"fs\");\nvar _getdata = require(\"@/api/getdata\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n/**\r\n * btn 1 取消\r\n * btn 2 确认\r\n * btn 3 取消和确认\r\n */\nvar _default = exports.default = {\n props: [\"title\", \"btn\", \"width\", \"row\", \"rule\"],\n data: function data() {\n var priceVa = function priceVa(rule, value, callback) {\n // var reg =/^[0-9\\\\.]*$/\n var reg = /^[0-9]*[1-9][0-9]*$/;\n if (value === 0 || reg.test(value)) {\n callback();\n } else {\n callback(new Error(\"请输入整数!\"));\n }\n };\n return {\n options: [],\n /**拜访部门 */\n // options: [\n // {\n // value: \"1\",\n // label: \"后勤工作部\"\n // },\n // {\n // value: \"2\",\n // label: \"营销部\"\n // }\n // ],\n lDialog: this.width > 500 ? \"w700\" : \"w500\",\n titleV: this.title == \"sz\" ? \"设置餐券数量\" : this.title == \"bj\" ? \"编辑餐券数量\" : \"设置餐券数量\",\n content: \"请检查并重新输入考核得分\",\n sureBtn: \"确认\",\n clearBtn: \"取消\",\n dialogVisible: true,\n // this.type == \"2\" ? this.row.Month : \"\"\n // dialogVisible: this.type ? true : false /*弹出窗 */,\n ruleForm: {\n // name:'',\n // region:''\n bm: this.title == \"bj\" ? this.row.department_id : \"\",\n cq: this.title == \"bj\" ? parseInt(this.row.daily_issued_num) : \"\",\n yxq: \"1\",\n time: \"\",\n yxq_yj: \"\"\n // time:\"\",\n // beginDate:this.ruleForm.time?this.ruleForm.time[0]:\"\",\n // endDate:this.ruleForm.time?this.ruleForm.time[1]:\"\"\n },\n rules: {\n bm: [{\n required: true,\n message: \"请选择部门名\",\n trigger: \"change\"\n }],\n cq: [{\n required: true,\n message: \"请输入每日餐券数量\",\n trigger: \"blur\"\n }, {\n validator: priceVa,\n trigger: \"blur\"\n }],\n yxq: [{\n required: true,\n message: \"请选择有效期类型\",\n trigger: \"change\"\n }]\n // time:[{ required: true, message: \"请选择有效期日期\", trigger: \"change\" }],\n // yxq_yj:[{ required: true, message: \"请选择生效日期\", trigger: \"change\" }]\n\n // re()\"^[0-9]*[1-9][0-9]*$\"\n },\n pickerOptions: {\n disabledDate: function disabledDate(time) {\n // return time.getTime() <= Date.now() - 8.64e7 || time.getTime() > Date.now() + 8.64e7*30;\n return time.getTime() < Date.now() - 8.64e7 || time.getTime() > new Date(new Date().getFullYear(), new Date().getMonth() + 2, \"0\").getTime();\n //return time.getTime() > Date.now(); //设置选择今天以及今天以前的日期\n //return time.getTime() < Date.now();//设置选择今天之后的日期(不能选择当天时间)\n // return time.getTime() > Date.now()-8.64e7;//设置选择今天之前的日期(不能选择当天)\n }\n }\n };\n },\n mounted: function mounted() {\n this.getbmlist();\n },\n methods: {\n getbmlist: function getbmlist() {\n var _this = this;\n (0, _getdata.GetChan)().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 }).catch(function (err) {\n console.log(err);\n });\n },\n /*关闭弹窗 */handleClose: function handleClose() {\n var _this2 = this;\n this.dialogVisible = false;\n this.$emit(\"closeDialog\");\n setTimeout(function () {\n _this2.dialogVisible = true;\n });\n },\n /**确认弹窗 */sureBtnClick: function sureBtnClick() {\n var _this3 = this;\n this.dialogVisible = false;\n this.$emit(\"closeDialog\");\n setTimeout(function () {\n _this3.dialogVisible = true;\n });\n },\n /**验证 */submitForm: function submitForm(formName) {\n var _this4 = this;\n this.$refs[formName].validate(function (valid) {\n debugger;\n if (valid) {\n _this4.dialogVisible = false;\n _this4.ruleForm.beginDate = _this4.ruleForm.yxq == 1 ? _this4.ruleForm.time[0] ? _this4.ruleForm.time[0] : \"\" : _this4.ruleForm.yxq_yj ? _this4.ruleForm.yxq_yj : \"\";\n _this4.ruleForm.endDate = _this4.ruleForm.yxq == 1 ? _this4.ruleForm.time[1] ? _this4.ruleForm.time[1] : \"\" : \"\";\n _this4.$emit(\"settingdata\", _this4.ruleForm, _this4.title);\n setTimeout(function () {\n _this4.dialogVisible = true;\n });\n } else {\n console.log(\"error submit!!\");\n return false;\n }\n });\n }\n }\n};",null]} |