diff --git a/hb_client/.env.development b/hb_client/.env.development index ef83e12..003a43c 100644 --- a/hb_client/.env.development +++ b/hb_client/.env.development @@ -2,8 +2,8 @@ ENV = 'development' # base api -VUE_APP_BASE_API = 'http://127.0.0.1:8000/api' -#VUE_APP_BASE_API = 'http://47.95.0.242:2222/api' +#VUE_APP_BASE_API = 'http://127.0.0.1:8000/api' +VUE_APP_BASE_API = 'http://47.95.0.242:2222/api' # vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable, diff --git a/hb_client/src/api/pm.js b/hb_client/src/api/pm.js index ec7fe91..2bc359d 100644 --- a/hb_client/src/api/pm.js +++ b/hb_client/src/api/pm.js @@ -80,4 +80,13 @@ export function createPick_need(id, data) { method: 'post', data }) -} \ No newline at end of file +} + +//生产进度表 +export function getprogressList(query) { + return request({ + url: '/pm/subproduction_progress/', + method: 'get', + params: query + }) +} diff --git a/hb_client/src/api/wpm.js b/hb_client/src/api/wpm.js index a36437f..7e3462d 100644 --- a/hb_client/src/api/wpm.js +++ b/hb_client/src/api/wpm.js @@ -58,6 +58,15 @@ export function wproductTest(data) { data }) } +//半成品复检 +export function wproductRetest(data) { + return request({ + url: '/wpm/wproduct/retest/', + method: 'post', + data + }) +} + //半成品入库 @@ -68,4 +77,188 @@ export function wproductPutin(id, data) { data }) } +//车间领半成品 + + +export function getpickhalfList(id) { + return request({ + url: `/wpm/subplan/${id}/pick_half/`, + method: 'get' + }) +} + +//子计划半成品领料 +export function createpickhalf(id, data) { + return request({ + url: `/wpm/subplan/${id}/pick_half/`, + method: 'post', + data + }) +} + +//车间点击对应工序的子工序,创建操作记录 + + +export function createOperation(data) { + return request({ + url: '/wpm/operation/', + method: 'post', + data + }) +} + +//生产记录操作记录列表 + + +export function getoperationList(query) { + return request({ + url: '/wpm/operation/', + method: 'get', + params: query + }) +} + +//生产操作,提交边角料 +export function createoperation(id, data) { + return request({ + url: `/wpm/operation/${id}/`, + method: 'put', + data + }) +} + +//调取一条操作记录 +export function getoperation(id) { + return request({ + url: `/wpm/operation/${id}/`, + method: 'get' + }) +} + +//操作使用的半成品列表 +export function getoperationwproductList(query) { + return request({ + url: '/wpm/operation_wproduct/', + method: 'get', + params: query + }) +} +//操作半成品删除 +export function deleteOperationwproduct(id) { + return request({ + url: `/wpm/operation_wproduct/${id}/`, + method: 'delete', + }) +} + + +//删除操作记录 +export function deleteOperation(id) { + return request({ + url: `/wpm/operation/${id}/`, + method: 'delete', + }) +} + +//操作设备 +export function getequList(query) { + return request({ + url: '/wpm/operation_equip/', + method: 'get', + params: query + }) +} +//操作设备删除 +export function deleteOperationequip(id) { + return request({ + url: `/wpm/operation_equip​/${id}/`, + method: 'delete', + }) +} + + + +//操作自定义表 +export function getrecordList(query) { + return request({ + url: '/wpm/operation_record/', + method: 'get', + params: query + }) +} +//操作提交自定义表 +export function createRecord(id, data) { + return request({ + url: `/wpm/operation_record/${id}/submit/`, + method: 'post', + data + }) +} + +//操作消耗物料 + +export function getinputList(query) { + return request({ + url: '/wpm/operation_input/', + method: 'get', + params: query + }) +} + +//车间物料消耗 + + +export function createInput(data) { + return request({ + url: '/wpm/operation_input/', + method: 'post', + data + }) +} +//操作,产出物料 +export function getoutputList(query) { + return request({ + url: '/wpm/operation_output/', + method: 'get', + params: query + }) +} +//产出物料 + +export function createOutput(data) { + return request({ + url: '/wpm/operation_output/', + method: 'post', + data + }) +} + +//提交本次操作 + +export function submitOperation(id, data) { + return request({ + url: `/wpm/operation/${id}/submit/`, + method: 'post', + data + }) +} + +//操作,工序工装 +export function gettoolList(query) { + return request({ + url: '/wpm/operation_tool/', + method: 'get', + params: query + }) +} +//操作工序工装 + +export function createTool(data) { + return request({ + url: '/wpm/operation_tool/', + method: 'post', + data + }) +} + diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js index 235fbd4..b739f6c 100644 --- a/hb_client/src/router/index.js +++ b/hb_client/src/router/index.js @@ -103,6 +103,7 @@ export const asyncRoutes = [ name: 'material', component: () => import('@/views/mtm/material'), meta: { title: '物料清单', icon: 'example', perms: ['mtm_material'] } + } , { @@ -179,12 +180,26 @@ export const asyncRoutes = [ name: 'pm', meta: { title: '生产执行', icon: 'example', perms: ['equipment_set'] }, children: [ - { + { path: 'worktask', name: 'worktask', component: () => import('@/views/wpm/worktask'), meta: { title: '车间任务', icon: 'example', perms: ['index_manage'] } }, + { + path: 'operation', + name: 'operation', + component: () => import('@/views/wpm/operation'), + meta: { title: '车间操作', icon: 'example', perms: ['index_manage'] } + } + , + { + path: 'operationdo/:id', + name: 'operationdo', + component: () => import('@/views/wpm/operationdo'), + meta: { title: '车间操作跳转界面', icon: 'example', perms: ['index_manage'] }, + hidden: true + }, { path: 'need/:id', name: 'need', @@ -323,6 +338,12 @@ export const asyncRoutes = [ component: () => import('@/views/inm/wproduct'), meta: { title: '半成品', icon: 'example', perms: ['index_manage'] } }, + { + path: 'product', + name: 'product', + component: () => import('@/views/inm/product'), + meta: { title: '成品', icon: 'example', perms: ['index_manage'] } + }, ] }, diff --git a/hb_client/src/views/em/detection.vue b/hb_client/src/views/em/detection.vue index 36ce520..2f5461f 100644 --- a/hb_client/src/views/em/detection.vue +++ b/hb_client/src/views/em/detection.vue @@ -126,6 +126,7 @@ @@ -95,6 +97,7 @@ - + - + diff --git a/hb_client/src/views/inm/inventory.vue b/hb_client/src/views/inm/inventory.vue index a221592..668a027 100644 --- a/hb_client/src/views/inm/inventory.vue +++ b/hb_client/src/views/inm/inventory.vue @@ -49,9 +49,13 @@ - + + + + + @@ -90,7 +94,16 @@ export default { page: 1, page_size: 20, }, - + options_:{ + + "1":'成品', + "2":'半成品', + "3":'主要原料', + "4":'辅助材料', + "5":'加工工具', + "6":'辅助工装', + + }, listLoading: true, dialogVisible: false, dialogType: "new", diff --git a/hb_client/src/views/inm/materialbatch.vue b/hb_client/src/views/inm/materialbatch.vue index 8f14fe6..5272e5b 100644 --- a/hb_client/src/views/inm/materialbatch.vue +++ b/hb_client/src/views/inm/materialbatch.vue @@ -33,7 +33,9 @@ fit stripe highlight-current-row - max-height="600" + max-height="700" + height="100" + v-el-height-adaptive-table="{bottomOffset: 50}" > @@ -42,7 +44,10 @@ - + + + +