Compare commits

..

No commits in common. "433eae9153067e0d405a1d759448a0bf20a670f9" and "27eee1eff572097dec395f3205ebc7af1e380bad" have entirely different histories.

3 changed files with 13 additions and 90 deletions

View File

@ -1,6 +1,6 @@
allowBuilds: allowBuilds:
'@parcel/watcher': true '@parcel/watcher': set this to true or false
core-js: true core-js: set this to true or false
electron-winstaller: true electron-winstaller: set this to true or false
esbuild: true esbuild: set this to true or false
vue-demi: true vue-demi: set this to true or false

View File

@ -1,77 +0,0 @@
import { request } from '@/utils/request'
export interface Tool {
id?: number
toolCode: string
toolName: string
toolType: string
toolTypeId?: number
specModel: string
material: string
manufacturer: string
purchaseDate?: string | number
lifeCycle: number
usedCount?: number
status: number
remark: string
createTime?: string
updateTime?: string
}
export const toolApi = {
page(params: {
page: number
pageSize: number
toolCode?: string
toolName?: string
status?: number
}) {
return request({
url: '/biz/tool/page',
method: 'get',
params
})
},
create(data: Tool) {
return request({
url: '/biz/tool',
method: 'post',
data
})
},
update(data: Tool) {
return request({
url: '/biz/tool',
method: 'put',
data
})
},
delete(ids: number[]) {
return request({
url: `/biz/tool/${ids.join(',')}`,
method: 'delete'
})
},
export(params?: {
ids?: number[]
toolCode?: string
toolName?: string
status?: number
}) {
const p: Record<string, any> = {}
if (params?.ids?.length) p.ids = params.ids.join(',')
if (params?.toolCode) p.toolCode = params.toolCode
if (params?.toolName) p.toolName = params.toolName
if (params?.status != null) p.status = params.status
return request({
url: '/biz/tool/report',
method: 'get',
params: p,
responseType: 'blob'
})
}
}

View File

@ -290,16 +290,16 @@ const routes: RouteRecordRaw[] = [
meta: { title: '工序委外', icon: 'ListOutline' } meta: { title: '工序委外', icon: 'ListOutline' }
}, },
{ {
path: 'biz/tool', path: 'biz/deviceGather',
name: 'tool', name: 'deviceGather',
component: () => import('@/views/biz/tool/index.vue'), component: () => import('@/views/biz/deviceGather/index.vue'),
meta: { title: '刀具管理', icon: 'ToolOutline' } meta: { title: '设备采集', icon: 'ListOutline' }
}, },
{ {
path: 'biz/tool/usage', path: 'biz/callingMaterials',
name: 'toolUsage', name: 'callingMaterials',
component: () => import('@/views/biz/tool/usage.vue'), component: () => import('@/views/biz/callingMaterials/index.vue'),
meta: { title: '刀具使用记录', icon: 'ToolOutline', activeMenu: '/biz/tool' } meta: { title: '叫料记录', icon: 'ListOutline' }
}, },
{ {
path: 'biz/errorNotification', path: 'biz/errorNotification',