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
3febadf5
Commit
3febadf5
authored
Oct 17, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单详情有查看全部客户详情的权限显示链接
parent
16c4ac93
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
4 deletions
+34
-4
detail.vue
src/views/ecw/order/detail.vue
+34
-4
No files found.
src/views/ecw/order/detail.vue
View file @
3febadf5
...
...
@@ -9,9 +9,15 @@
<el-row
:gutter=
"24"
>
<el-col
:span=
"12"
v-if=
"order.consignorVO"
>
<el-descriptions
class=
"margin-top"
border
:title=
"$t('发货人')"
:column=
"3"
:labelStyle=
"{width:'110px'}"
:contentStyle=
"{width:'150px'}"
>
<el-descriptions-item
:label=
"$t('中文名称')"
>
{{order.consignorVO.name}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('中文名称')"
>
<component
:is=
"hasCustomerDetailPermi ? 'router-link' : 'span'"
:to=
"`/customer/query/${order.consignorVO.customerId}`"
>
{{order.consignorVO.name}}
</component>
</el-descriptions-item>
<!-- v1.7新增 -->
<el-descriptions-item
:label=
"$t('英文名称')"
>
{{order.consignorVO.nameEn}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('英文名称')"
>
<component
:is=
"hasCustomerDetailPermi ? 'router-link' : 'span'"
:to=
"`/customer/query/${order.consignorVO.customerId}`"
>
{{order.consignorVO.nameEn}}
</component>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('电话')"
>
+{{order.consignorVO.countryCode}} {{order.consignorVO.phone}}
</el-descriptions-item>
...
...
@@ -34,9 +40,13 @@
<el-col
:span=
"12"
v-if=
"order.consigneeVO"
style=
"position: relative;"
>
<span
style=
"color:#409EFF;position: absolute;right:40px;top:0;font-size:16px;cursor: pointer;"
@
click=
"consigneeChange"
>
{{consigneeText}}
</span>
<el-descriptions
class=
"margin-top"
border
:title=
"$t('收货人')"
:column=
"3"
:labelStyle=
"{width:'110px'}"
:contentStyle=
"{width:'150px'}"
>
<el-descriptions-item
:label=
"$t('中文名称')"
>
{{order.consigneeVO.name}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('中文名称')"
>
<component
:is=
"hasCustomerDetailPermi ? 'router-link' : 'span'"
:to=
"`/customer/query/${order.consigneeVO.customerId}`"
>
{{order.consigneeVO.name}}
</component>
</el-descriptions-item>
<!-- v1.7新增 -->
<el-descriptions-item
:label=
"$t('英文名称')"
>
{{order.consigneeVO.nameEn}}
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('英文名称')"
>
<component
:is=
"hasCustomerDetailPermi ? 'router-link' : 'span'"
:to=
"`/customer/query/${order.consigneeVO.customerId}`"
>
{{order.consigneeVO.nameEn}}
</component>
</el-descriptions-item>
<el-descriptions-item
:label=
"$t('电话')"
>
+{{order.consigneeVO.countryCode}} {{order.consigneeVO.phone}}
</el-descriptions-item>
...
...
@@ -197,6 +207,17 @@
{{
row
.
warehouseInInfoVO
?
row
.
warehouseInInfoVO
.
quantityAll
:
row
.
quantity
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"weight"
:label=
"$t('收费重量') + '(kg)'"
width=
"100px"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
chargeWeight
}}
</
template
>
</el-table-column>
<el-table-column
prop=
"volume"
:label=
"$t('收费方数') + '(m³)'"
width=
"100px"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
chargeVolume
}}
</
template
>
</el-table-column>
<el-table-column
prop=
""
:label=
"$t('费用类型')"
>
<
template
slot-scope=
"{row}"
>
<dict-tag
:type=
"DICT_TYPE.ECW_PAY_ADVANCE"
:value=
"row.isPayAdvance"
/>
...
...
@@ -315,6 +336,11 @@
{{
row
.
totalAmount
}}{{
currencyMap
[
row
.
currencyId
]
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('核销比例')"
prop=
"totalAmount"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
writeOffProportion
||
0
}}
</
template
>
</el-table-column>
</el-table>
</el-tab-pane>
<!-- 这个地方v-hasPermi不生效,所以换checkPermi函数检查 -->
...
...
@@ -548,6 +574,10 @@ export default {
return
JSON
.
parse
(
this
.
order
.
departureVO
.
departure
)
}
return
{
}
}
,
// 判断用户是否有查看客户详情的权限
hasCustomerDetailPermi
(){
return
checkPermi
([
'
ecw:customer:index-query
'
])
}
}
,
watch
:{
...
...
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