|
@@ -178,8 +178,8 @@
|
|
scope.row.status == '已付款' &&
|
|
scope.row.status == '已付款' &&
|
|
!scope.row.approveStatus)
|
|
!scope.row.approveStatus)
|
|
" @click="accomplish(scope.row)" type="primary">完成</el-button>
|
|
" @click="accomplish(scope.row)" type="primary">完成</el-button>
|
|
- <el-button v-if="scope.row.status == '已驳回'" @click="edit(scope.row)" type="primary">编辑</el-button>
|
|
|
|
- <!-- <el-button v-if='scope.row.status=="已驳回"' @click="expenseedit(scope.row)" type="primary">编辑</el-button> -->
|
|
|
|
|
|
+ <el-button v-if="scope.row.approveStatus && scope.row.approveStatus !='发起人撤回' " @click="withdraw(scope.row)" type="primary">撤回</el-button>
|
|
|
|
+ <el-button v-if="scope.row.status == '已驳回' || scope.row.approveStatus == '发起人撤回'" @click="edit(scope.row)" type="primary">编辑</el-button>
|
|
<el-button v-if="
|
|
<el-button v-if="
|
|
(!scope.row.distributionStatus &&
|
|
(!scope.row.distributionStatus &&
|
|
scope.row.expensesPurpose == 1 &&
|
|
scope.row.expensesPurpose == 1 &&
|
|
@@ -302,7 +302,8 @@ import {
|
|
editexenseinfo,
|
|
editexenseinfo,
|
|
getAuditRecord,
|
|
getAuditRecord,
|
|
getfielfillinginfo,
|
|
getfielfillinginfo,
|
|
- getXialaList
|
|
|
|
|
|
+ getXialaList,
|
|
|
|
+ sponsorWithdraw
|
|
} from '@/model/profitable/index'
|
|
} from '@/model/profitable/index'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
@@ -345,23 +346,23 @@ export default {
|
|
choiceObj: [],
|
|
choiceObj: [],
|
|
costChoice: [
|
|
costChoice: [
|
|
{
|
|
{
|
|
- name: "合同费用",
|
|
|
|
|
|
+ name: '合同费用',
|
|
id: 1
|
|
id: 1
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- name: "库点费用",
|
|
|
|
|
|
+ name: '库点费用',
|
|
id: 2
|
|
id: 2
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- name: "经营性费用",
|
|
|
|
|
|
+ name: '经营性费用',
|
|
id: 3
|
|
id: 3
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- name: "运费",
|
|
|
|
|
|
+ name: '运费',
|
|
id: 4
|
|
id: 4
|
|
},
|
|
},
|
|
{
|
|
{
|
|
- name: "其他",
|
|
|
|
|
|
+ name: '其他',
|
|
id: 5
|
|
id: 5
|
|
}
|
|
}
|
|
],
|
|
],
|
|
@@ -378,6 +379,22 @@ export default {
|
|
this.xiala()
|
|
this.xiala()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ withdraw(row) {
|
|
|
|
+ this.$confirm(`撤回成功后,可再次提交,确定撤回吗?`, {
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ }).then(() => {
|
|
|
|
+ sponsorWithdraw({
|
|
|
|
+ workflowId: row.workflowId,
|
|
|
|
+ businessKey: row.id,
|
|
|
|
+ }).toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.$message.success('撤回成功')
|
|
|
|
+ this.getList()
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ },
|
|
xiala(){
|
|
xiala(){
|
|
|
|
|
|
//搜索框下拉数据
|
|
//搜索框下拉数据
|
|
@@ -385,7 +402,7 @@ export default {
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
startDate: this.startDate,
|
|
startDate: this.startDate,
|
|
endDate: this.endDate,
|
|
endDate: this.endDate,
|
|
- searchKeyWord: "",
|
|
|
|
|
|
+ searchKeyWord: '',
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
pageSize: 9999,
|
|
pageSize: 9999,
|
|
})
|
|
})
|
|
@@ -406,7 +423,7 @@ export default {
|
|
}else if(this.flowToList[i].expensesPurpose == 1){
|
|
}else if(this.flowToList[i].expensesPurpose == 1){
|
|
this.flowToList[i].flowTo = this.flowToList[i].contractNo
|
|
this.flowToList[i].flowTo = this.flowToList[i].contractNo
|
|
}else if(this.flowToList[i].expensesPurpose == 5){
|
|
}else if(this.flowToList[i].expensesPurpose == 5){
|
|
- this.flowToList[i].flowTo = "中天昊元"
|
|
|
|
|
|
+ this.flowToList[i].flowTo = '中天昊元'
|
|
}else if(this.flowToList[i].expensesPurpose == 2){
|
|
}else if(this.flowToList[i].expensesPurpose == 2){
|
|
this.flowToList[i].flowTo = this.flowToList[i].contractNo
|
|
this.flowToList[i].flowTo = this.flowToList[i].contractNo
|
|
}
|
|
}
|
|
@@ -770,12 +787,12 @@ export default {
|
|
pageSize: this.pageSize,
|
|
pageSize: this.pageSize,
|
|
searchType: this.searchType,
|
|
searchType: this.searchType,
|
|
expensesPurpose: this.expensesPurpose,
|
|
expensesPurpose: this.expensesPurpose,
|
|
- costNo:this.costNo.length>0?this.costNo.toString():"",
|
|
|
|
- purpose:this.purpose.length>0?this.purpose.toString():"",
|
|
|
|
- expenseName:this.expenseName.length>0?this.expenseName.toString():"",
|
|
|
|
- unallocatedNumber:this.unallocatedAmount.length>0?this.unallocatedAmount.toString():"",
|
|
|
|
- agent:this.agent.length>0?this.agent.toString():"",
|
|
|
|
- flowTo:this.flowTo.length>0?this.flowTo.toString():"",
|
|
|
|
|
|
+ costNo:this.costNo.length>0?this.costNo.toString():'',
|
|
|
|
+ purpose:this.purpose.length>0?this.purpose.toString():'',
|
|
|
|
+ expenseName:this.expenseName.length>0?this.expenseName.toString():'',
|
|
|
|
+ unallocatedNumber:this.unallocatedAmount.length>0?this.unallocatedAmount.toString():'',
|
|
|
|
+ agent:this.agent.length>0?this.agent.toString():'',
|
|
|
|
+ flowTo:this.flowTo.length>0?this.flowTo.toString():'',
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|