|
@@ -43,7 +43,7 @@
|
|
<script>
|
|
<script>
|
|
import pdf from 'vue-pdf-signature'
|
|
import pdf from 'vue-pdf-signature'
|
|
import CMapReaderFactory from 'vue-pdf-signature/src/CMapReaderFactory.js'
|
|
import CMapReaderFactory from 'vue-pdf-signature/src/CMapReaderFactory.js'
|
|
-import { hasExitTaskByName, pdfPrint } from '@/libs/JGPrint'
|
|
|
|
|
|
+import { pdfPrint } from '@/libs/JGPrint'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
pdf
|
|
pdf
|
|
@@ -121,23 +121,19 @@ export default {
|
|
// 确定
|
|
// 确定
|
|
handleCommonOk () {
|
|
handleCommonOk () {
|
|
const _this = this
|
|
const _this = this
|
|
- // 判断当前单据是否已经正在打印中
|
|
|
|
- hasExitTaskByName(function () {
|
|
|
|
- const isDefault = _this.$store.state.app.printUseDefault
|
|
|
|
- if (isDefault == '0') {
|
|
|
|
- // 选择打印机
|
|
|
|
- _this.$store.commit('SET_showSelectPrint', true)
|
|
|
|
- } else {
|
|
|
|
- pdfPrint(_this.$store.state.app.pdfPrintList, 0)
|
|
|
|
- }
|
|
|
|
- _this.$emit('ok')
|
|
|
|
- })
|
|
|
|
|
|
+ const isDefault = _this.$store.state.app.printUseDefault
|
|
|
|
+ if (isDefault == '0') {
|
|
|
|
+ // 选择打印机
|
|
|
|
+ _this.$store.commit('SET_showSelectPrint', true)
|
|
|
|
+ } else {
|
|
|
|
+ pdfPrint(_this.$store.state.app.pdfPrintList, 0)
|
|
|
|
+ }
|
|
|
|
+ _this.$emit('ok')
|
|
},
|
|
},
|
|
// 取消
|
|
// 取消
|
|
handleCommonCancel () {
|
|
handleCommonCancel () {
|
|
this.isShow = false
|
|
this.isShow = false
|
|
this.pdfList = []
|
|
this.pdfList = []
|
|
- console.log('6-6-6')
|
|
|
|
this.$store.commit('SET_pdfPrintList', [])
|
|
this.$store.commit('SET_pdfPrintList', [])
|
|
this.$store.commit('SET_showPdfPrint', false)
|
|
this.$store.commit('SET_showPdfPrint', false)
|
|
this.$emit('cancel')
|
|
this.$emit('cancel')
|