|
@@ -6,6 +6,9 @@
|
|
:operation="operation()"
|
|
:operation="operation()"
|
|
:optionsEvensGroup="optionsEvensGroup"
|
|
:optionsEvensGroup="optionsEvensGroup"
|
|
:columnParsing="columnParsing"
|
|
:columnParsing="columnParsing"
|
|
|
|
+ :tableAttributes="tableAttributes"
|
|
|
|
+ :tableEvents="tableEvents"
|
|
|
|
+ :replaceOrNotMap="false"
|
|
>
|
|
>
|
|
<Popu v-if="showPage !== 1">
|
|
<Popu v-if="showPage !== 1">
|
|
<ReceivableListAdd v-if="showPage == 2" @close="handleClose" />
|
|
<ReceivableListAdd v-if="showPage == 2" @close="handleClose" />
|
|
@@ -25,6 +28,7 @@ import { getCustomerList } from '@/api/finance/wallet'
|
|
import {
|
|
import {
|
|
getFinanceOtherReceList,
|
|
getFinanceOtherReceList,
|
|
getFinanceOtherReceListV2,
|
|
getFinanceOtherReceListV2,
|
|
|
|
+ exportFinanceOtherReceListV2,
|
|
getFinanceOtherReceDelete,
|
|
getFinanceOtherReceDelete,
|
|
getFinanceOtherReceDetail,
|
|
getFinanceOtherReceDetail,
|
|
getFinanceOtherReceApply,
|
|
getFinanceOtherReceApply,
|
|
@@ -86,7 +90,7 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
let ids = this.recordSelected.map(v => {
|
|
let ids = this.recordSelected.map(v => {
|
|
- return v.id
|
|
|
|
|
|
+ return v.itemId
|
|
})
|
|
})
|
|
let params = { ids: ids.toString() }
|
|
let params = { ids: ids.toString() }
|
|
await getFinanceOtherReceDelete(params)
|
|
await getFinanceOtherReceDelete(params)
|
|
@@ -141,7 +145,7 @@ export default {
|
|
return getFinanceOtherReceListV2(...p)
|
|
return getFinanceOtherReceListV2(...p)
|
|
},
|
|
},
|
|
// 列表导出函数
|
|
// 列表导出函数
|
|
- exportList: () => {},
|
|
|
|
|
|
+ exportList: exportFinanceOtherReceListV2,
|
|
// 表格列解析渲染数据更改
|
|
// 表格列解析渲染数据更改
|
|
columnParsing(item, defaultData) {
|
|
columnParsing(item, defaultData) {
|
|
return defaultData
|
|
return defaultData
|
|
@@ -154,52 +158,37 @@ export default {
|
|
return (h, { row, index, column }) => {
|
|
return (h, { row, index, column }) => {
|
|
return (
|
|
return (
|
|
<div class="operation-btns">
|
|
<div class="operation-btns">
|
|
- {this.$checkBtnRole('print', this.$route.meta.roles)?
|
|
|
|
- <el-button
|
|
|
|
- type="text"
|
|
|
|
- class="textColor"
|
|
|
|
- onClick={()=>this.toPrint(row, 2)}
|
|
|
|
- >打印
|
|
|
|
- </el-button
|
|
|
|
- >:null
|
|
|
|
|
|
+ {this.$checkBtnRole('print', this.$route.meta.roles) ? (
|
|
|
|
+ <el-button type="text" class="textColor" onClick={() => this.toPrint(row, 2)}>
|
|
|
|
+ 打印
|
|
|
|
+ </el-button>
|
|
|
|
+ ) : null}
|
|
|
|
+ {row.examineStatus == 'WAIT' ||
|
|
|
|
+ (row.examineStatus == 'FAIL' && this.$checkBtnRole('examine', this.$route.meta.roles)) ? (
|
|
|
|
+ <el-button type="text" onClick={() => this.approvalFn(row.id)}>
|
|
|
|
+ 审批
|
|
|
|
+ </el-button>
|
|
|
|
+ ) : null}
|
|
|
|
+ {row.examineStatus == 'SAVE' ? (
|
|
|
|
+ <el-button type="text" onClick={() => this.bringFn(row.id)}>
|
|
|
|
+ 提审
|
|
|
|
+ </el-button>
|
|
|
|
+ ) : null}
|
|
|
|
+ {row.examineStatus == 'OK' || row.examineStatus == 'FAIL' ? (
|
|
|
|
+ <el-button type="text" onClick={() => this.unApprovalFn(row.id)}>
|
|
|
|
+ 弃审
|
|
|
|
+ </el-button>
|
|
|
|
+ ) : null}
|
|
|
|
+ {row.examineStatus == 'SAVE' ? (
|
|
|
|
+ <el-button type="text" onClick={() => this.detailFn(row.id, 'edit')}>
|
|
|
|
+ 编辑
|
|
|
|
+ </el-button>
|
|
|
|
+ ) : null}
|
|
|
|
+ {
|
|
|
|
+ <el-button type="text" onClick={() => this.detailFn(row.id, 'detail')}>
|
|
|
|
+ 详情
|
|
|
|
+ </el-button>
|
|
}
|
|
}
|
|
- {
|
|
|
|
- row.examineStatus == 'WAIT' || row.examineStatus == 'FAIL' &&
|
|
|
|
- this.$checkBtnRole('examine', this.$route.meta.roles)?
|
|
|
|
- <el-button
|
|
|
|
- type="text"
|
|
|
|
- onClick={()=>this.approvalFn(row.id)}
|
|
|
|
- >审批
|
|
|
|
- </el-button
|
|
|
|
- >:null
|
|
|
|
- }
|
|
|
|
- {
|
|
|
|
- row.examineStatus == 'SAVE' ?
|
|
|
|
- <el-button type="text" onClick={()=>this.bringFn(row.id)}
|
|
|
|
- >提审
|
|
|
|
- </el-button
|
|
|
|
- >:null
|
|
|
|
- }
|
|
|
|
- {
|
|
|
|
- row.examineStatus == 'OK' || row.examineStatus == 'FAIL'?
|
|
|
|
- <el-button
|
|
|
|
- type="text"
|
|
|
|
- onClick={()=>this.unApprovalFn(row.id)}
|
|
|
|
- >弃审
|
|
|
|
- </el-button
|
|
|
|
- >:null
|
|
|
|
- }
|
|
|
|
- {
|
|
|
|
- row.examineStatus == 'SAVE'?
|
|
|
|
- <el-button type="text" onClick={()=>this.detailFn(row.id, 'edit')}
|
|
|
|
- >编辑
|
|
|
|
- </el-button
|
|
|
|
- >:null
|
|
|
|
- }
|
|
|
|
- {
|
|
|
|
- <el-button type="text" onClick={()=>this.detailFn(row.id, 'detail')}>详情</el-button>
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
</div>
|
|
</div>
|
|
)
|
|
)
|
|
}
|
|
}
|