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

This commit is contained in:
季圣华
2021-07-06 22:26:12 +08:00
parent 1db9b94599
commit 81bac3433c
24 changed files with 85 additions and 30 deletions

View File

@@ -50,7 +50,7 @@
</a-button> </a-button>
</a-dropdown> </a-dropdown>
<a-tooltip placement="left" title="用于两个仓库之间的商品调拨调拨单会影响库存" slot="action"> <a-tooltip placement="left" title="用于两个仓库之间的商品调拨调拨单会影响库存" 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 -->

View File

@@ -50,7 +50,7 @@
</a-button> </a-button>
</a-dropdown> </a-dropdown>
<a-tooltip placement="left" title="用于将多种商品合并成一个商品被合并的商品库存减少合并后的商品库存增加" slot="action"> <a-tooltip placement="left" title="用于将多种商品合并成一个商品被合并的商品库存减少合并后的商品库存增加" 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 -->

View File

@@ -50,7 +50,7 @@
</a-button> </a-button>
</a-dropdown> </a-dropdown>
<a-tooltip placement="left" title="用于将一个商品拆分成多种商品被拆分的商品库存增加拆分后的商品库存减少" slot="action"> <a-tooltip placement="left" title="用于将一个商品拆分成多种商品被拆分的商品库存增加拆分后的商品库存减少" 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 -->

View File

@@ -50,7 +50,7 @@
</a-button> </a-button>
</a-dropdown> </a-dropdown>
<a-tooltip placement="left" title="可以进行库存初始化生产管理模块的成品入库" slot="action"> <a-tooltip placement="left" title="可以进行库存初始化生产管理模块的成品入库" 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 -->

View File

@@ -50,7 +50,7 @@
</a-button> </a-button>
</a-dropdown> </a-dropdown>
<a-tooltip placement="left" title="可以进行库存初始化生产管理模块的领料出库" slot="action"> <a-tooltip placement="left" title="可以进行库存初始化生产管理模块的领料出库" 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 -->

View File

@@ -50,7 +50,7 @@
</a-button> </a-button>
</a-dropdown> </a-dropdown>
<a-tooltip placement="left" title="用于采购入库单据的退货采购退货单可以由采购出库单转过来也可以单独创建" slot="action"> <a-tooltip placement="left" title="用于采购入库单据的退货采购退货单可以由采购出库单转过来也可以单独创建" 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 -->
@@ -155,13 +155,13 @@
return (record.discountMoney + record.discountLastMoney).toFixed(2); return (record.discountMoney + record.discountLastMoney).toFixed(2);
} }
}, },
{ title: '待金额', dataIndex: 'needBackMoney',width:80, { title: '待退金额', dataIndex: 'needBackMoney',width:80,
customRender:function (text,record,index) { customRender:function (text,record,index) {
let needBackMoney = record.discountLastMoney + record.otherMoney let needBackMoney = record.discountLastMoney + record.otherMoney
return needBackMoney? needBackMoney.toFixed(2):'' return needBackMoney? needBackMoney.toFixed(2):''
} }
}, },
{ title: '款', dataIndex: 'changeAmount',width:50}, { title: '退款', dataIndex: 'changeAmount',width:50},
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',

View File

@@ -51,7 +51,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 -->

View File

@@ -53,7 +53,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 -->

View File

@@ -50,7 +50,7 @@
</a-button> </a-button>
</a-dropdown> </a-dropdown>
<a-tooltip placement="left" title="用于零售出库单据的退货零售退货单可以由零售出库单转过来也可以单独创建" slot="action"> <a-tooltip placement="left" title="用于零售出库单据的退货零售退货单可以由零售出库单转过来也可以单独创建" 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 -->

View File

@@ -50,7 +50,7 @@
</a-button> </a-button>
</a-dropdown> </a-dropdown>
<a-tooltip placement="left" title="用于非会员和会员的单据录入主要是用于散户使用不能欠款" slot="action"> <a-tooltip placement="left" title="用于非会员和会员的单据录入主要是用于散户使用不能欠款" 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 -->

View File

