|
@@ -16,6 +16,7 @@
|
|
</ws-button>
|
|
</ws-button>
|
|
<ws-button type="primary" v-hasPermission="`report.transportationReport.draw`" @click="handleninvoice">开发票
|
|
<ws-button type="primary" v-hasPermission="`report.transportationReport.draw`" @click="handleninvoice">开发票
|
|
</ws-button>
|
|
</ws-button>
|
|
|
|
+ <ws-button type="primary" @click="exportlist">导出</ws-button>
|
|
<ws-button type="primary" @click="editRecord">记录</ws-button>
|
|
<ws-button type="primary" @click="editRecord">记录</ws-button>
|
|
<!-- v-hasPermission="`report.transportationReport.payment`" -->
|
|
<!-- v-hasPermission="`report.transportationReport.payment`" -->
|
|
</el-col>
|
|
</el-col>
|
|
@@ -425,7 +426,8 @@ import {
|
|
autopaymoney,
|
|
autopaymoney,
|
|
openinvoicelist,
|
|
openinvoicelist,
|
|
submitlogistics,
|
|
submitlogistics,
|
|
- editgrainprice
|
|
|
|
|
|
+ editgrainprice,
|
|
|
|
+ getexport
|
|
// postaudit,
|
|
// postaudit,
|
|
// getselectctcontractno,
|
|
// getselectctcontractno,
|
|
} from '@/model/statisticalReport/index'
|
|
} from '@/model/statisticalReport/index'
|
|
@@ -444,8 +446,9 @@ import {
|
|
import Pagination from '@/components/Pagination'
|
|
import Pagination from '@/components/Pagination'
|
|
import WsUpload from '@/components/WsUpload'
|
|
import WsUpload from '@/components/WsUpload'
|
|
import {
|
|
import {
|
|
- EventBus
|
|
|
|
-} from 'base-core-lib'
|
|
|
|
|
|
+ dayjs,
|
|
|
|
+ EventBus
|
|
|
|
+ } from 'base-core-lib'
|
|
export default {
|
|
export default {
|
|
name: 'viewSpareMoney',
|
|
name: 'viewSpareMoney',
|
|
components: {
|
|
components: {
|
|
@@ -560,6 +563,10 @@ export default {
|
|
paymentScreenshot: '',
|
|
paymentScreenshot: '',
|
|
id: '',
|
|
id: '',
|
|
},
|
|
},
|
|
|
|
+ date: {
|
|
|
|
+ year: dayjs().format('YYYY'),
|
|
|
|
+ month: dayjs().format('MM'),
|
|
|
|
+ },
|
|
carType:'',
|
|
carType:'',
|
|
settlementPrice:0,
|
|
settlementPrice:0,
|
|
amountNotPayable: 0,
|
|
amountNotPayable: 0,
|
|
@@ -588,6 +595,27 @@ export default {
|
|
this.showType = this.isShow
|
|
this.showType = this.isShow
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ async exportlist() {
|
|
|
|
+ if(this.modification.length>0){
|
|
|
|
+ const {
|
|
|
|
+ data
|
|
|
|
+ } = await getexport({
|
|
|
|
+ tranSettlementReportList:this.modification,
|
|
|
|
+ }, {}, {
|
|
|
|
+ responseType: 'blob',
|
|
|
|
+ }).toPromise()
|
|
|
|
+ downloadFile({
|
|
|
|
+ res: data,
|
|
|
|
+ fileName: `${
|
|
|
|
+ this.date.year + (this.date.month ? `-${this.date.month}` : '')
|
|
|
|
+ }_汽运结算`,
|
|
|
|
+ type: 'xls',
|
|
|
|
+ })
|
|
|
|
+ }else{
|
|
|
|
+ this.$message.warning('请勾选要导出的条目')
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ },
|
|
editgrainPrice(){
|
|
editgrainPrice(){
|
|
if(this.grainPricetext=='编辑'){
|
|
if(this.grainPricetext=='编辑'){
|
|
this.grainPricetext='提交'
|
|
this.grainPricetext='提交'
|
|
@@ -1605,28 +1633,6 @@ export default {
|
|
this.historyList = response
|
|
this.historyList = response
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- async exportlist() {
|
|
|
|
- const {
|
|
|
|
- data
|
|
|
|
- } = await export1({
|
|
|
|
- compId: localStorage.getItem('ws-pf_compId'),
|
|
|
|
- contractType: this.contractType,
|
|
|
|
- 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',
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
total() { },
|
|
total() { },
|
|
},
|
|
},
|
|
}
|
|
}
|