|
@@ -196,7 +196,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
|
|
+
|
|
<ReceiptPrint :listItem="queryItem" v-else-if="showDetail == 2" @backListFormDetail="backList" />
|
|
<ReceiptPrint :listItem="queryItem" v-else-if="showDetail == 2" @backListFormDetail="backList" />
|
|
<ReceiptListDetail :detailId="detailId" v-else />
|
|
<ReceiptListDetail :detailId="detailId" v-else />
|
|
<!-- <print-preview ref="preView" /> -->
|
|
<!-- <print-preview ref="preView" /> -->
|
|
@@ -205,7 +205,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-
|
|
|
|
|
|
+
|
|
// import panel from './components/design/panel'
|
|
// import panel from './components/design/panel'
|
|
// import { getDetail, detailArr } from './components/design/print-data'
|
|
// import { getDetail, detailArr } from './components/design/print-data'
|
|
// import printPreview from './components/design/preview.vue'
|
|
// import printPreview from './components/design/preview.vue'
|
|
@@ -259,8 +259,8 @@ export default {
|
|
this.getCustomerDataList();
|
|
this.getCustomerDataList();
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- console.log(this.hiPrintPlugin,'888');
|
|
|
|
- this.hiPrintPlugin.init()
|
|
|
|
|
|
+ console.log(this.$app,'888');
|
|
|
|
+ // this.hiPrintPlugin.init()
|
|
var hiprintTemplate = new this.hiPrintPlugin.PrintTemplate();
|
|
var hiprintTemplate = new this.hiPrintPlugin.PrintTemplate();
|
|
var panel = hiprintTemplate.addPrintPanel({ width: 100, height: 130, paperFooter: 340, paperHeader: 10 });
|
|
var panel = hiprintTemplate.addPrintPanel({ width: 100, height: 130, paperFooter: 340, paperHeader: 10 });
|
|
},
|
|
},
|
|
@@ -273,8 +273,6 @@ export default {
|
|
});
|
|
});
|
|
this.customerList = res.data.records;
|
|
this.customerList = res.data.records;
|
|
},
|
|
},
|
|
-
|
|
|
|
-
|
|
|
|
//合计
|
|
//合计
|
|
getSummaries(param) {
|
|
getSummaries(param) {
|
|
const { columns, data } = param;
|
|
const { columns, data } = param;
|
|
@@ -372,7 +370,7 @@ export default {
|
|
|
|
|
|
// 点击打印
|
|
// 点击打印
|
|
toPrint(row, type) {
|
|
toPrint(row, type) {
|
|
-
|
|
|
|
|
|
+
|
|
panel.addPrintText({ options: { width: 140, height: 15, top: 20, left: 20, title: 'hiprint插件手动添加text', textAlign: 'center' } });
|
|
panel.addPrintText({ options: { width: 140, height: 15, top: 20, left: 20, title: 'hiprint插件手动添加text', textAlign: 'center' } });
|
|
// this.tableSelection = this.$refs.table.selection;
|
|
// this.tableSelection = this.$refs.table.selection;
|
|
if (!type) {
|
|
if (!type) {
|