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

1 line
6.4 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\\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\\epidemic\\travelCation\\cationmanager\\addcation\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\epidemic\\travelCation\\cationmanager\\addcation\\index.vue","mtime":1737610069415},{"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\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 { updateMaterialInfo, addMaterialInfo } from \"@/api/getdata\";\nimport Popup from \"@/views/estate/examine/dialog/popup.vue\";\nexport default {\n components: {\n Popup: Popup\n },\n data: function data() {\n var priceVa = function priceVa(rule, value, callback) {\n var reg = /^\\d{1,}(\\.\\d{1,2})?$/;\n var reg2 = /[`~!@#$%^&*()_\\-+=<>?:\"{}|,;'\\\\[\\]·~@#¥%……&*()——\\-+={}|《》?:“”【】、;‘’,。、]/g;\n if (reg.test(value) && !reg2.test(value)) {\n callback();\n } else {\n callback(new Error(\"请输入数字、且小数点后最多两位!\"));\n }\n };\n var foodNameVa = function foodNameVa(rule, value, callback) {\n var reg = /[`~!@#$%^&*()_\\-+=<>?:\"{}|,./;'\\\\[\\]·~@#¥%……&*()——\\-+={}|《》?:“”【】、;‘’,。、]/g;\n if (!reg.test(value)) {\n callback();\n } else {\n callback(new Error(\"不支持输入@#¥%……...等特殊字符 \"));\n }\n };\n return {\n indexCall: this.$route.query.index ? this.$route.query.index : window.localStorage.getItem(\"foodIndex\"),\n validation: false,\n completeTitle: \"\",\n nav: \"\",\n imgData: {},\n dialogImageUrl: \"\",\n dialogVisible: false,\n timeUpdate: \"\",\n ruleForm: {\n name: \"\",\n unit: \"\"\n },\n aa: \"\",\n til: \"添加\",\n id: \"\",\n rules: {\n name: [{\n required: true,\n message: \"请输入名称\",\n trigger: \"blur\"\n }],\n unit: [{\n required: true,\n message: \"请输入单位\",\n trigger: \"blur\"\n }]\n },\n foodsAttr: []\n };\n },\n created: function created() {},\n mounted: function mounted() {\n console.log(window.localStorage.getItem(\"foodsAttr\"));\n this.foodsAttr = JSON.parse(window.localStorage.getItem(\"foodsAttr\"));\n var data = typeof this.$route.query.rowdata == \"string\" ? JSON.parse(window.localStorage.getItem(\"foodRowdata\")) : this.$route.query.rowdata;\n this.ruleForm.name = data ? data.NAME : \"\";\n this.ruleForm.unit = data ? data.UNIT : \"\";\n this.til = data ? data.til : \"添加\";\n this.id = data ? data.UUID : \"\";\n },\n methods: {\n /**返回上一级 */comeBack: function comeBack() {\n this.$router.push({\n name: \"cationmanager\",\n params: {\n index: this.indexCall\n }\n });\n },\n submitForm: function submitForm(formName) {\n var _this = this;\n this.$refs[formName].validate(function (valid) {\n if (valid) {\n if (_this.til == \"编辑\") {\n _this.validation = true;\n _this.completeTitle = \"编辑\";\n _this.nav = \"是否编辑?\";\n } else {\n _this.validation = true;\n _this.completeTitle = \"添加\";\n _this.nav = \"是否添加?\";\n }\n }\n });\n },\n closeDialogDel: function closeDialogDel(val) {\n var _this2 = this;\n if (val == \"2\") {\n var Content = {\n id: this.id,\n name: this.ruleForm.name,\n unit: this.ruleForm.unit\n };\n updateMaterialInfo(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this2.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this2.$router.push({\n name: \"cationmanager\",\n params: {\n index: _this2.indexCall\n }\n });\n } else {\n _this2.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n console.log(err);\n });\n } else if (val == \"3\") {\n var _Content = {\n name: this.ruleForm.name,\n unit: this.ruleForm.unit\n };\n addMaterialInfo(_Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this2.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n if (_this2.completeTitle == \"添加\") {\n _this2.$router.push({\n name: \"cationmanager\",\n params: {\n index: 1\n }\n });\n }\n } else {\n _this2.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n console.log(err);\n });\n }\n // this.$refs[\"ruleForm\"].resetFields();\n this.validation = false;\n },\n resetForm: function resetForm(formName) {\n this.$refs[formName].resetFields();\n this.$router.push({\n name: \"cationmanager\",\n params: {\n index: this.indexCall\n }\n });\n this.$message({\n message: \"取消成功\",\n type: \"success\"\n });\n }\n }\n};",null]}