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/wpm.js b/hb_client/src/api/wpm.js index 723bede..8bbb1c9 100644 --- a/hb_client/src/api/wpm.js +++ b/hb_client/src/api/wpm.js @@ -324,3 +324,13 @@ export function getwproductticketList(query) { params: query }) } + +//下料清单 +export function getcutList(query) { + return request({ + url: '/wpm/cutting_list/', + method: 'get', + params: query + }) +} + diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js index de1ab74..69c48ff 100644 --- a/hb_client/src/router/index.js +++ b/hb_client/src/router/index.js @@ -184,7 +184,25 @@ export const asyncRoutes = [ name: 'management', component: () => import('@/views/pm/management'), meta: { title: '生产任务管理', icon: 'example', perms: ['pm_resources'] } + }, + + { + path: 'plandetails/:id', + name: 'plandetails', + component: () => import('@/views/pm/plandetails'), + meta: { title: '生产任务详情', perms: ['vendor_manage'] }, + hidden: true } + , + + { + path: 'processcard/:id', + name: 'processcard', + component: () => import('@/views/pm/processcard'), + meta: { title: '流程卡', perms: ['vendor_manage'] }, + hidden: true + } + ] } , diff --git a/hb_client/src/views/pm/management.vue b/hb_client/src/views/pm/management.vue index 8ee84b8..d40fe31 100644 --- a/hb_client/src/views/pm/management.vue +++ b/hb_client/src/views/pm/management.vue @@ -65,8 +65,8 @@ - - + + @@ -131,7 +131,13 @@ export default { page: 1, page_size: 20, }, - + state_:{ + 10:'制定中', + 20:'已下达', + 30:'已接受', + 40:'生产中', + 50:'已完成', + 60:'军检完成'}, listLoading: true, proList: [], @@ -271,6 +277,10 @@ export default { this.listLoading = false; }); }, + //详情 + handleselectplan(scope){ + this.$router.push({ name: "plandetails", params: { id: scope.row.id } }); + }, }, }; diff --git a/hb_client/src/views/pm/plan.vue b/hb_client/src/views/pm/plan.vue index 9dd9a63..faed2a3 100644 --- a/hb_client/src/views/pm/plan.vue +++ b/hb_client/src/views/pm/plan.vue @@ -5,7 +5,27 @@ 生产任务列表 - + + 搜索 + 重置 { + getProductionplanList(this.listQuery1).then((response) => { if (response.data) { this.productionplanList = response.data; let list = response.data.results; @@ -314,6 +334,18 @@ this.listLoading = false; }); }, + //搜索生产计划 + handleFilter() { + this.listQuery1.page = 1; + this.getplanList(); + }, + resetFilter() { + this.listQuery1 = { + page: 1, + page_size: 20, + } + this.getplanList(); + }, handleclick(scope) { this.orderID = scope.row.id; this.countsx = scope.row.count; diff --git a/hb_client/src/views/pm/plandetails.vue b/hb_client/src/views/pm/plandetails.vue new file mode 100644 index 0000000..71440bf --- /dev/null +++ b/hb_client/src/views/pm/plandetails.vue @@ -0,0 +1,179 @@ + + diff --git a/hb_client/src/views/pm/processcard.vue b/hb_client/src/views/pm/processcard.vue new file mode 100644 index 0000000..8879834 --- /dev/null +++ b/hb_client/src/views/pm/processcard.vue @@ -0,0 +1,34 @@ + + diff --git a/hb_client/src/views/qm/producttest.vue b/hb_client/src/views/qm/producttest.vue index cc195a2..8377d41 100644 --- a/hb_client/src/views/qm/producttest.vue +++ b/hb_client/src/views/qm/producttest.vue @@ -1,191 +1,67 @@