From db4c4f19b90260a3fafd7403b2b638448a3b27e3 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期三, 18 十月 2023 11:59:07 +0800 Subject: [PATCH] 位置的添加,编辑 参数增加,必填项修改 --- src/views/warehouseManage/position/AddDialog.vue | 4 +++- src/views/warehouseManage/position/index.vue | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/warehouseManage/position/AddDialog.vue b/src/views/warehouseManage/position/AddDialog.vue index 19ece9a..5fb1dc0 100644 --- a/src/views/warehouseManage/position/AddDialog.vue +++ b/src/views/warehouseManage/position/AddDialog.vue @@ -202,6 +202,7 @@ editConfig: this.editCommonConfig, rules: { name: [{ required: true, message: "璇疯緭鍏�", trigger: "change" }], + parentId: [{ required: true, message: "璇烽�夋嫨涓婄骇浣嶇疆", trigger: "change" }], countFrequency: [ { required: false, @@ -292,7 +293,8 @@ notes: data.notes } if (data.id) { - params.id = data.id + params.id = data.id; + params.jointName=data.jointName; } return params }, diff --git a/src/views/warehouseManage/position/index.vue b/src/views/warehouseManage/position/index.vue index 90b282d..78077cc 100644 --- a/src/views/warehouseManage/position/index.vue +++ b/src/views/warehouseManage/position/index.vue @@ -142,7 +142,7 @@ console.log(row) this.editConfig.title = "缂栬緫" this.editConfig.infomation = { ...row } - this.editConfig.infomation.parentId = Number(this.editConfig.infomation.parentId) + this.editConfig.infomation.parentId = this.editConfig.infomation.parentId?Number(this.editConfig.infomation.parentId):null this.editConfig.visible = true }, // 鏂板缓 -- Gitblit v1.8.0