diff --git a/src/api/materialManagement/productionMaterial/mminventory.js b/src/api/materialManagement/productionMaterial/mminventory.js index 6402ce9..99517fe 100644 --- a/src/api/materialManagement/productionMaterial/mminventory.js +++ b/src/api/materialManagement/productionMaterial/mminventory.js @@ -55,3 +55,60 @@ export function delMmInventory(pid) { method: 'POST' }) } + +/** + * 获取物料编码下拉列表 + */ +export function getMaterialOption(query) { + return request({ + url: 'mes/productionMaterial/MmInventory/GetMaterialOption/', + method: 'post', + data: query + }) +} + +/** + * 获取入库类型列表 + */ +export function getTransactionOption(query) { + return request({ + url: 'mes/productionMaterial/MmInventory/GetTransactionOption/', + method: 'post', + data: query + }) +} + +/** + * 新增入库单 + * @param data + */ +export function createInboundReceipt(data) { + return request({ + url: 'mes/productionMaterial/MmInventory/CreateInboundReceipt', + method: 'post', + data: data + }) +} + +/** + * 获取库位编码下拉列表 + */ +export function getLocationOption(query) { + return request({ + url: 'mes/productionMaterial/MmInventory/GetLocationOption/', + method: 'post', + data: query + }) +} + +/** + * 新增出库单 + * @param data + */ +export function createOutboundReceipt(data) { + return request({ + url: 'mes/productionMaterial/MmInventory/CreateOutboundReceipt', + method: 'post', + data: data + }) +} diff --git a/src/i18n/lang/en.json b/src/i18n/lang/en.json index 2126ae1..0460090 100644 --- a/src/i18n/lang/en.json +++ b/src/i18n/lang/en.json @@ -1,189 +1,191 @@ { - "menu": { - "home": "Home", - "dashboard": "Dashboard", - "system": "System", - "monitoring": "Monitoring", - "systemTools": "Tools", - "externalOpen": "External open", - "icon": "Icon", - "systemMenu": "Menu", - "systemRole": "Role", - "systemUser": "User", - "systemDept": "Dept", - "systemDic": "Dict", - "systemPost": "Post", - "systemParam": "Config", - "systemLog": "Log", - "operLog": "Oper log", - "loginLog": "Login log", - "systemNotice": "Notice", - "systemLang": "Language set", - "timedTask": "Timed task", - "serviceMonitor": "Service monitoring", - "codeGeneration": "Code generation", - "systemInterface": "System interface", - "sendEmail": "Email", - "systemArticle": "Article", - "articleList": "Article list", - "formBuild": "Form building", - "officialWebsite": "Official website", - "fileStorage": "File storage", - "personalCenter": "Personal", - "menuPermi": "Menu permissions", - "assignUsers": "Authorized user", - "cacheMonitor": "Cache monitoring" - }, - "tagsView": { - "refresh": "refresh", - "close": "close", - "closeOther": "close other", - "closeLeft": "close left", - "closeRight": "close right", - "closeAll": "close all", - "fullscreen": "fullscreen", - "closeFullscreen": "close fullscreen" - }, - "layout": { - "tip1": "If you feel good, welcome to ⭐ Star ⭐ Collect it so that the author can continue to be free. Thank you!", - "rewardUser": "Reward the author with a cup of coffee to express encouragement", - "contactUs": "contact us", - "donationSupport": "donation support", - "officialWebsite": "Official website", - "qqGroup": "QQ Group", - "changeLog": "change log", - "currentVersion": "current version", - "codeSourceAddress": "source address", - "fullscreen": "fullscreen", - "sizeSelect": "size", - "personalCenter": "Personal center", - "layoutSetting": "layout setting", - "logOut": "Login out", - "themeStyleSet": "theme style settings", - "themeColor": "theme color", - "sysLayoutSet": "system layout settings", - "open": "open", - "fixed": "fixed", - "show": "show", - "dynamicTitle": "dynamic title", - "darkMode": "dark", - "lightMode": "light", - "saveConfig": "save", - "resetConfig": "reset", - "logOutConfirm": "Are you sure you want to exit the current login?", - "large": "Large", - "default": "Default", - "small": "Small", - "myWorkbench": "My workbench", - "onlineUsers": "Online user", - "message": "Message", - "amount": "Amount", - "order": "Order", - "modifyInformation": "Modify information", - "technicalSelection": "Technical selection", - "frontendTechnology": "Front-end technology", - "backendTechnology": "Backend technology", - "backstageManagement": "Backstage management", - "bottomBar": "Footer", - "identity": "Identity", - "content1": "The code is completely free and open source, easy to read and understand, and the interface is simple and beautiful, giving you one more choice and reference for your project.", - "topNav": "top nav", - "commonFuncs": "Common Functions", - "openWatermark": "Open Watermark", - "workTime": "Today's working times(min)", - "onlineClientNum": "Number of online devices", - "tagsView": "tabs", - "tagsPersist": "tabs Persist" - }, - "common": { - "ok": "Ok", - "cancel": "Cancel", - "tips": "tips", - "english": "English", - "chinese": "Chinese", - "traditionalChinese": "TraditionalChinese", - "name": "Name", - "content": "Content", - "addTime": "AddTime", - "nickName": "NickName", - "time": "Time", - "yes": "Yes", - "no": "No", - "yesterday": "yesterday", - "thisWeek": "this week", - "lastWeek": "last week", - "thisMonth": "this month", - "lastMonth": "last month", - "today": "today", - "female": "Female", - "male": "male", - "sex": "gender", - "systemTips": "system hint", - "default": "default", - "hidden": "hide", - "show": "show", - "system": "system", - "abnormal": "abnormal", - "unknow": "unknown", - "normal": "normal", - "disable": "deactivate" - }, - "btn": { - "add": "Add", - "delete": "Delete", - "edit": "Edit", - "search": "Search", - "reset": "Reset", - "preview": "Preview", - "import": "Import", - "export": "Export", - "synchronize": "Synchronize", - "generateCode": "GenerateCode", - "start": "Start", - "stop": "Stop", - "run": "Run", - "runOnce": "RunOnce", - "log": "Log", - "expand": "Expand", - "collapse": "Collapse", - "details": "Details", - "submit": "Submit", - "cancel": "Cancel", - "more": "More", - "save": "Save", - "close": "Close", - "authorize": "Authorize", - "multi": "Multi", - "upload": "Upload", - "view": "To view", - "copy": "Copy", - "operate": "Operate", - "clean": "Clean", - "next": "Next", - "back": "Back" - }, - "language": "Language", - "languageKey": "LanguageKey", - "showWay": "Show Way", - "table": "Table", - "user": { - "phoneNumber": "cellphone number", - "registerTime": "Date created", - "basicInfo": "basic information", - "department": "Department", - "personalInfo": "Personal information", - "role": "own role", - "userEmail": "User mailbox", - "userName": "user name", - "changePwd": "change Password", - "confirmPwd": "Confirm Password", - "newPwd": "new password", - "oldPwd": "Old Password", - "nickName": "User's Nickname" - }, - "steps": { - "000": "Basic", - "001": "Complement", - "002": "Other" - } + "menu": { + "home": "Home", + "dashboard": "Dashboard", + "system": "System", + "monitoring": "Monitoring", + "systemTools": "Tools", + "externalOpen": "External open", + "icon": "Icon", + "systemMenu": "Menu", + "systemRole": "Role", + "systemUser": "User", + "systemDept": "Dept", + "systemDic": "Dict", + "systemPost": "Post", + "systemParam": "Config", + "systemLog": "Log", + "operLog": "Oper log", + "loginLog": "Login log", + "systemNotice": "Notice", + "systemLang": "Language set", + "timedTask": "Timed task", + "serviceMonitor": "Service monitoring", + "codeGeneration": "Code generation", + "systemInterface": "System interface", + "sendEmail": "Email", + "systemArticle": "Article", + "articleList": "Article list", + "formBuild": "Form building", + "officialWebsite": "Official website", + "fileStorage": "File storage", + "personalCenter": "Personal", + "menuPermi": "Menu permissions", + "assignUsers": "Authorized user", + "cacheMonitor": "Cache monitoring" + }, + "tagsView": { + "refresh": "refresh", + "close": "close", + "closeOther": "close other", + "closeLeft": "close left", + "closeRight": "close right", + "closeAll": "close all", + "fullscreen": "fullscreen", + "closeFullscreen": "close fullscreen" + }, + "layout": { + "tip1": "If you feel good, welcome to ⭐ Star ⭐ Collect it so that the author can continue to be free. Thank you!", + "rewardUser": "Reward the author with a cup of coffee to express encouragement", + "contactUs": "contact us", + "donationSupport": "donation support", + "officialWebsite": "Official website", + "qqGroup": "QQ Group", + "changeLog": "change log", + "currentVersion": "current version", + "codeSourceAddress": "source address", + "fullscreen": "fullscreen", + "sizeSelect": "size", + "personalCenter": "Personal center", + "layoutSetting": "layout setting", + "logOut": "Login out", + "themeStyleSet": "theme style settings", + "themeColor": "theme color", + "sysLayoutSet": "system layout settings", + "open": "open", + "fixed": "fixed", + "show": "show", + "dynamicTitle": "dynamic title", + "darkMode": "dark", + "lightMode": "light", + "saveConfig": "save", + "resetConfig": "reset", + "logOutConfirm": "Are you sure you want to exit the current login?", + "large": "Large", + "default": "Default", + "small": "Small", + "myWorkbench": "My workbench", + "onlineUsers": "Online user", + "message": "Message", + "amount": "Amount", + "order": "Order", + "modifyInformation": "Modify information", + "technicalSelection": "Technical selection", + "frontendTechnology": "Front-end technology", + "backendTechnology": "Backend technology", + "backstageManagement": "Backstage management", + "bottomBar": "Footer", + "identity": "Identity", + "content1": "The code is completely free and open source, easy to read and understand, and the interface is simple and beautiful, giving you one more choice and reference for your project.", + "topNav": "top nav", + "commonFuncs": "Common Functions", + "openWatermark": "Open Watermark", + "workTime": "Today's working times(min)", + "onlineClientNum": "Number of online devices", + "tagsView": "tabs", + "tagsPersist": "tabs Persist" + }, + "common": { + "ok": "Ok", + "cancel": "Cancel", + "tips": "tips", + "english": "English", + "chinese": "Chinese", + "traditionalChinese": "TraditionalChinese", + "name": "Name", + "content": "Content", + "addTime": "AddTime", + "nickName": "NickName", + "time": "Time", + "yes": "Yes", + "no": "No", + "yesterday": "yesterday", + "thisWeek": "this week", + "lastWeek": "last week", + "thisMonth": "this month", + "lastMonth": "last month", + "today": "today", + "female": "Female", + "male": "male", + "sex": "gender", + "systemTips": "system hint", + "default": "default", + "hidden": "hide", + "show": "show", + "system": "system", + "abnormal": "abnormal", + "unknow": "unknown", + "normal": "normal", + "disable": "deactivate" + }, + "btn": { + "add": "Add", + "delete": "Delete", + "edit": "Edit", + "search": "Search", + "reset": "Reset", + "preview": "Preview", + "import": "Import", + "export": "Export", + "synchronize": "Synchronize", + "generateCode": "GenerateCode", + "start": "Start", + "stop": "Stop", + "run": "Run", + "runOnce": "RunOnce", + "log": "Log", + "expand": "Expand", + "collapse": "Collapse", + "details": "Details", + "submit": "Submit", + "cancel": "Cancel", + "more": "More", + "save": "Save", + "close": "Close", + "authorize": "Authorize", + "multi": "Multi", + "upload": "Upload", + "view": "To view", + "copy": "Copy", + "operate": "Operate", + "clean": "Clean", + "next": "Next", + "back": "Back", + "storage": "Storage", + "outStorage": "Out Storage" + }, + "language": "Language", + "languageKey": "LanguageKey", + "showWay": "Show Way", + "table": "Table", + "user": { + "phoneNumber": "cellphone number", + "registerTime": "Date created", + "basicInfo": "basic information", + "department": "Department", + "personalInfo": "Personal information", + "role": "own role", + "userEmail": "User mailbox", + "userName": "user name", + "changePwd": "change Password", + "confirmPwd": "Confirm Password", + "newPwd": "new password", + "oldPwd": "Old Password", + "nickName": "User's Nickname" + }, + "steps": { + "000": "Basic", + "001": "Complement", + "002": "Other" + } } diff --git a/src/i18n/lang/zh-cn.json b/src/i18n/lang/zh-cn.json index c7db4d3..d40e7e6 100644 --- a/src/i18n/lang/zh-cn.json +++ b/src/i18n/lang/zh-cn.json @@ -160,7 +160,9 @@ "operate": "操作", "clean": "清空", "next": "下一步", - "back": "返回" + "back": "返回", + "storage": "填入库单", + "outStorage": "填出库单" }, "user": { "personalInfo": "个人信息", diff --git a/src/i18n/lang/zh-tw.json b/src/i18n/lang/zh-tw.json index 5b13766..d820280 100644 --- a/src/i18n/lang/zh-tw.json +++ b/src/i18n/lang/zh-tw.json @@ -160,7 +160,9 @@ "multi": "批量", "clean": "清空", "next": "下一步", - "back": "返回" + "back": "返回", + "storage": "入库", + "outStorage": "出库" }, "language": "語言", "languageKey": "語言key", diff --git a/src/views/materialManagement/productionMaterial/MmInventory.vue b/src/views/materialManagement/productionMaterial/MmInventory.vue index 0960df7..df64093 100644 --- a/src/views/materialManagement/productionMaterial/MmInventory.vue +++ b/src/views/materialManagement/productionMaterial/MmInventory.vue @@ -21,8 +21,11 @@ - - {{ $t('btn.add') }} + + {{ $t('btn.storage') }} + + + {{ $t('btn.outStorage') }} @@ -70,7 +73,8 @@ - + + @@ -81,7 +85,52 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -91,21 +140,12 @@ - - - - - - - - - - - - - + + + + @@ -127,7 +167,7 @@ - + @@ -158,14 +198,148 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/materialManagement/productionMaterial/MmMaterial.vue b/src/views/materialManagement/productionMaterial/MmMaterial.vue index 52b284f..0c5671f 100644 --- a/src/views/materialManagement/productionMaterial/MmMaterial.vue +++ b/src/views/materialManagement/productionMaterial/MmMaterial.vue @@ -162,11 +162,10 @@ - + - - {{ item.dictLabel }} - + 停用 + 启用 @@ -294,7 +293,9 @@ const open = ref(false) const state = reactive({ single: true, multiple: true, - form: {}, + form: { + status: 2 + }, rules: { materialCode: [{ required: true, message: '物料编码不能为空', trigger: 'blur' }], materialName: [{ required: true, message: '物料名称不能为空', trigger: 'blur' }]