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

1 line
7.0 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\\house\\contractTemplate\\uploadTemp.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\house\\contractTemplate\\uploadTemp.vue","mtime":1740388532401},{"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.function.name\");\nvar _getdata = require(\"@/api/getdata\");\nvar _popup = _interopRequireDefault(require(\"@/views/estate/examine/dialog/popup.vue\"));\nvar _crypto = require(\"crypto\");\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 Popup: _popup.default\n },\n data: function data() {\n var userPositionAll = function userPositionAll(rule, value, callback) {\n if (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(\"pageIndex\"),\n validation: false,\n completeTitle: \"\",\n nav: \"\",\n til: \"添加\",\n id: \"\",\n ruleForm: {\n //房屋信息\n tempName: \"\",\n userPosition: \"\",\n file: this.file\n },\n file: \"\",\n fileList: [],\n form: {},\n files: {},\n flag: false,\n rules: {\n tempName: [{\n required: true,\n message: \"请输入房屋名称\",\n trigger: \"blur\"\n }],\n userPosition: [{\n required: true,\n message: \"请上传采购清单附件\",\n trigger: \"blur\"\n }, {\n validator: userPositionAll,\n trigger: \"blur\"\n }]\n }\n };\n },\n created: function created() {},\n mounted: function mounted() {\n console.log(this.$route.query);\n // var data = this.$route.query.rowdata;\n // console.log(data)\n // if(data){\n // this.id = data.UUID;\n // this.til =data.til ;\n // }\n },\n methods: {\n /**返回上一级 */comeBack: function comeBack() {\n this.$router.push({\n name: \"contractTemplate\",\n params: {\n index: this.indexCall\n }\n });\n },\n //底部提交\n submitForm: function submitForm(formName) {\n var _this2 = this;\n this.$refs[formName].validate(function (valid) {\n if (valid) {\n if (_this2.til == \"编辑\") {\n _this2.validation = true;\n _this2.completeTitle = \"编辑\";\n _this2.nav = \"是否编辑?\";\n } else {\n _this2.validation = true;\n _this2.completeTitle = \"添加\";\n _this2.nav = \"是否添加?\";\n }\n }\n });\n },\n closeDialogDel: function closeDialogDel(val) {\n var _this3 = this;\n if (val == \"2\") {//编辑\n } else if (val == \"3\") {\n //新增\n this.form = {\n tempName: this.ruleForm.tempName,\n fileName: this.files.name\n };\n this.bs64(this.files).then(function (bs64) {\n _this3.form.file = bs64;\n if (_this3.flag) {\n console.log(_this3.form);\n // AddPurchaselist(this.form).then(res => {\n // // console.log(res,8888);\n // if (res.returnCode == \"1\") {\n // this.$message({\n // message: res.returnMsg,\n // type: \"success\"\n // });\n // this.getlist();\n // this.$nextTick(() => {\n // this.$refs[\"ruleForm\"].resetFields();\n // });\n // } else {\n // this.clearLoad();\n // this.$message({\n // message: res.returnMsg,\n // type: \"warning\"\n // });\n // }\n // this.centerDialogVisible = false;\n // })\n // .catch(err => {\n // console.log(err);\n // });\n }\n });\n }\n this.validation = false;\n },\n resetForm: function resetForm(formName) {\n this.$refs[formName].resetFields();\n this.$router.push({\n name: \"contractTemplate\",\n params: {\n index: this.indexCall\n }\n });\n this.$message({\n message: \"取消成功\",\n type: \"success\"\n });\n },\n deleteImgs: function deleteImgs() {\n this.ruleForm.userPosition = '';\n },\n changeFile: function changeFile(options, fileList) {\n var _this = this;\n this.fileList = [];\n this.fileList.push(options);\n this.flag = false;\n if (this.fileList.length > 0) {\n var isLt2M = options.size / 1024 / 1024 < 20;\n if (!isLt2M) {\n this.$message.error(\"附件文件上传大小不能超过 2MB!\");\n }\n this.flag = false;\n if (isLt2M) {\n var Lastindex = this.fileList[0].name.lastIndexOf(\".\");\n if (\n // doc|docx|xls|xlsx|pdf|zip\n this.fileList[0].name.slice(Lastindex) != \".doc\" && this.fileList[0].name.slice(Lastindex) != \".docx\") {\n this.flag = false;\n this.files = {};\n this.file = \"\";\n this.ruleForm.userPosition = \"\";\n this.$message({\n message: \"请选择 doc|docx 格式\",\n type: \"warning\"\n });\n return false;\n } else {\n this.files = options.raw;\n this.file = options.name;\n this.ruleForm.userPosition = options.name;\n this.flag = true;\n }\n }\n } else {\n this.flag = true;\n }\n },\n changeUser: function changeUser(val) {\n if (!val || val != this.file) {\n this.form = {};\n }\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};",null]}