{"remainingRequest":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\babel-loader\\lib\\index.js!E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!E:\\2023\\yancheng0718\\yanchengPowerSupply\\src\\component\\workOrder.vue?vue&type=script&lang=js&","dependencies":[{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\src\\component\\workOrder.vue","mtime":1689642397092},{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\babel.config.js","mtime":1689642387810},{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1689642389292},{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\babel-loader\\lib\\index.js","mtime":1689642388897},{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1689642389292},{"path":"E:\\2023\\yancheng0718\\yanchengPowerSupply\\node_modules\\vue-loader\\lib\\index.js","mtime":1689642396086}],"contextDependencies":[],"result":["import \"core-js/modules/es6.regexp.split\";\nimport { getGdtj, getWord } from \"../api/index\";\n// import axios from \"axios\";\nvar docx = require(\"docx-preview\");\nwindow.JSZip = require(\"jszip\");\nexport default {\n name: \"workOrder\",\n props: [\"orderItem\"],\n data: function data() {\n return {\n workList: null,\n wordShow: false,\n wordTitle: \"\",\n closeShow: false\n };\n },\n created: function created() {\n var _this = this;\n // console.log(this.workId,'id');\n // 查询工单详情\n // if(this.orderItem.gd_type_id==''){\n // return\n // }\n getGdtj({\n action: \"detail\",\n gd_type_id: this.orderItem.gd_type_id\n }).then(function (res) {\n if (res.state == false) {\n return;\n }\n // console.log(res.data.data, \"工单详情数据\");\n _this.workList = res.data.data;\n });\n },\n methods: {\n handleClose: function handleClose() {\n this.$parent.workShow = \"\";\n this.$parent.orderItem = null;\n },\n // 弹出word\n openFile: function openFile(url, row) {\n var _this2 = this;\n // console.log(row,'数据');\n // word标题\n this.wordTitle = row;\n var that = this;\n // console.log(url);\n // console.log(url, \"url路劲\");\n var url = \"/\" + url.split(\"/\")[3] + \"/\" + url.split(\"/\")[4];\n // console.log(url,'路劲');\n\n //\n\n getWord(url).then(function (_ref) {\n var data = _ref.data;\n // console.log(data, \"格式\");\n\n // console.log(src,'000');\n that.$nextTick(function () {\n // doc.renderAsync(data,that.$refs.word)\n docx.renderAsync(data, that.$refs.word, null, {\n className: \"docx\",\n //默认和文档样式类的类名/前缀\n inWrapper: true,\n //启用围绕文档内容呈现包装器\n ignoreWidth: true,\n //禁用页面的渲染宽度\n ignoreHeight: true,\n //禁用页面的渲染高度\n ignoreFonts: false,\n //禁用字体渲染\n breakPages: true,\n //在分页符上启用分页\n ignoreLastRenderedPageBreak: true,\n //在lastRenderedPageBreak元素上禁用分页\n experimental: false,\n //启用实验功能(制表符停止计算)\n trimXMLDeclaration: true,\n //如果为true,则在解析之前将从xml文档中删除xml声明\n useBase64URL: false,\n //如果为true,图像、字体等将转换为base 64 URL,否则使用URL.createObjectURL\n useMathMLPolyfill: false,\n //包括用于铬、边等的MathML多填充。\n showChanges: false,\n //启用文档更改的实验渲染(插入/删除)\n debug: false //启用额外的日志记录\n }).then(function (res) {\n _this2.wordShow = true;\n that.closeShow = true;\n });\n });\n });\n // 关闭按钮显示\n\n // setTimeout(() => {\n // that.closeShow = true;\n // }, 2000);\n // });\n // });\n },\n // 关闭word\n wordClose: function wordClose() {\n this.wordShow = false;\n }\n }\n};",{"version":3,"mappings":";AAyEA;AACA;AACA;AAEAA;AACA;EACAC;EACAC;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;IAGA;EACA;EACAC;IAAA;IACA;IACA;IACA;IACA;IACA;IACAC;MAAAC;MAAAC;IAAA,QACA;MACA;QACA;MACA;MACA;MACA;IACA,EACA;EACA;EACAC;IACAC;MACA;MACA;IACA;IACA;IACAC;MAAA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;;MAEA;;MAEAC;QAAA;QACA;;QAEA;QACAC;UACA;UACAC,KACAC;YACAC;YAAA;YACAC;YAAA;YACAC;YAAA;YACAC;YAAA;YACAC;YAAA;YACAC;YAAA;YACAC;YAAA;YACAC;YAAA;YACAC;YAAA;YACAC;YAAA;YACAC;YAAA;YACAC;YAAA;YACAC;UACA,GACAC;YACA;YACAhB;UACA;QACA;MACA;MACA;;MAEA;MACA;MACA;MACA;MACA;IACA;IACA;IACAiB;MACA;IACA;EACA;AACA","names":["window","name","props","data","workList","wordShow","wordTitle","closeShow","created","getGdtj","action","gd_type_id","methods","handleClose","openFile","getWord","that","docx","renderAsync","className","inWrapper","ignoreWidth","ignoreHeight","ignoreFonts","breakPages","ignoreLastRenderedPageBreak","experimental","trimXMLDeclaration","useBase64URL","useMathMLPolyfill","showChanges","debug","then","wordClose"],"sourceRoot":"src/component","sources":["workOrder.vue"],"sourcesContent":["\r\n \r\n \r\n \r\n {{ orderItem.gd_type_name }}详情\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ scope.$index + 1 }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {{ wordShow == true ? this.wordTitle+'详情' : \"\" }}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n\r\n\r\n"]}]}