diff --git a/src/api/mes/mold.js b/src/api/mes/mold.js
index 8459cac..03f54d0 100644
--- a/src/api/mes/mold.js
+++ b/src/api/mes/mold.js
@@ -64,6 +64,14 @@ export function getMoldPage(params = {}) {
})
}
+export function getMoldList(params = {}) {
+ return request({
+ url: '/admin-api/erp/mold-brand/mold/list',
+ method: 'get',
+ params
+ })
+}
+
export function createMoldBrand(data) {
return request({
url: '/admin-api/erp/mold-brand/create',
diff --git a/src/api/mes/moldget.js b/src/api/mes/moldget.js
new file mode 100644
index 0000000..44fdb21
--- /dev/null
+++ b/src/api/mes/moldget.js
@@ -0,0 +1,63 @@
+import request from '@/utils/request'
+
+export function getMoldGetPage(params = {}) {
+ return request({
+ url: '/admin-api/erp/stock-out/page',
+ method: 'get',
+ params
+ })
+}
+
+export function getMoldGetDetail(id) {
+ return request({
+ url: '/admin-api/erp/stock-out/get',
+ method: 'get',
+ params: { id }
+ })
+}
+
+export function createMoldGet(data) {
+ return request({
+ url: '/admin-api/erp/stock-out/create',
+ method: 'post',
+ data
+ })
+}
+
+export function updateMoldGet(data) {
+ return request({
+ url: '/admin-api/erp/stock-out/update',
+ method: 'put',
+ data
+ })
+}
+
+export function updateMoldGetStatus(id, status) {
+ return request({
+ url: '/admin-api/erp/stock-out/update-status',
+ method: 'put',
+ params: { id, status }
+ })
+}
+
+export function deleteMoldGet(ids = []) {
+ return request({
+ url: '/admin-api/erp/stock-out/delete',
+ method: 'delete',
+ params: { ids: ids.join(',') }
+ })
+}
+
+export function getWarehouseSimpleList() {
+ return request({
+ url: '/admin-api/erp/warehouse/simple-list',
+ method: 'get'
+ })
+}
+
+export function getSimpleUserList() {
+ return request({
+ url: '/admin-api/system/user/simple-list',
+ method: 'get'
+ })
+}
diff --git a/src/locales/index.js b/src/locales/index.js
index c711275..e49749c 100644
--- a/src/locales/index.js
+++ b/src/locales/index.js
@@ -91,6 +91,59 @@ const messages = {
yes: '是',
no: '否'
},
+ moldGet: {
+ moduleName: '模具出库',
+ subTitle: '按出库单号与状态快速筛选',
+ detailTitle: '模具出库详情',
+ basicInfo: '基础信息',
+ outNo: '出库单号',
+ outType: '出库类型',
+ outTime: '出库时间',
+ outTimeSingle: '出库日期',
+ outTimePlaceholder: '请选择出库日期',
+ warehouse: '仓库',
+ allWarehouse: '全部仓库',
+ warehousePlaceholder: '请选择仓库',
+ creator: '创建人',
+ status: '状态',
+ allStatus: '全部状态',
+ remark: '备注',
+ itemRemark: '明细备注',
+ attachment: '附件',
+ fileUrlPlaceholder: '请输入附件地址',
+ remarkPlaceholder: '请输入备注',
+ moldName: '模具',
+ moldCode: '模具编码',
+ moldStatus: '模具状态',
+ moldUseTime: '使用次数',
+ machineName: '使用设备',
+ isEnable: '是否启用',
+ createTime: '创建时间',
+ searchNo: '请输入出库单号',
+ searchMold: '请输入模具编码或名称',
+ searchCode: '请输入模具编码',
+ searchName: '请输入模具名称',
+ itemListTitle: '出库明细',
+ selectMold: '选择模具',
+ noItems: '暂无出库明细',
+ count: '数量',
+ noAuto: '系统自动生成',
+ createTitle: '新增模具出库',
+ editTitle: '编辑模具出库',
+ edit: '编辑',
+ delete: '删除',
+ approve: '审批',
+ empty: '暂无模具出库数据',
+ noMoldData: '暂无可选模具',
+ loadEditFailed: '加载编辑数据失败',
+ validatorOutTimeRequired: '出库日期不能为空',
+ validatorWarehouseRequired: '仓库不能为空',
+ validatorItemRequired: '请至少选择一个模具',
+ validatorCountRequired: '数量必须大于0',
+ confirmDelete: '确认删除出库单 {no} 吗?',
+ confirmApprove: '确认审批出库单 {no} 吗?',
+ approveSuccess: '审批成功'
+ },
mine: {
clickLogin: '点击登录',
username: '用户名:{name}',
@@ -266,6 +319,59 @@ const messages = {
yes: 'Yes',
no: 'No'
},
+ moldGet: {
+ moduleName: 'Mold Stock-out',
+ subTitle: 'Filter quickly by no and status',
+ detailTitle: 'Mold Stock-out Detail',
+ basicInfo: 'Basic Info',
+ outNo: 'Stock-out No',
+ outType: 'Stock-out Type',
+ outTime: 'Stock-out Time',
+ outTimeSingle: 'Stock-out Date',
+ outTimePlaceholder: 'Select stock-out date',
+ warehouse: 'Warehouse',
+ allWarehouse: 'All Warehouses',
+ warehousePlaceholder: 'Select warehouse',
+ creator: 'Creator',
+ status: 'Status',
+ allStatus: 'All Status',
+ remark: 'Remark',
+ itemRemark: 'Item Remark',
+ attachment: 'Attachment',
+ fileUrlPlaceholder: 'Enter attachment URL',
+ remarkPlaceholder: 'Enter remark',
+ moldName: 'Mold',
+ moldCode: 'Mold Code',
+ moldStatus: 'Mold Status',
+ moldUseTime: 'Use Time',
+ machineName: 'Machine',
+ isEnable: 'Enabled',
+ createTime: 'Created At',
+ searchNo: 'Enter stock-out no',
+ searchMold: 'Enter mold code or name',
+ searchCode: 'Enter mold code',
+ searchName: 'Enter mold name',
+ itemListTitle: 'Item List',
+ selectMold: 'Select Mold',
+ noItems: 'No items',
+ count: 'Count',
+ noAuto: 'Generated automatically',
+ createTitle: 'Create Mold Stock-out',
+ editTitle: 'Edit Mold Stock-out',
+ edit: 'Edit',
+ delete: 'Delete',
+ approve: 'Approve',
+ empty: 'No mold stock-out data',
+ noMoldData: 'No mold options',
+ loadEditFailed: 'Failed to load edit data',
+ validatorOutTimeRequired: 'Stock-out date is required',
+ validatorWarehouseRequired: 'Warehouse is required',
+ validatorItemRequired: 'Select at least one mold',
+ validatorCountRequired: 'Count must be greater than 0',
+ confirmDelete: 'Delete stock-out {no}?',
+ confirmApprove: 'Approve stock-out {no}?',
+ approveSuccess: 'Approved successfully'
+ },
mine: {
clickLogin: 'Tap to sign in',
username: 'Username: {name}',
@@ -409,7 +515,9 @@ const literalMap = {
'图片上传失败': 'functionCommon.uploadImageFailed',
'是': 'functionCommon.yes',
'否': 'functionCommon.no',
- '暂无待办任务': 'dashboard.noTodo'
+ '暂无待办任务': 'dashboard.noTodo',
+ '模具出库': 'moldGet.moduleName',
+ '模具出库详情': 'moldGet.detailTitle'
}
function applyTabBarLanguage() {
diff --git a/src/pages.json b/src/pages.json
index 4b400e1..309f25c 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -448,6 +448,20 @@
"navigationBarTitleText": "模具台账详情",
"navigationStyle": "custom"
}
+ },
+ {
+ "path": "moldget/index",
+ "style": {
+ "navigationBarTitleText": "模具出库",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "moldget/detail",
+ "style": {
+ "navigationBarTitleText": "模具出库详情",
+ "navigationStyle": "custom"
+ }
}
]
}
diff --git a/src/pages/work.vue b/src/pages/work.vue
index a1b3ed7..d036af2 100644
--- a/src/pages/work.vue
+++ b/src/pages/work.vue
@@ -233,11 +233,11 @@
模具台账
-
+
📤
- 模具出库
+ {{ t('moldGet.moduleName') }}
@@ -334,6 +334,9 @@
+
+
diff --git a/src/pages_function/pages/moldget/index.vue b/src/pages_function/pages/moldget/index.vue
new file mode 100644
index 0000000..936757a
--- /dev/null
+++ b/src/pages_function/pages/moldget/index.vue
@@ -0,0 +1,1007 @@
+
+
+
+
+
+
+
+
+
+
+ {{ t('functionCommon.search') }}
+
+
+
+ {{ warehouseFilterLabel }}
+
+
+ {{ statusFilterLabel }}
+
+
+
+
+
+
+
+
+
+ {{ textValue(item.no) }}
+ {{ t('moldGet.moldName') }}: {{ textValue(item.productNames) }}
+
+ {{ statusLabel(item.status) }}
+
+
+
+ {{ t('moldGet.outTime') }}
+ {{ dateTimeLabel(item.outTime) }}
+
+
+ {{ t('moldGet.warehouse') }}
+ {{ textValue(item.warehouseName) }}
+
+
+ {{ t('moldGet.creator') }}
+ {{ textValue(item.creatorName) }}
+
+
+
+
+ ✎
+
+
+ ✓
+
+
+ 🗑
+
+
+
+ {{ t('functionCommon.loading') }}
+ {{ t('moldGet.empty') }}
+ {{ t('functionCommon.loadingMore') }}
+ {{ t('functionCommon.noMoreData') }}
+
+
+
+
+ +
+
+
+ ↑
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+