增加 表头 打印 和行号

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

@@ -50,6 +50,7 @@ namespace NX.ERP.Model
public double shwl { get; set; } public double shwl { get; set; }
public string cPosName { get; set; } public string cPosName { get; set; }
public string invsort { get; set; }
/// <summary> /// <summary>

View File

@@ -328,7 +328,7 @@ SELECT m..mocode,CONVERT(varchar(100), mor.StartDate, 23) as StartDate ,md.Rem
WHEN c.bPurchase <> 1 AND c.bProxyForeign = 1 and c.bself <> 1 THEN '委外' WHEN c.bPurchase <> 1 AND c.bProxyForeign = 1 and c.bself <> 1 THEN '委外'
ELSE '其它' ELSE '其它'
END AS std, ma.Qty qty1, ma.IssQty issqty,(ma.Qty-ma.IssQty) as wll, motype.description, END AS std, ma.Qty qty1, ma.IssQty issqty,(ma.Qty-ma.IssQty) as wll, motype.description,
CASE WHEN md.Status = 2 THEN '锁定' WHEN md.Status = 4 THEN '关闭' WHEN md.Status = 3 THEN '审核' ELSE '新建' END AS st, md.Status,ISNULL(ds.qty, 0) dqty,post.cPosName CASE WHEN md.Status = 2 THEN '锁定' WHEN md.Status = 4 THEN '关闭' WHEN md.Status = 3 THEN '审核' ELSE '新建' END AS st, md.Status,ISNULL(ds.qty, 0) dqty,post.cPosName,ma.SortSeq as invsort
FROM mom_order m WITH (NOLOCK) INNER JOIN FROM mom_order m WITH (NOLOCK) INNER JOIN
mom_orderdetail md WITH (NOLOCK) ON m.MoId = md.MoId INNER JOIN mom_orderdetail md WITH (NOLOCK) ON m.MoId = md.MoId INNER JOIN
mom_morder mor WITH (NOLOCK) ON md.MoDId = mor.MoDId INNER JOIN mom_morder mor WITH (NOLOCK) ON md.MoDId = mor.MoDId INNER JOIN

View File

@@ -333,7 +333,7 @@ FROM
POSITION b WITH ( NOLOCK ) POSITION b WITH ( NOLOCK )
WHERE WHERE
a.iQuantity <> 0 a.iQuantity <> 0
AND a.cPosCode= b.cPosCode AND a.cPosCode= b.cPosCode and a.cPosCode not in ('00701','00801','09001') and a.cWhCode not in (4,5)
) a ) a
WHERE WHERE
b.cinvcode = a.cinvcode b.cinvcode = a.cinvcode

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": { "vue-router": {
"version": "3.5.1", "version": "3.5.1",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.5.1.tgz", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.5.1.tgz",

View File

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

View File

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