diff --git a/src/components/product/index.vue b/src/components/product/index.vue index 512c7fdbf..e6af470b7 100644 --- a/src/components/product/index.vue +++ b/src/components/product/index.vue @@ -99,6 +99,7 @@ const queryFormRef = ref() // 搜索的表单 const exportLoading = ref(false) // 导出的加载中 /** 打开弹窗 */ const open = async (data: []) => { + console.log('%csrc/components/product/index.vue:102 data', 'color: #007acc;', data); dialogVisible.value = true multipleSelection.value = data await getList() @@ -148,7 +149,13 @@ const submitForm = async () => { emit('success', multipleSelection.value) } const setSelections = async () => { - const selections = multipleSelection.value + const selections = multipleSelection.value.map(item => { + return { + id: item.productId + } + }) + console.log('%csrc/components/product/index.vue:153 list.value', 'color: #007acc;', list.value); + if (selections && selections.length > 0) { list.value.forEach((row: any) => { if (selections.some(item => item.id === row.id)) { diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index f42beb6d2..31c074ef7 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -535,7 +535,7 @@ const remainingRouter: AppRouteRecordRaw[] = [ component: () => import('@/views/crm/business/detail/index.vue') }, { - path: 'business/add/:id', + path: 'business/add', name: 'CrmBusinessAdd', meta: { title: '商机新增', @@ -545,6 +545,17 @@ const remainingRouter: AppRouteRecordRaw[] = [ }, component: () => import('@/views/crm/business/BusinessForm.vue') }, + { + path: 'business/edit', + name: 'CrmBusinesseEdit', + meta: { + title: '商机编辑', + noCache: true, + hidden: true, + activeMenu: '/crm/business' + }, + component: () => import('@/views/crm/business/BusinessForm.vue') + }, { path: 'contract/detail/:id', name: 'CrmContractDetail', diff --git a/src/views/crm/billtemplate/components/index.vue b/src/views/crm/billtemplate/components/index.vue index 2a0268c37..a2bc92e83 100644 --- a/src/views/crm/billtemplate/components/index.vue +++ b/src/views/crm/billtemplate/components/index.vue @@ -23,7 +23,7 @@ - + diff --git a/src/views/crm/business/BusinessForm.vue b/src/views/crm/business/BusinessForm.vue index d3eeb67cc..98f91d05c 100644 --- a/src/views/crm/business/BusinessForm.vue +++ b/src/views/crm/business/BusinessForm.vue @@ -17,7 +17,7 @@ @@ -34,7 +34,7 @@ @@ -85,7 +85,7 @@ placeholder="请选择商机状态组" clearable class="w-1/1" - :disabled="formType !== 'create'" + :disabled="formType" > @@ -222,30 +223,31 @@ 确 定 - 取 消 + 取 消 diff --git a/src/views/crm/business/components/BusinessProductForm.vue b/src/views/crm/business/components/BusinessProductForm.vue index f21f7d814..1aeba02d2 100644 --- a/src/views/crm/business/components/BusinessProductForm.vue +++ b/src/views/crm/business/components/BusinessProductForm.vue @@ -10,25 +10,21 @@ > - + - -