增加 表头 打印 和行号
This commit is contained in:
@@ -50,7 +50,8 @@ namespace NX.ERP.Model
|
||||
public double shwl { get; set; }
|
||||
public string cPosName { get; set; }
|
||||
|
||||
|
||||
public string invsort { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
|
||||
@@ -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 '委外'
|
||||
ELSE '其它'
|
||||
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
|
||||
mom_orderdetail md WITH (NOLOCK) ON m.MoId = md.MoId INNER JOIN
|
||||
mom_morder mor WITH (NOLOCK) ON md.MoDId = mor.MoDId INNER JOIN
|
||||
|
||||
@@ -333,7 +333,7 @@ FROM
|
||||
POSITION b WITH ( NOLOCK )
|
||||
WHERE
|
||||
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
|
||||
WHERE
|
||||
b.cinvcode = a.cinvcode
|
||||
|
||||
8
NX.ERP.Webapp/package-lock.json
generated
8
NX.ERP.Webapp/package-lock.json
generated
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
},
|
||||
|
||||
@@ -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
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user