|
@@ -34,7 +34,9 @@ import {
|
|
|
getFinanceOtherReceDetail,
|
|
|
getFinanceOtherReceApply,
|
|
|
getFinanceOtherReceAbandon,
|
|
|
- financeOtherReceClose
|
|
|
+ financeOtherReceClose,
|
|
|
+ financeReceImportDataImport,
|
|
|
+ financeOtherReceCancelApply
|
|
|
} from '@/api/finance/receivable_list'
|
|
|
import ReceivableListAdd from './components/receivable_list-add'
|
|
|
import ReceivableListApproval from './components/receivable_list-approval'
|
|
@@ -47,7 +49,7 @@ import printPreview from './components/design/preview.vue'
|
|
|
import { getCompanyList } from '@/api/user'
|
|
|
import { numToFixed } from '@/filters'
|
|
|
import { changeNumberMoneyToChinese } from '@/utils/util'
|
|
|
-
|
|
|
+import { downloadFiles } from '@/utils/util'
|
|
|
export default {
|
|
|
components: { TemplatePage, Popu, ReceivableListAdd, ReceivableListApproval, ReceivableListDetail, printPreview },
|
|
|
mixins: [import_mixin, add_callback_mixin],
|
|
@@ -102,7 +104,25 @@ export default {
|
|
|
isRole: this.$checkBtnRole('del', this.$route.meta.roles)
|
|
|
}
|
|
|
]
|
|
|
- ]
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ [
|
|
|
+ {
|
|
|
+ name: '导入模版',
|
|
|
+ click: () => {
|
|
|
+ downloadFiles('finance/other/rec/download')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ ],
|
|
|
+ [
|
|
|
+ [
|
|
|
+ {
|
|
|
+ name: '导入',
|
|
|
+ render: this.importButton(financeReceImportDataImport)
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ ],
|
|
|
],
|
|
|
// 表格属性
|
|
|
tableAttributes: {
|
|
@@ -165,12 +185,29 @@ export default {
|
|
|
打印
|
|
|
</el-button>
|
|
|
) : null}
|
|
|
- {(row.examineStatus == 'WAIT' || row.examineStatus == 'FAIL') &&
|
|
|
- this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
|
+ {row.examineStatus == 'WAIT' && this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
|
<el-button type="text" size="mini" onClick={() => this.approvalFn(row.id)}>
|
|
|
审批
|
|
|
</el-button>
|
|
|
) : null}
|
|
|
+ {row.examineStatus == 'WAIT' && this.$checkBtnRole('examine', this.$route.meta.roles) ? (
|
|
|
+ <el-button type="text" size="mini" onClick={() => {
|
|
|
+ this.$confirm('取消提审, 是否继续?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ financeOtherReceCancelApply({
|
|
|
+ id: row.id
|
|
|
+ }).then(_res=>{
|
|
|
+ this.$message.success('取消成功')
|
|
|
+ this.$refs.pageRef.refreshList()
|
|
|
+ })
|
|
|
+ }).catch(() => {});
|
|
|
+ }}>
|
|
|
+ 取消提审
|
|
|
+ </el-button>
|
|
|
+ ) : null}
|
|
|
{row.examineStatus == 'SAVE' ? (
|
|
|
<el-button type="text" size="mini" onClick={() => this.bringFn(row.id)}>
|
|
|
提审
|