Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-presale
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f2a7c227
authored
Apr 08, 2025
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
4月中需求开发
1 parent
29727715
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
8 deletions
src/api/modules/beforeSale.js
src/views/ContractManager/prodIndex.vue
src/views/beforeSale/equityList.vue
src/views/serviceConfig/addService.vue
src/views/serviceConfig/components/ServicesTable/index.vue
src/api/modules/beforeSale.js
View file @
f2a7c22
...
...
@@ -533,6 +533,16 @@ const uploadImageApi = params => {
noSignAttr
:
[
'file'
]
})
}
// 获取产品名称 (权益订单列表查询条件)
const
getProductListApi
=
params
=>
{
params
.
method
=
'scrm.api.equity.service.spu.select.get'
return
http
({
url
:
'rop-scrm-equity/router'
,
method
:
'GET'
,
data
:
params
,
sign
:
true
})
}
export
default
{
uploadImageApi
,
newSaveWriteOff
,
...
...
@@ -581,5 +591,6 @@ export default {
getBatchTaskListApi
,
getTaskDetailListApi
,
createBatchTaskApi
,
exportErrorDataApi
exportErrorDataApi
,
getProductListApi
}
src/views/ContractManager/prodIndex.vue
View file @
f2a7c22
...
...
@@ -7,6 +7,7 @@
<div
class=
"operate_wrap"
>
<span
class=
"table_title"
>
合同列表
</span>
<div
class=
"operate_btn"
>
<GLButton
type=
"primary"
fn=
"批量初始化"
plain
:size=
"size"
@
click=
"batchInitTmpl"
>
批量初始化
</GLButton>
<GLButton
type=
"primary"
fn=
"批量更换"
plain
:size=
"size"
@
click=
"batchChangeTmpl"
>
批量更换
</GLButton>
<el-button
type=
"primary"
:size=
"size"
@
click=
"handleExport"
>
导出
</el-button>
</div>
...
...
@@ -573,6 +574,16 @@ export default {
ids
}
},
// 批量初始化合同
batchInitTmpl
()
{
const
data
=
this
.
checkedRow
||
[]
const
ids
=
data
.
map
(
item
=>
item
.
contractId
)
if
(
!
ids
.
length
)
return
this
.
$message
.
error
(
'请选择需要初始化的合同'
)
this
.
tipObj
=
{
visible
:
true
,
ids
}
},
// 更换模板
changeTmpl
({
skuPackageCode
,
skuId
,
contractId
},
baseType
)
{
this
.
changeContractObj
=
{
...
...
src/views/beforeSale/equityList.vue
View file @
f2a7c22
...
...
@@ -211,7 +211,7 @@ export default {
searchForm
:
{
queryText
:
''
,
orderStatus
:
''
,
packageCod
e
:
''
,
spuNam
e
:
''
,
merchantId
:
''
,
dqtId
:
''
,
pqId
:
''
,
...
...
@@ -286,11 +286,11 @@ export default {
},
{
label
:
'产品名称'
,
name
:
'
packageCod
e'
,
name
:
'
spuNam
e'
,
type
:
'select'
,
optionList
:
[],
optionId
:
'
packag
eCode'
,
optionLabel
:
'
package
Name'
,
optionId
:
'
spuNam
eCode'
,
optionLabel
:
'
spu
Name'
,
optionsName
:
'goodsStatusList'
},
{
...
...
@@ -470,6 +470,11 @@ export default {
},
{
label
:
'产品名称'
,
prop
:
'spuName'
,
width
:
'200px'
},
{
label
:
'商品名称'
,
prop
:
'packageName'
,
width
:
'200px'
},
...
...
@@ -733,7 +738,8 @@ export default {
// this.editNotify.code == '0' ? 1500 : 3000
// )
// }
this
.
$apis
.
beforeSale
.
getProListApi
({}).
then
(
res
=>
{
this
.
$apis
.
beforeSale
.
getProductListApi
({}).
then
(
res
=>
{
res
?.
forEach
(
v
=>
v
.
spuNameCode
=
v
.
spuName
)
this
.
baseData
.
goodsStatusList
=
res
this
.
getOptionsList
(
'searchFormData'
)
})
...
...
src/views/serviceConfig/addService.vue
View file @
f2a7c22
...
...
@@ -500,8 +500,15 @@ export default {
},
handleAddGrade
()
{
const
_gradeList
=
[
'A'
,
'B'
,
'C'
,
'D'
,
'E'
,
'F'
,
'G'
,
'H'
,
'I'
,
'J'
,
'K'
,
'L'
,
'M'
,
'N'
,
'O'
,
'P'
,
'Q'
,
'R'
,
'S'
,
'T'
,
'U'
,
'V'
,
'W'
,
'X'
,
'Y'
,
'Z'
]
if
(
this
.
gradeList
.
length
==
_gradeList
.
length
)
return
this
.
$message
.
error
(
`最多添加
${
_gradeList
.
length
}
个规格`
)
const
_grade
=
_gradeList
[
this
.
gradeList
.
length
]
// 拓展规格数量
const
keyNum
=
3
if
(
this
.
gradeList
.
length
>=
keyNum
*
_gradeList
.
length
)
return
this
.
$message
.
error
(
`最多添加
${
keyNum
*
_gradeList
.
length
}
个规格`
)
let
_grade
=
_gradeList
[
this
.
gradeList
.
length
]
for
(
var
i
=
1
;
i
<
keyNum
;
i
++
)
{
if
(
this
.
gradeList
.
length
>=
i
*
_gradeList
.
length
)
{
_grade
=
`
${
_gradeList
[
this
.
gradeList
.
length
-
i
*
_gradeList
.
length
]}${
i
}
`
}
}
this
.
gradeList
.
push
(
addGradeItem
(
_grade
,
this
.
formObj
.
salePeriod
))
},
// 编辑的时候获取规格数据
...
...
src/views/serviceConfig/components/ServicesTable/index.vue
View file @
f2a7c22
...
...
@@ -193,6 +193,7 @@ export default {
return
Delta
},
addSection
()
{
if
(
this
.
tableData
.
gradeConfigList
?.
length
>=
20
)
return
this
.
$message
.
error
(
'最多添加20个价格区间'
)
// 获取最后一个的最大价格赋值到新增的最小价格
const
minPrice
=
this
.
tableData
.
gradeConfigList
[
this
.
tableData
.
gradeConfigList
.
length
-
1
]?.
maxPrice
||
''
const
arr
=
this
.
tableData
.
salePeriodData
.
map
(
item
=>
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment