| | |
| | | ElMessage.warning(res.message) |
| | | } |
| | | } |
| | | |
| | | const addFile = async () => { |
| | | if (data.queryParams.companyId) { |
| | | data.dialogForm.companyId = data.queryParams.companyId |
| | | const res = await getStandardQuality(data.queryParams) |
| | | if (res.code == 200) { |
| | | if(res.data.data && res.data.data.length>0){ |
| | | const val = res.data.data[0] |
| | | Object.keys(data.dialogForm).forEach(key => { |
| | | if (key in val) { |
| | | data.dialogForm[key] = val[key] |
| | | } |
| | | }) |
| | | } |
| | | } else { |
| | | ElMessage.warning(res.message) |
| | | } |
| | |
| | | import useUserStore from "@/store/modules/user"; |
| | | import {getStandardTemp,delStandardTemp} from "@/api/standardSys/standardSys"; |
| | | import { renderAsync } from "docx-preview"; |
| | | |
| | | import router from "@/router"; |
| | | import {useRoute} from "vue-router"; |
| | | const userStore = useUserStore() |
| | | const { proxy } = getCurrentInstance(); |
| | | const loading = ref(false); |
| | |
| | | companyList: [], |
| | | isAdmin: false |
| | | }); |
| | | |
| | | const route = useRoute(); |
| | | const { queryParams, total, dataList,companyList, isAdmin } = toRefs(data); |
| | | const userInfo = ref() |
| | | onMounted(async ()=>{ |
| | |
| | | data.isAdmin = false |
| | | data.queryParams.companyId = userStore.companyId |
| | | } |
| | | if(route.query.templateName){ |
| | | data.queryParams.templateName = route.query.templateName |
| | | } |
| | | await getList() |
| | | }) |
| | | |
| | |
| | | type="primary" |
| | | @click="exportData" |
| | | >导出</el-button> |
| | | <el-button |
| | | type="primary" |
| | | @click="toDownload" |
| | | >模版下载</el-button> |
| | | </el-form-item> |
| | | |
| | | </el-form> |
| | |
| | | import { Document, Paragraph, TextRun, Table, TableRow, TableCell,BorderStyle , Packer, AlignmentType, HeadingLevel } from "docx"; |
| | | import { saveAs } from "file-saver"; |
| | | import {delEconomy, getEconomy} from "@/api/qualityFinancialAnalysis"; |
| | | import {useRouter} from "vue-router"; |
| | | const { proxy } = getCurrentInstance(); |
| | | const loading = ref(false); |
| | | const noticeRef = ref(); |
| | | const router = useRouter() |
| | | const loadingCompany = ref(false) |
| | | const choosedData = ref([]) |
| | | const data = reactive({ |
| | |
| | | const searchClick = () => { |
| | | getList(); |
| | | } |
| | | |
| | | const toDownload = ()=>{ |
| | | router.push({ |
| | | path: '/learn/standardSysTemp/recordStandardModule', |
| | | query: { |
| | | templateName: '质量经济分析' |
| | | } |
| | | }) |
| | | } |
| | | |
| | | const openDialog = (type, value) => { |
| | | noticeRef.value.openDialog(type, value,data.companyList); |
| | | } |