Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
ee966750
authored
Dec 05, 2023
by
芋道源码
Committed by
Gitee
Dec 05, 2023
Browse files
Options
Browse Files
Download
Plain Diff
!342 【CRM:优化产品以及产品分类】
Merge pull request !342 from ZanGe丶/master
parents
0c613e94
dde61c29
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
34 deletions
+29
-34
src/api/crm/product/productCategory/index.ts
+0
-0
src/views/crm/product/ProductDetail.vue
+1
-1
src/views/crm/product/ProductForm.vue
+25
-1
src/views/crm/product/index.vue
+1
-30
src/views/crm/product/productCategory/ProductCategoryForm.vue
+1
-1
src/views/crm/product/productCategory/index.vue
+1
-1
No files found.
src/api/crm/productCategory/index.ts
→
src/api/crm/product
/product
Category/index.ts
View file @
ee966750
File moved
src/views/crm/product/ProductDetail.vue
View file @
ee966750
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
</
template
>
</
template
>
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
{
DICT_TYPE
}
from
'@/utils/dict'
import
*
as
ProductCategoryApi
from
'@/api/crm/productCategory'
import
*
as
ProductCategoryApi
from
'@/api/crm/product
/product
Category'
import
*
as
ProductApi
from
'@/api/crm/product'
import
*
as
ProductApi
from
'@/api/crm/product'
import
{
formatDate
}
from
'@/utils/formatTime'
import
{
formatDate
}
from
'@/utils/formatTime'
import
{
fenToYuan
}
from
'@/utils'
import
{
fenToYuan
}
from
'@/utils'
...
...
src/views/crm/product/ProductForm.vue
View file @
ee966750
...
@@ -8,12 +8,20 @@
...
@@ -8,12 +8,20 @@
label-width=
"100px"
label-width=
"100px"
v-loading=
"formLoading"
v-loading=
"formLoading"
>
>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"产品名称"
prop=
"name"
>
<el-form-item
label=
"产品名称"
prop=
"name"
>
<el-input
v-model=
"formData.name"
placeholder=
"请输入产品名称"
/>
<el-input
v-model=
"formData.name"
placeholder=
"请输入产品名称"
/>
</el-form-item>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"产品编码"
prop=
"no"
>
<el-form-item
label=
"产品编码"
prop=
"no"
>
<el-input
v-model=
"formData.no"
placeholder=
"请输入产品编码"
/>
<el-input
v-model=
"formData.no"
placeholder=
"请输入产品编码"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"单位"
prop=
"unit"
>
<el-form-item
label=
"单位"
prop=
"unit"
>
<el-select
v-model=
"formData.unit"
class=
"w-1/1"
placeholder=
"请选择单位"
>
<el-select
v-model=
"formData.unit"
class=
"w-1/1"
placeholder=
"请选择单位"
>
<el-option
<el-option
...
@@ -24,9 +32,15 @@
...
@@ -24,9 +32,15 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"价格"
prop=
"price"
>
<el-form-item
label=
"价格"
prop=
"price"
>
<el-input
type=
"number"
v-model=
"formData.price"
placeholder=
"请输入价格"
/>
<el-input
type=
"number"
v-model=
"formData.price"
placeholder=
"请输入价格"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"状态"
prop=
"status"
>
<el-form-item
label=
"状态"
prop=
"status"
>
<el-select
v-model=
"formData.status"
placeholder=
"请选择状态"
>
<el-select
v-model=
"formData.status"
placeholder=
"请选择状态"
>
<el-option
<el-option
...
@@ -37,6 +51,8 @@
...
@@ -37,6 +51,8 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"产品分类"
prop=
"categoryId"
>
<el-form-item
label=
"产品分类"
prop=
"categoryId"
>
<el-cascader
<el-cascader
v-model=
"formData.categoryId"
v-model=
"formData.categoryId"
...
@@ -48,9 +64,15 @@
...
@@ -48,9 +64,15 @@
filterable
filterable
/>
/>
</el-form-item>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"产品描述"
prop=
"description"
>
<el-form-item
label=
"产品描述"
prop=
"description"
>
<el-input
v-model=
"formData.description"
placeholder=
"请输入产品描述"
/>
<el-input
v-model=
"formData.description"
placeholder=
"请输入产品描述"
/>
</el-form-item>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"负责人"
prop=
"ownerUserId"
>
<el-form-item
label=
"负责人"
prop=
"ownerUserId"
>
<el-select
<el-select
v-model=
"formData.ownerUserId"
v-model=
"formData.ownerUserId"
...
@@ -65,6 +87,8 @@
...
@@ -65,6 +87,8 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-row>
</el-form>
</el-form>
<template
#
footer
>
<template
#
footer
>
<el-button
@
click=
"submitForm"
type=
"primary"
:disabled=
"formLoading"
>
确 定
</el-button>
<el-button
@
click=
"submitForm"
type=
"primary"
:disabled=
"formLoading"
>
确 定
</el-button>
...
@@ -75,7 +99,7 @@
...
@@ -75,7 +99,7 @@
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
DICT_TYPE
,
getIntDictOptions
}
from
'@/utils/dict'
import
{
DICT_TYPE
,
getIntDictOptions
}
from
'@/utils/dict'
import
*
as
ProductApi
from
'@/api/crm/product'
import
*
as
ProductApi
from
'@/api/crm/product'
import
*
as
ProductCategoryApi
from
'@/api/crm/productCategory'
import
*
as
ProductCategoryApi
from
'@/api/crm/product
/product
Category'
import
{
defaultProps
,
handleTree
}
from
'@/utils/tree'
import
{
defaultProps
,
handleTree
}
from
'@/utils/tree'
import
{
getSimpleUserList
,
UserVO
}
from
'@/api/system/user'
import
{
getSimpleUserList
,
UserVO
}
from
'@/api/system/user'
import
{
useUserStore
}
from
'@/store/modules/user'
import
{
useUserStore
}
from
'@/store/modules/user'
...
...
src/views/crm/product/index.vue
View file @
ee966750
...
@@ -17,15 +17,6 @@
...
@@ -17,15 +17,6 @@
class=
"!w-240px"
class=
"!w-240px"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"产品编码"
prop=
"no"
>
<el-input
v-model=
"queryParams.no"
placeholder=
"请输入产品编码"
clearable
@
keyup
.
enter=
"handleQuery"
class=
"!w-240px"
/>
</el-form-item>
<el-form-item
label=
"状态"
prop=
"status"
>
<el-form-item
label=
"状态"
prop=
"status"
>
<el-select
v-model=
"queryParams.status"
placeholder=
"请选择状态"
clearable
class=
"!w-240px"
>
<el-select
v-model=
"queryParams.status"
placeholder=
"请选择状态"
clearable
class=
"!w-240px"
>
<el-option
<el-option
...
@@ -36,26 +27,6 @@
...
@@ -36,26 +27,6 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"产品分类"
prop=
"categoryId"
>
<el-input
v-model=
"queryParams.categoryId"
placeholder=
"请选择产品分类"
clearable
@
keyup
.
enter=
"handleQuery"
class=
"!w-240px"
/>
</el-form-item>
<el-form-item
label=
"创建时间"
prop=
"createTime"
>
<el-date-picker
v-model=
"queryParams.createTime"
value-format=
"YYYY-MM-DD HH:mm:ss"
type=
"daterange"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
:default-time=
"[new Date('1 00:00:00'), new Date('1 23:59:59')]"
class=
"!w-240px"
/>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
@
click=
"handleQuery"
><Icon
icon=
"ep:search"
class=
"mr-5px"
/>
搜索
</el-button>
<el-button
@
click=
"handleQuery"
><Icon
icon=
"ep:search"
class=
"mr-5px"
/>
搜索
</el-button>
<el-button
@
click=
"resetQuery"
><Icon
icon=
"ep:refresh"
class=
"mr-5px"
/>
重置
</el-button>
<el-button
@
click=
"resetQuery"
><Icon
icon=
"ep:refresh"
class=
"mr-5px"
/>
重置
</el-button>
...
@@ -167,7 +138,7 @@ import * as ProductApi from '@/api/crm/product'
...
@@ -167,7 +138,7 @@ import * as ProductApi from '@/api/crm/product'
import
ProductForm
from
'./ProductForm.vue'
import
ProductForm
from
'./ProductForm.vue'
import
ProductDetail
from
'./ProductDetail.vue'
import
ProductDetail
from
'./ProductDetail.vue'
import
{
fenToYuan
}
from
'@/utils'
import
{
fenToYuan
}
from
'@/utils'
import
*
as
ProductCategoryApi
from
'@/api/crm/productCategory'
import
*
as
ProductCategoryApi
from
'@/api/crm/product
/product
Category'
import
{
getSimpleUserList
,
UserVO
}
from
'@/api/system/user'
import
{
getSimpleUserList
,
UserVO
}
from
'@/api/system/user'
defineOptions
({
name
:
'CrmProduct'
})
defineOptions
({
name
:
'CrmProduct'
})
...
...
src/views/crm/productCategory/ProductCategoryForm.vue
→
src/views/crm/product
/product
Category/ProductCategoryForm.vue
View file @
ee966750
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
</Dialog>
</Dialog>
</template>
</template>
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
*
as
ProductCategoryApi
from
'@/api/crm/productCategory'
import
*
as
ProductCategoryApi
from
'@/api/crm/product
/product
Category'
defineOptions
({
name
:
'CrmProductCategoryForm'
})
defineOptions
({
name
:
'CrmProductCategoryForm'
})
...
...
src/views/crm/productCategory/index.vue
→
src/views/crm/product
/product
Category/index.vue
View file @
ee966750
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
dateFormatter
}
from
'@/utils/formatTime'
import
{
dateFormatter
}
from
'@/utils/formatTime'
import
download
from
'@/utils/download'
import
download
from
'@/utils/download'
import
*
as
ProductCategoryApi
from
'@/api/crm/productCategory'
import
*
as
ProductCategoryApi
from
'@/api/crm/product
/product
Category'
import
ProductCategoryForm
from
'./ProductCategoryForm.vue'
import
ProductCategoryForm
from
'./ProductCategoryForm.vue'
import
{
handleTree
}
from
'@/utils/tree'
import
{
handleTree
}
from
'@/utils/tree'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment