Commit 183a9604 by liang ce

修复bug

parent 35bc1f6e
...@@ -12,7 +12,8 @@ module.exports = { ...@@ -12,7 +12,8 @@ module.exports = {
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-unused-vars': 0, 'no-unused-vars': 0,
'no-callback-literal': 0, 'no-callback-literal': 0,
'standard/no-callback-literal': 0 'standard/no-callback-literal': 0,
'camelcase': 0,
}, },
parserOptions: { parserOptions: {
parser: 'babel-eslint' parser: 'babel-eslint'
......
<template> <template>
<div id="app"> <a-locale-provider :locale="zh_CN">
<router-view></router-view> <div id="app">
</div> <router-view></router-view>
</div>
</a-locale-provider>
</template> </template>
<script>
import zh_CN from 'ant-design-vue/lib/locale-provider/zh_CN'
import moment from 'moment'
import 'moment/locale/zh-cn'
moment.locale('zh-cn')
export default {
data () {
return {
zh_CN
}
}
}
</script>
<style lang="less"> <style lang="less">
#app{ #app{
......
...@@ -9,10 +9,10 @@ ...@@ -9,10 +9,10 @@
<a-select-option value="UNACTIVE">已冻结</a-select-option> <a-select-option value="UNACTIVE">已冻结</a-select-option>
</a-select> </a-select>
<a-select placeholder="账户状态" style="width: 120px;margin-right: 20px;" :allowClear="true" @change="selectHandleChangeAccount"> <a-select placeholder="账户状态" style="width: 120px;margin-right: 20px;" :allowClear="true" @change="selectHandleChangeAccount">
<a-select-option value="ACTIVE">使用中</a-select-option> <a-select-option value="ACTIVE">正常</a-select-option>
<a-select-option value="LOG_OFF">冻结并结现</a-select-option> <a-select-option value="LOG_OFF">注销</a-select-option>
</a-select> </a-select>
<a-button type="primary" @click="queryAccountList()">查询</a-button> <a-button type="primary" @click="search()">查询</a-button>
</div> </div>
<div class="searchUserMessage" v-if="searchSource.UserMessage.emplId"> <div class="searchUserMessage" v-if="searchSource.UserMessage.emplId">
<div class="positionDiv"></div> <div class="positionDiv"></div>
...@@ -28,14 +28,14 @@ ...@@ -28,14 +28,14 @@
</span> </span>
<span slot="realityBalance">余额</span> <span slot="realityBalance">余额</span>
<span slot="cardNo" slot-scope="cardNo"> <span slot="cardNo" slot-scope="cardNo">
{{ cardNo ? cardNo : '未绑卡' }} {{ cardNo }}
</span> </span>
<span slot="cardStatus" slot-scope="cardStatus, record"> <span slot="cardStatus" slot-scope="cardStatus, record">
{{ record.cardNo ? cardStatus === 'UNACTIVE' ? '已冻结' : '使用中' : ''}} {{ record.cardNo ? cardStatus === 'UNACTIVE' ? '已冻结' : '已绑卡' : '未绑卡'}}
</span> </span>
<span slot="status" slot-scope="status"> <span slot="status" slot-scope="status">
<!-- {{ status === MINGPAY_ACCOUNT_STATUS.ACTIVE ? '使用中' : '已注销并结现' }} --> <!-- {{ status === MINGPAY_ACCOUNT_STATUS.ACTIVE ? '正常' : '已注销并结现' }} -->
{{ status === MINGPAY_ACCOUNT_STATUS.ACTIVE ? '使用中' : '已注销并结现' }} {{ status === MINGPAY_ACCOUNT_STATUS.ACTIVE ? '正常' : '已注销' }}
</span> </span>
<span slot="action" slot-scope="text, record, index" class="operationTable"> <span slot="action" slot-scope="text, record, index" class="operationTable">
<a href="javascript:;" @click="ToViewAllowances(record)">查看津贴</a> <a href="javascript:;" @click="ToViewAllowances(record)">查看津贴</a>
...@@ -47,7 +47,6 @@ ...@@ -47,7 +47,6 @@
<a-menu slot="overlay"> <a-menu slot="overlay">
<a-menu-item v-if="record.cardStatus === MINGPAY_ACCOUNT_STATUS.ACTIVE && record.cardNo "> <a-menu-item v-if="record.cardStatus === MINGPAY_ACCOUNT_STATUS.ACTIVE && record.cardNo ">
<a href="javascript:;" @click="showConfirm(record.userId, 1, index)">冻结实体卡</a> <a href="javascript:;" @click="showConfirm(record.userId, 1, index)">冻结实体卡</a>
{{ record.cardNo }}
</a-menu-item> </a-menu-item>
<a-menu-item v-if="record.cardStatus === MINGPAY_ACCOUNT_STATUS.UNACTIVE && record.cardNo"> <a-menu-item v-if="record.cardStatus === MINGPAY_ACCOUNT_STATUS.UNACTIVE && record.cardNo">
<a href="javascript:;" @click="showConfirm(record.userId, 2, index)">解冻实体卡</a> <a href="javascript:;" @click="showConfirm(record.userId, 2, index)">解冻实体卡</a>
...@@ -59,7 +58,7 @@ ...@@ -59,7 +58,7 @@
<a href="javascript:;" @click="changeVisible2(record.userId, index)">绑定实体卡</a> <a href="javascript:;" @click="changeVisible2(record.userId, index)">绑定实体卡</a>
</a-menu-item> </a-menu-item>
<a-menu-item v-if="record.status != MINGPAY_ACCOUNT_STATUS.LOG_OFF"> <a-menu-item v-if="record.status != MINGPAY_ACCOUNT_STATUS.LOG_OFF">
<a href="javascript:;" @click="showConfirm(record.userId, 3, index)">注销并结现</a> <a href="javascript:;" @click="showConfirm(record.userId, 3, index)">注销</a>
</a-menu-item> </a-menu-item>
</a-menu> </a-menu>
</a-dropdown> </a-dropdown>
...@@ -124,7 +123,7 @@ export default { ...@@ -124,7 +123,7 @@ export default {
title: '余额', title: '余额',
dataIndex: 'realityBalance' dataIndex: 'realityBalance'
}, { }, {
title: '实体卡卡号', title: '卡号',
dataIndex: 'cardNo', dataIndex: 'cardNo',
scopedSlots: { customRender: 'cardNo' } scopedSlots: { customRender: 'cardNo' }
}, { }, {
...@@ -137,6 +136,7 @@ export default { ...@@ -137,6 +136,7 @@ export default {
scopedSlots: { customRender: 'status' } scopedSlots: { customRender: 'status' }
}, { }, {
title: '操作', title: '操作',
key: 'a',
dataIndex: 'action', dataIndex: 'action',
scopedSlots: { customRender: 'action' } scopedSlots: { customRender: 'action' }
}], }],
...@@ -349,6 +349,8 @@ export default { ...@@ -349,6 +349,8 @@ export default {
this.$confirm({ this.$confirm({
title: '确认要对该账户实体卡解除绑定么?', title: '确认要对该账户实体卡解除绑定么?',
content: '解除绑定后,该实体卡将不能付款', content: '解除绑定后,该实体卡将不能付款',
okText: '确定',
cancelText: '取消',
onOk () { onOk () {
_that.cardOperation(1) _that.cardOperation(1)
} }
...@@ -376,14 +378,16 @@ export default { ...@@ -376,14 +378,16 @@ export default {
url = '' url = ''
break break
case 3: case 3:
title = '确认要对该账户进行注销并结现操作么?' title = '确认要对该账户进行注销操作么?'
content = '注销并结现后二维码与实体卡片均不能在使用' content = '注销后二维码与实体卡片均不能在使用'
status = MINGPAY_ACCOUNT_STATUS.LOG_OFF status = MINGPAY_ACCOUNT_STATUS.LOG_OFF
url = '' url = ''
} }
this.$confirm({ this.$confirm({
title: title, title: title,
content: content, content: content,
okText: '确定',
cancelText: '取消',
onOk () { onOk () {
_that.accountOperation(str, userId, status, index) _that.accountOperation(str, userId, status, index)
} }
...@@ -407,15 +411,10 @@ export default { ...@@ -407,15 +411,10 @@ export default {
}) })
} }
$http.get(`/v1/account/update_bind_card_status?${cardOperationData}`).then((res) => { $http.get(`/v1/account/update_bind_card_status?${cardOperationData}`).then((res) => {
if (res.data.message === 'SUCCESS') { if (res.data.resultCode === '0') {
let dataSource = [...this.accountList] this.queryAccountList()
if (type === 2) {
dataSource[this.selsctIndex].cardNo = cardNo
} else if (type === 1) {
dataSource[this.selsctIndex].cardNo = ''
}
this.accountList = dataSource
this.visible2 = false this.visible2 = false
this.updateBindCardStatusForm.resetFields()
this.$message.success('操作成功') this.$message.success('操作成功')
} else { } else {
this.$message.error(res.data.message) this.$message.error(res.data.message)
...@@ -423,6 +422,10 @@ export default { ...@@ -423,6 +422,10 @@ export default {
}).catch((err) => { }).catch((err) => {
console.log(err) console.log(err)
}) })
},
search () {
this.pagination.current = 1
this.queryAccountList()
} }
}, },
mounted () {} mounted () {}
......
<template> <template>
<div class="allowanceDetails"> <div class="allowanceDetails">
<a-button type="primary" @click="back()"><img style="margin-top:-4px;margin-right: 6px;width: 14px" src="../../../assets/back.png"/>返回</a-button>
<div class="title">津贴详情</div> <div class="title">津贴详情</div>
<div class="allowanceDetailsBox"> <div class="allowanceDetailsBox">
<div> <div>
...@@ -58,6 +59,9 @@ export default { ...@@ -58,6 +59,9 @@ export default {
let hour = timeData.getHours() let hour = timeData.getHours()
let minute = timeData.getMinutes() let minute = timeData.getMinutes()
return `${year}${month}${date}${hour}:${minute}` return `${year}${month}${date}${hour}:${minute}`
},
back () {
this.$router.go(-1)
} }
// querySubsidyList () { // querySubsidyList () {
// let SubsidyListData = this.$qs.stringify({ // let SubsidyListData = this.$qs.stringify({
...@@ -93,6 +97,7 @@ export default { ...@@ -93,6 +97,7 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.title{ .title{
font-weight: bold; font-weight: bold;
margin-top: 20px;
} }
.allowanceDetailsBox{ .allowanceDetailsBox{
width: 100%; width: 100%;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<a-select-option value="travel">交通补助</a-select-option> <a-select-option value="travel">交通补助</a-select-option>
<a-select-option value="meal">餐补</a-select-option> <a-select-option value="meal">餐补</a-select-option>
</a-select> </a-select>
<a-button type="primary" @click="queryRecordList()">查询</a-button> <a-button type="primary" @click="search()">查询</a-button>
<a-button type="primary" @click="changeModel()" style="margin-left: 20px;"><a-icon type="pay-circle" />发放津贴</a-button> <a-button type="primary" @click="changeModel()" style="margin-left: 20px;"><a-icon type="pay-circle" />发放津贴</a-button>
</div> </div>
<div class="searchUserMessage" v-if="searchSource.UserMessage.emplId"> <div class="searchUserMessage" v-if="searchSource.UserMessage.emplId">
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
v-bind="formItemLayout" v-bind="formItemLayout"
label="截止日期" label="截止日期"
> >
<a-date-picker v-decorator="['date-picker', config]" /> <a-date-picker placeholder="请选择截止日期" :showToday="false" v-decorator="['date-picker', config]" />
</a-form-item> </a-form-item>
<a-form-item label="选择成员" v-bind="formItemLayout"> <a-form-item label="选择成员" v-bind="formItemLayout">
<div class="peopleBox" @click="choosePeople()"> <div class="peopleBox" @click="choosePeople()">
...@@ -79,6 +79,7 @@ ...@@ -79,6 +79,7 @@
import { config } from './../../../api/config.js' import { config } from './../../../api/config.js'
import { $http } from './../../../api/axios.js' import { $http } from './../../../api/axios.js'
import { MINGPAY_RECORDS_STATUS } from './../../../api/constant' import { MINGPAY_RECORDS_STATUS } from './../../../api/constant'
export default { export default {
name: 'AllowancePayment', name: 'AllowancePayment',
data () { data () {
...@@ -281,7 +282,7 @@ export default { ...@@ -281,7 +282,7 @@ export default {
this.$message.success('发放成功') this.$message.success('发放成功')
this.queryRecordList() this.queryRecordList()
} else { } else {
this.$message.success(res.data.message) this.$message.error(res.data.message)
} }
}) })
}) })
...@@ -296,6 +297,10 @@ export default { ...@@ -296,6 +297,10 @@ export default {
this.departmentIdListObj = res.departments this.departmentIdListObj = res.departments
this.form.getFieldsValue().peopleList = 'ok' this.form.getFieldsValue().peopleList = 'ok'
}) })
},
search () {
this.pagination.current = 1
this.queryRecordList()
} }
} }
} }
......
<template> <template>
<div class="PaymentManagementHome"> <div class="PaymentManagementHome">
<a-layout style="padding: 24px 0; background: #fff"> <a-layout style="padding: 24px 0; background: #fff; min-height:600px">
<a-layout-sider width="200" style="background: #fff"> <a-layout-sider width="200" style="background: #fff">
<a-menu <a-menu
mode="inline" mode="inline"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<a-select-option value="WAITING_PERMIT">审批中</a-select-option> <a-select-option value="WAITING_PERMIT">审批中</a-select-option>
<a-select-option value="FAILED">审批未通过</a-select-option> <a-select-option value="FAILED">审批未通过</a-select-option>
</a-select> </a-select>
<a-button type="primary" @click="queryRechargeList()">查询</a-button> <a-button type="primary" @click="search()">查询</a-button>
</div> </div>
<div class="searchUserMessage" v-if="searchSource.UserMessage.emplId"> <div class="searchUserMessage" v-if="searchSource.UserMessage.emplId">
<div class="positionDiv"></div> <div class="positionDiv"></div>
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<img v-else :src="this.avatarCanvasFn(searchSource.UserMessage.name)" :alt="searchSource.UserMessage.name"> <img v-else :src="this.avatarCanvasFn(searchSource.UserMessage.name)" :alt="searchSource.UserMessage.name">
<span>{{ searchSource.UserMessage.name }}</span> <span>{{ searchSource.UserMessage.name }}</span>
</div> </div>
<a-table :columns="columns" :dataSource="chargeList" rowKey="orderNo"> <a-table :columns="columns" :dataSource="chargeList" :pagination="pagination" @change="handleTableChange" rowKey="orderNo">
<span slot="userName">姓名</span> <span slot="userName">姓名</span>
<span slot="departmentNameList" slot-scope="departmentNameList"> <span slot="departmentNameList" slot-scope="departmentNameList">
{{ departmentNameListToStr(departmentNameList) }} {{ departmentNameListToStr(departmentNameList) }}
...@@ -75,9 +75,14 @@ export default { ...@@ -75,9 +75,14 @@ export default {
title: '备注', title: '备注',
dataIndex: 'remark' dataIndex: 'remark'
}], }],
pagination: {
current: 1,
defaultCurrent: 10,
defaultPageSize: 10,
hideOnSinglePage: true,
total: 0
},
chargeList: [], chargeList: [],
pageNum: 0,
numPerPage: 10,
searchSource: { searchSource: {
UserMessage: { UserMessage: {
avatar: '', avatar: '',
...@@ -103,10 +108,10 @@ export default { ...@@ -103,10 +108,10 @@ export default {
status = '审批中' status = '审批中'
break break
case MINGPAY_CHARGE_ORDERSTATUS.SUCCESS: case MINGPAY_CHARGE_ORDERSTATUS.SUCCESS:
status = '充值成功' status = '已完成'
break break
case MINGPAY_CHARGE_ORDERSTATUS.FAILED: case MINGPAY_CHARGE_ORDERSTATUS.FAILED:
status = '审批失败' status = '审批未通过'
break break
case MINGPAY_CHARGE_ORDERSTATUS.WAITING_PAYMENT: case MINGPAY_CHARGE_ORDERSTATUS.WAITING_PAYMENT:
status = '等待支付' status = '等待支付'
...@@ -172,7 +177,7 @@ export default { ...@@ -172,7 +177,7 @@ export default {
queryRechargeList () { queryRechargeList () {
let RechargeData = this.$qs.stringify({ let RechargeData = this.$qs.stringify({
pageNumber: 10, pageNumber: 10,
currentPage: 1, currentPage: this.pagination.current,
agentId: this.searchSource.agentId, agentId: this.searchSource.agentId,
status: this.searchSource.status, status: this.searchSource.status,
userId: this.searchSource.UserMessage.emplId, userId: this.searchSource.UserMessage.emplId,
...@@ -180,10 +185,17 @@ export default { ...@@ -180,10 +185,17 @@ export default {
}) })
$http.get(`/v1/charge/list_charge?${RechargeData}`).then((res) => { $http.get(`/v1/charge/list_charge?${RechargeData}`).then((res) => {
let data = res.data.data let data = res.data.data
this.pagination.total = parseInt(data.totalCount)
console.log(data.recordList) console.log(data.recordList)
this.chargeList = data.recordList this.chargeList = data.recordList
}) })
}, },
// 分页
handleTableChange (pagination, filters, sorter) {
this.pagination.current = pagination.current
console.log(pagination.current)
this.queryRechargeList()
},
departmentNameListToStr (str) { departmentNameListToStr (str) {
let departmentNameListStr = '' let departmentNameListStr = ''
if (str.length !== 0) { if (str.length !== 0) {
...@@ -193,6 +205,10 @@ export default { ...@@ -193,6 +205,10 @@ export default {
} }
departmentNameListStr = departmentNameListStr.substring(0, departmentNameListStr.length - 1) departmentNameListStr = departmentNameListStr.substring(0, departmentNameListStr.length - 1)
return departmentNameListStr return departmentNameListStr
},
search () {
this.pagination.current = 1
this.queryRechargeList()
} }
}, },
mounted () {} mounted () {}
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<a-select-option value="WAITING_PERMIT">退款审核中</a-select-option> <a-select-option value="WAITING_PERMIT">退款审核中</a-select-option>
<a-select-option value="REFUND_SUCCESS">已退款</a-select-option> <a-select-option value="REFUND_SUCCESS">已退款</a-select-option>
</a-select> </a-select>
<a-button type="primary" @click="queryRecordList()">查询</a-button> <a-button type="primary" @click="search()">查询</a-button>
</div> </div>
<div class="searchUserMessage" v-if="searchSource.UserMessage.emplId"> <div class="searchUserMessage" v-if="searchSource.UserMessage.emplId">
<div class="positionDiv"></div> <div class="positionDiv"></div>
...@@ -21,23 +21,25 @@ ...@@ -21,23 +21,25 @@
<span slot="departmentNameList" slot-scope="departmentNameList"> <span slot="departmentNameList" slot-scope="departmentNameList">
{{ departmentNameListToStr(departmentNameList) }} {{ departmentNameListToStr(departmentNameList) }}
</span> </span>
<span slot="chargeAmount">消费金额</span> <span slot="consumptionAmount">实际消费</span>
<span slot="consumptionSubsidyAmount">津贴消费</span>
<span slot="orderNo">单号</span> <span slot="orderNo">单号</span>
<span slot="status" slot-scope="status"> <span slot="orderStatus" slot-scope="orderStatus">
{{ status === MINGPAY_RECORDS_STATUS.SUCCESS ? '已消费' : status === MINGPAY_RECORDS_STATUS.WAITING_PERMIT ? 'WAITING_PERMIT' : '退款成功'}} {{ orderStatus === MINGPAY_RECORDS_STATUS.SUCCESS ? '已消费' : orderStatus === MINGPAY_RECORDS_STATUS.WAITING_PERMIT ? 'WAITING_PERMIT' : '已退款'}}
</span> </span>
<span slot="remark">备注</span> <span slot="remark">备注</span>
<span slot="createTime" slot-scope="createTime"> <span slot="createTime" slot-scope="createTime">
{{ createTimeToStr(createTime) }} {{ createTimeToStr(createTime) }}
</span> </span>
<span slot="action" slot-scope="text, record, index" class="operationTable"> <span slot="action" slot-scope="text, record, index" class="operationTable">
<a href="javascript:;" @click="refundModal(record, text, index)">退款</a> <a v-if="record.orderStatus === MINGPAY_RECORDS_STATUS.SUCCESS" href="javascript:;" @click="refundModal(record, text, index)">退款</a>
<a v-else style="color: #cccccc;" href="javascript:;">已退款</a>
</span> </span>
</a-table> </a-table>
<a-modal title="发起退款" v-model="visible" @ok="refund()"> <a-modal title="发起退款" v-model="visible" @ok="refund()">
<a-form :form="form"> <a-form :form="form">
<a-form-item label="退款金额" :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }" > <a-form-item label="退款金额" :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }" >
<a href="javascript:;">{{ refundSelect.chargeAmount }}</a> <a href="javascript:;">{{ parseFloat(refundSelect.consumptionAmount) + parseFloat(refundSelect.consumptionSubsidyAmount) }}</a>
</a-form-item> </a-form-item>
<a-form-item label="备注" :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }" > <a-form-item label="备注" :label-col="{ span: 5 }" :wrapper-col="{ span: 12 }" >
<a-textarea v-decorator="['remark', {rules: [{ required: true, message: '备注不能为空' }]}]"/> <a-textarea v-decorator="['remark', {rules: [{ required: true, message: '备注不能为空' }]}]"/>
...@@ -55,6 +57,7 @@ export default { ...@@ -55,6 +57,7 @@ export default {
name: 'recordsOfConsumption', name: 'recordsOfConsumption',
data () { data () {
return { return {
MINGPAY_RECORDS_STATUS: MINGPAY_RECORDS_STATUS,
visible: false, visible: false,
columns: [{ columns: [{
title: '消费人', title: '消费人',
...@@ -64,14 +67,13 @@ export default { ...@@ -64,14 +67,13 @@ export default {
dataIndex: 'departmentNameList', dataIndex: 'departmentNameList',
scopedSlots: { customRender: 'departmentNameList' } scopedSlots: { customRender: 'departmentNameList' }
}, { }, {
title: '消费金额', title: '实际消费',
dataIndex: 'chargeAmount' dataIndex: 'consumptionAmount'
},
{
title: '津贴消费',
dataIndex: 'consumptionSubsidyAmount'
}, },
// {
// title: '消费类型',
// dataIndex: 'cardNo',
// scopedSlots: { customRender: 'cardNo' }
// },
{ {
title: '单号', title: '单号',
dataIndex: 'orderNo' dataIndex: 'orderNo'
...@@ -108,6 +110,7 @@ export default { ...@@ -108,6 +110,7 @@ export default {
hideOnSinglePage: true, hideOnSinglePage: true,
total: 0 total: 0
}, },
status: '',
refundSelect: '', refundSelect: '',
form: this.$form.createForm(this) form: this.$form.createForm(this)
} }
...@@ -120,24 +123,34 @@ export default { ...@@ -120,24 +123,34 @@ export default {
this.visible = !this.visible this.visible = !this.visible
this.refundSelect = record this.refundSelect = record
}, },
search () {
this.pagination.current = 1
this.queryRecordList()
},
// 退款 // 退款
refund () { refund () {
let refundData = this.$qs.stringify({ console.log(this.form.getFieldsValue().remark)
orderNo: this.refundSelect.orderNo, if (this.form.getFieldsValue().remark === undefined) {
sum: this.refundSelect.chargeAmount, this.$message.error('请输入备注')
remark: this.form.getFieldsValue().remark, } else {
orgId: sessionStorage.getItem('corpId') let refundData = this.$qs.stringify({
}) orderNo: this.refundSelect.orderNo,
$http.get(`/v1/consume/refund?${refundData}`).then((res) => { remark: this.form.getFieldsValue().remark || '',
if (res.data.message === 'SUCCESS') { orgId: sessionStorage.getItem('corpId')
this.$message.success('退款成功') })
} else { $http.get(`/v1/consume/refund?${refundData}`).then((res) => {
this.$message.success(res.data.message) if (res.data.message === 'SUCCESS') {
} this.$message.success('退款成功')
console.log(res) this.visible = false
}).catch(() => { this.form.resetFields()
this.$message.error('退款失败') } else {
}) this.$message.error(res.data.message)
}
console.log(res)
}).catch(() => {
this.$message.error('退款失败')
})
}
}, },
// table部门表格字符串处理 // table部门表格字符串处理
departmentNameListToStr (str) { departmentNameListToStr (str) {
...@@ -226,7 +239,7 @@ export default { ...@@ -226,7 +239,7 @@ export default {
// 搜索条件消费单状态 // 搜索条件消费单状态
selectHandRecords (value) { selectHandRecords (value) {
console.log(value) console.log(value)
this.searchSource.cardStatus = value this.searchSource.status = value
} }
} }
} }
......
<template> <template>
<div class="viewAllowances"> <div class="viewAllowances">
<a-button type="primary" @click="back()"><img style="margin-top:-4px;margin-right: 6px;width: 14px" src="../../../assets/back.png"/>返回</a-button>
<div class="title">查看津贴</div> <div class="title">查看津贴</div>
<a-table :columns="columns" :dataSource="subsidyList" size="default" rowKey="grantNumber" :pagination="pagination" @change="handleTableChange"> <a-table :columns="columns" :dataSource="subsidyList" size="default" rowKey="grantNumber" :pagination="pagination" @change="handleTableChange">
<span slot="type" slot-scope="type"> <span slot="type" slot-scope="type">
...@@ -79,6 +80,9 @@ export default { ...@@ -79,6 +80,9 @@ export default {
handleTableChange (pagination, filters, sorter) { handleTableChange (pagination, filters, sorter) {
this.pagination.current = pagination.current this.pagination.current = pagination.current
this.querySubsidyList() this.querySubsidyList()
},
back () {
this.$router.go(-1)
} }
} }
} }
...@@ -88,5 +92,6 @@ export default { ...@@ -88,5 +92,6 @@ export default {
.title{ .title{
font-weight: bold; font-weight: bold;
margin-bottom: 20px; margin-bottom: 20px;
margin-top: 20px;
} }
</style> </style>
...@@ -2,13 +2,14 @@ import Vue from 'vue' ...@@ -2,13 +2,14 @@ import Vue from 'vue'
import App from './App.vue' import App from './App.vue'
import router from './router' import router from './router'
import store from './store' import store from './store'
import { Menu, Layout, Breadcrumb, Icon, Button, DatePicker, Input, Table, Tag, Divider, Dropdown, Modal, Form, Select, message, Pagination } from 'ant-design-vue' import { Menu, Layout, Breadcrumb, Icon, Button, DatePicker, Input, Table, Tag, Divider, Dropdown, Modal, Form, Select, message, Pagination, LocaleProvider } from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css' import 'ant-design-vue/dist/antd.css'
import { config } from './api/config' import { config } from './api/config'
import axios from 'axios' import axios from 'axios'
import qs from 'qs' import qs from 'qs'
Vue.use(Layout) Vue.use(Layout)
Vue.use(LocaleProvider)
Vue.use(Menu) Vue.use(Menu)
Vue.use(Breadcrumb) Vue.use(Breadcrumb)
Vue.use(Icon) Vue.use(Icon)
......
Markdown is supported
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