增加 表头 打印 和行号

This commit is contained in:
杰 朱
2021-09-03 11:30:15 +08:00
parent 0ada5e1ab4
commit ed16762195
8 changed files with 556 additions and 471 deletions

View File

@@ -11790,6 +11790,14 @@
}
}
},
"vue-print-nb": {
"version": "1.7.5",
"resolved": "https://registry.npmjs.org/vue-print-nb/-/vue-print-nb-1.7.5.tgz",
"integrity": "sha512-iNbNyUVRWz0Ha1UTiCKxMPtHLUDGgNI8e8xmD3xqm9RlXIUeX9bT7DgNAfY8vPzqyFRHqGjxLI1rycKH366ziQ==",
"requires": {
"vue": "^2.6.11"
}
},
"vue-router": {
"version": "3.5.1",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.5.1.tgz",

View File

@@ -19,6 +19,7 @@
"vue": "^2.6.11",
"vue-clipboard2": "^0.3.1",
"vue-echarts": "^6.0.0-rc.5",
"vue-print-nb": "^1.7.5",
"vue-router": "^3.5.1",
"xlsx": "^0.16.9"
},

View File

@@ -3,6 +3,7 @@ import App from "./App.vue";
import ViewUI from "view-design";
import "view-design/dist/styles/iview.css";
import VueClipboard from "vue-clipboard2";
//import print from 'vue-print-nb'
// import HelloWorld from "./components/HelloWorld.vue";

File diff suppressed because it is too large Load Diff

View File

@@ -69,6 +69,9 @@
<Modal width="1366" v-model="modal1" title="单据详情" @on-cancel="cancel">
<Button size="large" type="primary" @click="print">打印</Button>
<div id="tb2">
<div class="divHeader">
<Col span="8">{{this.ccode}}</Col>
</div>
<div>
<Row :gutter="16">
<Col span="7">
@@ -81,13 +84,16 @@
</div>
<div>
<Row :gutter="16">
<Col span="8">{{"单据号:"+this.ccode}}</Col>
<Col span="6">
<Col span="4">{{"单据号:"+this.ccode}}</Col>
<Col span="4">
{{"产品编码:"+this.inv_code}}
</Col>
<Col span="4">
<Col span="6">
{{"产品名称:"+this.c_inv_name}}
</Col>
<Col span="2">
{{"拣货员:"}}
</Col>
</Row>
</div>
<Table
@@ -501,6 +507,20 @@ export default {
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style >
@media screen {
div.divHeader {
display: none;
}
}
@media print {
div.divHeader {
position: fixed;
right: 20px;
top: 5x;
z-index: 1;
}
}
h3 {
margin: 40px 0 0;
}