|
@@ -10,10 +10,11 @@
|
|
<template slot="extra" v-if="$hasPermissions('B_cPayment_printAndExport')">
|
|
<template slot="extra" v-if="$hasPermissions('B_cPayment_printAndExport')">
|
|
<div style="margin-top: 5px;">
|
|
<div style="margin-top: 5px;">
|
|
<PrintPanel ref="printBox" @handlePrint="handlePrint">
|
|
<PrintPanel ref="printBox" @handlePrint="handlePrint">
|
|
- <!-- <div style="padding:10px;" slot="extendCons">
|
|
|
|
- <a-checkbox v-model="printTotalKs" :checked="printTotalKs" id="salesQuery-printTotalKs">打印总款数</a-checkbox>
|
|
|
|
- <a-checkbox v-model="printTotalNums" :checked="printTotalNums" id="salesQuery-printTotalNums">打印总数量</a-checkbox>
|
|
|
|
- </div> -->
|
|
|
|
|
|
+ <div style="padding:10px;" slot="extendCons">
|
|
|
|
+ <a-checkbox v-model="remarksFlag" id="salesQuery-remarksFlag">打印备注</a-checkbox>
|
|
|
|
+ <!-- <a-checkbox v-model="printTotalKs" :checked="printTotalKs" id="salesQuery-printTotalKs">打印总款数</a-checkbox> -->
|
|
|
|
+ <!-- <a-checkbox v-model="printTotalNums" :checked="printTotalNums" id="salesQuery-printTotalNums">打印总数量</a-checkbox> -->
|
|
|
|
+ </div>
|
|
</PrintPanel>
|
|
</PrintPanel>
|
|
<a-divider type="vertical" />
|
|
<a-divider type="vertical" />
|
|
<a-button id="salesNewOrderEdit-del-btn" class="button-default" type="link" @click="handleOk([])"><a-icon type="close" />清空单据</a-button>
|
|
<a-button id="salesNewOrderEdit-del-btn" class="button-default" type="link" @click="handleOk([])"><a-icon type="close" />清空单据</a-button>
|
|
@@ -245,6 +246,7 @@ export default {
|
|
enableFundAccount: false,
|
|
enableFundAccount: false,
|
|
printTotalKs: false, // 打印原创编码
|
|
printTotalKs: false, // 打印原创编码
|
|
printTotalNums: false, // 打印全部名称
|
|
printTotalNums: false, // 打印全部名称
|
|
|
|
+ remarksFlag: false // 打印备注
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -284,16 +286,17 @@ export default {
|
|
handlePrint (type, printerType) {
|
|
handlePrint (type, printerType) {
|
|
const _this = this
|
|
const _this = this
|
|
const params = _this.getParams()
|
|
const params = _this.getParams()
|
|
-
|
|
|
|
|
|
+
|
|
_this.spinning = true
|
|
_this.spinning = true
|
|
let url = ''
|
|
let url = ''
|
|
if (type == 'export') { // 导出
|
|
if (type == 'export') { // 导出
|
|
url = settleUnitExport
|
|
url = settleUnitExport
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
url = settleUnitPrint
|
|
url = settleUnitPrint
|
|
// 打印
|
|
// 打印
|
|
// params.printTotalKs = params.printTotalKs ? 1 : 0
|
|
// params.printTotalKs = params.printTotalKs ? 1 : 0
|
|
// params.printTotalNums = params.printTotalNums ? 1 : 0
|
|
// params.printTotalNums = params.printTotalNums ? 1 : 0
|
|
|
|
+ params.remarksFlag = this.remarksFlag ? 1 : 0
|
|
}
|
|
}
|
|
// 打印或导出
|
|
// 打印或导出
|
|
hdPrint(printerType, type, url, params, '单位应收应付', function () {
|
|
hdPrint(printerType, type, url, params, '单位应收应付', function () {
|
|
@@ -412,16 +415,16 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
handleOk (selectedRows) {
|
|
handleOk (selectedRows) {
|
|
- if(selectedRows.length){
|
|
|
|
|
|
+ if (selectedRows.length) {
|
|
this.chooseLoadData = this.chooseLoadData.concat(selectedRows).sort((a, b) => {
|
|
this.chooseLoadData = this.chooseLoadData.concat(selectedRows).sort((a, b) => {
|
|
const at = new Date(a.auditTime).getTime()
|
|
const at = new Date(a.auditTime).getTime()
|
|
const bt = new Date(b.auditTime).getTime()
|
|
const bt = new Date(b.auditTime).getTime()
|
|
return at - bt
|
|
return at - bt
|
|
})
|
|
})
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
this.chooseLoadData = selectedRows
|
|
this.chooseLoadData = selectedRows
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
this.amountSettledChange()
|
|
this.amountSettledChange()
|
|
},
|
|
},
|
|
// 返回列表
|
|
// 返回列表
|
|
@@ -502,6 +505,6 @@ export default {
|
|
color: #ed1c24;
|
|
color: #ed1c24;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|