|
@@ -230,14 +230,14 @@
|
|
</vxe-column>
|
|
</vxe-column>
|
|
<vxe-column min-width="300" title="操作" fixed="right" align="center">
|
|
<vxe-column min-width="300" title="操作" fixed="right" align="center">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button v-if="hasPermission('cw_finance:invoice:edit')&&scope.row.status === '1'||scope.row.status === '3'||scope.row.status === '4'" type="text" size="small" @click="invoicePush(scope.row)">修改</el-button>
|
|
|
|
- <el-button v-if="hasPermission('cw_finance:invoice:edit')&&scope.row.status === '2'" type="text" size="small" @click="invoiceReback(scope.row)">撤回</el-button>
|
|
|
|
- <el-button v-if="hasPermission('cw_finance:invoice:edit')&&scope.row.status === '5'&&scope.row.receivablesStatus !== '1'" type="text" size="small" @click="editDetail(scope.row.id)">修改发票明细</el-button>
|
|
|
|
- <el-button v-if="hasPermission('cw_finance:invoice:edit')&&scope.row.status === '5'&&scope.row.receivablesStatus !== '1'" type="text" size="small" @click="view(true, scope.row.id)">收款</el-button>
|
|
|
|
- <el-button v-if="hasPermission('cw_finance:invoice:edit')&&scope.row.status === '5'&&scope.row.receivablesStatus !== '1'" type="text" size="small" @click="isReceivables(scope.row)">确认收款</el-button>
|
|
|
|
- <el-button v-if="hasPermission('cw_finance:invoice:edit')&&scope.row.status === '5'||scope.row.status === '7'||scope.row.status === '8'" type="text" size="small" @click="invoiceInvalidPush(scope.row)">作废</el-button>
|
|
|
|
- <el-button v-if="hasPermission('cw_finance:invoice:edit')&&scope.row.status === '6'" type="text" size="small" @click="invoiceInvalidReBack(scope.row)">作废撤回</el-button>
|
|
|
|
- <el-button v-if="hasPermission('cw_finance:invoice:edit')&&scope.row.status === '1'||scope.row.status === '3'" type="text" size="small" @click="del(scope.row.id)">删除</el-button>
|
|
|
|
|
|
+ <el-button v-if="hasPermission('cw_finance:invoice:edit')&&scope.row.createBy.id === $store.state.user.id&&(scope.row.status === '1'||scope.row.status === '3'||scope.row.status === '4')" type="text" size="small" @click="invoicePush(scope.row)">修改</el-button>
|
|
|
|
+ <el-button v-if="hasPermission('cw_finance:invoice:edit')&&scope.row.createBy.id === $store.state.user.id&&scope.row.status === '2'" type="text" size="small" @click="invoiceReback(scope.row)">撤回</el-button>
|
|
|
|
+ <el-button v-if="hasPermission('cw_finance:invoice:edit:detail')&&scope.row.status === '5'&&scope.row.receivablesStatus !== '1'" type="text" size="small" @click="editDetail(scope.row.id)">修改发票明细</el-button>
|
|
|
|
+ <el-button v-if="hasPermission('cw_finance:invoice:edit:receivables')&&scope.row.status === '5'&&scope.row.receivablesStatus !== '1'" type="text" size="small" @click="view(true, scope.row.id)">收款</el-button>
|
|
|
|
+ <el-button v-if="hasPermission('cw_finance:invoice:edit:is_receivables')&&scope.row.status === '5'&&scope.row.receivablesStatus !== '1'" type="text" size="small" @click="isReceivables(scope.row)">确认收款</el-button>
|
|
|
|
+ <el-button v-if="hasPermission('cw_finance:invoice:edit')&&scope.row.createBy.id === $store.state.user.id&&(scope.row.status === '5'||scope.row.status === '7'||scope.row.status === '8')" type="text" size="small" @click="invoiceInvalidPush(scope.row)">作废</el-button>
|
|
|
|
+ <el-button v-if="hasPermission('cw_finance:invoice:edit')&&scope.row.createBy.id === $store.state.user.id&&scope.row.status === '6'" type="text" size="small" @click="invoiceInvalidReBack(scope.row)">作废撤回</el-button>
|
|
|
|
+ <el-button v-if="hasPermission('cw_finance:invoice:edit')&&scope.row.createBy.id === $store.state.user.id&&(scope.row.status === '1'||scope.row.status === '3'||scope.row.status === '4')" type="text" size="small" @click="del(scope.row.id)">删除</el-button>
|
|
</template>
|
|
</template>
|
|
</vxe-column>
|
|
</vxe-column>
|
|
</vxe-table>
|
|
</vxe-table>
|
|
@@ -369,6 +369,7 @@
|
|
},
|
|
},
|
|
// 获取数据列表
|
|
// 获取数据列表
|
|
refreshList () {
|
|
refreshList () {
|
|
|
|
+ console.log(this.$store.state.user.id)
|
|
this.loading = true
|
|
this.loading = true
|
|
if (!this.commonJS.isEmpty(this.searchForm.billingDateList)) {
|
|
if (!this.commonJS.isEmpty(this.searchForm.billingDateList)) {
|
|
if (!this.commonJS.isEmpty(this.searchForm.billingDateList[0]) && !this.commonJS.isEmpty(this.searchForm.billingDateList[1])) {
|
|
if (!this.commonJS.isEmpty(this.searchForm.billingDateList[0]) && !this.commonJS.isEmpty(this.searchForm.billingDateList[1])) {
|