Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
65c81e67
Commit
65c81e67
authored
Sep 10, 2024
by
chenwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotfix/preReleaseDefect' into 'pre-release'
Hotfix/pre release defect See merge request
!37
parents
d47ab990
2a78f8f3
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
333 additions
and
91 deletions
+333
-91
giftManagement.js
src/api/ecw/giftManagement.js
+9
-0
en_US.json
src/i18n/languages/en_US.json
+1
-0
operatingGift.vue
src/views/ecw/giftManagement/components/operatingGift.vue
+75
-42
index.vue
src/views/ecw/giftManagement/index.vue
+11
-5
index.vue
...cw/memberManagement/addIntegrationRuleOperation/index.vue
+188
-15
index.vue
src/views/ecw/memberManagement/exchangeRecord/index.vue
+10
-0
chooseGift.vue
...agement/exchangeRecordOperation/components/chooseGift.vue
+6
-4
index.vue
...ws/ecw/memberManagement/exchangeRecordOperation/index.vue
+24
-22
index.vue
src/views/ecw/memberManagement/integrationRule/index.vue
+9
-3
No files found.
src/api/ecw/giftManagement.js
View file @
65c81e67
...
...
@@ -116,3 +116,12 @@ export function bulkConversion(data) {
data
,
});
}
//获取仓库列表下拉框
export
function
getWarehouseList
(
data
)
{
return
request
({
url
:
"
/ecw/warehouse/list-all-simple
"
,
method
:
"
post
"
,
data
,
});
}
src/i18n/languages/en_US.json
View file @
65c81e67
...
...
@@ -4520,6 +4520,7 @@
"领取方式"
:
"Collection method"
,
"兑换网点"
:
"Exchange outlet"
,
"请选择兑换网点"
:
"Please select an exchange outlet"
,
"请选择提货点"
:
"Please select a pickup warehouse"
,
"剩余数量"
:
"Remaining Quantity"
,
"礼品ID"
:
"Gift ID"
,
"允许兑换次数"
:
"Allow redemption times"
,
...
...
src/views/ecw/giftManagement/components/operatingGift.vue
View file @
65c81e67
...
...
@@ -52,19 +52,25 @@
<el-row
:gutter=
"10"
v-for=
"(item, index) in queryParams.nodeIds"
>
<el-col
:span=
"6"
>
<el-form-item
:label=
"$t('
兑换网
点')"
:prop=
"`nodeIds[$
{index}].
nodeId
`"
:rules="rules.nodeIds.
nodeId
"
:label=
"$t('
提货
点')"
:prop=
"`nodeIds[$
{index}].
wareHouses
`"
:rules="rules.nodeIds.
wareHouses
"
>
<el-select
v-model=
"item.
nodeId
"
:placeholder=
"$t('请选择
兑换网
点')"
v-model=
"item.
wareHouses
"
:placeholder=
"$t('请选择
提货
点')"
:disabled=
"isDisable"
clearable
multiple
filterable
remote
reserve-keyword
:remote-method=
"handleWarehouseList"
:loading=
"loading"
size=
"small"
>
<el-option
v-for=
"nodeItem in
nod
eList"
v-for=
"nodeItem in
warehous
eList"
:key=
"nodeItem.id"
:label=
"isChinese ? nodeItem.titleZh : nodeItem.titleEn"
:value=
"nodeItem.id"
...
...
@@ -84,6 +90,21 @@
:disabled=
"isDisable"
/>
</el-form-item
></el-col>
<el-col
:span=
"6"
>
<el-form-item
:label=
"$t('剩余数量')"
:prop=
"`nodeIds[$
{index}].quantityRemain`"
:rules="rules.nodeIds.quantityRemain"
>
<el-input
class=
"input-item-width"
:disabled=
"isDisable && disabelEnableStatus"
v-model.trim=
"item.quantityRemain"
:placeholder=
"$t('请输入')"
type=
"number"
/>
</el-form-item>
</el-col>
<el-col
:span=
"1"
>
<el-button
type=
"primary"
...
...
@@ -92,15 +113,7 @@
></el-button>
</el-col>
</el-row>
<el-form-item
:label=
"$t('剩余数量')"
prop=
"quantityRemain"
>
<el-input
class=
"input-item-width"
:disabled=
"isDisable && disabelEnableStatus"
v-model.trim=
"queryParams.quantityRemain"
:placeholder=
"$t('请输入')"
type=
"number"
/>
</el-form-item>
<el-form-item
:label=
"$t('活动时间')"
prop=
"dateRangeCreateTime"
>
<el-date-picker
:disabled=
"isDisable"
...
...
@@ -192,7 +205,11 @@
</
template
>
<
script
>
import
{
editRewards
,
addRewards
}
from
"
@/api/ecw/giftManagement
"
;
import
{
editRewards
,
addRewards
,
getWarehouseList
,
}
from
"
@/api/ecw/giftManagement
"
;
import
{
getDictDatas
,
DICT_TYPE
}
from
"
@/utils/dict
"
;
import
imageUpload
from
"
@/components/ImageUpload
"
;
import
{
parseTime
,
resetForm
}
from
"
../../../../utils/ruoyi
"
;
...
...
@@ -286,16 +303,17 @@ export default {
},
data
()
{
return
{
loading
:
false
,
queryParams
:
{
allowCount
:
null
,
endTime
:
null
,
imgEn
:
null
,
imgZh
:
null
,
nodeIds
:
[{
nodeId
:
""
,
points
:
""
}],
nodeIds
:
[{
wareHouses
:
""
,
points
:
""
,
quantityRemain
:
null
}],
nodeId
:
null
,
pickMethod
:
null
,
pointsRequire
:
null
,
quantityRemain
:
null
,
remarkEn
:
null
,
remarkFr
:
null
,
remarkZh
:
null
,
...
...
@@ -306,6 +324,7 @@ export default {
dateRangeCreateTime
:
null
,
},
disabelEnableStatus
:
false
,
warehouseList
:
[],
rules
:
{
titleZh
:
[
{
...
...
@@ -334,7 +353,7 @@ export default {
},
],
nodeIds
:
{
nodeId
:
[
wareHouses
:
[
{
required
:
true
,
message
:
this
.
$t
(
"
请选择网点
"
),
...
...
@@ -349,15 +368,15 @@ export default {
},
{
type
:
"
number
"
,
message
:
"
输入数字
"
,
trigger
:
"
blur
"
},
],
quantityRemain
:
[
{
required
:
true
,
message
:
this
.
$t
(
"
请输入剩余数量
"
),
trigger
:
"
blur
"
,
},
],
},
quantityRemain
:
[
{
required
:
true
,
message
:
this
.
$t
(
"
请输入剩余数量
"
),
trigger
:
"
blur
"
,
},
],
pickMethod
:
[
{
required
:
true
,
...
...
@@ -399,7 +418,16 @@ export default {
},
};
},
created
()
{
this
.
handleWarehouseList
();
},
methods
:
{
handleWarehouseList
(
val
=
""
)
{
let
params
=
{
title
:
val
};
getWarehouseList
(
params
).
then
((
res
)
=>
{
this
.
warehouseList
=
res
.
data
;
});
},
handleOrderVRule
(
item
,
index
)
{
if
(
index
==
"
0
"
)
{
this
.
queryParams
.
nodeIds
.
push
({
nodeId
:
""
,
points
:
""
});
...
...
@@ -409,24 +437,29 @@ export default {
},
submit
()
{
let
params
=
{
...
this
.
queryParams
};
params
.
startTime
=
this
.
queryParams
.
dateRangeCreateTime
[
0
];
params
.
endTime
=
this
.
queryParams
.
dateRangeCreateTime
[
1
];
params
.
startTime
=
this
.
queryParams
?.
dateRangeCreateTime
?.
[
0
];
params
.
endTime
=
this
.
queryParams
?.
dateRangeCreateTime
?.
[
1
];
params
.
pickMethod
=
this
.
queryParams
.
pickMethod
.
toString
();
this
.
$refs
[
"
queryForm
"
].
validate
((
valid
)
=>
{
if
(
this
.
title
==
"
2
"
)
{
editRewards
(
params
).
then
((
res
)
=>
{
this
.
$emit
(
"
update:show
"
,
false
);
this
.
$message
.
success
(
this
.
$t
(
"
编辑成功
"
));
this
.
$refs
[
"
queryForm
"
].
resetFields
();
this
.
$parent
.
getList
();
});
if
(
valid
)
{
if
(
this
.
title
==
"
2
"
)
{
editRewards
(
params
).
then
((
res
)
=>
{
this
.
$emit
(
"
update:show
"
,
false
);
this
.
$message
.
success
(
this
.
$t
(
"
编辑成功
"
));
this
.
$refs
[
"
queryForm
"
].
resetFields
();
this
.
$parent
.
getList
();
});
}
else
{
//Add
addRewards
(
params
).
then
((
res
)
=>
{
this
.
$emit
(
"
update:show
"
,
false
);
this
.
$message
.
success
(
this
.
$t
(
"
成功
"
));
this
.
$refs
[
"
queryForm
"
].
resetFields
();
});
}
}
else
{
//Add
addRewards
(
params
).
then
((
res
)
=>
{
this
.
$emit
(
"
update:show
"
,
false
);
this
.
$message
.
success
(
this
.
$t
(
"
成功
"
));
this
.
$refs
[
"
queryForm
"
].
resetFields
();
});
console
.
log
(
"
error submit!!
"
);
return
false
;
}
});
},
...
...
@@ -437,7 +470,7 @@ export default {
this
.
queryParams
=
{
allowCount
:
null
,
endTime
:
null
,
nodeIds
:
[{
nodeId
:
""
,
points
:
""
}],
nodeIds
:
[{
wareHouses
:
""
,
points
:
""
,
quantityRemain
:
null
}],
imgEn
:
null
,
imgZh
:
null
,
nodeId
:
null
,
...
...
src/views/ecw/giftManagement/index.vue
View file @
65c81e67
...
...
@@ -47,10 +47,10 @@
/>
</el-form-item>
<el-form-item
:label=
"$t('
兑换网
点')"
prop=
"level"
>
<el-form-item
:label=
"$t('
提货
点')"
prop=
"level"
>
<el-select
v-model=
"queryParams.nodeId"
:placeholder=
"$t('请选择
兑换网
点')"
:placeholder=
"$t('请选择
提货
点')"
clearable
size=
"small"
@
change=
"handleQuery"
...
...
@@ -221,7 +221,12 @@
<
template
slot
-
scope
=
"
scope
"
>
<
el
-
button
type
=
"
text
"
@
click
=
"
$router.push('/memberManagement/exchangeRecord')
"
@
click
=
"
$router.push({
path: '/memberManagement/exchangeRecord',
query: { rewardCode: scope.row.code
}
,
}
)
"
>
{{
scope
.
row
.
exchangeCount
}}
<
/el-butto
n
>
<
/template
>
...
...
@@ -360,12 +365,12 @@
<
/template
>
<
script
>
import
{
getNodeList
,
getGiftList
,
deleteRewards
,
copyRewardsAPI
,
changeRewardsStatus
,
delayRewards
,
getWarehouseList
,
}
from
"
@/api/ecw/giftManagement
"
;
import
{
getDictDatas
,
DICT_TYPE
}
from
"
@/utils/dict
"
;
import
{
parseTime
}
from
"
../../../utils/ruoyi
"
;
...
...
@@ -535,7 +540,8 @@ export default {
.
catch
(()
=>
{
}
);
}
,
getNodeList
()
{
getNodeList
().
then
((
res
)
=>
{
let
params
=
{
title
:
""
}
;
getWarehouseList
(
params
).
then
((
res
)
=>
{
this
.
nodeList
=
res
.
data
;
}
);
}
,
...
...
src/views/ecw/memberManagement/addIntegrationRuleOperation/index.vue
View file @
65c81e67
This diff is collapsed.
Click to expand it.
src/views/ecw/memberManagement/exchangeRecord/index.vue
View file @
65c81e67
...
...
@@ -516,6 +516,16 @@ export default {
return
this
.
$i18n
.
locale
===
"
zh_CN
"
;
},
},
watch
:
{
"
$route.query.rewardCode
"
:
{
handler
(
val
)
{
if
(
val
)
{
this
.
queryParams
.
rewardCode
=
val
;
}
},
immediate
:
true
,
},
},
created
()
{
this
.
getNodeListAPI
();
this
.
handleQuery
();
...
...
src/views/ecw/memberManagement/exchangeRecordOperation/components/chooseGift.vue
View file @
65c81e67
...
...
@@ -55,10 +55,10 @@
</dict-selector>
</el-form-item>
<el-form-item
:label=
"$t('
兑换网
点')"
prop=
"level"
>
<el-form-item
:label=
"$t('
提货
点')"
prop=
"level"
>
<el-select
v-model=
"queryParams.nodeId"
:placeholder=
"$t('请选择
兑换网
点')"
:placeholder=
"$t('请选择
提货
点')"
clearable
size=
"small"
@
change=
"handleQuery"
...
...
@@ -190,7 +190,7 @@
{{
handlePickMethod
(
row
.
pickMethod
)
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('
兑换网
点')"
align=
"center"
>
<el-table-column
:label=
"$t('
提货
点')"
align=
"center"
>
<
template
v-slot=
"{ row }"
>
{{
isChinese
...
...
@@ -279,6 +279,7 @@ import {
copyRewardsAPI
,
changeRewardsStatus
,
delayRewards
,
getWarehouseList
,
}
from
"
@/api/ecw/giftManagement
"
;
import
{
getDictDatas
,
DICT_TYPE
}
from
"
@/utils/dict
"
;
import
{
parseTime
}
from
"
@/utils/ruoyi
"
;
...
...
@@ -438,7 +439,8 @@ export default {
},
getNodeList
()
{
getNodeList
().
then
((
res
)
=>
{
let
params
=
{
title
:
""
};
getWarehouseList
(
params
).
then
((
res
)
=>
{
this
.
nodeList
=
res
.
data
;
});
},
...
...
src/views/ecw/memberManagement/exchangeRecordOperation/index.vue
View file @
65c81e67
...
...
@@ -11,7 +11,7 @@
:inline="true"
:rules="rules"
:disabled="viewRecordDisable"
label-width="1
6
8px"
label-width="1
4
8px"
>
<el-card
class=
"box-card"
>
<div
slot=
"header"
class=
"clearfix"
>
...
...
@@ -129,7 +129,7 @@
>
</dict-selector>
</el-form-item>
<el-form-item
:label=
"$t('费用')"
>
<el-form-item
class=
"expenses"
:label=
"$t('费用')"
>
<el-row
:gutter=
"10"
>
<el-col
:span=
"12"
>
<el-form-item
prop=
"expenses"
>
...
...
@@ -163,7 +163,7 @@
</el-col>
</el-row>
</el-form-item>
<el-form-item
:label=
"$t('收件人姓名')"
<el-form-item
:label=
"$t('收件人姓名')"
><el-input
:placeholder=
"$t('请输入收件人姓名')"
clearable
...
...
@@ -171,9 +171,7 @@
onkeyup=
"this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')"
/>
</el-form-item>
<el-form-item
:label=
"$t('收件人电话')"
>
<el-form-item
:label=
"$t('收件人电话')"
>
<el-input
:placeholder=
"$t('请输入收件人电话')"
clearable
...
...
@@ -381,18 +379,14 @@ export default {
};
var
expensesCurrency
=
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
queryParamsList
[
0
].
expenses
&&
!
value
)
{
return
callback
(
new
Error
(
this
.
$t
(
"
请选择币种
"
))
);
return
callback
(
new
Error
(
this
.
$t
(
"
请选择币种
"
)));
}
else
{
return
callback
();
}
};
var
expensesValidate
=
(
rule
,
value
,
callback
)
=>
{
var
expensesValidate
=
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
queryParamsList
[
0
].
currency
&&
!
value
)
{
return
callback
(
new
Error
(
this
.
$t
(
"
请输入
"
))
);
return
callback
(
new
Error
(
this
.
$t
(
"
请输入
"
)));
}
else
{
return
callback
();
}
...
...
@@ -473,15 +467,15 @@ export default {
trigger
:
"
blur
"
,
},
{
validator
:
expensesValidate
,
validator
:
expensesValidate
,
trigger
:
"
change
"
,
}
}
,
],
currency
:
[
{
// required: true,
// message: this.$t("请选择币种"),
validator
:
expensesCurrency
,
validator
:
expensesCurrency
,
trigger
:
"
change
"
,
},
],
...
...
@@ -554,7 +548,6 @@ export default {
methods
:
{
getDetails
()
{
memberUserGet
({
id
:
this
.
$route
.
query
.
memberId
}).
then
((
r
)
=>
{
console
.
log
(
r
,
"
rrrr
"
);
// this.details = r.data;
this
.
isChinese
?
(
this
.
queryParamsList
[
0
].
memberName
=
r
.
data
.
nickname
)
...
...
@@ -681,12 +674,15 @@ export default {
}
this
.
queryParamsList
[
0
].
pointsRequire
=
item
.
pointsRequire
;
this
.
queryParamsList
[
0
].
rewardCount
=
""
;
this
.
queryParamsList
[
0
].
rewardCount
=
"
1
"
;
this
.
queryParamsList
[
0
].
spendCredit
=
""
;
this
.
queryParamsList
[
0
].
remainingPoints
=
this
.
queryParamsList
[
0
].
holdScore
;
this
.
quantityComputation
=
this
.
queryParamsList
[
0
].
remainingPoints
>=
0
?
true
:
false
;
// if (this.queryParamsList[0].holdScore) {
this
.
handleRewardCount
({},
0
,
1
);
// }
},
handleSelectMember
()
{
this
.
dialogVisible
=
true
;
...
...
@@ -802,10 +798,16 @@ export default {
color
:
red
;
font-size
:
14px
;
}
::v-deep
.exchangeRecordOperation
{
.el-input
{
width
:
206px
;
}
::v-deep
.exchangeRecordOperation
{
.el-input
,
.upload-file
{
width
:
286px
;
}
.expenses
{
.el-form-item--small.el-form-item
{
margin-bottom
:
0
;
}
}
}
.card-title
{
padding-right
:
10px
;
...
...
src/views/ecw/memberManagement/integrationRule/index.vue
View file @
65c81e67
...
...
@@ -140,7 +140,13 @@
v-loading=
"loading"
:data=
"integrationRuleList"
>
<el-table-column
:label=
"$t('编号')"
align=
"center"
prop=
"code"
/>
<el-table-column
:label=
"$t('编号')"
align=
"center"
>
<template
#default
="
{ row }">
<el-button
size=
"mini"
type=
"text"
@
click=
"handleViewDetails(row)"
>
{{
row
.
code
||
"
/
"
}}
</el-button
>
</
template
>
</el-table-column>
<el-table-column
width=
"140"
:label=
"$t('指标类型')"
align=
"center"
>
<
template
slot-scope=
"scope"
>
{{
...
...
@@ -213,12 +219,12 @@
</el-table-column>
<el-table-column
width=
"220px"
:label=
"$t('操作')"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-button
<
!--
<
el-button
size=
"mini"
type=
"text"
@
click=
"handleViewDetails(scope.row)"
>
{{
$t
(
"
查看
"
)
}}
</el-button
>
>
-->
<el-button
size=
"mini"
type=
"text"
...
...
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