hz-zhhq-web/node_modules/.cache/babel-loader/0d45038e6f0312faaaba7057a27...

1 line
5.5 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\\carWash\\carCode\\popup\\ticketpop.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\carWash\\carCode\\popup\\ticketpop.vue","mtime":1737610069408},{"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;\nrequire(\"core-js/modules/es6.function.name\");\nrequire(\"core-js/modules/es6.regexp.split\");\nvar _utils = require(\"@/utils\");\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//\nvar _default = exports.default = {\n props: [\"width\", \"row\", \"title\"],\n data: function data() {\n var orderTelRule = function orderTelRule(rule, value, callback) {\n var isPhone = /^1(3|4|5|7|8|9)\\d{9}$/;\n if (isPhone.test(value)) {\n callback();\n } else {\n callback(new Error(\"请输入正确格式的手机号码\"));\n }\n };\n return {\n options: [],\n /**拜访部门 */\n optionsSecond: [],\n //二级部门\n oldOrgId: this.row.org_id || \"\",\n oldOrgName: this.row.org_name || \"\",\n oldDeptId: this.row.department_id || \"\",\n oldDeptName: this.row.department_name || \"\",\n changeOrgId: this.row.org_id || \"\",\n changeOrgName: this.row.org_name || \"\",\n changeDeptId: this.row.department_id || \"\",\n changeDeptName: this.row.department_name || \"\",\n deptNameUrl: this.row.dept_name_url || \"\",\n deptIdUrl: this.row.dept_id_url || \"\",\n lDialog: this.width > 500 ? \"w700\" : \"w500\",\n dialogVisible: true,\n rules: {\n userName: [{\n required: true,\n message: \"请输入姓名\",\n trigger: \"change\"\n }],\n carNum: [{\n required: true,\n message: \"请输入车牌号\",\n trigger: \"change\"\n }],\n userPhone: [{\n required: true,\n message: \"请输入手机号\",\n trigger: \"change\"\n }, {\n validator: orderTelRule,\n trigger: \"blur\"\n }]\n },\n menuList: [],\n menuListTreeProps: {\n label: 'name',\n children: 'children'\n },\n chooseDeptId: this.row.dept_id_url == null ? [] : this.row.dept_id_url.split(\"/\"),\n chooseDeptName: this.row.dept_name_url == null ? [] : this.row.dept_name_url.split(\"/\")\n };\n },\n mounted: function mounted() {\n this.selectMenu();\n },\n methods: {\n selectMenu: function selectMenu() {\n var _this = this;\n var Content = {};\n (0, _getdata.deptSelect2)(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this.menuList = (0, _utils.treeDataTranslate)(res.returnData, 'id', 'parentId');\n }\n }).catch(function (err) {\n console.log(err);\n });\n },\n menuListTreeCurrentChangeHandle: function menuListTreeCurrentChangeHandle(data, node) {\n console.log(node, \"node\");\n console.log(data);\n this.chooseDeptId = [];\n this.chooseDeptName = [];\n this.getNodeData(node);\n this.row.dept_name_url = this.chooseDeptName.join(\"/\");\n this.row.dept_id_url = this.chooseDeptId.join(\"/\");\n // this.dataForm.parentId = data.id;\n // this.dataForm.parentName = data.name;\n this.$forceUpdate();\n },\n getNodeData: function getNodeData(node) {\n var name = node.data.name;\n var id = node.data.id;\n this.chooseDeptId.splice(0, 0, id);\n this.chooseDeptName.splice(0, 0, name);\n if (node.parent != null && node.parent.data.id && node.parent.data.id != 0) {\n this.getNodeData(node.parent);\n }\n console.log(this.chooseDeptId, 'chooseDeptId');\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 if (valid) {\n var data = {\n userName: _this4.row.userName,\n carNum: _this4.row.carNum,\n deptName: _this4.row.deptName,\n userPhone: _this4.row.userPhone,\n parkPosition: _this4.row.parkPosition\n };\n _this4.$emit('submit', data);\n }\n });\n }\n }\n};",null]}