|
@@ -51,7 +51,7 @@
|
|
|
</a-form>
|
|
|
<!-- 操作按钮 -->
|
|
|
<div class="table-operator" v-if="$hasPermissions('B_SkPrint')">
|
|
|
- <a-button type="primary" @click="handlePlPrint()" class="button-error">批量打印</a-button>
|
|
|
+ <a-button type="primary" :loading="spinning" @click="handlePlPrint()" class="button-error">批量打印</a-button>
|
|
|
<span style="margin-left: 8px">
|
|
|
<template v-if="rowSelectionInfo && rowSelectionInfo.selectedRowKeys.length>0">{{ `已选 ${rowSelectionInfo.selectedRowKeys.length} 项` }}</template>
|
|
|
</span>
|
|
@@ -98,15 +98,7 @@
|
|
|
</s-table>
|
|
|
|
|
|
<!-- 收款打印 -->
|
|
|
- <commonModal
|
|
|
- modalTit="收款打印预览"
|
|
|
- bodyPadding="10px"
|
|
|
- width="1024px"
|
|
|
- :showFooter="false"
|
|
|
- :openModal="showTipModal"
|
|
|
- @cancel="closeTipModal">
|
|
|
- <printModel ref="printModel" @cancel="closeTipModal" @printOk="printOk"></printModel>
|
|
|
- </commonModal>
|
|
|
+ <printModel ref="printModel" @cancel="closeTipModal" @printOk="printOk"></printModel>
|
|
|
<!-- 打印记录 -->
|
|
|
<recordModal v-drag ref="recordModal" modalTit="打印记录" :openModal="showRecordModal" @cancel="showRecordModal=false"></recordModal>
|
|
|
<!-- 操作提示 -->
|
|
@@ -229,6 +221,7 @@ export default {
|
|
|
_this.$message.warning('请在列表勾选后再进行批量操作!')
|
|
|
return false
|
|
|
}
|
|
|
+ this.spinning = true
|
|
|
const bookSns = []
|
|
|
rows.map(item => {
|
|
|
if (bookSns.indexOf(item.bookSn) < 0) {
|
|
@@ -255,6 +248,7 @@ export default {
|
|
|
},
|
|
|
// 收款打印
|
|
|
async handlePrint (row, type, list, bookSns) {
|
|
|
+ this.spinning = true
|
|
|
this.showTipModal = true
|
|
|
let detailItemUseStr = ''
|
|
|
let auditInfo = null
|
|
@@ -272,6 +266,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
printOk () {
|
|
|
+ this.spinning = false
|
|
|
this.$refs.table.refresh()
|
|
|
},
|
|
|
// 时间 change
|
|
@@ -301,6 +296,7 @@ export default {
|
|
|
},
|
|
|
closeTipModal () {
|
|
|
this.showTipModal = false
|
|
|
+ this.spinning = false
|
|
|
this.$refs.printModel.clearData()
|
|
|
},
|
|
|
// 打印记录
|