Compare commits
No commits in common. "433eae9153067e0d405a1d759448a0bf20a670f9" and "27eee1eff572097dec395f3205ebc7af1e380bad" have entirely different histories.
433eae9153
...
27eee1eff5
@ -1,6 +1,6 @@
|
||||
allowBuilds:
|
||||
'@parcel/watcher': true
|
||||
core-js: true
|
||||
electron-winstaller: true
|
||||
esbuild: true
|
||||
vue-demi: true
|
||||
'@parcel/watcher': set this to true or false
|
||||
core-js: set this to true or false
|
||||
electron-winstaller: set this to true or false
|
||||
esbuild: set this to true or false
|
||||
vue-demi: set this to true or false
|
||||
|
||||
@ -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'
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -290,16 +290,16 @@ const routes: RouteRecordRaw[] = [
|
||||
meta: { title: '工序委外', icon: 'ListOutline' }
|
||||
},
|
||||
{
|
||||
path: 'biz/tool',
|
||||
name: 'tool',
|
||||
component: () => import('@/views/biz/tool/index.vue'),
|
||||
meta: { title: '刀具管理', icon: 'ToolOutline' }
|
||||
path: 'biz/deviceGather',
|
||||
name: 'deviceGather',
|
||||
component: () => import('@/views/biz/deviceGather/index.vue'),
|
||||
meta: { title: '设备采集', icon: 'ListOutline' }
|
||||
},
|
||||
{
|
||||
path: 'biz/tool/usage',
|
||||
name: 'toolUsage',
|
||||
component: () => import('@/views/biz/tool/usage.vue'),
|
||||
meta: { title: '刀具使用记录', icon: 'ToolOutline', activeMenu: '/biz/tool' }
|
||||
path: 'biz/callingMaterials',
|
||||
name: 'callingMaterials',
|
||||
component: () => import('@/views/biz/callingMaterials/index.vue'),
|
||||
meta: { title: '叫料记录', icon: 'ListOutline' }
|
||||
},
|
||||
{
|
||||
path: 'biz/errorNotification',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user