Compare commits
1
Commits
12738e20db
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
27aa2c2dfe |
No files matched your search
@@ -7,6 +7,7 @@
|
|||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
|
"typecheck": "vue-tsc --noEmit",
|
||||||
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
|
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
allowBuilds:
|
||||||
|
'@parcel/watcher': true
|
||||||
|
esbuild: true
|
||||||
|
vue-demi: true
|
||||||
@@ -106,6 +106,21 @@ export interface ReportUpdateForm {
|
|||||||
cancelReason?: string
|
cancelReason?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ReportProgress {
|
||||||
|
id: number
|
||||||
|
reportId: number
|
||||||
|
progressContent: string
|
||||||
|
createdBy?: number
|
||||||
|
createdAt?: string
|
||||||
|
updatedAt?: string
|
||||||
|
creatorName?: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ReportProgressForm {
|
||||||
|
reportId: number
|
||||||
|
progressContent: string
|
||||||
|
}
|
||||||
|
|
||||||
// 分页相关类型
|
// 分页相关类型
|
||||||
export interface PageQuery {
|
export interface PageQuery {
|
||||||
current: number
|
current: number
|
||||||
|
|||||||
@@ -180,7 +180,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, reactive, onMounted, computed } from 'vue'
|
import { ref, reactive, onMounted, computed } from 'vue'
|
||||||
import { ElMessage, ElMessageBox, type FormInstance, type FormRules } from 'element-plus'
|
import { ElMessage, ElMessageBox, type FormInstance, type FormRules } from 'element-plus'
|
||||||
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
|
import zhCn from 'element-plus/es/locale/lang/zh-cn'
|
||||||
import { getCustomerPage, createCustomer, updateCustomer, deleteCustomer } from '@/api/customer'
|
import { getCustomerPage, createCustomer, updateCustomer, deleteCustomer } from '@/api/customer'
|
||||||
import { getConfigValue } from '@/api/system'
|
import { getConfigValue } from '@/api/system'
|
||||||
import { searchSchoolByName } from '@/api/school'
|
import { searchSchoolByName } from '@/api/school'
|
||||||
@@ -257,7 +257,7 @@ const handleSchoolSelect = (item: School) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 获取行业标签
|
// 获取行业标签
|
||||||
const getIndustryLabel = (industry: string) => {
|
const getIndustryLabel = (industry: string | undefined) => {
|
||||||
const map: Record<string, string> = {
|
const map: Record<string, string> = {
|
||||||
manufacturing: '制造业',
|
manufacturing: '制造业',
|
||||||
internet: '互联网',
|
internet: '互联网',
|
||||||
@@ -267,7 +267,7 @@ const getIndustryLabel = (industry: string) => {
|
|||||||
healthcare: '医疗',
|
healthcare: '医疗',
|
||||||
other: '其他'
|
other: '其他'
|
||||||
}
|
}
|
||||||
return map[industry] || industry
|
return map[industry ?? ''] || industry || '-'
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查询数据
|
// 查询数据
|
||||||
|
|||||||
@@ -411,7 +411,7 @@ import { ref, reactive, onMounted } from 'vue'
|
|||||||
import { useRoute } from 'vue-router'
|
import { useRoute } from 'vue-router'
|
||||||
import { ElMessage, ElMessageBox, type FormInstance, type FormRules } from 'element-plus'
|
import { ElMessage, ElMessageBox, type FormInstance, type FormRules } from 'element-plus'
|
||||||
import { useUserStore } from '@/stores/user'
|
import { useUserStore } from '@/stores/user'
|
||||||
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
|
import zhCn from 'element-plus/es/locale/lang/zh-cn'
|
||||||
import { getReportPage, createReport, auditReport, withdrawReport, updateReport } from '@/api/report'
|
import { getReportPage, createReport, auditReport, withdrawReport, updateReport } from '@/api/report'
|
||||||
import { getProgressByReportId, createProgress, updateProgress } from '@/api/report-progress'
|
import { getProgressByReportId, createProgress, updateProgress } from '@/api/report-progress'
|
||||||
import { searchSchoolByName } from '@/api/school'
|
import { searchSchoolByName } from '@/api/school'
|
||||||
|
|||||||
Reference in new issue
Block a user