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2C,MAAAR,KAAAC,MAAApC,EAAA,GAAA2C,OACA3C,EAAA,GAAA4C,qBAAA5C,EAAA,GAAA4C,qBACAT,KAAAC,MAAApC,EAAA,GAAA4C,sBACA,KAAAzC,WAEA,KAAAT,YAAAM,EACA,KAAAN,YAAA,GAAAmD,UAAAb,EAEAM,QAAAC,IAAA,KAAA7C,YAAA,IAEAoD,OAAAC,IACAT,QAAAC,IAAAQ,EAAA,GAEA,EACAC,UACA,KAAApD,WAAA,EACA,KAAAqD,eACAC,YAAA,MACAC,EAAAA,EAAAA,GACA,KAAAC,MAAAC,SAAAD,MAAAE,QACA,KAAA5D,YAAA,GAAA6D,MAAA,OAEAL,YAAA,KACA,KAAAtD,WAAA,EACA,KAAAqD,cAAA,GACA,OACA,IACA,GAGAO,UAGA,KAAApC,UACA,GCpHgT,I,WCO5SqC,GAAY,OACd,EACAvE,EACAW,GACA,EACA,KACA,WACA,MAIF,EAAe4D,EAAiB,O","sources":["webpack://scproject/./src/views/projectManage/components/Closingstatement1.vue","webpack://scproject/src/views/projectManage/components/Closingstatement1.vue","webpack://scproject/./src/views/projectManage/components/Closingstatement1.vue?4622","webpack://scproject/./src/views/projectManage/components/Closingstatement1.vue?29c0"],"sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[_c('Closingstatement',{ref:\"finalClo\",staticStyle:{\"background\":\"#fff\"},attrs:{\"myArrayProp2\":_vm.myArrayProp,\"iid\":_vm.iid,\"isDownPdf\":_vm.isDownPdf}})],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <Closingstatement\r\n style=\"background: #fff\"\r\n ref=\"finalClo\"\r\n :myArrayProp2=\"myArrayProp\"\r\n :iid=\"iid\"\r\n :isDownPdf=\"isDownPdf\"\r\n ></Closingstatement>\r\n<!-- \r\n <div\r\n slot=\"footer\"\r\n class=\"dialog-footer\"\r\n style=\"display: flex; justify-content: center\"\r\n >\r\n <el-button type=\"primary\" @click=\"getWord\" class=\"AllDialogBtn\"\r\n >下载表格</el-button\r\n >\r\n </div> -->\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport Closingstatement from \"../components/Closingstatement.vue\";\r\n//下载pdf\r\nimport { downloadPDF } from \"@/components/tool/pdf\";\r\nexport default {\r\n components: { Closingstatement },\r\n data() {\r\n return {\r\n myArrayProp: [], //结项书-后端获取的数据\r\n iid: this.$route.query.iid,\r\n isDownPdf: true,\r\n submitData: {\r\n //结项书要填写的数据\r\n brief: \"\",\r\n plan: \"\",\r\n technology: \"\",\r\n business: \"\",\r\n innovate: \"\",\r\n resultAccessory: [],\r\n firmAccessory: [],\r\n competitionAccessory: [],\r\n exchangeAccessory: [],\r\n conversionAccessory: [],\r\n talentsAccessory: [],\r\n targetPlan: \"\",\r\n realityResult: \"\",\r\n socialValue: \"\",\r\n taskAccessory: [],\r\n },\r\n };\r\n },\r\n methods: {\r\n getPrice() {\r\n this.ajax\r\n .get(this.$store.state.api + \"/getClosingstatementData\", {\r\n uid: this.$store.state.userInfo.userid,\r\n pid: this.iid,\r\n })\r\n .then((res) => {\r\n let num = 0;\r\n res.data[1].forEach((i) => {\r\n //计算出已经使用过的金钱\r\n // console.log(i);\r\n i[\"actualuse\"] = JSON.parse(i[\"actualuse\"]);\r\n for (let key in i[\"actualuse\"]) {\r\n if (i[\"actualuse\"][key]) {\r\n num = i[\"actualuse\"][key] * 1 + num;\r\n }\r\n }\r\n });\r\n console.log(num);\r\n\r\n let data = res.data[0];\r\n\r\n data[0].course_student = JSON.parse(data[0].course_student);\r\n data[0].course_teacher = JSON.parse(data[0].course_teacher);\r\n if (data[0].multiSelectProject != null) {\r\n data[0].multiSelectProject = JSON.parse(data[0].multiSelectProject);\r\n }\r\n\r\n data[0].money = JSON.parse(data[0].money);\r\n data[0].ClosingstatementData = data[0].ClosingstatementData\r\n ? JSON.parse(data[0].ClosingstatementData)\r\n : this.submitData;\r\n\r\n this.myArrayProp = data;\r\n this.myArrayProp[0].actualuse = num; //添加已经使用过的经费\r\n\r\n console.log(this.myArrayProp);\r\n })\r\n .catch((err) => {\r\n console.log(err);\r\n });\r\n },\r\n getWord() {\r\n this.isDownPdf = true;\r\n this.$forceUpdate();\r\n setTimeout(() => {\r\n downloadPDF(\r\n this.$refs.finalClo.$refs.downPDF,\r\n this.myArrayProp[0].title + \"申报书\"\r\n );\r\n setTimeout(() => {\r\n this.isDownPdf = false;\r\n this.$forceUpdate();\r\n }, 500);\r\n }, 500);\r\n },\r\n },\r\n\r\n mounted() {\r\n // console.log(this.myArrayProp);\r\n // this.getData();\r\n this.getPrice();\r\n },\r\n};\r\n</script>\r\n\r\n<style lang=\"less\" scoped>\r\n</style>","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Closingstatement1.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Closingstatement1.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./Closingstatement1.vue?vue&type=template&id=1231483c&scoped=true\"\nimport script from \"./Closingstatement1.vue?vue&type=script&lang=js\"\nexport * from \"./Closingstatement1.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1231483c\",\n null\n \n)\n\nexport default component.exports"],"names":["render","_vm","this","_c","_self","ref","staticStyle","attrs","myArrayProp","iid","isDownPdf","staticRenderFns","components","Closingstatement","data","$route","query","submitData","brief","plan","technology","business","innovate","resultAccessory","firmAccessory","competitionAccessory","exchangeAccessory","conversionAccessory","talentsAccessory","targetPlan","realityResult","socialValue","taskAccessory","methods","getPrice","ajax","get","$store","state","api","uid","userInfo","userid","pid","then","res","num","forEach","i","JSON","parse","key","console","log","course_student","course_teacher","multiSelectProject","money","ClosingstatementData","actualuse","catch","err","getWord","$forceUpdate","setTimeout","downloadPDF","$refs","finalClo","downPDF","title","mounted","component"],"sourceRoot":""}
|