|
@@ -28,10 +28,10 @@
|
|
<template slot="left">
|
|
<template slot="left">
|
|
<!-- <ws-button type="primary" @click="screen(2)">待结算</ws-button>
|
|
<!-- <ws-button type="primary" @click="screen(2)">待结算</ws-button>
|
|
<ws-button type="primary" @click="screen(0)">待审核</ws-button>
|
|
<ws-button type="primary" @click="screen(0)">待审核</ws-button>
|
|
- <ws-button type="primary" @click="screen()">全部</ws-button>-->
|
|
|
|
- <ws-button :type="searchType == 0 ? 'primary' : ''" @click="screen(0)">待审核</ws-button>
|
|
|
|
|
|
+ <ws-button type="primary" @click="screen()">全部</ws-button> -->
|
|
|
|
+ <ws-button :type="searchType == 0 ? 'primary' : ''" @click="screen(1)" v-if="isShowAdopt" >待审核</ws-button >
|
|
<ws-button :type="searchType == 2 ? 'primary' : ''" @click="screen(2)">待结算</ws-button>
|
|
<ws-button :type="searchType == 2 ? 'primary' : ''" @click="screen(2)">待结算</ws-button>
|
|
- <ws-button :type="searchType == -1 ? 'primary' : ''" @click="screen(-1)">全部</ws-button>
|
|
|
|
|
|
+ <ws-button :type="searchType == -1 ? 'primary' : ''" @click="screen(-1)" >全部</ws-button>
|
|
<ws-button type="primary" @click="reject" v-if="isShowAdopt">驳回</ws-button>
|
|
<ws-button type="primary" @click="reject" v-if="isShowAdopt">驳回</ws-button>
|
|
<ws-button type="primary" @click="adopt" v-if="isShowAdopt">通过</ws-button>
|
|
<ws-button type="primary" @click="adopt" v-if="isShowAdopt">通过</ws-button>
|
|
<!-- <ws-button type="primary" @click="handlepass" v-if="isShowAdopt">审核</ws-button> -->
|
|
<!-- <ws-button type="primary" @click="handlepass" v-if="isShowAdopt">审核</ws-button> -->
|
|
@@ -124,23 +124,23 @@
|
|
<el-table-column class="table_td" prop="collectionEdPayable" label="操作" width="350">
|
|
<el-table-column class="table_td" prop="collectionEdPayable" label="操作" width="350">
|
|
<template scope="scope">
|
|
<template scope="scope">
|
|
<el-button
|
|
<el-button
|
|
- v-show="(!scope.row.approveStatus || scope.row.approveStatus == '待结算')&& scope.row.status == '待结算'"
|
|
|
|
|
|
+ v-if="(!scope.row.approveStatus || scope.row.approveStatus == '待结算')&& scope.row.status == '待结算'"
|
|
@click="settlement(1, scope.row)"
|
|
@click="settlement(1, scope.row)"
|
|
v-hasPermission="`acquisitionManagement.acquisitionPay.add`"
|
|
v-hasPermission="`acquisitionManagement.acquisitionPay.add`"
|
|
>结算</el-button>
|
|
>结算</el-button>
|
|
<el-button
|
|
<el-button
|
|
- v-show="scope.row.approveStatus || scope.row.status == '已驳回'"
|
|
|
|
|
|
+ v-if="scope.row.approveStatus || scope.row.status == '已驳回'"
|
|
@click="settlement(2, scope.row)"
|
|
@click="settlement(2, scope.row)"
|
|
v-hasPermission="`acquisitionManagement.acquisitionPay.view`"
|
|
v-hasPermission="`acquisitionManagement.acquisitionPay.view`"
|
|
>查看</el-button>
|
|
>查看</el-button>
|
|
<el-button
|
|
<el-button
|
|
- v-show="scope.row.approveStatus || (scope.row.status != '待结算'&& !scope.row.approveStatus) "
|
|
|
|
|
|
+ v-if="scope.row.approveStatus || (scope.row.status != '待结算'&& !scope.row.approveStatus) "
|
|
@click="print(scope.row)"
|
|
@click="print(scope.row)"
|
|
v-hasPermission="`acquisitionManagement.acquisitionPay.print`"
|
|
v-hasPermission="`acquisitionManagement.acquisitionPay.print`"
|
|
>打印</el-button>
|
|
>打印</el-button>
|
|
<el-button
|
|
<el-button
|
|
type="danger"
|
|
type="danger"
|
|
- v-show="(!scope.row.approveStatus || scope.row.approveStatus == '待结算')&& scope.row.status == '待结算'"
|
|
|
|
|
|
+ v-if="(!scope.row.approveStatus || scope.row.approveStatus == '待结算')&& scope.row.status == '待结算'"
|
|
@click="del(scope.row)"
|
|
@click="del(scope.row)"
|
|
v-hasPermission="`acquisitionManagement.acquisitionPay.delete`"
|
|
v-hasPermission="`acquisitionManagement.acquisitionPay.delete`"
|
|
>删除</el-button>
|
|
>删除</el-button>
|
|
@@ -384,19 +384,25 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
getWarehouse() {
|
|
getWarehouse() {
|
|
|
|
+ let _wareHouse = sessionStorage.getItem('houseSelfCollect_house')
|
|
|
|
+ _wareHouse = JSON.parse(_wareHouse)
|
|
selectWarehouseSelf({
|
|
selectWarehouseSelf({
|
|
compId: sessionStorage.getItem('ws-pf_compId')
|
|
compId: sessionStorage.getItem('ws-pf_compId')
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then(response => {
|
|
.then(response => {
|
|
this.warehouseList = response
|
|
this.warehouseList = response
|
|
- console.log(this.WAREHOUSE[3].payname)
|
|
|
|
- this.warehouseNameKey = this.warehouseList[0].id
|
|
|
|
- if (this.warehouseName) {
|
|
|
|
- this.warehouseNameKey = this.WAREHOUSE[3].payname
|
|
|
|
|
|
+ if (_wareHouse) {
|
|
|
|
+ this.warehouseNameKey = _wareHouse.id
|
|
|
|
+ this.warehouseName = _wareHouse.warehouseName
|
|
} else {
|
|
} else {
|
|
- this.WAREHOUSE[3].payname = this.warehouseList[0].id
|
|
|
|
- this.warehouseName = this.warehouseList[0].warehouseName
|
|
|
|
|
|
+ this.warehouseNameKey = this.warehouseList[0].id
|
|
|
|
+ if (this.warehouseName) {
|
|
|
|
+ this.warehouseNameKey = this.WAREHOUSE[3].payname
|
|
|
|
+ } else {
|
|
|
|
+ this.WAREHOUSE[3].payname = this.warehouseList[0].id
|
|
|
|
+ this.warehouseName = this.warehouseList[0].warehouseName
|
|
|
|
+ }
|
|
}
|
|
}
|
|
this.getList()
|
|
this.getList()
|
|
})
|
|
})
|
|
@@ -444,22 +450,22 @@ export default {
|
|
this.paymentList = response
|
|
this.paymentList = response
|
|
this.deptBudgetTotal = response.total
|
|
this.deptBudgetTotal = response.total
|
|
})
|
|
})
|
|
- this.isShowAdopt = true
|
|
|
|
- getpayment({
|
|
|
|
- currentPage: 1,
|
|
|
|
- pageSize: 99999,
|
|
|
|
- warehouseName: this.warehouseName,
|
|
|
|
- managementType: 1
|
|
|
|
- })
|
|
|
|
- .toPromise()
|
|
|
|
- .then(response => {
|
|
|
|
- for (let i = 0; i < response.length; i++) {
|
|
|
|
- if (response[i].taskId) {
|
|
|
|
- this.isShowAdopt = true
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ this.isShowAdopt = true
|
|
|
|
+ // getpayment({
|
|
|
|
+ // currentPage: 1,
|
|
|
|
+ // pageSize: 99999,
|
|
|
|
+ // warehouseName: this.warehouseName,
|
|
|
|
+ // managementType : 1
|
|
|
|
+ // })
|
|
|
|
+ // .toPromise()
|
|
|
|
+ // .then((response) => {
|
|
|
|
+ // for(let i = 0 ; i < response.length ; i++){
|
|
|
|
+ // if(response[i].taskId){
|
|
|
|
+ // this.isShowAdopt = true
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
},
|
|
},
|
|
del(row) {
|
|
del(row) {
|
|
this.$confirm(
|
|
this.$confirm(
|
|
@@ -711,6 +717,7 @@ export default {
|
|
for (let i = 0; i < this.warehouseList.length; i++) {
|
|
for (let i = 0; i < this.warehouseList.length; i++) {
|
|
if (this.warehouseList[i].id == this.warehouseNameKey) {
|
|
if (this.warehouseList[i].id == this.warehouseNameKey) {
|
|
this.warehouseName = this.warehouseList[i].warehouseName
|
|
this.warehouseName = this.warehouseList[i].warehouseName
|
|
|
|
+ sessionStorage.setItem('houseSelfCollect_house',JSON.stringify(this.warehouseList[i]))
|
|
this.WAREHOUSE[3].payname = this.warehouseList[i].id
|
|
this.WAREHOUSE[3].payname = this.warehouseList[i].id
|
|
}
|
|
}
|
|
}
|
|
}
|