{"remainingRequest":"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\\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":["\r\nimport { getGdtj, getWord } from \"../api/index\";\r\n// import axios from \"axios\";\r\nlet docx = require(\"docx-preview\");\r\n\r\nwindow.JSZip = require(\"jszip\");\r\nexport default {\r\n name: \"workOrder\",\r\n props: [\"orderItem\"],\r\n data() {\r\n return {\r\n workList: null,\r\n wordShow: false,\r\n wordTitle: \"\",\r\n closeShow: false,\r\n\r\n \r\n };\r\n },\r\n created() {\r\n // console.log(this.workId,'id');\r\n // 查询工单详情\r\n // if(this.orderItem.gd_type_id==''){\r\n // return\r\n // }\r\n getGdtj({ action: \"detail\", gd_type_id: this.orderItem.gd_type_id }).then(\r\n (res) => {\r\n if(res.state==false){\r\n return\r\n }\r\n // console.log(res.data.data, \"工单详情数据\");\r\n this.workList = res.data.data;\r\n }\r\n );\r\n },\r\n methods: {\r\n handleClose() {\r\n this.$parent.workShow = \"\";\r\n this.$parent.orderItem = null;\r\n },\r\n // 弹出word\r\n openFile(url, row) {\r\n // console.log(row,'数据');\r\n // word标题\r\n this.wordTitle = row;\r\n var that = this;\r\n // console.log(url);\r\n // console.log(url, \"url路劲\");\r\n var url = \"/\" + url.split(\"/\")[3] + \"/\" + url.split(\"/\")[4];\r\n // console.log(url,'路劲');\r\n\r\n //\r\n\r\n getWord(url).then(({ data }) => {\r\n // console.log(data, \"格式\");\r\n\r\n // console.log(src,'000');\r\n that.$nextTick(() => {\r\n // doc.renderAsync(data,that.$refs.word)\r\n docx\r\n .renderAsync(data, that.$refs.word, null, {\r\n className: \"docx\", //默认和文档样式类的类名/前缀\r\n inWrapper: true, //启用围绕文档内容呈现包装器\r\n ignoreWidth: true, //禁用页面的渲染宽度\r\n ignoreHeight: true, //禁用页面的渲染高度\r\n ignoreFonts: false, //禁用字体渲染\r\n breakPages: true, //在分页符上启用分页\r\n ignoreLastRenderedPageBreak: true, //在lastRenderedPageBreak元素上禁用分页\r\n experimental: false, //启用实验功能(制表符停止计算)\r\n trimXMLDeclaration: true, //如果为true,则在解析之前将从xml文档中删除xml声明\r\n useBase64URL: false, //如果为true,图像、字体等将转换为base 64 URL,否则使用URL.createObjectURL\r\n useMathMLPolyfill: false, //包括用于铬、边等的MathML多填充。\r\n showChanges: false, //启用文档更改的实验渲染(插入/删除)\r\n debug: false, //启用额外的日志记录\r\n })\r\n .then((res) => {\r\n this.wordShow = true;\r\n that.closeShow = true;\r\n });\r\n });\r\n });\r\n // 关闭按钮显示\r\n\r\n // setTimeout(() => {\r\n // that.closeShow = true;\r\n // }, 2000);\r\n // });\r\n // });\r\n },\r\n // 关闭word\r\n wordClose() {\r\n this.wordShow = false;\r\n },\r\n },\r\n};\r\n",{"version":3,"sources":["workOrder.vue"],"names":[],"mappings":";AAyEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"workOrder.vue","sourceRoot":"src/component","sourcesContent":["\r\n\r\n\r\n\r\n"]}]}