From 2daf9eef8310a9058bf88a6f471f2680c2659648 Mon Sep 17 00:00:00 2001
From: lion <120344285@qq.com>
Date: Mon, 19 Jan 2026 16:19:10 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B8=82=E7=BA=A7=E5=87=BA=E5=85=A5=E5=BA=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.development | 2 +-
src/views/floodEntry/components/addEntry.vue | 389 ++++++++++++++++
.../floodEntry/components/addOutbound.vue | 431 ++++++++++++++++++
.../floodEntry/components/selectMaterial.vue | 197 ++++++++
src/views/floodEntry/index.vue | 208 +++++++++
src/views/floodEntry/outbound.vue | 208 +++++++++
src/views/storages/components/addMater.vue | 41 +-
7 files changed, 1467 insertions(+), 9 deletions(-)
create mode 100644 src/views/floodEntry/components/addEntry.vue
create mode 100644 src/views/floodEntry/components/addOutbound.vue
create mode 100644 src/views/floodEntry/components/selectMaterial.vue
create mode 100644 src/views/floodEntry/index.vue
create mode 100644 src/views/floodEntry/outbound.vue
diff --git a/.env.development b/.env.development
index 5af98fb..fbc58ec 100644
--- a/.env.development
+++ b/.env.development
@@ -9,7 +9,7 @@ VUE_APP_OA_URL_TYPE = '{"采购入库":51,"请示入库":54,"调拨入库":55,"
#正式
-VUE_APP_BASE_API = http://192.168.60.99:8004/
+VUE_APP_BASE_API = http://192.168.60.99:8004
#VUE_APP_UPLOAD_API = http://192.168.60.99:9004/api/admin/upload-file
# 正式oa
diff --git a/src/views/floodEntry/components/addEntry.vue b/src/views/floodEntry/components/addEntry.vue
new file mode 100644
index 0000000..175bdfd
--- /dev/null
+++ b/src/views/floodEntry/components/addEntry.vue
@@ -0,0 +1,389 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 附件:
+
+
+
+ 点击上传
+
+
+
+
+
+
+
+
+
+
+ 入库物资:
+
+
+
+ 新增物资
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/floodEntry/components/addOutbound.vue b/src/views/floodEntry/components/addOutbound.vue
new file mode 100644
index 0000000..f2e8799
--- /dev/null
+++ b/src/views/floodEntry/components/addOutbound.vue
@@ -0,0 +1,431 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 附件:
+
+
+
+ 点击上传
+
+
+
+
+
+
+
+
+
+
+ 出库物资:
+
+
+
+ 新增物资
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/floodEntry/components/selectMaterial.vue b/src/views/floodEntry/components/selectMaterial.vue
new file mode 100644
index 0000000..c951e82
--- /dev/null
+++ b/src/views/floodEntry/components/selectMaterial.vue
@@ -0,0 +1,197 @@
+
+
+
+
+
+
+
+
+
+ 查询
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/floodEntry/index.vue b/src/views/floodEntry/index.vue
new file mode 100644
index 0000000..3b102cf
--- /dev/null
+++ b/src/views/floodEntry/index.vue
@@ -0,0 +1,208 @@
+
+
+
+
+
select.pageSize = e"
+ @pageIndexChange="pageChange"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/floodEntry/outbound.vue b/src/views/floodEntry/outbound.vue
new file mode 100644
index 0000000..66feac4
--- /dev/null
+++ b/src/views/floodEntry/outbound.vue
@@ -0,0 +1,208 @@
+
+
+
+
+
select.pageSize = e"
+ @pageIndexChange="pageChange"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/storages/components/addMater.vue b/src/views/storages/components/addMater.vue
index e564457..e263c4a 100644
--- a/src/views/storages/components/addMater.vue
+++ b/src/views/storages/components/addMater.vue
@@ -283,7 +283,13 @@ import {
index as getFenleilist
} from '@/api/fenlei.js'
export default {
-
+ props: {
+ // 是否为本地模式(不提交到接口,只返回数据)
+ isLocalMode: {
+ type: Boolean,
+ default: false
+ }
+ },
data() {
return {
isShow: false,
@@ -372,12 +378,11 @@ export default {
},
changeCk(e) {
if (e) {
- this.cangkuList.map(item => {
- if (e === item.cangkumingcheng) {
- this.form.guanliancangku = item.id
- this.form.cangkumingcheng = item.cangkumingcheng
- }
- })
+ const selectedWarehouse = this.cangkuList.find(item => e === item.id)
+ if (selectedWarehouse) {
+ this.form.guanliancangku = selectedWarehouse.id
+ this.form.cangkumingcheng = selectedWarehouse.cangkumingcheng
+ }
console.log(this.form.guanliancangku)
}
},
@@ -417,7 +422,27 @@ export default {
},
submit() {
console.log('this.form', this.form)
- // return
+
+ // 如果是本地模式,不提交到接口,直接返回数据
+ if (this.isLocalMode) {
+ // 验证必填字段
+ if (!this.form.guanliancangku) {
+ Message({
+ type: 'warning',
+ message: '请选择仓库'
+ })
+ return
+ }
+
+ // 触发事件,返回物资数据
+ this.$emit('material-added', { ...this.form })
+ this.isShow = false
+ // 重置表单
+ this.$refs['dialog'].reset()
+ return
+ }
+
+ // 正常模式,提交到接口
if (this.type === 'add') {
save({
table_name: this.tableName,