|
@@ -36,6 +36,8 @@
|
|
<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="invoicingClick" v-if="isShowAdopt"
|
|
<ws-button type="primary" @click="invoicingClick" v-if="isShowAdopt"
|
|
v-hasPermission="`acquisitionManagement.acquisitionPay.finace`">开票</ws-button>
|
|
v-hasPermission="`acquisitionManagement.acquisitionPay.finace`">开票</ws-button>
|
|
|
|
+ <ws-button type="primary" @click="exportlist" v-if="isShowAdopt"
|
|
|
|
+ v-hasPermission="`acquisitionManagement.acquisitionPay.finace`">导出</ws-button>
|
|
<!-- <ws-button type="primary" @click="handlepass" v-if="isShowAdopt">审核</ws-button> -->
|
|
<!-- <ws-button type="primary" @click="handlepass" v-if="isShowAdopt">审核</ws-button> -->
|
|
<ws-button type="primary" @click="payment" v-hasPermission="`acquisitionManagement.acquisitionPay.pay`">付款
|
|
<ws-button type="primary" @click="payment" v-hasPermission="`acquisitionManagement.acquisitionPay.pay`">付款
|
|
</ws-button>
|
|
</ws-button>
|
|
@@ -244,6 +246,16 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
|
|
+import {
|
|
|
|
+ dayjs,
|
|
|
|
+ EventBus
|
|
|
|
+ } from 'base-core-lib'
|
|
|
|
+ import {
|
|
|
|
+ downloadFile
|
|
|
|
+ } from '@/utils/batchDown'
|
|
|
|
+ import {
|
|
|
|
+ export1,
|
|
|
|
+ } from '@/model/contarct/index'
|
|
import {
|
|
import {
|
|
getpayment,
|
|
getpayment,
|
|
selectWarehouseSelf,
|
|
selectWarehouseSelf,
|
|
@@ -328,7 +340,11 @@
|
|
//上传截图路径
|
|
//上传截图路径
|
|
imageUrl: '',
|
|
imageUrl: '',
|
|
payImg: [],
|
|
payImg: [],
|
|
- rowData: {}
|
|
|
|
|
|
+ rowData: {},
|
|
|
|
+ date: {
|
|
|
|
+ year: dayjs().format('YYYY'),
|
|
|
|
+ month: dayjs().format('MM'),
|
|
|
|
+ },
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated() {
|
|
activated() {
|
|
@@ -337,6 +353,34 @@
|
|
// this.getList()
|
|
// this.getList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ async exportlist() {
|
|
|
|
+ console.log('导出数据', this.modification)
|
|
|
|
+ for (let i = 0; i < this.modification.length; i++) {
|
|
|
|
+ let {
|
|
|
|
+ data
|
|
|
|
+ } = await export1({
|
|
|
|
+ compId: sessionStorage.getItem('ws-pf_compId'),
|
|
|
|
+ contractType: this.contractType,
|
|
|
|
+ goodsType: this.goodsType,
|
|
|
|
+ currentPage: this.currentPage,
|
|
|
|
+ pageSize: this.pageSize,
|
|
|
|
+ searchType: this.searchType,
|
|
|
|
+ searchKeyWord: this.searchKeyWord,
|
|
|
|
+ startDate: this.startDate,
|
|
|
|
+ endDate: this.endDate,
|
|
|
|
+ }, {}, {
|
|
|
|
+ responseType: 'blob'
|
|
|
|
+ }).toPromise()
|
|
|
|
+ downloadFile({
|
|
|
|
+ res: data,
|
|
|
|
+ fileName: `${
|
|
|
|
+ this.date.year + (this.date.month ? `-${this.date.month}` : '')
|
|
|
|
+ }结算凭证`,
|
|
|
|
+ type: 'xls',
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ },
|
|
invoicingClick() {
|
|
invoicingClick() {
|
|
// let data = JSON.stringify({
|
|
// let data = JSON.stringify({
|
|
// paymentManagementList : this.modification
|
|
// paymentManagementList : this.modification
|