|
@@ -4,20 +4,33 @@
|
|
|
v-show="showPage == 1"
|
|
|
ref="pageRef"
|
|
|
:operation="operation()"
|
|
|
- :optionsEvensGroup="optionsEvensGroup"
|
|
|
- :getList="getList2"
|
|
|
- :exportList="exportList"
|
|
|
- :tableAttributes="tableAttributes"
|
|
|
- :tableEvents="tableEvents"
|
|
|
- :columnParsing="columnParsing"
|
|
|
- :fieldBeansHook="fieldBeansHook"
|
|
|
+ :options-evens-group="optionsEvensGroup"
|
|
|
+ :get-list="getList2"
|
|
|
+ :export-list="exportList"
|
|
|
+ :table-attributes="tableAttributes"
|
|
|
+ :table-events="tableEvents"
|
|
|
+ :column-parsing="columnParsing"
|
|
|
+ :field-beans-hook="fieldBeansHook"
|
|
|
>
|
|
|
+ <div slot="moreSearch">
|
|
|
+ <ul class="ulStyle">
|
|
|
+ <li class="title">
|
|
|
+ 金额:<span class="num">{{ (Number(numSum.amountC) || 0) | numToFixed }}</span>
|
|
|
+ </li>
|
|
|
+ <li class="title">
|
|
|
+ 数量:<span class="num">{{ Number(numSum.totalC) || 0 }}</span>
|
|
|
+ </li>
|
|
|
+ <li class="title">
|
|
|
+ 项目数:<span class="num">{{ Number(numSum.totalEC) || 0 }}</span>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
</template-page>
|
|
|
- <div class="app-container" v-if="showPage == 2">
|
|
|
+ <div v-if="showPage == 2" class="app-container">
|
|
|
<DepositListDetail
|
|
|
+ :deposit-manage-id="depositManageId"
|
|
|
+ :ref-engin-record-no="refEnginRecordNo"
|
|
|
@updateList="updateList"
|
|
|
- :depositManageId="depositManageId"
|
|
|
- :refEnginRecordNo="refEnginRecordNo"
|
|
|
@setShowPage="
|
|
|
val => {
|
|
|
$refs.pageRef.refreshList()
|
|
@@ -26,11 +39,11 @@
|
|
|
"
|
|
|
/>
|
|
|
</div>
|
|
|
- <div class="app-container" v-else-if="showPage == 3">
|
|
|
+ <div v-else-if="showPage == 3" class="app-container">
|
|
|
<DepositApplyDeduction
|
|
|
+ :deposit-manage-id="depositManageId"
|
|
|
+ :ref-engin-record-no="refEnginRecordNo"
|
|
|
@updateList="updateList"
|
|
|
- :depositManageId="depositManageId"
|
|
|
- :refEnginRecordNo="refEnginRecordNo"
|
|
|
@setShowPage="
|
|
|
val => {
|
|
|
$refs.pageRef.refreshList()
|
|
@@ -39,11 +52,11 @@
|
|
|
"
|
|
|
/>
|
|
|
</div>
|
|
|
- <div class="app-container" v-else-if="showPage == 4">
|
|
|
+ <div v-else-if="showPage == 4" class="app-container">
|
|
|
<DepositApplySurrender
|
|
|
+ :deposit-manage-id="depositManageId"
|
|
|
+ :ref-engin-record-no="refEnginRecordNo"
|
|
|
@updateList="updateList"
|
|
|
- :depositManageId="depositManageId"
|
|
|
- :refEnginRecordNo="refEnginRecordNo"
|
|
|
@setShowPage="
|
|
|
val => {
|
|
|
$refs.pageRef.refreshList()
|
|
@@ -52,11 +65,11 @@
|
|
|
"
|
|
|
/>
|
|
|
</div>
|
|
|
- <div class="app-container" v-else-if="showPage == 5">
|
|
|
+ <div v-else-if="showPage == 5" class="app-container">
|
|
|
<deposit_replenish
|
|
|
+ :deposit-manage-id="depositManageId"
|
|
|
+ :ref-engin-record-no="refEnginRecordNo"
|
|
|
@updateList="updateList"
|
|
|
- :depositManageId="depositManageId"
|
|
|
- :refEnginRecordNo="refEnginRecordNo"
|
|
|
@setShowPage="
|
|
|
val => {
|
|
|
$refs.pageRef.refreshList()
|
|
@@ -74,9 +87,8 @@ import { getDepositManageDate } from '@/api/engin_deposit/refund_list'
|
|
|
import DepositApplyDeduction from './components/deposit-apply-deduction.vue'
|
|
|
import DepositApplySurrender from './components/deposit-apply-surrender.vue'
|
|
|
import { downloadFiles, handleImport } from '@/utils/util'
|
|
|
-import { depositManageHomeList, depositManageHomeListExport } from '@/api/deposit_list_v2.js'
|
|
|
+import { depositManageHomeList, depositManageHomeListExport, getCountList, updateDepositManageenginInfo } from '@/api/deposit_list_v2.js'
|
|
|
import TemplatePage from '@/components/template/template-page-1.vue'
|
|
|
-import Mixin from '@/mixin'
|
|
|
import deposit_replenish from './components/deposit_replenish.vue'
|
|
|
|
|
|
export default {
|
|
@@ -193,7 +205,12 @@ export default {
|
|
|
},
|
|
|
recordSelected: [],
|
|
|
depositManageId: '',
|
|
|
- refEnginRecordNo: ''
|
|
|
+ refEnginRecordNo: '',
|
|
|
+ numSum: {
|
|
|
+ totalC: 0,
|
|
|
+ amountC: 0,
|
|
|
+ totalEC: 0
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -203,6 +220,30 @@ export default {
|
|
|
[
|
|
|
{
|
|
|
name: '',
|
|
|
+ // isRole: this.$checkBtnRole('add', this.$route.meta.roles),
|
|
|
+ render: () => {
|
|
|
+ return (
|
|
|
+ <el-popconfirm
|
|
|
+ title='更新工程信息吗?'
|
|
|
+ onOnConfirm={() => {
|
|
|
+ updateDepositManageenginInfo().then(res => {
|
|
|
+ this.$message.success('更新工程信息成功')
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
+
|
|
|
+ })
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <span slot='reference'>更新工程信息</span>
|
|
|
+ </el-popconfirm>
|
|
|
+ )
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ [
|
|
|
+ {
|
|
|
+ name: '',
|
|
|
isRole: !this.isCustomer,
|
|
|
render: () => {
|
|
|
return (
|
|
@@ -243,7 +284,14 @@ export default {
|
|
|
return list
|
|
|
},
|
|
|
// 列表请求函数
|
|
|
- getList2: depositManageHomeList,
|
|
|
+ getList2(...p) {
|
|
|
+ this.$refs.pageRef.showTable = false
|
|
|
+ this.recordSelected = []
|
|
|
+ getCountList(...p).then(res => {
|
|
|
+ this.numSum = res.data
|
|
|
+ })
|
|
|
+ return depositManageHomeList(...p)
|
|
|
+ },
|
|
|
// 列表导出函数
|
|
|
exportList: depositManageHomeListExport,
|
|
|
// 表格列解析渲染数据更改
|
|
@@ -257,11 +305,11 @@ export default {
|
|
|
operation() {
|
|
|
return (h, { row, index, column }) => {
|
|
|
return (
|
|
|
- <div class="operation-btns">
|
|
|
+ <div class='operation-btns'>
|
|
|
<el-button
|
|
|
- type="text"
|
|
|
- class="textColor"
|
|
|
- size="mini"
|
|
|
+ type='text'
|
|
|
+ class='textColor'
|
|
|
+ size='mini'
|
|
|
onClick={() => {
|
|
|
this.detailFn(row)
|
|
|
}}
|
|
@@ -270,8 +318,8 @@ export default {
|
|
|
</el-button>
|
|
|
{row.examineStatus == '保存' && this.$checkBtnRole('apply', this.$route.meta.roles) ? (
|
|
|
<el-button
|
|
|
- type="text"
|
|
|
- class="textColor"
|
|
|
+ type='text'
|
|
|
+ class='textColor'
|
|
|
onClick={() => {
|
|
|
this.surrenderFn(row)
|
|
|
}}
|
|
@@ -283,16 +331,16 @@ export default {
|
|
|
{((row.examineStatus == '审核通过' && row.dataState == '补充') ||
|
|
|
(row.examineStatus == '审核通过' && row.dataState == '正常')) &&
|
|
|
this.isCustomer ? (
|
|
|
- <el-button
|
|
|
- type="text"
|
|
|
- class="textColor"
|
|
|
- onClick={() => {
|
|
|
- this.replenishClick(row.depositManageId)
|
|
|
- }}
|
|
|
- >
|
|
|
+ <el-button
|
|
|
+ type='text'
|
|
|
+ class='textColor'
|
|
|
+ onClick={() => {
|
|
|
+ this.replenishClick(row.depositManageId)
|
|
|
+ }}
|
|
|
+ >
|
|
|
补充资料
|
|
|
- </el-button>
|
|
|
- ) : null}
|
|
|
+ </el-button>
|
|
|
+ ) : null}
|
|
|
</div>
|
|
|
)
|
|
|
}
|
|
@@ -363,4 +411,13 @@ export default {
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-<style lang="scss" scoped></style>
|
|
|
+<style lang="scss" scoped>
|
|
|
+.ulStyle{
|
|
|
+ list-style: none;
|
|
|
+ padding: 0;
|
|
|
+ li{
|
|
|
+ display: inline-block;
|
|
|
+ margin-right: 20px;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|