From d064e3ac2b984ceefd145109fc389bcc8851df2c Mon Sep 17 00:00:00 2001 From: hzz Date: Mon, 8 Apr 2024 17:10:20 +0800 Subject: [PATCH] update --- src/api/casm/product.js | 142 ++++++++++++++ src/components/RightToolbar/index.vue | 8 +- src/lang/i18n-en-US.js | 71 ++++--- src/lang/i18n-zh-CN.js | 71 ++++--- src/main.js | 9 + src/router/index.js | 2 +- src/views/device/device/index.vue | 16 +- src/views/login.vue | 20 +- src/views/product/needle/add_edit.vue | 78 ++++++++ src/views/product/needle/index.vue | 260 +++++++++++++++++++++++++ src/views/product/product/add_edit.vue | 142 +++----------- src/views/product/product/index.vue | 104 +++++----- src/views/product/working/add_edit.vue | 78 ++++++++ src/views/product/working/index.vue | 220 +++++++++++++++++++++ src/views/quality/index.vue | 190 ++++++++++++++++++ 15 files changed, 1161 insertions(+), 250 deletions(-) create mode 100644 src/api/casm/product.js create mode 100644 src/views/product/needle/add_edit.vue create mode 100644 src/views/product/needle/index.vue create mode 100644 src/views/product/working/add_edit.vue create mode 100644 src/views/product/working/index.vue create mode 100644 src/views/quality/index.vue diff --git a/src/api/casm/product.js b/src/api/casm/product.js new file mode 100644 index 0000000..d3af458 --- /dev/null +++ b/src/api/casm/product.js @@ -0,0 +1,142 @@ +import request from '@/utils/request' + + +/***************产品管理 */ +// 查询产品信息列表 +export function listProduction(query) { + return request({ + url: '/casm/production/list', + method: 'get', + params: query + }) +} + +// 查询产品信息详细 +export function getProduction(code) { + return request({ + url: '/casm/production/' + code, + method: 'get' + }) +} + +// 新增产品信息 +export function addProduction(data) { + return request({ + url: '/casm/production', + method: 'post', + data: data + }) +} + +// 修改产品信息 +export function updateProduction(data) { + return request({ + url: '/casm/production', + method: 'put', + data: data + }) +} + +// 删除产品信息 +export function delProduction(code) { + return request({ + url: '/casm/production/' + code, + method: 'delete' + }) +} + + + + + + + +/**针数管理 */ +// 查询针(底线/面线)/张力列表 +export function listProductionLineRelation(query) { + return request({ + url: '/casm/productionLineRelation/list', + method: 'get', + params: query + }) +} + +// 查询针(底线/面线)/张力详细 +export function getProductionLineRelation(id) { + return request({ + url: '/casm/productionLineRelation/' + id, + method: 'get' + }) +} + +// 新增针(底线/面线)/张力 +export function addProductionLineRelation(data) { + return request({ + url: '/casm/productionLineRelation', + method: 'post', + data: data + }) +} + +// 修改针(底线/面线)/张力 +export function updateProductionLineRelation(data) { + return request({ + url: '/casm/productionLineRelation', + method: 'put', + data: data + }) +} + +// 删除针(底线/面线)/张力 +export function delProductionLineRelation(id) { + return request({ + url: '/casm/productionLineRelation/' + id, + method: 'delete' + }) +} + +/**加工次数管理 */ + +// 查询缝纫/标签列表 +export function listProcedure(query) { + return request({ + url: '/casm/procedure/list', + method: 'get', + params: query + }) +} + +// 查询缝纫/标签详细 +export function getProcedure(id) { + return request({ + url: '/casm/procedure/' + id, + method: 'get' + }) +} + +// 新增缝纫/标签 +export function addProcedure(data) { + return request({ + url: '/casm/procedure', + method: 'post', + data: data + }) +} + +// 修改缝纫/标签 +export function updateProcedure(data) { + return request({ + url: '/casm/procedure', + method: 'put', + data: data + }) +} + +// 删除缝纫/标签 +export function delProcedure(id) { + return request({ + url: '/casm/procedure/' + id, + method: 'delete' + }) +} + diff --git a/src/components/RightToolbar/index.vue b/src/components/RightToolbar/index.vue index 5a53dd4..bc395b1 100644 --- a/src/components/RightToolbar/index.vue +++ b/src/components/RightToolbar/index.vue @@ -1,13 +1,13 @@