|
@@ -187,8 +187,6 @@ import {
|
|
|
import { posthandle } from '@/model/purchasingManagement/index'
|
|
|
import paymentPrint from './component/paymentPrint.vue'
|
|
|
import { getHp } from '@/utils/getHasPermission'
|
|
|
-// import Warehouse from './common.js'
|
|
|
-// import Warehouse from '@/main.js'
|
|
|
export default {
|
|
|
components: { paymentPrint },
|
|
|
watch: {},
|
|
@@ -224,18 +222,6 @@ export default {
|
|
|
},
|
|
|
activated() {
|
|
|
this.userJurisdiction = getHp('acquisitionManagement.acquisitionPay.print')
|
|
|
- // selectWarehouseSelf({
|
|
|
- // compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
- // })
|
|
|
- // .toPromise()
|
|
|
- // .then((response) => {
|
|
|
-
|
|
|
- // this.warehouseList = response
|
|
|
- // this.warehouseNameKey = this.warehouseList[0].id
|
|
|
- // this.warehouseName = this.warehouseList[0].warehouseName
|
|
|
- // this.WAREHOUSE.payname = this.warehouseList[0].warehouseName
|
|
|
- // this.getList()
|
|
|
- // })
|
|
|
this.getWarehouse()
|
|
|
this.getList()
|
|
|
},
|
|
@@ -253,6 +239,7 @@ export default {
|
|
|
that.audit(this.modification[0], 0, true, 2)
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
getWarehouse() {
|
|
|
selectWarehouseSelf({
|
|
@@ -300,28 +287,25 @@ export default {
|
|
|
})
|
|
|
.toPromise()
|
|
|
.then(response => {
|
|
|
- debugger
|
|
|
this.paymentList = response
|
|
|
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
|
|
|
- // }
|
|
|
-
|
|
|
- // }
|
|
|
-
|
|
|
- // })
|
|
|
+ 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) {
|
|
|
this.$confirm(
|