@@ -50,7 +50,7 @@
</a-button> </a-button>
</a-dropdown> </a-dropdown>
<a-tooltip placement="left" title="用于销售出库单据的退货销售退货单可以由销售出库单转过来也可以单独创建" slot="action"> <a-tooltip placement="left" title="用于销售出库单据的退货销售退货单可以由销售出库单转过来也可以单独创建" 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 -->
@@ -155,13 +155,13 @@
return (record.discountMoney + record.discountLastMoney).toFixed(2); return (record.discountMoney + record.discountLastMoney).toFixed(2);
} }
}, },
{ title: '待金额', dataIndex: 'needBackMoney',width:80, { title: '待退金额', dataIndex: 'needBackMoney',width:80,
customRender:function (text,record,index) { customRender:function (text,record,index) {
let needBackMoney = record.discountLastMoney + record.otherMoney let needBackMoney = record.discountLastMoney + record.otherMoney
return needBackMoney? needBackMoney.toFixed(2):'' return needBackMoney? needBackMoney.toFixed(2):''
} }
}, },
{ title: '款', dataIndex: 'changeAmount',width:50}, { title: '退款', dataIndex: 'changeAmount',width:50},
{ {
title: '操作', title: '操作',
dataIndex: 'action', dataIndex: 'action',

View File

@@ -53,7 +53,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 -->

View File

@@ -51,7 +51,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 -->

View File

@@ -98,7 +98,7 @@
</a-col> </a-col>
<a-col :lg="6" :md="12" :sm="24"> <a-col :lg="6" :md="12" :sm="24">
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="本次退款"> <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="本次退款">
<a-input placeholder="请输入本次" v-decorator.trim="[ 'changeAmount' ]" @keyup="onKeyUpChangeAmount"/> <a-input placeholder="请输入本次退" v-decorator.trim="[ 'changeAmount' ]" @keyup="onKeyUpChangeAmount" :readOnly="true"/>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :lg="6" :md="12" :sm="24"> <a-col :lg="6" :md="12" :sm="24">

View File

@@ -17,7 +17,7 @@
<a-row class="form-row" :gutter="24"> <a-row class="form-row" :gutter="24">
<a-col :lg="6" :md="12" :sm="24"> <a-col :lg="6" :md="12" :sm="24">
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="会员卡号"> <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="会员卡号">
<a-select placeholder="选择会员卡号" v-decorator="[ 'organId' ]" :dropdownMatchSelectWidth="false"> <a-select placeholder="选择会员卡号" v-decorator="[ 'organId' ]" :dropdownMatchSelectWidth="false" @change="onChangeOrgan">
<a-select-option v-for="(item,index) in retailList" :key="index" :value="item.id"> <a-select-option v-for="(item,index) in retailList" :key="index" :value="item.id">
{{ item.supplier }} {{ item.supplier }}
</a-select-option> </a-select-option>
@@ -36,9 +36,10 @@
</a-col> </a-col>
<a-col :lg="6" :md="12" :sm="24"> <a-col :lg="6" :md="12" :sm="24">
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="收款类型"> <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="收款类型">
<a-select placeholder="请选择付款类型" v-decorator="[ 'payType' ]"> <a-select placeholder="请选择付款类型" v-decorator="[ 'payType' ]" :dropdownMatchSelectWidth="false">
<a-select-option value="现付">现付</a-select-option> <a-select-option v-for="(item,index) in payTypeList" :key="index" :value="item.value">
<a-select-option value="预付款">预付款</a-select-option> {{ item.text }}
</a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -112,6 +113,7 @@
import { JEditableTableMixin } from '@/mixins/JEditableTableMixin' import { JEditableTableMixin } from '@/mixins/JEditableTableMixin'
import { BillModalMixin } from '../mixins/BillModalMixin' import { BillModalMixin } from '../mixins/BillModalMixin'
import { getMpListShort } from "@/utils/util" import { getMpListShort } from "@/utils/util"
import { getAction } from '@/api/manage'
import JUpload from '@/components/jeecg/JUpload' import JUpload from '@/components/jeecg/JUpload'
import JDate from '@/components/jeecg/JDate' import JDate from '@/components/jeecg/JDate'
import Vue from 'vue' import Vue from 'vue'
@@ -133,6 +135,7 @@
operTimeStr: '', operTimeStr: '',
prefixNo: 'LSCK', prefixNo: 'LSCK',
fileList:[], fileList:[],
payTypeList: [],
model: {}, model: {},
labelCol: { labelCol: {
xs: { span: 24 }, xs: { span: 24 },
@@ -189,6 +192,7 @@
} }
}, },
created () { created () {
this.initPayTypeList()
}, },
methods: { methods: {
//调用完edit()方法之后会自动调用此方法 //调用完edit()方法之后会自动调用此方法
@@ -203,6 +207,11 @@
this.model.operTime = this.model.operTimeStr this.model.operTime = this.model.operTimeStr
this.model.getAmount = this.model.changeAmount this.model.getAmount = this.model.changeAmount
this.fileList = this.model.fileName this.fileList = this.model.fileName
if(this.model.payType === '预付款'){
this.payTypeList = []
this.payTypeList.push({"value":"预付款", "text":"预付款"})
this.payTypeList.push({"value":"现付", "text":"现付"})
}
this.$nextTick(() => { this.$nextTick(() => {
this.form.setFieldsValue(pick(this.model,'organId', 'operTime', 'number', 'payType', 'remark', this.form.setFieldsValue(pick(this.model,'organId', 'operTime', 'number', 'payType', 'remark',
'discount','discountMoney','discountLastMoney','otherMoney','accountId','changeAmount','getAmount')) 'discount','discountMoney','discountLastMoney','otherMoney','accountId','changeAmount','getAmount'))
@@ -239,6 +248,28 @@
rows: JSON.stringify(detailArr), rows: JSON.stringify(detailArr),
} }
}, },
//加载收款类型
initPayTypeList() {
this.payTypeList.push({"value":"现付", "text":"现付"})
},
//选择会员的触发事件
onChangeOrgan(value) {
getAction("/supplier/info", {id: value}).then(res=>{
if(res && res.code === 200){
this.payTypeList = []
let info = res.data.info
if(info.advanceIn) {
this.payTypeList.push({"value":"预付款", "text":"预付款" + info.advanceIn + ""})
this.payTypeList.push({"value":"现付", "text":"现付"})
this.$nextTick(() => {
this.form.setFieldsValue({'payType': '预付款'})
})
} else {
this.payTypeList.push({"value":"现付", "text":"现付"})
}
}
})
},
//改变实收金额、收款金额的值 //改变实收金额、收款金额的值
autoChangePrice(target) { autoChangePrice(target) {
let allLastMoney = target.statisticsColumns.allPrice let allLastMoney = target.statisticsColumns.allPrice

View File

@@ -98,7 +98,7 @@
</a-col> </a-col>
<a-col :lg="6" :md="12" :sm="24"> <a-col :lg="6" :md="12" :sm="24">
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="本次退款"> <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="本次退款">
<a-input placeholder="请输入本次" v-decorator.trim="[ 'changeAmount' ]" @keyup="onKeyUpChangeAmount"/> <a-input placeholder="请输入本次退" v-decorator.trim="[ 'changeAmount' ]" @keyup="onKeyUpChangeAmount" :readOnly="true"/>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :lg="6" :md="12" :sm="24"> <a-col :lg="6" :md="12" :sm="24">

View File

@@ -45,7 +45,7 @@
</a-button> </a-button>
</a-dropdown> </a-dropdown>
<a-tooltip placement="left" title="针对会员模块对会员收取预付款" slot="action"> <a-tooltip placement="left" title="针对会员模块对会员收取预付款" 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 -->

View File

@@ -45,7 +45,7 @@
</a-button> </a-button>
</a-dropdown> </a-dropdown>
<a-tooltip placement="left" title="转账本系统的转账是指从一个银行存款账户转入到另一个银行存款账户" slot="action"> <a-tooltip placement="left" title="转账本系统的转账是指从一个银行存款账户转入到另一个银行存款账户" 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 -->

View File

@@ -45,7 +45,7 @@
</a-button> </a-button>
</a-dropdown> </a-dropdown>
<a-tooltip placement="left" title="收入单主要处理一些销售收入以外的收入如维修服务收入利息收入调账收入等" slot="action"> <a-tooltip placement="left" title="收入单主要处理一些销售收入以外的收入如维修服务收入利息收入调账收入等" 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 -->

View File

@@ -45,7 +45,7 @@
</a-button> </a-button>
</a-dropdown> </a-dropdown>
<a-tooltip placement="left" title="支出单主要处理一些进货支出以外的支出如水电支出房租支出等" slot="action"> <a-tooltip placement="left" title="支出单主要处理一些进货支出以外的支出如水电支出房租支出等" 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 -->

View File

@@ -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 -->

View File

@@ -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 -->

View File

@@ -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 @@
: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 @@
{ 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 @@
} }
], ],
url: { url: {
list: "/tenant/list" list: "/tenant/list",
batchSetStatusUrl: "/tenant/batchSetStatus"
}, },
} }
}, },

View File

@@ -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)