From be2da4fca67170389b365bb72a22547a2436ee26 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Tue, 19 Nov 2024 14:52:39 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=86=E6=96=99=E5=87=BA=E5=BA=93=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=92=8C=E8=AF=A6=E6=83=85=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +- src/pages.json | 23 ++ src/pages/picking/outbound/code-outbound.vue | 247 +++++++++++++++++++ src/pages/picking/outbound/details.vue | 174 +++++++++++++ src/pages/picking/outbound/index.vue | 136 ++++++---- src/pages/picking/outbound/num-outbound.vue | 247 +++++++++++++++++++ src/services/picking/outbound.js | 9 + src/utils/http.js | 4 +- vite.config.js | 2 +- 9 files changed, 793 insertions(+), 52 deletions(-) create mode 100644 src/pages/picking/outbound/code-outbound.vue create mode 100644 src/pages/picking/outbound/details.vue create mode 100644 src/pages/picking/outbound/num-outbound.vue diff --git a/.gitignore b/.gitignore index 7ce6e50..68e1aef 100644 --- a/.gitignore +++ b/.gitignore @@ -18,4 +18,5 @@ dist *.ntvs* *.njsproj *.sln -*.sw? \ No newline at end of file +*.sw? +vite.config.js diff --git a/src/pages.json b/src/pages.json index 431b25f..a471aca 100644 --- a/src/pages.json +++ b/src/pages.json @@ -64,11 +64,34 @@ } }, /* 领料及其页面 */ + + // 1. 主列表 { "path": "pages/picking/outbound/index", "style": { "navigationBarTitleText": "领料出库" } + }, + // 2. 详情 + { + "path": "pages/picking/outbound/details", + "style": { + "navigationBarTitleText": "出库详情" + } + }, + // 3. 编码出库 + { + "path": "pages/picking/outbound/code-outbound", + "style": { + "navigationBarTitleText": "编码出库" + } + }, + // 4. 数量出库 + { + "path": "pages/picking/outbound/num-outbound", + "style": { + "navigationBarTitleText": "数量出库" + } } ], "tabBar": { diff --git a/src/pages/picking/outbound/code-outbound.vue b/src/pages/picking/outbound/code-outbound.vue new file mode 100644 index 0000000..8c6f68b --- /dev/null +++ b/src/pages/picking/outbound/code-outbound.vue @@ -0,0 +1,247 @@ + + + + + + 已完成 + + + + 未完成 + + + + + + + + + + + + + + + + 搜索 + + + + + + + + 申请时间: + {{ item.createTime }} + + + 领料单号: + {{ item.code }} + + + 领料物资: + {{ item.purchaseMaTypeName }} + + + 领料单位: + {{ item.purchaseMaNumber }} + + + 领料工程: + + + + 领料人: + + {{ item.leasePerson }} + + + + 预领数量: + + {{ item.alNum }} + + + + 已领数量: + + {{ item.alNum }} + + + + 待领数量: + + {{ item.alNum }} + + + + 状态: + + 未完成 + + + + {{ finish ? '没有更多数据了~' : '正在加载...' }} + + + + + + + diff --git a/src/pages/picking/outbound/details.vue b/src/pages/picking/outbound/details.vue new file mode 100644 index 0000000..d33453e --- /dev/null +++ b/src/pages/picking/outbound/details.vue @@ -0,0 +1,174 @@ + + + + + + + + + + + + + + + + + + + {{ index + 1 }} + 物资名称: + {{ item.maTypeName }} + + + {{ index + 1 }} + 规格型号: + {{ item.typeName }} + + + {{ index + 1 }} + 预领数量: + {{ item.preNum }} + + + {{ index + 1 }} + 已领数量: + {{ item.alNum }} + + + {{ index + 1 }} + 待领数量: + + {{ item.preNum - item.alNum }} + + + + {{ index + 1 }} + 单位: + + {{ item.unitName }} + + + + {{ index + 1 }} + 管理模式: + + + + + + + {{ index + 1 }} + 状态: + + + + + + + + + + + + + diff --git a/src/pages/picking/outbound/index.vue b/src/pages/picking/outbound/index.vue index ccf7b8d..d2d764e 100644 --- a/src/pages/picking/outbound/index.vue +++ b/src/pages/picking/outbound/index.vue @@ -1,9 +1,5 @@ - - @@ -40,68 +36,100 @@ - - 新购验收 - {{ - item.taskStatus == 2 ? '未完成' : '已完成' - }} - - 到货时间: + 申请时间: {{ item.arrivalTime }}{{ item.createTime }} - 采购单号: + 领料单号: {{ item.code }} - 采购物资: - {{ item.purchaseMaTypeName }} + 领料物资: + + {{ item.maTypeNames }} + - 到货数量: - {{ item.purchaseMaNumber }} + 领料单位: + + {{ item.leaseUnit }} + - 验收数量: - + 领料工程: + + {{ item.leaseProject }} + + + + 领料人: + + {{ item.leasePerson }} + + + + 预领数量: + + {{ item.preCountNum }} + + + + 已领数量: + + {{ item.alNum }} + + + + 待领数量: + + {{ item.preCountNum - item.alNum }} + + + + 状态: + + + + + + - {{ finish ? '没有更多数据了~' : '正在加载...' }} + + {{ finish ? '没有更多数据了~' : '正在加载...' }} + diff --git a/src/pages/picking/outbound/num-outbound.vue b/src/pages/picking/outbound/num-outbound.vue new file mode 100644 index 0000000..432a549 --- /dev/null +++ b/src/pages/picking/outbound/num-outbound.vue @@ -0,0 +1,247 @@ + + + + + + 已完成 + + + + 未完成 + + + + + + + + + + + + + + + + 搜索 + + + + + + + + 申请时间: + {{ item.createTime }} + + + 领料单号: + {{ item.code }} + + + 领料物资: + {{ item.purchaseMaTypeName }} + + + 领料单位: + {{ item.purchaseMaNumber }} + + + 领料工程: + + + + 领料人: + + {{ item.leasePerson }} + + + + 预领数量: + + {{ item.alNum }} + + + + 已领数量: + + {{ item.alNum }} + + + + 待领数量: + + {{ item.alNum }} + + + + 状态: + + 未完成 + + + + {{ finish ? '没有更多数据了~' : '正在加载...' }} + + + + + + + diff --git a/src/services/picking/outbound.js b/src/services/picking/outbound.js index 6d49af8..3cd6c98 100644 --- a/src/services/picking/outbound.js +++ b/src/services/picking/outbound.js @@ -10,3 +10,12 @@ export const getPickingOutboundListAPI = (data) => { data, }) } +/** + * 领料出库 ---- 列表详情 + */ +export const getOutboundDetailsAPI = (id) => { + return http({ + method: 'GET', + url: `/material/lease_apply_info/${id}`, + }) +} diff --git a/src/utils/http.js b/src/utils/http.js index b08770f..794e46f 100644 --- a/src/utils/http.js +++ b/src/utils/http.js @@ -6,7 +6,7 @@ import { useMemberStore } from '@/stores' * baseURL 设置请求ip地址和端口 */ const ENV = process.env.NODE_ENV -const baseURL = ENV === 'development' ? 'http://192.168.2.246:18080' : '***' +const baseURL = ENV === 'development' ? '/api' : '***' /** * httpInterceptor 分别拦截 request 和 uploadFile 请求 @@ -89,7 +89,7 @@ export const http = (options) => { fail(err) { uni.showToast({ icon: 'none', - title: err, + title: '请求失败', }) console.log(err, '请求失败') reject(err) diff --git a/vite.config.js b/vite.config.js index 0b37f6c..4f23216 100644 --- a/vite.config.js +++ b/vite.config.js @@ -20,7 +20,7 @@ export default defineConfig({ proxy: { // 在此处编写代理规则 '/api': { - target: 'http://192.168.2.246:18080', + target: 'http://192.168.2.76:18080', changeOrigin: true, rewrite: (path) => { return path.replace(/\/api/, '')