From 4e01229e6e4001e94a7205c0543a20cc790f4ee0 Mon Sep 17 00:00:00 2001 From: shilixia <2309368887@qq.com> Date: Wed, 8 Sep 2021 09:42:16 +0800 Subject: [PATCH] gongxu --- hb_client/src/api/mtm.js | 30 +++ hb_client/src/views/mtm/material.vue | 2 +- hb_client/src/views/mtm/process.vue | 2 +- hb_client/src/views/mtm/productprocess.vue | 269 +++++++++++++++++---- hb_client/src/views/mtm/step.vue | 9 +- 5 files changed, 256 insertions(+), 56 deletions(-) diff --git a/hb_client/src/api/mtm.js b/hb_client/src/api/mtm.js index d9b80c4..317cbcb 100644 --- a/hb_client/src/api/mtm.js +++ b/hb_client/src/api/mtm.js @@ -268,4 +268,34 @@ export function deleterffield(id, data) { method: 'delete', data }) +} +//技术文件 + +export function gettechdocList(query) { + return request({ + url: '/mtm/techdoc/', + method: 'get', + params: query + }) +} +export function createtechdoc(data) { + return request({ + url: '/mtm/techdoc/', + method: 'post', + data + }) +} +export function updatetechdoc(id, data) { + return request({ + url: `/mtm/techdoc/${id}/`, + method: 'put', + data + }) +} +export function deletetechdoc(id, data) { + return request({ + url: `/mtm/techdoc/${id}/`, + method: 'delete', + data + }) } \ No newline at end of file diff --git a/hb_client/src/views/mtm/material.vue b/hb_client/src/views/mtm/material.vue index 06c5182..70b8eaa 100644 --- a/hb_client/src/views/mtm/material.vue +++ b/hb_client/src/views/mtm/material.vue @@ -178,7 +178,7 @@ export default { }, options: [{ value: 1, - label: '产品' + label: '成品' }, { value: 2, label: '半成品' diff --git a/hb_client/src/views/mtm/process.vue b/hb_client/src/views/mtm/process.vue index 73da57d..758d359 100644 --- a/hb_client/src/views/mtm/process.vue +++ b/hb_client/src/views/mtm/process.vue @@ -167,7 +167,7 @@ export default { }, methods: { checkPermission, - //物料列表 + //工序列表 getList() { this.listLoading = true; getProcessList(this.listQuery).then((response) => { diff --git a/hb_client/src/views/mtm/productprocess.vue b/hb_client/src/views/mtm/productprocess.vue index 64f2d16..e7f6676 100644 --- a/hb_client/src/views/mtm/productprocess.vue +++ b/hb_client/src/views/mtm/productprocess.vue @@ -73,29 +73,29 @@ 新增 + - + - + - + - + @@ -104,7 +104,6 @@