diff --git a/src/api/mes/materialMove.js b/src/api/mes/materialMove.js new file mode 100644 index 0000000..86cf263 --- /dev/null +++ b/src/api/mes/materialMove.js @@ -0,0 +1,49 @@ +import request from '@/utils/request' + +export function createMaterialMove(data) { + return request({ + url: '/admin-api/erp/stock-move/create', + method: 'post', + data + }) +} + +export function getMaterialMovePage(params = {}) { + return request({ + url: '/admin-api/erp/stock-move/page', + method: 'get', + params + }) +} + +export function submitMaterialMove(data) { + return request({ + url: '/admin-api/erp/stock-move/submit', + method: 'put', + data + }) +} + +export function auditMaterialMove(data) { + return request({ + url: '/admin-api/erp/stock-move/audit', + method: 'put', + data + }) +} + +export function getMoveProductPage(params = {}) { + return request({ + url: '/admin-api/erp/product/page', + method: 'get', + params + }) +} + +export function getProductStockList(productId) { + return request({ + url: '/admin-api/erp/stock-move/product-stock-list', + method: 'get', + params: { productId } + }) +} diff --git a/src/pages.json b/src/pages.json index a12622d..03fe503 100644 --- a/src/pages.json +++ b/src/pages.json @@ -703,6 +703,34 @@ "navigationStyle": "custom" } }, + { + "path": "materialMove/index", + "style": { + "navigationBarTitleText": "\u5e93\u5b58\u8c03\u62e8", + "navigationStyle": "custom" + } + }, + { + "path": "materialMove/create", + "style": { + "navigationBarTitleText": "\u65b0\u589e\u5e93\u5b58\u8c03\u62e8", + "navigationStyle": "custom" + } + }, + { + "path": "materialMove/productConfirm", + "style": { + "navigationBarTitleText": "\u786e\u8ba4\u8c03\u62e8\u7269\u6599", + "navigationStyle": "custom" + } + }, + { + "path": "materialMove/productSelect", + "style": { + "navigationBarTitleText": "\u9009\u62e9\u7269\u6599", + "navigationStyle": "custom" + } + }, { "path": "sparepartCheck/index", "style": { diff --git a/src/pages_function/pages/materialMove/create.vue b/src/pages_function/pages/materialMove/create.vue new file mode 100644 index 0000000..deb36ad --- /dev/null +++ b/src/pages_function/pages/materialMove/create.vue @@ -0,0 +1,287 @@ +