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

1 line
28 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\\resource\\furniture\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\resource\\furniture\\index.vue","mtime":1737610069444},{"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\");\nrequire(\"core-js/modules/es6.regexp.replace\");\nrequire(\"core-js/modules/es6.regexp.split\");\nvar _defineProperty2 = _interopRequireDefault(require(\"E:/hz-zhhq-web/node_modules/@babel/runtime/helpers/defineProperty.js\"));\nvar _paging = _interopRequireDefault(require(\"@/views/Public/paging.vue\"));\nvar _popup = _interopRequireDefault(require(\"@/views/estate/examine/dialog/popup.vue\"));\nvar _jsMd = _interopRequireDefault(require(\"js-md5\"));\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\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 priceVa = function priceVa(rule, value, callback) {\n // var reg =/^[0-9\\\\.]*$/\n var reg = /^[0-9]*[1-9][0-9]*$/;\n if (reg.test(value)) {\n callback();\n } else {\n callback(new Error(\"请输入整数!\"));\n }\n };\n var furnitrueNameV = function furnitrueNameV(rule, value, callback) {\n // var reg = /^[0-9a-zA-Z_\\u4e00-\\u9fa5]+$/;\n\n var reg = /[`~!@#$%^&*()_\\-+=<>?:\"{}|,./;'\\\\[\\]·~@#¥%……&*()——\\-+={}|《》?:“”【】、;‘’,。、]/g;\n if (!reg.test(value)) {\n callback();\n } else {\n callback(new Error(\"请输入正确的格式 !\"));\n }\n };\n var ruleV = function ruleV(rule, value, callback) {\n // var reg = /^[0-9a-zA-Z_\\u4e00-\\u9fa5]+$/;\n\n var reg = /[`~!@#$%^&*()_\\-+=<>?:\"{}|,./;'\\\\[\\]·~@#¥%……&*()——\\-+={}|《》?:“”【】、;‘’,。、]/g;\n if (!reg.test(value)) {\n callback();\n } else {\n callback(new Error(\"请输入正确的格式 !\"));\n }\n };\n // textureV\n\n var textureV = function textureV(rule, value, callback) {\n var reg = /[`~!@#$%^&*()_\\-+=<>?:\"{}|,./;'\\\\[\\]·~@#¥%……&*()——\\-+={}|《》?:“”【】、;‘’,。、]/g;\n if (!reg.test(value)) {\n callback();\n } else {\n callback(new Error(\"请输入正确的格式 !\"));\n }\n };\n var supplierNameV = function supplierNameV(rule, value, callback) {\n var reg = /[`~!@#$%^&*()_\\-+=<>?:\"{}|,./;'\\\\[\\]·~@#¥%……&*()——\\-+={}|《》?:“”【】、;‘’,。、]/g;\n if (!reg.test(value)) {\n callback();\n } else {\n callback(new Error(\"请输入正确的格式 !\"));\n }\n };\n return (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({\n loading: false,\n //初始化loading\n loadingMsg: \"\",\n row: {},\n fileList: [],\n formDate: new FormData(),\n validation: false,\n completeTitle: \"\",\n nav: \"\",\n page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n },\n aa: \"\",\n office: \"添加\",\n formInline: {\n furnitrueName: \"\",\n supplierName: \"\",\n useArea: \"\",\n useRoom: \"\",\n use_state: \"\",\n storage_time: \"\",\n removal_time: \"\",\n back_time: \"\",\n useState: \"\"\n },\n ruleForm: {\n furnitrueName: \"\",\n pic: \"\",\n rule: \"\",\n texture: \"\",\n _number: \"\",\n supplierName: \"\",\n storageTime: \"\",\n removalTime: \"\",\n useState: \"\",\n useArea: \"\",\n useRoom: \"\",\n remark: \"\"\n }\n }, \"row\", {}), \"rules\", {\n furnitrueName: [{\n required: true,\n message: \"请填写家居物资名称\",\n trigger: \"blur\"\n }, {\n validator: furnitrueNameV,\n trigger: \"blur\"\n }],\n // required: true\n pic: [{\n required: true,\n message: \"请选择图片\",\n trigger: \"blur\"\n }],\n rule: [{\n required: true,\n message: \"请选择规格尺寸\",\n trigger: \"blur\"\n }, {\n validator: ruleV,\n trigger: \"blur\"\n }],\n texture: [{\n required: true,\n message: \"请选择家居物资材质\",\n trigger: \"blur\"\n }, {\n validator: textureV,\n trigger: \"blur\"\n }],\n _number: [{\n required: true,\n message: \"请填写数量\",\n trigger: \"blur\"\n }, {\n validator: priceVa,\n trigger: \"blur\"\n }],\n supplierName: [{\n required: true,\n message: \"请填写供应商名称\",\n trigger: \"blur\"\n }, {\n validator: supplierNameV,\n trigger: \"blur\"\n }],\n storageTime: [{\n required: true,\n message: \"请选择入库时间\",\n trigger: \"blur\"\n }],\n removalTime: [{\n required: true,\n message: \"请选择出库时间\",\n trigger: \"blur\"\n }],\n useState: [{\n required: true,\n message: \"请选择使用状态\",\n trigger: \"blur\"\n }]\n }), \"centerDialogVisible\", false), \"tableData\", []);\n },\n created: function created() {\n // this.page.total = this.tableData.length;\n // this.getDate(1);\n },\n mounted: function mounted() {\n this.createLoad();\n this.getDate();\n },\n methods: {\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 changeFile: function changeFile(options, fileList) {\n var that = this;\n // 获取文件对象\n var file = options.raw;\n //判断图片类型\n if (file.type == \"image/jpeg\" || file.type == \"image/png\" || file.type == \"image/JPG\") {\n var isJPG = true;\n } else {\n isJPG = false;\n }\n // 判断图片大小\n var isLt2M = file.size / 1024 / 1024 < 2;\n if (!isJPG) {\n this.$message.error(\"上传产品图片只能是 JPG/PNG/JPEG 格式!\");\n }\n if (!isLt2M) {\n this.$message.error(\"上传产品图片大小不能超过 2MB!\");\n }\n // 创建一个HTML5的FileReader对象\n var reader = new FileReader();\n //创建一个img对象\n var img = new Image();\n var filename = options.filename;\n if (file) {\n reader.readAsDataURL(file);\n }\n if (isJPG && isLt2M) {\n reader.onload = function (e) {\n var base64Str = reader.result.split(\",\")[1];\n var newUrl;\n if (file.size / 1024 < 1024) {\n that.$set(that.ruleForm, \"pic\", e.target.result);\n return;\n }\n img.src = e.target.result;\n\n // base64地址图片加载完毕后执行\n // base64地址图片加载完毕后执行\n img.onload = function () {\n var _this = this;\n // 缩放图片需要的canvas也可以在DOM中直接定义canvas标签这样就能把压缩完的图片不转base64也能直接显示出来\n var canvas = document.createElement(\"canvas\");\n var context = canvas.getContext(\"2d\");\n !function msximg(w, h) {\n var wid = w || img.width;\n var hei = h || img.height;\n canvas.width = wid;\n canvas.height = hei;\n context.drawImage(img, 0, 0, wid, hei);\n newUrl = canvas.toDataURL(\"image/jpeg\");\n var str = newUrl.replace(\"data:image/png;base64,\", \"\");\n // 找到等号,把等号也去掉\n var equalIndex = str.indexOf(\"=\");\n if (str.indexOf(\"=\") > 0) {\n str = str.substring(0, equalIndex);\n }\n var strLength = str.length;\n var fileLength = parseInt(strLength - strLength / 8 * 2);\n var size = \"\";\n size = (fileLength / 1024).toFixed(2);\n if (size > 1024) {\n var num = size > 1024 * 2 ? 0.5 : 0.9;\n msximg(wid * num, hei * num);\n } else {\n that.$set(that.ruleForm, \"pic\", newUrl);\n return;\n }\n }();\n };\n };\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 = \"backTime=\" + _this2.formInline.back_time + \"&furnitrueName=\" + _this2.formInline.furnitrueName + \"&removalTime=\" + _this2.formInline.removal_time + \"&storageTime=\" + _this2.formInline.storage_time + \"&supplierName=\" + _this2.formInline.supplierName + \"&useArea=\" + _this2.formInline.useArea + \"&useRoom=\" + _this2.formInline.useRoom + \"&useState=\" + _this2.formInline.useState;\n // http://192.168.222.89:8080/greenH5/greenWebmodul/rest/greenOfficeDevice/exportByExcel\n var url = \"/greenH5/greenWebmodul/rest/greenFurnitrueResource/exportByExcel?\" + str;\n window.location.href = url;\n }\n });\n },\n //导入\n handlePreview: function handlePreview() {\n this.formDate = new FormData();\n this.$refs.upload.clearFiles();\n },\n onchange: function onchange(file) {\n var _this3 = this;\n this.fileList = [];\n // this.formDate = new FormData();\n // this.formDate.append(\"file\", file.raw);\n // console.log(md5(JSON.stringify(file)),111)\n this.fileList.push(file);\n var flag = false;\n if (this.fileList.length > 0) {\n flag = false;\n var Lastindex = this.fileList[0].name.lastIndexOf(\".\");\n if (this.fileList[0].name.slice(Lastindex) != \".xls\" && this.fileList[0].name.slice(Lastindex) != \".xlsx\") {\n flag = false;\n this.$message({\n message: \"请选择正确的Excel格式\",\n type: \"warning\"\n });\n return false;\n } else {\n flag = true;\n }\n } else {\n flag = true;\n }\n this.bs64(file.raw).then(function (bs64) {\n _this3.formDate = {\n file: bs64\n };\n if (flag) {\n _this3.createLoad();\n (0, _getdata.FamilyimportByExcel)(_this3.formDate).then(function (res) {\n if (res.returnCode == \"1\") {\n _this3.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this3.clearLoad();\n _this3.getDate();\n } else {\n _this3.clearLoad();\n _this3.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n // console.log(res,'000')\n }).catch(function (err) {\n _this3.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n });\n }\n });\n },\n onSearch: function onSearch() {\n // alert(0)\n this.createLoad();\n this.page.limit = 1;\n this.getDate();\n },\n // 弹框关闭的回调\n closeDialog: function closeDialog() {\n this.ruleForm = {};\n this.$refs.ruleForm.resetFields();\n },\n submitForm: function submitForm(formName) {\n var _this4 = this;\n var Content;\n this.$refs[formName].validate(function (valid) {\n if (valid) {\n _this4.validation = true;\n if (_this4.office == \"修改\") {\n _this4.completeTitle = \"修改\";\n _this4.nav = \"是否修改?\";\n } else {\n _this4.completeTitle = \"添加\";\n _this4.nav = \"是否添加?\";\n }\n // alert('submit!');\n // if (this.office == \"添加\") {\n // Content = {\n // _number: this.ruleForm._number,\n // backTime: \"\",\n // furnitrueName: this.ruleForm.furnitrueName,\n // pic: this.ruleForm.pic,\n // remark: this.ruleForm.remark,\n // removalTime: this.ruleForm.removalTime,\n // rule: this.ruleForm.rule,\n // storageTime: this.ruleForm.storageTime,\n // supplierName: this.ruleForm.supplierName,\n // texture: this.ruleForm.texture,\n // useArea: this.ruleForm.useArea,\n // useRoom: this.ruleForm.useRoom,\n // useState: this.ruleForm.useState\n // };\n // FamilySave(Content)\n // .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.getDate();\n // } else {\n // this.$message({\n // message:res.returnMsg,\n // type: \"warning\"\n // });\n // }\n // })\n // .catch(err => {\n // console.log(err);\n // });\n // } else {\n // Content = {\n // id: this.row.id,\n // _number: this.ruleForm._number,\n // backTime: \"\",\n // furnitrueName: this.ruleForm.furnitrueName,\n // pic: this.ruleForm.pic,\n // remark: this.ruleForm.remark,\n // removalTime: this.ruleForm.removalTime,\n // rule: this.ruleForm.rule,\n // storageTime: this.ruleForm.storageTime,\n // supplierName: this.ruleForm.supplierName,\n // texture: this.ruleForm.texture,\n // useArea: this.ruleForm.useArea,\n // useRoom: this.ruleForm.useRoom,\n // useState: this.ruleForm.useState\n // };\n // FamilyBian(Content)\n // .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.getDate();\n // } else {\n // this.$message({\n // message:res.returnMsg,\n // type: \"warning\"\n // });\n // }\n // })\n // .catch(err => {\n // console.log(err);\n // });\n // }\n } else {\n console.log(\"error submit!!\");\n return false;\n }\n // this.centerDialogVisible = false;\n });\n },\n resetForm: function resetForm(formName) {\n // this.$refs[formName].resetFields();\n this.centerDialogVisible = false;\n },\n onSubmit: function onSubmit() {\n console.log(\"submit!\");\n },\n handleUpdate: function handleUpdate(row) {\n this.row = row;\n this.office = \"修改\";\n this.centerDialogVisible = true;\n this.ruleForm = {\n furnitrueName: row.furnitrue_name,\n pic: row.pic1,\n rule: row.rule,\n texture: row.texture,\n _number: row.number,\n supplierName: row.supplier_name,\n /**回显不能是一个空 */\n storageTime: row.storage_time,\n removalTime: row.removal_time,\n useState: row.use_state,\n useArea: row.use_area,\n useRoom: row.use_room,\n remark: row.remark\n };\n // this.ruleForm = index;\n // let Content = {\n // id:row.id\n // }\n // TDetail(Content)\n // .then(res => {\n // if (res.returnCode == \"1\") {\n // this.row = res.returnData;\n\n // } else {\n // this.$message({\n // message: \"详情有误!\",\n // type: \"warning\"\n // });\n // }\n // })\n // .catch(err => {\n // console.log(err);\n // });\n },\n /**回收 */Callback: function Callback(row) {\n this.completeTitle = \"回收\";\n this.nav = \"是否回收?\";\n this.row = row;\n this.validation = true;\n // let Content = {\n // id: row.id\n // };\n // FamilyDetil(Content)\n // .then(res => {\n // if (res.returnCode == \"1\") {\n // this.$message({\n // message: res.returnMsg,\n // type: \"warning\"\n // });\n // }\n // })\n // .catch(err => {\n // this.$message({\n // message:res.returnMsg,\n // type: \"warning\"\n // });\n // });\n },\n /**删除 */closeDialogDel: function closeDialogDel(val) {\n var _this5 = this;\n var Content;\n var Contents = {\n id: this.row.id\n // userId: \"40\"\n };\n if (val == \"1\") {\n (0, _getdata.FamilyDel)(Contents).then(function (res) {\n if (res.returnCode == \"1\") {\n _this5.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this5.createLoad();\n _this5.page.limit = 1;\n _this5.getDate();\n } else {\n _this5.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n }).catch(function (err) {\n _this5.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n });\n } else if (val == \"2\") {\n Content = {\n id: this.row.id,\n _number: this.ruleForm._number,\n backTime: this.row.back_time ? this.row.back_time : \"\",\n furnitrueName: this.ruleForm.furnitrueName,\n pic: this.ruleForm.pic,\n remark: this.ruleForm.remark,\n removalTime: this.ruleForm.removalTime,\n rule: this.ruleForm.rule,\n storageTime: this.ruleForm.storageTime,\n supplierName: this.ruleForm.supplierName,\n texture: this.ruleForm.texture,\n useArea: this.ruleForm.useArea,\n useRoom: this.ruleForm.useRoom,\n useState: this.ruleForm.useState\n // picData:this.ruleForm.pic\n };\n (0, _getdata.FamilyBian)(Content).then(function (res) {\n // console.log(res,8888);\n if (res.returnCode == \"1\") {\n _this5.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this5.page.limit = _this5.page.limit;\n _this5.createLoad();\n _this5.getDate();\n } else {\n _this5.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n _this5.centerDialogVisible = false;\n }).catch(function (err) {\n console.log(err);\n });\n } else if (val == \"3\") {\n Content = {\n _number: this.ruleForm._number,\n backTime: \"\",\n furnitrueName: this.ruleForm.furnitrueName,\n pic: this.ruleForm.pic,\n remark: this.ruleForm.remark,\n removalTime: this.ruleForm.removalTime,\n rule: this.ruleForm.rule,\n storageTime: this.ruleForm.storageTime,\n supplierName: this.ruleForm.supplierName,\n texture: this.ruleForm.texture,\n useArea: this.ruleForm.useArea,\n useRoom: this.ruleForm.useRoom,\n useState: this.ruleForm.useState\n // picData:this.ruleForm.pic\n };\n (0, _getdata.FamilySave)(Content).then(function (res) {\n // console.log(res,8888);\n if (res.returnCode == \"1\") {\n _this5.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n _this5.createLoad();\n _this5.getDate();\n } else {\n _this5.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n }\n _this5.centerDialogVisible = false;\n }).catch(function (err) {\n console.log(err);\n });\n } else if (val == \"4\") {\n //回收\n var _Content = {\n id: this.row.id\n };\n console.log(1111);\n (0, _getdata.FamilyDetil)(_Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this5.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n // console.log(this.row,888)\n _this5.$nextTick(function () {\n _this5.row.disable = true;\n });\n // console.log(this.tableData,1000)\n _this5.createLoad();\n _this5.getDate();\n }\n }).catch(function (err) {\n _this5.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n });\n }\n this.validation = false;\n },\n handleModifyStatus: function handleModifyStatus(row) {\n this.completeTitle = \"删除\";\n this.nav = \"是否删除?\";\n this.row = row;\n this.validation = true;\n },\n handleDrag: function handleDrag() {\n this.$refs.select.blur();\n },\n // 图片上传\n handleAvatarSuccess: function handleAvatarSuccess(res, file) {\n this.imageUrl = URL.createObjectURL(file.raw);\n },\n beforeAvatarUpload: function beforeAvatarUpload(file) {\n var isJPG = file.type === \"image/jpeg\";\n var isLt2M = file.size / 1024 / 1024 < 2;\n if (!isJPG) {\n this.$message.error(\"上传图片只能是 JPG 格式!\");\n }\n if (!isLt2M) {\n this.$message.error(\"上传图片大小不能超过 2MB!\");\n }\n return isJPG && isLt2M;\n },\n // 分页\n currentChanges: function currentChanges(val) {\n this.createLoad();\n this.page.limit = val;\n this.getDate();\n },\n getDate: function getDate() {\n var _this6 = this;\n var Content = {\n currentPage: this.page.limit,\n queryObj: {\n backTime: this.formInline.back_time,\n furnitrueName: this.formInline.furnitrueName,\n removalTime: this.formInline.removal_time,\n storageTime: this.formInline.storage_time,\n supplierName: this.formInline.supplierName,\n useArea: this.formInline.useArea,\n useRoom: this.formInline.useRoom,\n useState: this.formInline.useState\n }\n };\n // console.log(Content, 123);\n (0, _getdata.FamilyList)(Content).then(function (res) {\n // console.log(res);\n if (res.returnCode == \"1\") {\n _this6.clearLoad();\n _this6.tableData = res.returnData.data;\n _this6.tableData.map(function (item) {\n item.disable = false;\n });\n _this6.page.total = res.returnData.total;\n _this6.page.limit = res.returnData.currentPage;\n if (_this6.page.total == 0) {\n _this6.$message({\n message: \"当前无数据\",\n type: \"success\"\n });\n } else {\n _this6.$message({\n message: res.returnMsg,\n type: \"success\"\n });\n setTimeout(function () {\n _this6.clearLoad();\n }, 300);\n }\n } else {\n _this6.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this6.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n });\n }\n }\n};",null]}