|
@@ -13,7 +13,7 @@
|
|
|
<template slot="right">
|
|
|
<el-select
|
|
|
v-model="warehouseNameKey"
|
|
|
- placeholder="请选择"
|
|
|
+ placeholder="请选择仓库"
|
|
|
@change="warehouseChange"
|
|
|
style="margin:0 10px"
|
|
|
>
|
|
@@ -246,6 +246,8 @@ 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: {},
|
|
@@ -258,7 +260,6 @@ export default {
|
|
|
deptCircularPage: {},
|
|
|
deptBudgetTotal: 0,
|
|
|
paymentForm: false,
|
|
|
- taskTypeList: ['一号库'],
|
|
|
searchType: '',
|
|
|
searchTypeText: '',
|
|
|
searchKeyWord: '',
|
|
@@ -281,7 +282,26 @@ export default {
|
|
|
},
|
|
|
activated() {
|
|
|
this.userJurisdiction = getHp('acquisitionManagement.acquisitionPay.print')
|
|
|
- selectWarehouseSelf({
|
|
|
+ // 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.warehouseName = this.WAREHOUSE.payname
|
|
|
+ console.log(this.WAREHOUSE.payname)
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ getWarehouse(){
|
|
|
+ selectWarehouseSelf({
|
|
|
compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
})
|
|
|
.toPromise()
|
|
@@ -289,21 +309,19 @@ export default {
|
|
|
this.warehouseList = response
|
|
|
this.warehouseNameKey = this.warehouseList[0].id
|
|
|
this.warehouseName = this.warehouseList[0].warehouseName
|
|
|
- this.getList()
|
|
|
+ // this.getList()
|
|
|
})
|
|
|
- },
|
|
|
- methods: {
|
|
|
+
|
|
|
+ },
|
|
|
//上传付款截图
|
|
|
handleAvatarSuccess(e) {
|
|
|
this.imageUrl = e.url
|
|
|
},
|
|
|
printSmall() {
|
|
|
window.open('../../../../../static/payprint.html?type=1&dataList=' +JSON.stringify(this.printData))
|
|
|
-
|
|
|
},
|
|
|
printBig() {
|
|
|
window.open('../../../../../static/payprint.html?type=2&dataList=' +JSON.stringify(this.printData),"结算凭证")
|
|
|
-
|
|
|
},
|
|
|
getList() {
|
|
|
getpayment({
|
|
@@ -318,6 +336,7 @@ export default {
|
|
|
.then((response) => {
|
|
|
this.paymentList = response
|
|
|
this.deptBudgetTotal = response.total
|
|
|
+ this.WAREHOUSE.payname = this.warehouseName
|
|
|
})
|
|
|
},
|
|
|
del(row) {
|
|
@@ -565,6 +584,7 @@ export default {
|
|
|
for (let i = 0; i < this.warehouseList.length; i++) {
|
|
|
if (this.warehouseList[i].id == this.warehouseNameKey) {
|
|
|
this.warehouseName = this.warehouseList[i].warehouseName
|
|
|
+ this.WAREHOUSE.payname = this.warehouseList[i].warehouseName
|
|
|
}
|
|
|
}
|
|
|
this.getList()
|