Commit 81bac343 authored by 季圣华's avatar 季圣华
Browse files

优化单据的提示图标的展示逻辑

parent 1db9b945
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
</a-dropdown> </a-dropdown>
<a-tooltip placement="left" title="收款单所收金额只对付款单位的应收应付产生影响,可以在回款统计中进行查看。 <a-tooltip placement="left" title="收款单所收金额只对付款单位的应收应付产生影响,可以在回款统计中进行查看。
收款单的优惠金额会对利润产生影响,但不影响付款单位的应收应付。优惠金额计入收入类的收款优惠中。" slot="action"> 收款单的优惠金额会对利润产生影响,但不影响付款单位的应收应付。优惠金额计入收入类的收款优惠中。" slot="action">
<a-icon type="info-circle" style="font-size:20px;float:right;" /> <a-icon v-if="btnEnableList.indexOf(1)>-1" type="info-circle" style="font-size:20px;float:right;" />
</a-tooltip> </a-tooltip>
</div> </div>
<!-- table区域-begin --> <!-- table区域-begin -->
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
</a-dropdown> </a-dropdown>
<a-tooltip placement="left" title="付款单的要素和录入原则与“收款单”相同。 <a-tooltip placement="left" title="付款单的要素和录入原则与“收款单”相同。
付款单中优惠金额计入支出类中的付款优惠中,为负值 (因优惠意味着实际少付款)。" slot="action"> 付款单中优惠金额计入支出类中的付款优惠中,为负值 (因优惠意味着实际少付款)。" slot="action">
<a-icon type="info-circle" style="font-size:20px;float:right;" /> <a-icon v-if="btnEnableList.indexOf(1)>-1" type="info-circle" style="font-size:20px;float:right;" />
</a-tooltip> </a-tooltip>
</div> </div>
<!-- table区域-begin --> <!-- table区域-begin -->
......
...@@ -23,6 +23,16 @@ ...@@ -23,6 +23,16 @@
<!-- 操作按钮区域 --> <!-- 操作按钮区域 -->
<div class="table-operator" style="border-top: 5px"> <div class="table-operator" style="border-top: 5px">
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
<a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay">
<a-menu-item key="1" @click="batchSetStatus(1)"><a-icon type="check-square"/>启用</a-menu-item>
<a-menu-item key="2" @click="batchSetStatus(0)"><a-icon type="close-square"/>禁用</a-menu-item>
</a-menu>
<a-button style="margin-left: 8px">
批量操作
<a-icon type="down"/>
</a-button>
</a-dropdown>
</div> </div>
<!-- table区域-begin --> <!-- table区域-begin -->
<div> <div>
...@@ -35,10 +45,16 @@ ...@@ -35,10 +45,16 @@
:dataSource="dataSource" :dataSource="dataSource"
:pagination="ipagination" :pagination="ipagination"
:loading="loading" :loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange"> @change="handleTableChange">
<span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)">编辑</a> <a @click="handleEdit(record)">编辑</a>
</span> </span>
<!-- 状态渲染模板 -->
<template slot="customRenderFlag" slot-scope="enabled">
<a-tag v-if="enabled" color="green">启用</a-tag>
<a-tag v-if="!enabled" color="orange">禁用</a-tag>
</template>
</a-table> </a-table>
</div> </div>
<!-- table区域-end --> <!-- table区域-end -->
...@@ -78,6 +94,9 @@ ...@@ -78,6 +94,9 @@
{ title: '登录名称', dataIndex: 'loginName', width: 100, align: "center"}, { title: '登录名称', dataIndex: 'loginName', width: 100, align: "center"},
{ title: '用户数量限制', dataIndex: 'userNumLimit', width: 100, align: "center"}, { title: '用户数量限制', dataIndex: 'userNumLimit', width: 100, align: "center"},
{ title: '单据数量限制', dataIndex: 'billsNumLimit', width: 100, align: "center"}, { title: '单据数量限制', dataIndex: 'billsNumLimit', width: 100, align: "center"},
{ title: '状态',dataIndex: 'enabled',width:70,align:"center",
scopedSlots: { customRender: 'customRenderFlag' }
},
{ title: '创建时间', dataIndex: 'createTimeStr', width: 100, align: "center"}, { title: '创建时间', dataIndex: 'createTimeStr', width: 100, align: "center"},
{ {
title: '操作', title: '操作',
...@@ -88,7 +107,8 @@ ...@@ -88,7 +107,8 @@
} }
], ],
url: { url: {
list: "/tenant/list" list: "/tenant/list",
batchSetStatusUrl: "/tenant/batchSetStatus"
}, },
} }
}, },
......
...@@ -191,6 +191,10 @@ ...@@ -191,6 +191,10 @@
err.message = '用户被禁用'; err.message = '用户被禁用';
this.requestFailed(err) this.requestFailed(err)
this.Logout(); this.Logout();
} else if(res.data.msgTip == 'tenant is black'){
err.message = '用户所属的租户被禁用';
this.requestFailed(err)
this.Logout();
} else if(res.data.msgTip == 'access service error'){ } else if(res.data.msgTip == 'access service error'){
err.message = '查询服务异常'; err.message = '查询服务异常';
this.requestFailed(err) this.requestFailed(err)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment