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
e26685d3
Commit
e26685d3
authored
Sep 03, 2024
by
chenwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed defect
parent
cc649a65
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
171 additions
and
69 deletions
+171
-69
index.js
src/directive/index.js
+2
-0
trim.js
src/directive/trim/trim.js
+41
-0
en_US.json
src/i18n/languages/en_US.json
+6
-6
operatingGift.vue
src/views/ecw/giftManagement/components/operatingGift.vue
+23
-15
index.vue
src/views/ecw/giftManagement/index.vue
+4
-3
index.vue
...cw/memberManagement/addIntegrationRuleOperation/index.vue
+11
-11
index.vue
src/views/ecw/memberManagement/exchangeRecord/index.vue
+36
-3
index.vue
...ws/ecw/memberManagement/exchangeRecordOperation/index.vue
+27
-20
index.vue
src/views/ecw/memberManagement/integrationRule/index.vue
+9
-6
index.vue
src/views/ecw/memberManagement/memberPointsSummary/index.vue
+1
-1
index.vue
src/views/member/user/index.vue
+11
-4
No files found.
src/directive/index.js
View file @
e26685d3
...
@@ -4,6 +4,7 @@ import dialogDrag from './dialog/drag'
...
@@ -4,6 +4,7 @@ import dialogDrag from './dialog/drag'
import
dialogDragWidth
from
'
./dialog/dragWidth
'
import
dialogDragWidth
from
'
./dialog/dragWidth
'
import
dialogDragHeight
from
'
./dialog/dragHeight
'
import
dialogDragHeight
from
'
./dialog/dragHeight
'
import
clipboard
from
'
./module/clipboard
'
import
clipboard
from
'
./module/clipboard
'
import
trim
from
"
./trim/trim
"
;
const
install
=
function
(
Vue
)
{
const
install
=
function
(
Vue
)
{
Vue
.
directive
(
'
hasRole
'
,
hasRole
)
Vue
.
directive
(
'
hasRole
'
,
hasRole
)
...
@@ -12,6 +13,7 @@ const install = function(Vue) {
...
@@ -12,6 +13,7 @@ const install = function(Vue) {
Vue
.
directive
(
'
dialogDrag
'
,
dialogDrag
)
Vue
.
directive
(
'
dialogDrag
'
,
dialogDrag
)
Vue
.
directive
(
'
dialogDragWidth
'
,
dialogDragWidth
)
Vue
.
directive
(
'
dialogDragWidth
'
,
dialogDragWidth
)
Vue
.
directive
(
'
dialogDragHeight
'
,
dialogDragHeight
)
Vue
.
directive
(
'
dialogDragHeight
'
,
dialogDragHeight
)
Vue
.
directive
(
"
trim
"
,
trim
)
}
}
if
(
window
.
Vue
)
{
if
(
window
.
Vue
)
{
...
...
src/directive/trim/trim.js
0 → 100644
View file @
e26685d3
// 获取元素
function
getInput
(
el
)
{
let
inputEle
;
if
(
el
.
tagName
!==
"
INPUT
"
)
{
// 若 el-input 中 type 为 textarea
if
(
el
.
_prevClass
.
includes
(
"
el-textarea
"
))
{
inputEle
=
el
.
querySelector
(
"
textarea
"
);
}
else
{
inputEle
=
el
.
querySelector
(
"
input
"
);
}
}
else
{
inputEle
=
el
;
}
return
inputEle
;
}
function
dispatchEvent
(
el
,
type
)
{
const
evt
=
new
Event
(
type
);
el
.
dispatchEvent
(
evt
);
}
const
Trim
=
{
inserted
:
(
el
)
=>
{
let
inputEle
=
getInput
(
el
);
const
handler
=
function
(
event
)
{
const
newVal
=
event
.
target
.
value
.
trim
();
if
(
event
.
target
.
value
!==
newVal
)
{
event
.
target
.
value
=
newVal
;
dispatchEvent
(
inputEle
,
"
input
"
);
}
};
el
.
inputEle
=
inputEle
;
el
.
_blurHandler
=
handler
;
inputEle
.
addEventListener
(
"
blur
"
,
handler
);
},
unbind
(
el
)
{
const
{
inputEle
}
=
el
;
inputEle
.
removeEventListener
(
"
blur
"
,
el
.
_blurHandler
);
},
};
export
default
Trim
;
src/i18n/languages/en_US.json
View file @
e26685d3
...
@@ -4607,7 +4607,7 @@
...
@@ -4607,7 +4607,7 @@
"请输入整数"
:
"Please enter an integer"
,
"请输入整数"
:
"Please enter an integer"
,
"请输入中文规则说明"
:
"Please enter the rule description in Chinese"
,
"请输入中文规则说明"
:
"Please enter the rule description in Chinese"
,
"请输入英文规则说明"
:
"Please enter English rule description"
,
"请输入英文规则说明"
:
"Please enter English rule description"
,
"请输入积分
规则"
:
"Please enter the scoring rules
"
,
"请输入积分
"
:
"Please enter the scoring
"
,
"请选择是否推送"
:
"Please select whether to push"
,
"请选择是否推送"
:
"Please select whether to push"
,
"保存并启用"
:
"Save and Enable"
,
"保存并启用"
:
"Save and Enable"
,
"订单入口"
:
"Order Entry"
,
"订单入口"
:
"Order Entry"
,
...
@@ -4615,7 +4615,7 @@
...
@@ -4615,7 +4615,7 @@
"注册平台"
:
"Registration platform"
,
"注册平台"
:
"Registration platform"
,
"等级名称"
:
"User level name"
,
"等级名称"
:
"User level name"
,
"是否确认启用此礼品规则"
:
"Do you confirm to enable this gift rule?"
,
"是否确认启用此礼品规则"
:
"Do you confirm to enable this gift rule?"
,
"是否确认复制
礼品规则"
:
"Do you want to copy gift
rules?"
,
"是否确认复制
积分规则"
:
"Do you want to copy points
rules?"
,
"是否确认关闭此礼品规则"
:
"Do you want to confirm to turn off this gift rule?"
,
"是否确认关闭此礼品规则"
:
"Do you want to confirm to turn off this gift rule?"
,
"单次积分"
:
"Single integration"
,
"单次积分"
:
"Single integration"
,
"规则说明"
:
"Specification of rules"
,
"规则说明"
:
"Specification of rules"
,
...
@@ -4661,12 +4661,12 @@
...
@@ -4661,12 +4661,12 @@
"本次最终积分应小于下一次开始积分"
:
"This final score should be less than the next starting score "
,
"本次最终积分应小于下一次开始积分"
:
"This final score should be less than the next starting score "
,
"确认兑换"
:
"Confirm conversion"
,
"确认兑换"
:
"Confirm conversion"
,
"操作积分"
:
"Operation integral"
,
"操作积分"
:
"Operation integral"
,
"基本"
:
"Base"
,
"基本"
:
"Base"
,
"发货信息"
:
"Shipping Information"
,
"发货信息"
:
"Shipping Information"
,
"设置"
:
"Setting"
,
"设置"
:
"Setting"
,
"财务"
:
"Finance"
,
"财务"
:
"Finance"
,
"开票信息"
:
"Billing Information"
,
"开票信息"
:
"Billing Information"
,
"国籍"
:
"country"
,
"国籍"
:
"country"
,
"首次成交时间"
:
"First deal time"
,
"首次成交时间"
:
"First deal time"
,
"掉入公海时间"
:
"Time fall to Common Customers List"
,
"掉入公海时间"
:
"Time fall to Common Customers List"
,
"获取方式"
:
"Get method"
,
"获取方式"
:
"Get method"
,
...
@@ -4692,6 +4692,6 @@
...
@@ -4692,6 +4692,6 @@
"已卸柜/已到仓时间"
:
"Unloaded/arrived Time"
,
"已卸柜/已到仓时间"
:
"Unloaded/arrived Time"
,
"动态"
:
"Dynamics"
,
"动态"
:
"Dynamics"
,
"增值服务"
:
"Added services"
,
"增值服务"
:
"Added services"
,
"开启会员积分系统"
:
"Enable member points system"
,
"开启会员积分系统"
:
"Enable member points system"
,
"是否确认{val}会员积分系统"
:
"Confirm whether to {val} the member points system"
"是否确认{val}会员积分系统"
:
"Confirm whether to {val} the member points system"
}
}
src/views/ecw/giftManagement/components/operatingGift.vue
View file @
e26685d3
...
@@ -11,22 +11,22 @@
...
@@ -11,22 +11,22 @@
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('中文礼品名称')"
prop=
"titleZh"
>
<el-form-item
:label=
"$t('中文礼品名称')"
prop=
"titleZh"
>
<el-input
<el-input
v-model
.trim
=
"queryParams.titleZh"
v-model=
"queryParams.titleZh"
:placeholder=
"$t('请输入')"
:placeholder=
"$t('请输入')"
:disabled=
"isDisable"
:disabled=
"isDisable"
clearable
clearable
onkeyup=
"this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')"
v-trim
/>
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('英文礼品名称')"
prop=
"titleEn"
>
<el-form-item
:label=
"$t('英文礼品名称')"
prop=
"titleEn"
>
<el-input
<el-input
v-model
.trim
=
"queryParams.titleEn"
v-model=
"queryParams.titleEn"
:disabled=
"isDisable"
:disabled=
"isDisable"
:placeholder=
"$t('请输入')"
:placeholder=
"$t('请输入')"
clearable
clearable
onkeyup=
"this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')"
v-trim
/>
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
<el-form-item
:label=
"$t('兑换网点')"
:label=
"$t('兑换网点')"
:prop=
"
'nodeIds.' + index + '.nodeId'
"
:prop=
"
`nodeIds[$
{index}].nodeId`
"
:rules="rules.nodeIds.nodeId"
:rules="rules.nodeIds.nodeId"
>
>
<el-select
<el-select
...
@@ -75,10 +75,11 @@
...
@@ -75,10 +75,11 @@
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
<el-form-item
:label=
"$t('兑换积分')"
:label=
"$t('兑换积分')"
:prop=
"
'nodeIds.' + index + 'points'
"
:prop=
"
`nodeIds[$
{index}].points`
"
:rules="rules.nodeIds.points"
:rules="rules.nodeIds.points"
>
>
<el-input
<el-input
type=
"number"
v-model.trim=
"item.points"
v-model.trim=
"item.points"
:placeholder=
"$t('请输入')"
:placeholder=
"$t('请输入')"
:disabled=
"isDisable"
:disabled=
"isDisable"
...
@@ -95,6 +96,7 @@
...
@@ -95,6 +96,7 @@
</el-row>
</el-row>
<el-form-item
:label=
"$t('剩余数量')"
prop=
"quantityRemain"
>
<el-form-item
:label=
"$t('剩余数量')"
prop=
"quantityRemain"
>
<el-input
<el-input
class=
"input-item-width"
:disabled=
"isDisable && disabelEnableStatus"
:disabled=
"isDisable && disabelEnableStatus"
v-model.trim=
"queryParams.quantityRemain"
v-model.trim=
"queryParams.quantityRemain"
:placeholder=
"$t('请输入')"
:placeholder=
"$t('请输入')"
...
@@ -127,6 +129,8 @@
...
@@ -127,6 +129,8 @@
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('允许兑换次数')"
prop=
"allowCount"
>
<el-form-item
:label=
"$t('允许兑换次数')"
prop=
"allowCount"
>
<el-input
<el-input
class=
"input-item-width"
type=
"number"
v-model.trim=
"queryParams.allowCount"
v-model.trim=
"queryParams.allowCount"
:placeholder=
"$t('请输入')"
:placeholder=
"$t('请输入')"
clearable
clearable
...
@@ -350,13 +354,13 @@ export default {
...
@@ -350,13 +354,13 @@ export default {
],
],
},
},
quantityRemain
:
[
quantityRemain
:
[
{
{
required
:
true
,
required
:
true
,
message
:
this
.
$t
(
"
请输入剩余数量
"
),
message
:
this
.
$t
(
"
请输入剩余数量
"
),
trigger
:
"
blur
"
,
trigger
:
"
blur
"
,
},
},
],
],
pickMethod
:
[
pickMethod
:
[
{
{
required
:
true
,
required
:
true
,
...
@@ -440,8 +444,7 @@ export default {
...
@@ -440,8 +444,7 @@ export default {
imgZh
:
null
,
imgZh
:
null
,
nodeId
:
null
,
nodeId
:
null
,
pickMethod
:
null
,
pickMethod
:
null
,
pointsRequire
:
null
,
pointsRequire
:
null
,
quantityRemain
:
null
,
remarkEn
:
null
,
remarkEn
:
null
,
remarkFr
:
null
,
remarkFr
:
null
,
remarkZh
:
null
,
remarkZh
:
null
,
...
@@ -455,3 +458,8 @@ export default {
...
@@ -455,3 +458,8 @@ export default {
},
},
};
};
</
script
>
</
script
>
<
style
>
.input-item-width
{
width
:
194px
;
}
</
style
>
src/views/ecw/giftManagement/index.vue
View file @
e26685d3
...
@@ -264,7 +264,7 @@
...
@@ -264,7 +264,7 @@
icon
=
"
el-icon-edit
"
icon
=
"
el-icon-edit
"
:
disabled
=
"
scope.row.status != '1'
"
:
disabled
=
"
scope.row.status != '1'
"
@
click
=
"
handlePostpone(scope.row)
"
@
click
=
"
handlePostpone(scope.row)
"
>
{{
$t
(
"
延期
"
)
}}
<
/el-button
>
>
{{
$t
(
"
延期
"
)
}}
<
/el-button
>
<
el
-
button
<
el
-
button
v
-
hasPermi
=
"
['ecw:giftManagement:delete']
"
v
-
hasPermi
=
"
['ecw:giftManagement:delete']
"
size
=
"
mini
"
size
=
"
mini
"
...
@@ -286,14 +286,15 @@
...
@@ -286,14 +286,15 @@
size
=
"
mini
"
size
=
"
mini
"
type
=
"
text
"
type
=
"
text
"
icon
=
"
el-icon-user
"
icon
=
"
el-icon-user
"
:
disabled
=
"
scope.row.status == '1' || scope.row.status == '3' || scope.row.status == '4'
"
@
click
=
"
handleLaunchRewards(scope.row)
"
@
click
=
"
handleLaunchRewards(scope.row)
"
>
{{
$t
(
"
启用
"
)
}}
<
/el-button
>
>
{{
$t
(
"
启用
"
)
}}
<
/el-button
>
<
el
-
button
<
el
-
button
v
-
has
-
permi
=
"
['ecw:giftManagement:exchange']
"
v
-
has
-
permi
=
"
['ecw:giftManagement:exchange']
"
:
disabled
=
"
scope.row.
isInOpenSea
"
:
disabled
=
"
scope.row.
status == '3' || scope.row.status == '4'
"
size
=
"
mini
"
size
=
"
mini
"
type
=
"
text
"
type
=
"
text
"
icon
=
"
el-icon-user
"
icon
=
"
el-icon-user
"
@
click
=
"
handleExchange(scope.row)
"
@
click
=
"
handleExchange(scope.row)
"
>
{{
$t
(
"
兑换
"
)
}}
<
/el-button
>
>
{{
$t
(
"
兑换
"
)
}}
<
/el-button
>
<
/template
>
<
/template
>
...
...
src/views/ecw/memberManagement/addIntegrationRuleOperation/index.vue
View file @
e26685d3
...
@@ -21,10 +21,10 @@
...
@@ -21,10 +21,10 @@
<el-form-item
:label=
"$t('中文标题')"
prop=
"titleZh"
>
<el-form-item
:label=
"$t('中文标题')"
prop=
"titleZh"
>
<el-input
<el-input
style=
"width: 300px"
style=
"width: 300px"
v-model
.trim
=
"queryParams.titleZh"
v-model=
"queryParams.titleZh"
:placeholder=
"$t('请输入查找')"
:placeholder=
"$t('请输入查找')"
clearable
clearable
onkeyup=
"this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')"
v-trim
/>
/>
<el-button
<el-button
size=
"mini"
size=
"mini"
...
@@ -40,10 +40,10 @@
...
@@ -40,10 +40,10 @@
<el-form-item
:label=
"$t('英文标题')"
prop=
"titleEn"
>
<el-form-item
:label=
"$t('英文标题')"
prop=
"titleEn"
>
<el-input
<el-input
style=
"width: 300px"
style=
"width: 300px"
v-model
.trim
=
"queryParams.titleEn"
v-model=
"queryParams.titleEn"
:placeholder=
"$t('请输入查找')"
:placeholder=
"$t('请输入查找')"
clearable
clearable
onkeyup=
"this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')"
v-trim
/>
</el-form-item
/>
</el-form-item
></el-col>
></el-col>
</el-row>
</el-row>
...
@@ -105,10 +105,10 @@
...
@@ -105,10 +105,10 @@
<el-input
<el-input
type=
"textarea"
type=
"textarea"
style=
"width: 300px"
style=
"width: 300px"
v-model
.trim
=
"queryParams.extraRecommend.shareContentZh"
v-model=
"queryParams.extraRecommend.shareContentZh"
:placeholder=
"$t('请输入分享文案')"
:placeholder=
"$t('请输入分享文案')"
clearable
clearable
onkeyup=
"this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')"
v-trim
/>
</el-form-item
/>
</el-form-item
></el-col>
></el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
...
@@ -119,10 +119,10 @@
...
@@ -119,10 +119,10 @@
<el-input
<el-input
type=
"textarea"
type=
"textarea"
style=
"width: 300px"
style=
"width: 300px"
v-model
.trim
=
"queryParams.extraRecommend.shareContentEn"
v-model=
"queryParams.extraRecommend.shareContentEn"
:placeholder=
"$t('请输入分享文案')"
:placeholder=
"$t('请输入分享文案')"
clearable
clearable
onkeyup=
"this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')"
v-trim
/>
</el-form-item
/>
</el-form-item
></el-col>
></el-col>
</el-row>
</el-row>
...
@@ -178,7 +178,7 @@
...
@@ -178,7 +178,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
:label=
"$t('积分
规则
')"
:label=
"$t('积分')"
v-if=
"queryParams.type == '1'"
v-if=
"queryParams.type == '1'"
required
required
>
>
...
@@ -240,7 +240,7 @@
...
@@ -240,7 +240,7 @@
<!-- 除v值之外的积分规则 -->
<!-- 除v值之外的积分规则 -->
<el-form-item
<el-form-item
v-if=
"queryParams.type != '1'"
v-if=
"queryParams.type != '1'"
:label=
"$t('积分
规则
')"
:label=
"$t('积分')"
prop=
"getScoreOnce"
prop=
"getScoreOnce"
>
>
<el-input
<el-input
...
@@ -662,7 +662,7 @@ export default {
...
@@ -662,7 +662,7 @@ export default {
getScoreOnce
:
[
getScoreOnce
:
[
{
{
required
:
true
,
required
:
true
,
message
:
this
.
$t
(
"
请输入积分
规则
"
),
message
:
this
.
$t
(
"
请输入积分
"
),
trigger
:
"
blur
"
,
trigger
:
"
blur
"
,
},
},
{
{
...
...
src/views/ecw/memberManagement/exchangeRecord/index.vue
View file @
e26685d3
...
@@ -176,8 +176,16 @@
...
@@ -176,8 +176,16 @@
<el-table-column
<el-table-column
:label=
"$t('礼品名称')"
:label=
"$t('礼品名称')"
align=
"center"
align=
"center"
:prop=
"isChinese ? 'rewardTitleZh' : 'rewardTitleEn'"
>
/>
<template
#default
="
{ row }">
<el-button
type=
"text"
@
click=
"
handleShowRewardsDetail(row)
"
>
{{
isChinese
?
row
.
rewardTitleZh
:
row
.
rewardTitleEn
}}
</el-button>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('会员名称')"
align=
"center"
>
<el-table-column
:label=
"$t('会员名称')"
align=
"center"
>
<
template
#default
="{
row
}"
>
<
template
#default
="{
row
}"
>
<el-button
<el-button
...
@@ -398,11 +406,20 @@
...
@@ -398,11 +406,20 @@
}}
</el-button>
}}
</el-button>
</span>
</span>
</el-dialog>
</el-dialog>
<!-- 查看 礼品 -->
<operating-gift
ref=
"operatingGift"
:title=
"operatingPagetitle"
:rewards-details=
"rewardsItem"
:show.sync=
"dialogVisible"
:node-list=
"nodeList"
/>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
import
{
getNodeList
}
from
'
@/api/ecw/giftManagement
'
import
{
getNodeList
,
getRewardsDetails
}
from
'
@/api/ecw/giftManagement
'
import
{
import
{
queryMemberExchangeRecord
,
queryMemberExchangeRecord
,
batchVerifyAPI
,
batchVerifyAPI
,
...
@@ -413,8 +430,12 @@ import {
...
@@ -413,8 +430,12 @@ import {
}
from
'
@/api/ecw/memberManagement
'
}
from
'
@/api/ecw/memberManagement
'
import
{
getNowDateTime
,
parseTime
}
from
'
@/utils/ruoyi
'
import
{
getNowDateTime
,
parseTime
}
from
'
@/utils/ruoyi
'
import
{
getBaseHeader
}
from
'
@/utils/request
'
import
{
getBaseHeader
}
from
'
@/utils/request
'
import
OperatingGift
from
'
@/views/ecw/giftManagement/components/operatingGift.vue
'
export
default
{
export
default
{
name
:
'
ExchangeRecord
'
,
name
:
'
ExchangeRecord
'
,
components
:
{
OperatingGift
},
data
()
{
data
()
{
return
{
return
{
upload
:
{
upload
:
{
...
@@ -442,6 +463,8 @@ export default {
...
@@ -442,6 +463,8 @@ export default {
showSearch
:
true
,
showSearch
:
true
,
selectedMember
:
[],
selectedMember
:
[],
cityList
:
[],
cityList
:
[],
operatingPagetitle
:
''
,
rewardsItem
:
{},
dateRangeCreateTime
:
[],
dateRangeCreateTime
:
[],
total
:
0
,
total
:
0
,
loading
:
true
,
loading
:
true
,
...
@@ -485,6 +508,16 @@ export default {
...
@@ -485,6 +508,16 @@ export default {
this
.
handleQuery
()
this
.
handleQuery
()
},
},
methods
:
{
methods
:
{
handleShowRewardsDetail
(
row
){
let
params
=
{
id
:
row
.
rewardId
};
getRewardsDetails
(
params
).
then
((
res
)
=>
{
this
.
dialogVisible
=
true
this
.
operatingPagetitle
=
'
1
'
this
.
rewardsItem
=
res
.
data
;
});
},
// 核销回退
// 核销回退
handleVerificationRollback
(
row
)
{
handleVerificationRollback
(
row
)
{
this
.
$confirm
(
this
.
$t
(
'
是否继续核销回退?
'
),
this
.
$t
(
'
提示
'
),
{
this
.
$confirm
(
this
.
$t
(
'
是否继续核销回退?
'
),
this
.
$t
(
'
提示
'
),
{
...
...
src/views/ecw/memberManagement/exchangeRecordOperation/index.vue
View file @
e26685d3
<
template
>
<
template
>
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"formBox"
>
<div
class=
"formBox
exchangeRecordOperation
"
>
<el-form
<el-form
v-for=
"(item, index) in queryParamsList"
v-for=
"(item, index) in queryParamsList"
:key=
"item.memberId"
:key=
"item.memberId"
...
@@ -129,7 +129,7 @@
...
@@ -129,7 +129,7 @@
>
>
</dict-selector>
</dict-selector>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('费用')"
required
>
<el-form-item
:label=
"$t('费用')"
>
<el-row
:gutter=
"10"
>
<el-row
:gutter=
"10"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
prop=
"expenses"
>
<el-form-item
prop=
"expenses"
>
...
@@ -162,7 +162,7 @@
...
@@ -162,7 +162,7 @@
</el-col>
</el-col>
</el-row>
</el-row>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('收件人姓名')"
prop=
"recipientName"
<el-form-item
:label=
"$t('收件人姓名')"
><el-input
><el-input
:placeholder=
"$t('请输入收件人姓名')"
:placeholder=
"$t('请输入收件人姓名')"
clearable
clearable
...
@@ -172,7 +172,6 @@
...
@@ -172,7 +172,6 @@
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
:label=
"$t('收件人电话')"
:label=
"$t('收件人电话')"
prop=
"recipientPhoneNum"
>
>
<el-input
<el-input
:placeholder=
"$t('请输入收件人电话')"
:placeholder=
"$t('请输入收件人电话')"
...
@@ -183,7 +182,6 @@
...
@@ -183,7 +182,6 @@
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
:label=
"$t('收件人地址')"
:label=
"$t('收件人地址')"
prop=
"recipientAddress"
v-if=
"item.redeemType != '1'"
v-if=
"item.redeemType != '1'"
>
>
<el-input
<el-input
...
@@ -380,6 +378,15 @@ export default {
...
@@ -380,6 +378,15 @@ export default {
return
callback
();
return
callback
();
}
}
};
};
var
expensesCurrency
=
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
queryParamsList
[
0
].
expenses
&&
!
value
)
{
return
callback
(
new
Error
(
this
.
$t
(
"
请选择币种
"
))
);
}
else
{
return
callback
();
}
};
return
{
return
{
env
:
process
.
env
.
NODE_ENV
,
env
:
process
.
env
.
NODE_ENV
,
// 是否显示弹出层
// 是否显示弹出层
...
@@ -445,11 +452,11 @@ export default {
...
@@ -445,11 +452,11 @@ export default {
},
},
],
],
expenses
:
[
expenses
:
[
{
//
{
required
:
true
,
//
required: true,
message
:
this
.
$t
(
"
请输入费用
"
),
//
message: this.$t("请输入费用"),
trigger
:
"
blur
"
,
//
trigger: "blur",
},
//
},
{
{
pattern
:
/^
\d
+
(\.\d{1,2})?
$/
,
pattern
:
/^
\d
+
(\.\d{1,2})?
$/
,
message
:
this
.
$t
(
"
请输入整数或保留小数点后两位
"
),
message
:
this
.
$t
(
"
请输入整数或保留小数点后两位
"
),
...
@@ -458,8 +465,9 @@ export default {
...
@@ -458,8 +465,9 @@ export default {
],
],
currency
:
[
currency
:
[
{
{
required
:
true
,
// required: true,
message
:
this
.
$t
(
"
请选择币种
"
),
// message: this.$t("请选择币种"),
validator
:
expensesCurrency
,
trigger
:
"
change
"
,
trigger
:
"
change
"
,
},
},
],
],
...
@@ -775,13 +783,16 @@ export default {
...
@@ -775,13 +783,16 @@ export default {
},
},
};
};
</
script
>
</
script
>
<
style
>
<
style
scoped
lang=
"scss"
>
#colorRedInput
.el-input__inner
{
::v-deep
#colorRedInput
.el-input__inner
{
color
:
red
;
color
:
red
;
font-size
:
14px
;
font-size
:
14px
;
}
}
</
style
>
::v-deep
.exchangeRecordOperation
{
<
style
scoped
lang=
"scss"
>
.el-input
{
width
:
206px
;
}
}
.card-title
{
.card-title
{
padding-right
:
10px
;
padding-right
:
10px
;
border-right
:
4px
solid
rgb
(
64
,
158
,
255
);
border-right
:
4px
solid
rgb
(
64
,
158
,
255
);
...
@@ -791,10 +802,6 @@ export default {
...
@@ -791,10 +802,6 @@ export default {
.del-btn
{
.del-btn
{
color
:
red
;
color
:
red
;
}
}
.app-container
.el-date-editor.el-input
,
.el-date-editor.el-input__inner
{
width
:
194px
;
}
.container
{
.container
{
padding
:
20px
0
;
padding
:
20px
0
;
}
}
...
...
src/views/ecw/memberManagement/integrationRule/index.vue
View file @
e26685d3
...
@@ -18,21 +18,21 @@
...
@@ -18,21 +18,21 @@
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('标题:')"
>
<el-form-item
:label=
"$t('标题:')"
>
<el-input
<el-input
v-model.trim=
"queryParams.title"
v-model=
"queryParams.title"
v-trim
style=
"width: 300px"
style=
"width: 300px"
:placeholder=
"$t('请输入查找')"
:placeholder=
"$t('请输入查找')"
clearable
clearable
onkeyup=
"this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')"
@
keyup.enter.native=
"handleQuery"
@
keyup.enter.native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('规则说明')"
>
<el-form-item
:label=
"$t('规则说明')"
>
<el-input
<el-input
v-model
.trim
=
"queryParams.desc"
v-model=
"queryParams.desc"
style=
"width: 300px"
style=
"width: 300px"
:placeholder=
"$t('请输入关键词查找')"
:placeholder=
"$t('请输入关键词查找')"
clearable
clearable
onkeyup=
"this.value=this.value.replace(/(^\s*)|(\s*$)/g,'')"
v-trim
@
keyup.enter.native=
"handleQuery"
@
keyup.enter.native=
"handleQuery"
/>
/>
</el-form-item>
</el-form-item>
...
@@ -169,7 +169,10 @@
...
@@ -169,7 +169,10 @@
:label=
"$t('累计最高积分')"
:label=
"$t('累计最高积分')"
align=
"center"
align=
"center"
prop=
"maxScoreTotal"
prop=
"maxScoreTotal"
/>
>
<
template
#default
="{
row
}"
>
{{
row
.
maxScoreTotal
||
"
--
"
}}
</
template
>
</el-table-column>
<el-table-column
<el-table-column
:label=
"$t('规则说明')"
:label=
"$t('规则说明')"
align=
"center"
align=
"center"
...
@@ -407,7 +410,7 @@ export default {
...
@@ -407,7 +410,7 @@ export default {
// 复制按钮操作
// 复制按钮操作
handleCopyButton
(
row
)
{
handleCopyButton
(
row
)
{
this
.
$modal
this
.
$modal
.
confirm
(
this
.
$t
(
'
是否确认复制
礼品
规则
'
))
.
confirm
(
this
.
$t
(
'
是否确认复制
积分
规则
'
))
.
then
(
function
()
{
.
then
(
function
()
{
return
integralRuleCopy
({
id
:
row
.
id
})
return
integralRuleCopy
({
id
:
row
.
id
})
})
})
...
...
src/views/ecw/memberManagement/memberPointsSummary/index.vue
View file @
e26685d3
...
@@ -121,7 +121,7 @@
...
@@ -121,7 +121,7 @@
:label=
"$t('会员编号')"
:label=
"$t('会员编号')"
align=
"center"
align=
"center"
prop=
"memberCode"
prop=
"memberCode"
/
>
></el-table-column
>
<el-table-column
:label=
"$t('会员名称')"
align=
"center"
>
<el-table-column
:label=
"$t('会员名称')"
align=
"center"
>
<template
#default
="
{ row }">
<template
#default
="
{ row }">
<el-button
<el-button
...
...
src/views/member/user/index.vue
View file @
e26685d3
...
@@ -108,8 +108,15 @@
...
@@ -108,8 +108,15 @@
<el-table-column
<el-table-column
:label=
"$t('会员编号')"
:label=
"$t('会员编号')"
align=
"center"
align=
"center"
prop=
"memberCode"
width=
"120px"
/>
>
<template
#default
="
{ row }">
<el-button
type=
"text"
@
click=
"$router.push('/member/member/member-details/' + row.id)"
>
{{
row
.
memberCode
}}
</el-button>
</
template
>
</el-table-column>
<el-table-column
<el-table-column
:label=
"$t('公司名称')"
:label=
"$t('公司名称')"
align=
"center"
align=
"center"
...
@@ -269,13 +276,13 @@
...
@@ -269,13 +276,13 @@
@
click
=
"
deleteFn(scope.row)
"
@
click
=
"
deleteFn(scope.row)
"
>
{{
$t
(
"
删 除
"
)
}}
<
/el-butto
n
>
{{
$t
(
"
删 除
"
)
}}
<
/el-butto
n
>
>
<
el
-
button
<
!--
<
el
-
button
type
=
"
text
"
type
=
"
text
"
v
-
has
-
permi
=
"
['member:user:info']
"
v
-
has
-
permi
=
"
['member:user:info']
"
size
=
"
mini
"
size
=
"
mini
"
@
click
=
"
$router.push('member/member-details/' + scope.row.id)
"
@
click
=
"
$router.push('member/member-details/' + scope.row.id)
"
>
{{
$t
(
"
查看
"
)
}}
<
/el-butto
n
>
{{
$t
(
"
查看
"
)
}}
<
/el-butto
n
>
>
-->
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
/el-table
>
<
/el-table
>
...
...
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