From 12db5383c51de042e9d89ea079727ef81e3519ba Mon Sep 17 00:00:00 2001
From: zhangli <2235006734@qq.com>
Date: Wed, 25 Oct 2023 09:21:24 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E9=80=81=E8=B4=A7?=
=?UTF-8?q?=E7=AD=96=E7=95=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/wms/strategy/supplieDeliveryStrategy/AddForm.vue | 6 +++++-
src/views/wms/strategy/supplieDeliveryStrategy/index.vue | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/views/wms/strategy/supplieDeliveryStrategy/AddForm.vue b/src/views/wms/strategy/supplieDeliveryStrategy/AddForm.vue
index efcce05eb..48b2042e6 100644
--- a/src/views/wms/strategy/supplieDeliveryStrategy/AddForm.vue
+++ b/src/views/wms/strategy/supplieDeliveryStrategy/AddForm.vue
@@ -181,7 +181,8 @@ const change = (e) => {
const formStrategyCode = ref('')
// form表单数据
const formData = ref({
- strategyCode: formStrategyCode.value,//策略代码
+ id:'',
+ strategyCode: formStrategyCode.value,//策略代码id
code: formStrategyCode.value,//规则代码
name: '',//名称
description: '',//描述
@@ -309,6 +310,7 @@ const open = async (type: string, strategyCode: string, id?: number) => {
formLoading.value = true
try {
let data = await RuleApi.getRule(id)
+ formData.value.id = data.id
formData.value.strategyCode = data.strategyCode
formData.value.code = data.code
formData.value.name = data.name
@@ -342,6 +344,7 @@ const submitForm = async () => {
formLoading.value = true
try {
let data = {
+ id: formData.value.id,
strategyCode: formData.value.strategyCode,//策略代码
code: formData.value.code,//规则代码
name: formData.value.name,//名称
@@ -370,6 +373,7 @@ const submitForm = async () => {
/** 重置表单 */
const resetForm = () => {
formData.value = {
+ id: '',
strategyCode: formStrategyCode.value,//策略代码
code: formStrategyCode.value,//规则代码
name: '',//名称
diff --git a/src/views/wms/strategy/supplieDeliveryStrategy/index.vue b/src/views/wms/strategy/supplieDeliveryStrategy/index.vue
index e94a789a7..cbf3b3a8f 100644
--- a/src/views/wms/strategy/supplieDeliveryStrategy/index.vue
+++ b/src/views/wms/strategy/supplieDeliveryStrategy/index.vue
@@ -12,7 +12,7 @@
-
+