|
@@ -6,7 +6,8 @@
|
|
<!-- 自定义的二级文字标题 -->
|
|
<!-- 自定义的二级文字标题 -->
|
|
<template slot="subTitle">
|
|
<template slot="subTitle">
|
|
<a id="dealerAccountDetail-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
|
|
<a id="dealerAccountDetail-back-btn" href="javascript:;" @click="handleBack"><a-icon type="left" /> 返回列表</a>
|
|
- <span class="subTitle-word text-overflow" style="margin:0 15px;">轮胎补贴金额({{ $route.params.name }}):<span style="vertical-align: middle;">¥</span><span style="font-size:20px;vertical-align: text-bottom;">{{ toThousands($route.params.num) }}</span></span>
|
|
|
|
|
|
+ <span v-if="totalData" class="subTitle-word text-overflow" style="margin:0 15px;vertical-align: middle;"><span>轮胎补贴金额({{ totalData.dealerEntity?totalData.dealerEntity.dealerName?totalData.dealerEntity.dealerName:'--':'--' }}):¥</span><span style="font-size:20px;" >{{ (totalData.subsidyTire||totalData.subsidyTire==0)?toThousands(totalData.subsidyTire):'--' }}</span></span>
|
|
|
|
+ <span v-else>--</span>
|
|
<a-button
|
|
<a-button
|
|
type="danger"
|
|
type="danger"
|
|
v-if="$hasPermissions('B_checkAccount')"
|
|
v-if="$hasPermissions('B_checkAccount')"
|
|
@@ -92,7 +93,14 @@
|
|
</a-card>
|
|
</a-card>
|
|
</a-spin>
|
|
</a-spin>
|
|
<!-- 调账 -->
|
|
<!-- 调账 -->
|
|
- <check-account-modal v-drag ref="checkAccountModal" :openModal="openCheckAccountModal" @ok="$refs.table.refresh(true)" @close="openCheckAccountModal = false" />
|
|
|
|
|
|
+ <check-account-modal
|
|
|
|
+ v-drag
|
|
|
|
+ ref="checkAccountModal"
|
|
|
|
+ :dealerName="totalData&&totalData.dealerEntity&&totalData.dealerEntity.dealerName?totalData.dealerEntity.dealerName:''"
|
|
|
|
+ :dealerNum="totalData&&totalData.subsidyTire?totalData.subsidyTire:''"
|
|
|
|
+ :openModal="openCheckAccountModal"
|
|
|
|
+ @ok="$refs.table.refresh(true)"
|
|
|
|
+ @close="openCheckAccountModal = false" />
|
|
<!-- 调账记录 -->
|
|
<!-- 调账记录 -->
|
|
<check-record-modal v-drag :openModal="openCheckRecordModal" @ok="$refs.table.refresh(true)" @close="openCheckRecordModal = false" />
|
|
<check-record-modal v-drag :openModal="openCheckRecordModal" @ok="$refs.table.refresh(true)" @close="openCheckRecordModal = false" />
|
|
</div>
|
|
</div>
|
|
@@ -107,7 +115,7 @@ import checkAccountModal from './checkAccountModal.vue'
|
|
import checkRecordModal from './checkRecordModal.vue'
|
|
import checkRecordModal from './checkRecordModal.vue'
|
|
import { hdExportExcel } from '@/libs/exportExcel'
|
|
import { hdExportExcel } from '@/libs/exportExcel'
|
|
// 接口
|
|
// 接口
|
|
-import { dealerAccountFlowList, dealerAccountFlowExport } from '@/api/dealerAccount'
|
|
|
|
|
|
+import { dealerAccountFlowList, dealerAccountFlowExport, queryDealerAccount } from '@/api/dealerAccount'
|
|
export default {
|
|
export default {
|
|
name: 'DealerAccountDetail',
|
|
name: 'DealerAccountDetail',
|
|
mixins: [commonMixin],
|
|
mixins: [commonMixin],
|
|
@@ -137,12 +145,14 @@ export default {
|
|
{ title: '金额(¥)', dataIndex: 'flowAmount', width: '16%', align: 'center', customRender: text => { return (text || text == 0) ? _this.toThousands(text) : '--' } },
|
|
{ title: '金额(¥)', dataIndex: 'flowAmount', width: '16%', align: 'center', customRender: text => { return (text || text == 0) ? _this.toThousands(text) : '--' } },
|
|
{ title: '备注', dataIndex: 'remark', width: '16%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true }
|
|
{ title: '备注', dataIndex: 'remark', width: '16%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true }
|
|
],
|
|
],
|
|
|
|
+ totalData: null,
|
|
loadData: parameter => {
|
|
loadData: parameter => {
|
|
this.disabled = true
|
|
this.disabled = true
|
|
this.spinning = true
|
|
this.spinning = true
|
|
this.queryParam.dealerSn = this.$route.params.sn
|
|
this.queryParam.dealerSn = this.$route.params.sn
|
|
|
|
+ const params = Object.assign(parameter, this.queryParam)
|
|
// 获取列表数据 有分页
|
|
// 获取列表数据 有分页
|
|
- return dealerAccountFlowList(Object.assign(parameter, this.queryParam)).then(res => {
|
|
|
|
|
|
+ return dealerAccountFlowList(params).then(res => {
|
|
let data
|
|
let data
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
data = res.data
|
|
data = res.data
|
|
@@ -151,6 +161,7 @@ export default {
|
|
for (var i = 0; i < data.list.length; i++) {
|
|
for (var i = 0; i < data.list.length; i++) {
|
|
data.list[i].no = no + i + 1
|
|
data.list[i].no = no + i + 1
|
|
}
|
|
}
|
|
|
|
+ this.getCount()
|
|
}
|
|
}
|
|
this.disabled = false
|
|
this.disabled = false
|
|
this.spinning = false
|
|
this.spinning = false
|
|
@@ -170,6 +181,15 @@ export default {
|
|
this.queryParam.beginDate = date[0] || ''
|
|
this.queryParam.beginDate = date[0] || ''
|
|
this.queryParam.endDate = date[1] || ''
|
|
this.queryParam.endDate = date[1] || ''
|
|
},
|
|
},
|
|
|
|
+ getCount () {
|
|
|
|
+ queryDealerAccount({ accountSn: this.$route.params.aSn }).then(res => {
|
|
|
|
+ if (res.status == 200 && res.data) {
|
|
|
|
+ this.totalData = res.data
|
|
|
|
+ } else {
|
|
|
|
+ this.totalData = null
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 重置
|
|
// 重置
|
|
resetSearchForm () {
|
|
resetSearchForm () {
|
|
this.queryParam = {
|
|
this.queryParam = {
|
|
@@ -218,18 +238,15 @@ export default {
|
|
mounted () {
|
|
mounted () {
|
|
if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
|
|
if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
|
|
this.pageInit()
|
|
this.pageInit()
|
|
- this.resetSearchForm()
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated () {
|
|
activated () {
|
|
// 如果是新页签打开,则重置当前页面
|
|
// 如果是新页签打开,则重置当前页面
|
|
if (this.$store.state.app.isNewTab) {
|
|
if (this.$store.state.app.isNewTab) {
|
|
this.pageInit()
|
|
this.pageInit()
|
|
- this.resetSearchForm()
|
|
|
|
}
|
|
}
|
|
// 仅刷新列表,不重置页面
|
|
// 仅刷新列表,不重置页面
|
|
if (this.$store.state.app.updateList) {
|
|
if (this.$store.state.app.updateList) {
|
|
- this.$refs.table.refresh()
|
|
|
|
this.pageInit()
|
|
this.pageInit()
|
|
}
|
|
}
|
|
},
|
|
},
|