|
@@ -68,17 +68,31 @@
|
|
</div>
|
|
</div>
|
|
<div class="btn-box">
|
|
<div class="btn-box">
|
|
<a-button @click="handleCommonCancel" v-if="isCancel">{{ cancelText }}</a-button>
|
|
<a-button @click="handleCommonCancel" v-if="isCancel">{{ cancelText }}</a-button>
|
|
|
|
+ <a-button :loading="spinning" type="primary" @click="handlePrint()">收款打印</a-button>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <!-- 收款打印 -->
|
|
|
|
+ <commonModal
|
|
|
|
+ modalTit="收款打印"
|
|
|
|
+ bodyPadding="10px"
|
|
|
|
+ width="1024px"
|
|
|
|
+ :showFooter="false"
|
|
|
|
+ :openModal="showTipModal"
|
|
|
|
+ @cancel="showTipModal=false">
|
|
|
|
+ <printModel ref="printModel" @cancel="showTipModal=false"></printModel>
|
|
|
|
+ </commonModal>
|
|
</a-spin>
|
|
</a-spin>
|
|
</a-modal>
|
|
</a-modal>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { STable, VSelect } from '@/components'
|
|
import { STable, VSelect } from '@/components'
|
|
|
|
+import commonModal from '@/views/common/commonModal.vue'
|
|
|
|
+import printModel from '../receiptPrint/printModel.vue'
|
|
import { settleReceiptFindBySn } from '@/api/settleReceipt.js'
|
|
import { settleReceiptFindBySn } from '@/api/settleReceipt.js'
|
|
export default {
|
|
export default {
|
|
name: 'VoucherModal',
|
|
name: 'VoucherModal',
|
|
- components: { STable, VSelect },
|
|
|
|
|
|
+ components: { STable, VSelect, commonModal, printModel },
|
|
props: {
|
|
props: {
|
|
openModal: { // 弹框显示状态
|
|
openModal: { // 弹框显示状态
|
|
type: Boolean,
|
|
type: Boolean,
|
|
@@ -100,6 +114,7 @@ export default {
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
isShow: this.openModal, // 是否打开弹框
|
|
isShow: this.openModal, // 是否打开弹框
|
|
|
|
+ showTipModal: false,
|
|
disabled: false,
|
|
disabled: false,
|
|
spinning: false,
|
|
spinning: false,
|
|
detail: null,
|
|
detail: null,
|
|
@@ -126,6 +141,13 @@ export default {
|
|
this.spinning = false
|
|
this.spinning = false
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 收款打印
|
|
|
|
+ handlePrint () {
|
|
|
|
+ this.showTipModal = true
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.$refs.printModel.getData(this.detail, true)
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 删除
|
|
// 删除
|
|
handleDel (row) {
|
|
handleDel (row) {
|
|
|
|
|