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
495d123c
Commit
495d123c
authored
Jan 06, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优惠翻译订单费用详情bug
parent
9b66692e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
67 additions
and
27 deletions
+67
-27
edit.vue
src/views/ecw/coupon/edit.vue
+3
-2
detail.vue
src/views/ecw/order/detail.vue
+28
-1
index.vue
src/views/system/menu/index.vue
+16
-11
index.vue
src/views/system/role/index.vue
+20
-13
No files found.
src/views/ecw/coupon/edit.vue
View file @
495d123c
...
@@ -296,7 +296,8 @@ export default {
...
@@ -296,7 +296,8 @@ export default {
readonly
:
false
,
readonly
:
false
,
// 表单参数
// 表单参数
form
:
{
form
:
{
status
:
1
status
:
1
,
isSimilarSuperposition
:
true
},
},
// 表单校验
// 表单校验
rules
:
{
rules
:
{
...
@@ -590,7 +591,7 @@ export default {
...
@@ -590,7 +591,7 @@ export default {
validDays
:
undefined
,
validDays
:
undefined
,
costType
:
undefined
,
costType
:
undefined
,
discountDetailed
:
undefined
,
discountDetailed
:
undefined
,
isSimilarSuperposition
:
undefined
,
isSimilarSuperposition
:
true
,
couponIds
:
undefined
,
couponIds
:
undefined
,
suitableUserType
:
undefined
,
suitableUserType
:
undefined
,
suitableLineType
:
undefined
,
suitableLineType
:
undefined
,
...
...
src/views/ecw/order/detail.vue
View file @
495d123c
...
@@ -289,6 +289,33 @@
...
@@ -289,6 +289,33 @@
</div>
</div>
</el-col>
</el-col>
</el-row>
</el-row>
<div
v-if=
"feeDetail && feeDetail.coupons && feeDetail.coupons.length"
class=
"page-title"
>
优惠详情
</div>
<el-table
v-if=
"feeDetail && feeDetail.coupons && feeDetail.coupons.length"
:data=
"feeDetail.coupons"
>
<el-table-column
label=
"优惠ID"
prop=
"couponId"
></el-table-column>
<el-table-column
label=
"优惠名称"
>
<
template
slot-scope=
"{row}"
>
{{
$l
(
row
,
'
title
'
)
}}
</
template
>
</el-table-column>
<el-table-column
label=
"类型"
>
<
template
slot-scope=
"{row}"
>
<dict-tag
:type=
"DICT_TYPE.ECW_COUPON_TYPE"
:value=
"row.type"
></dict-tag>
</
template
>
</el-table-column>
<el-table-column
label=
"运费优惠"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
freightReduceAmount
}}
{{
currencyMap
[
row
.
freightReduceCurrencyId
]
}}
</
template
>
</el-table-column>
<el-table-column
label=
"清关费优惠"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
clearanceReduceAmount
}}
{{
currencyMap
[
row
.
clearanceReduceCurrencyId
]
}}
</
template
>
</el-table-column>
</el-table>
</el-dialog>
</el-dialog>
</div>
</div>
</template>
</template>
...
@@ -488,7 +515,7 @@ export default {
...
@@ -488,7 +515,7 @@ export default {
label
:
this
.
$t
(
'
价格更新时间
'
),
label
:
this
.
$t
(
'
价格更新时间
'
),
value
:
parseTime
(
row
.
updateTime
)
value
:
parseTime
(
row
.
updateTime
)
})
})
this
.
feeDetail
=
{
freight
,
clearance
,
charging
:
row
.
charging
}
this
.
feeDetail
=
{
freight
,
clearance
,
charging
:
row
.
charging
,
coupons
:
row
.
couponInfoVOList
}
},
},
closeFeeDetail
(){
closeFeeDetail
(){
...
...
src/views/system/menu/index.vue
View file @
495d123c
...
@@ -22,14 +22,18 @@
...
@@ -22,14 +22,18 @@
v-hasPermi=
"['system:menu:create']"
>
{{
$t
(
'
新增
'
)
}}
</el-button>
v-hasPermi=
"['system:menu:create']"
>
{{
$t
(
'
新增
'
)
}}
</el-button>
</el-col>
</el-col>
<el-col
:span=
"1.5"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"info"
plain
icon=
"el-icon-sort"
size=
"mini"
@
click=
"toggleExpandAll"
>
展开/折叠
</el-button>
<el-button
type=
"info"
plain
icon=
"el-icon-sort"
size=
"mini"
@
click=
"toggleExpandAll"
>
{{
$t
(
'
展开
'
)
}}
/
{{
$t
(
'
折叠
'
)
}}
</el-button>
</el-col>
</el-col>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
<right-toolbar
:showSearch.sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
</el-row>
</el-row>
<el-table
v-if=
"refreshTable"
v-loading=
"loading"
:data=
"menuList"
row-key=
"id"
:default-expand-all=
"isExpandAll"
<el-table
v-if=
"refreshTable"
v-loading=
"loading"
:data=
"menuList"
row-key=
"id"
:default-expand-all=
"isExpandAll"
:tree-props=
"
{children: 'children', hasChildren: 'hasChildren'}">
:tree-props=
"
{children: 'children', hasChildren: 'hasChildren'}">
<el-table-column
prop=
"name"
:label=
"$t('菜单名称')"
:show-overflow-tooltip=
"true"
width=
"250"
></el-table-column>
<el-table-column
prop=
"name"
:label=
"$t('菜单名称')"
:show-overflow-tooltip=
"true"
width=
"250"
>
<template
slot-scope=
"
{row}">
{{
$l
(
row
,
'
name
'
)
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"icon"
:label=
"$t('图标')"
align=
"center"
width=
"100"
>
<el-table-column
prop=
"icon"
:label=
"$t('图标')"
align=
"center"
width=
"100"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<svg-icon
:icon-class=
"scope.row.icon"
/>
<svg-icon
:icon-class=
"scope.row.icon"
/>
...
@@ -74,7 +78,7 @@
...
@@ -74,7 +78,7 @@
<el-form-item
:label=
"$t('菜单类型')"
prop=
"type"
>
<el-form-item
:label=
"$t('菜单类型')"
prop=
"type"
>
<el-radio-group
v-model=
"form.type"
>
<el-radio-group
v-model=
"form.type"
>
<el-radio
v-for=
"dict in menuTypeDictDatas"
:key=
"parseInt(dict.value)"
:label=
"parseInt(dict.value)"
>
<el-radio
v-for=
"dict in menuTypeDictDatas"
:key=
"parseInt(dict.value)"
:label=
"parseInt(dict.value)"
>
{{
dict.label
}}
</el-radio>
{{
$l(dict, 'label')
}}
</el-radio>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -135,7 +139,7 @@
...
@@ -135,7 +139,7 @@
<el-form-item
:label=
"$t('菜单状态')"
>
<el-form-item
:label=
"$t('菜单状态')"
>
<el-radio-group
v-model=
"form.status"
>
<el-radio-group
v-model=
"form.status"
>
<el-radio
v-for=
"dict in this.getDictDatas(DICT_TYPE.COMMON_STATUS)"
<el-radio
v-for=
"dict in this.getDictDatas(DICT_TYPE.COMMON_STATUS)"
:key=
"dict.value"
:label=
"parseInt(dict.value)"
>
{{
dict.label
}}
</el-radio>
:key=
"dict.value"
:label=
"parseInt(dict.value)"
>
{{
$l(dict, 'label')
}}
</el-radio>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -241,12 +245,13 @@ export default {
...
@@ -241,12 +245,13 @@ export default {
}
}
return
{
return
{
id
:
node
.
id
,
id
:
node
.
id
,
label
:
node
.
name
,
label
:
this
.
$l
(
node
,
'
name
'
)
,
children
:
node
.
children
children
:
node
.
children
};
};
},
},
/** 查询菜单下拉树结构 */
/** 查询菜单下拉树结构 */
getTreeselect
()
{
getTreeselect
()
{
console
.
log
(
'
this.handleTree
'
,
this
.
handleTree
)
listMenu
().
then
(
response
=>
{
listMenu
().
then
(
response
=>
{
this
.
menuOptions
=
[];
this
.
menuOptions
=
[];
const
menu
=
{
id
:
0
,
name
:
this
.
$t
(
'
主类目
'
),
children
:
[]
};
const
menu
=
{
id
:
0
,
name
:
this
.
$t
(
'
主类目
'
),
children
:
[]
};
...
@@ -327,10 +332,10 @@ export default {
...
@@ -327,10 +332,10 @@ export default {
if
(
path
&&
path
.
indexOf
(
'
http://
'
)
===
-
1
||
path
.
indexOf
(
'
https://
'
)
===
-
1
)
{
if
(
path
&&
path
.
indexOf
(
'
http://
'
)
===
-
1
||
path
.
indexOf
(
'
https://
'
)
===
-
1
)
{
// 父权限为根节点,path 必须以 / 开头
// 父权限为根节点,path 必须以 / 开头
if
(
this
.
form
.
parentId
===
0
&&
path
.
charAt
(
0
)
!==
'
/
'
)
{
if
(
this
.
form
.
parentId
===
0
&&
path
.
charAt
(
0
)
!==
'
/
'
)
{
this
.
$modal
.
msgSuccess
(
'
前端必须以 / 开头
'
)
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
前端必须以 / 开头
'
)
)
return
return
}
else
if
(
this
.
form
.
parentId
!==
0
&&
path
.
charAt
(
0
)
===
'
/
'
)
{
}
else
if
(
this
.
form
.
parentId
!==
0
&&
path
.
charAt
(
0
)
===
'
/
'
)
{
this
.
$modal
.
msgSuccess
(
'
前端不能以 / 开头
'
)
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
前端不能以 / 开头
'
)
)
return
return
}
}
}
}
...
@@ -339,13 +344,13 @@ export default {
...
@@ -339,13 +344,13 @@ export default {
// 提交
// 提交
if
(
this
.
form
.
id
!==
undefined
)
{
if
(
this
.
form
.
id
!==
undefined
)
{
updateMenu
(
this
.
form
).
then
(
response
=>
{
updateMenu
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"
修改成功
"
);
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
修改成功
"
)
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
});
});
}
else
{
}
else
{
addMenu
(
this
.
form
).
then
(
response
=>
{
addMenu
(
this
.
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
"
新增成功
"
);
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
新增成功
"
)
);
this
.
open
=
false
;
this
.
open
=
false
;
this
.
getList
();
this
.
getList
();
});
});
...
@@ -355,11 +360,11 @@ export default {
...
@@ -355,11 +360,11 @@ export default {
},
},
/** 删除按钮操作 */
/** 删除按钮操作 */
handleDelete
(
row
)
{
handleDelete
(
row
)
{
this
.
$modal
.
confirm
(
'
是否确认删除名称为"
'
+
row
.
name
+
'
"的数据项?
'
).
then
(
function
()
{
this
.
$modal
.
confirm
(
this
.
$t
(
'
是否确认删除此项?
'
)
).
then
(
function
()
{
return
delMenu
(
row
.
id
);
return
delMenu
(
row
.
id
);
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
$modal
.
msgSuccess
(
"
删除成功
"
);
this
.
$modal
.
msgSuccess
(
this
.
$t
(
"
删除成功
"
)
);
}).
catch
(()
=>
{});
}).
catch
(()
=>
{});
}
}
}
}
...
...
src/views/system/role/index.vue
View file @
495d123c
...
@@ -111,15 +111,15 @@
...
@@ -111,15 +111,15 @@
<el-option
<el-option
v-for=
"item in dataScopeDictDatas"
v-for=
"item in dataScopeDictDatas"
:key=
"parseInt(item.value)"
:key=
"parseInt(item.value)"
:label=
"
item.label
"
:label=
"
$l(item, 'label')
"
:value=
"parseInt(item.value)"
:value=
"parseInt(item.value)"
></el-option>
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('数据权限')"
v-show=
"form.dataScope === SysDataScopeEnum.DEPT_CUSTOM"
>
<el-form-item
:label=
"$t('数据权限')"
v-show=
"form.dataScope === SysDataScopeEnum.DEPT_CUSTOM"
>
<el-checkbox
:checked=
"!form.deptCheckStrictly"
@
change=
"handleCheckedTreeConnect($event, 'dept')"
>
父子联动(选中父节点,自动选择子节点
)
</el-checkbox>
<el-checkbox
:checked=
"!form.deptCheckStrictly"
@
change=
"handleCheckedTreeConnect($event, 'dept')"
>
{{$t('父子联动')}}({{$t('选中父节点,自动选择子节点')}}
)
</el-checkbox>
<el-checkbox
v-model=
"deptExpand"
@
change=
"handleCheckedTreeExpand($event, 'dept')"
>
展开/折叠
</el-checkbox>
<el-checkbox
v-model=
"deptExpand"
@
change=
"handleCheckedTreeExpand($event, 'dept')"
>
{{$t('展开')}}/{{$t('折叠')}}
</el-checkbox>
<el-checkbox
v-model=
"deptNodeAll"
@
change=
"handleCheckedTreeNodeAll($event, 'dept')"
>
全选/全不选
</el-checkbox>
<el-checkbox
v-model=
"deptNodeAll"
@
change=
"handleCheckedTreeNodeAll($event, 'dept')"
>
{{$t('全选')}}/{{$t('全不选')}}
</el-checkbox>
<el-tree
<el-tree
class=
"tree-border"
class=
"tree-border"
:data=
"deptOptions"
:data=
"deptOptions"
...
@@ -128,8 +128,11 @@
...
@@ -128,8 +128,11 @@
ref=
"dept"
ref=
"dept"
node-key=
"id"
node-key=
"id"
:check-strictly=
"form.deptCheckStrictly"
:check-strictly=
"form.deptCheckStrictly"
empty-text=
"加载中,请稍后"
:empty-text=
"$t('加载中,请稍后')"
:props=
"defaultProps"
:props=
"{
label: 'name',
children: 'children'
}"
></el-tree>
></el-tree>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -149,10 +152,10 @@
...
@@ -149,10 +152,10 @@
<el-input
v-model=
"form.code"
:disabled=
"true"
/>
<el-input
v-model=
"form.code"
:disabled=
"true"
/>
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('菜单权限')"
>
<el-form-item
:label=
"$t('菜单权限')"
>
<el-checkbox
v-model=
"menuExpand"
@
change=
"handleCheckedTreeExpand($event, 'menu')"
>
展开/折叠
</el-checkbox>
<el-checkbox
v-model=
"menuExpand"
@
change=
"handleCheckedTreeExpand($event, 'menu')"
>
{{$t('展开')}}/{{$t('折叠')}}
</el-checkbox>
<el-checkbox
v-model=
"menuNodeAll"
@
change=
"handleCheckedTreeNodeAll($event, 'menu')"
>
全选/全不选
</el-checkbox>
<el-checkbox
v-model=
"menuNodeAll"
@
change=
"handleCheckedTreeNodeAll($event, 'menu')"
>
{{$t('全选')}}/{{$t('全不选')}}
</el-checkbox>
<el-tree
class=
"tree-border"
:data=
"menuOptions"
show-checkbox
ref=
"menu"
node-key=
"id"
<el-tree
class=
"tree-border"
:data=
"menuOptions"
show-checkbox
ref=
"menu"
node-key=
"id"
:check-strictly=
"true"
empty-text=
"加载中,请稍后
"
:props=
"defaultProps"
></el-tree>
:check-strictly=
"true"
:empty-text=
"$t('加载中,请稍后')
"
:props=
"defaultProps"
></el-tree>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
...
@@ -223,10 +226,6 @@ export default {
...
@@ -223,10 +226,6 @@ export default {
},
},
// 表单参数
// 表单参数
form
:
{},
form
:
{},
defaultProps
:
{
label
:
"
name
"
,
children
:
"
children
"
},
// 表单校验
// 表单校验
rules
:
{
rules
:
{
name
:
[
name
:
[
...
@@ -249,6 +248,14 @@ export default {
...
@@ -249,6 +248,14 @@ export default {
dataScopeDictDatas
:
getDictDatas
(
DICT_TYPE
.
SYSTEM_DATA_SCOPE
)
dataScopeDictDatas
:
getDictDatas
(
DICT_TYPE
.
SYSTEM_DATA_SCOPE
)
};
};
},
},
computed
:{
defaultProps
(){
return
{
label
:
this
.
$l
(
"
name
"
),
children
:
"
children
"
}
},
},
created
()
{
created
()
{
this
.
getList
();
this
.
getList
();
},
},
...
...
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