123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="../cdn/element-ui/2.13.2/theme-chalk/index.css">
- <title></title>
- <style>
- table,
- table tr th,
- table tr td {
- border: 2px solid #333333;
- padding: 5px 0;
- }
- #app {
- height: 88vh;
- position: relative;
- }
- .content {
- width: 1000px;
- /* height: 583px; */
- margin: auto;
- /* position: absolute; */
- /* top: -5vh; */
- /* bottom: 0;
- left: 0;
- right: 0; */
- }
- table {
- width: 100%;
- text-align: center;
- border-collapse: collapse;
- border: 3px solid #333333;
- }
- .col-bgc {
- background: #f6f7fb;
- }
- .bottom-row1 {
- display: flex;
- justify-content: space-between;
- margin: 20px 0;
- }
- .bottom-row2 {
- display: flex;
- margin: 10px 0;
- }
- .config {
- margin-right: 240px;
- }
- .bottom-row3 {
- margin: 10px 0;
- }
- .title {
- text-align: center;
- font-size: 24px;
- }
- .number {
- text-align: right;
- margin-bottom: 10px;
- }
- .sign {
- margin-right: 100px;
- }
- .header {
- display: flex;
- justify-content: space-between;
- font-size: 16px;
- margin: 10px 0;
- }
- .header-top {
- display: flex;
- justify-content: space-between;
- }
- .center {
- height: calc(100vh - 8px);
- }
- </style>
- </head>
- <body>
- <div id="app" v-cloak>
- <div v-for="(item,index) in printData">
- <div class="center">
- <div class="title">磅码单</div>
- <div class="title">{{item.code}}</div>
- <table class="table">
- <tr class="row">
- <td class="col col-bgc">单位</td>
- <td class="col" colspan="4">{{item.companyName}}</td>
- <td class="col col-bgc">类型</td>
- <td class="col" colspan="1">{{item.inOutType}}</td>
- <td class="col col-bgc">车牌号</td>
- <td class="col" colspan="1">{{item.carNo}}</td>
- </tr>
- <tr class="row">
- <td class="col col-bgc">仓库</td>
- <td class="col" colspan="4">{{item.warehouseName}}</td>
- <td class="col col-bgc">仓位</td>
- <td class="col" colspan="1">{{item.binNumber}}</td>
- <td class="col col-bgc">货名</td>
- <td class="col" colspan="1">{{item.goodsName}}</td>
- </tr>
- <tr class="row">
- <td class="col col-bgc">毛重(公斤)</td>
- <td class="col" colspan="1">{{item.grossWeight}}</td>
- <td class="col col-bgc">皮重(公斤)</td>
- <td class="col" colspan="2">{{item.tare}}</td>
- <td class="col col-bgc">扣重(公斤)</td>
- <td class="col" colspan="1">{{item.weight}}</td>
- <td class="col col-bgc">净重(公斤)</td>
- <td class="col" colspan="1">{{item.netWeight}}</td>
- </tr>
- </table>
- <div class="bottom">
- <div style='justify-content: space-between;' class="bottom-row1">
- <div class="config">毛检:{{item.secretaryWeigher}}皮检:{{item.skinInspector}}</div>
- <div class="autograph">日期:{{item.inOutDate}}</div>
- </div>
- </div>
- </div>
- </div>
- <div v-for="(item,index) in printData1" :key="index">
- <div class="center">
- <div class="title">中天昊元粮食贸易有限公司结算凭证</div>
- <div class="header">
- <div>单位名称:{{item.compName}}</div>
- </div>
- <div class="header-top">
- <div>单位:公斤/元</div>
- <div>No.</div>
- </div>
- <div class="header-top">
- <div>开票日期:{{item.createDate}}</div>
- <div class="number">{{item.paymentNo}}</div>
- </div>
- <table class="table">
- <tr class="row">
- <td rowspan="4" class="col col-bgc">买方</td>
- <td class="col col-bgc">单位名称</td>
- <td class="col" colspan="3">{{ item.compName}}</td>
- <td rowspan="4" class="col col-bgc">卖方</td>
- <td class="col col-bgc">姓名</td>
- <td class="col" colspan="4">{{ item.customerName}}</td>
- </tr>
- <tr class="row">
- <td class="col col-bgc">税务登记号</td>
- <td class="col" colspan="3">{{ item.taxRegistrationNo}}</td>
- <td class="col col-bgc">身份证号</td>
- <td class="col" colspan="4">{{ item.identityAuthenticationInfo.customerNumberCard}}</td>
- </tr>
- <tr class="row">
- <td class="col col-bgc">业务编号</td>
- <td class="col" colspan="3">{{ item.paymentNo}}</td>
- <td class="col col-bgc">卡号</td>
- <td class="col" colspan="4">
- {{item.identityAuthenticationInfo.bankDeposit}}{{item.identityAuthenticationInfo.bankCard}}</td>
- </tr>
- <tr class="row">
- <td class="col col-bgc">收货仓库</td>
- <td class="col" colspan="3">{{item.warehouseName}}</td>
- <td class="col col-bgc">地址</td>
- <td class="col" colspan="4">{{item.identityAuthenticationInfo.compAddress}}</td>
- </tr>
- <tr class="row">
- <td class="col col-bgc">货名</td>
- <td class="col col-bgc">类型</td>
- <td class="col col-bgc">等级</td>
- <td class="col col-bgc">水分%</td>
- <td class="col col-bgc">杂质%</td>
- <td class="col col-bgc">毛重</td>
- <td class="col col-bgc">皮重</td>
- <td class="col col-bgc">扣重</td>
- <td class="col col-bgc">扣杂</td>
- <td class="col col-bgc">净重</td>
- </tr>
- <tr class="row">
- <td class="col">{{ item.goodsName}}</td>
- <td class="col">{{ item.type}}</td>
- <td class="col">{{ item.qualityInspectionManagement.grade}}</td>
- <td class="col">{{ item.qualityInspectionManagement.waterContent}}</td>
- <td class="col">{{ item.qualityInspectionManagement.impurity}}</td>
- <td class="col">{{ item.grossWeight}}</td>
- <td class="col">{{ item.tare}}</td>
- <td class="col" v-if="item.type == '干粮'">{{item.weighingManagement.buckleMiscellaneous}}</td>
- <td class="col" v-if="item.type == '潮粮'">0</td>
- <td class="col" v-if="item.type == '干粮'">0</td>
- <td class="col" v-if="item.type == '潮粮'">{{item.netWeight}}</td>
- <td class="col">{{item.pureWeight}}</td>
- </tr>
- <tr class="row">
- <td class="col col-bgc" v-if="item.type == '潮粮'">净重单价</td>
- <td class="col col-bgc" v-if="item.type == '干粮'">单价</td>
- <td class="col col-bgc">扣单价</td>
- <td class="col col-bgc">粮款</td>
- <td class="col col-bgc">称重补助</td>
- <td class="col col-bgc">运费补助</td>
- <td class="col col-bgc">卸车补助</td>
- <td class="col col-bgc">其他补助</td>
- <td class="col col-bgc">称重扣款</td>
- <td class="col col-bgc">运费扣款</td>
- <td class="col col-bgc">卸车扣款</td>
- </tr>
- <tr class="row">
- <td class="col " v-if="item.type == '潮粮'">{{item.tidalGrainPrice}}</td>
- <td class="col " v-if="item.type == '干粮'">{{item.qualityInspectionManagement.dryGrainPrice}}</td>
- <td class="col ">{{ item.unitDeduction}}</td>
- <td class="col ">{{ item.grainMoney}}</td>
- <td class="col ">{{ item.weighingSubsidy}}</td>
- <td class="col ">{{ item.freightSubsidy}}</td>
- <td class="col ">{{ item.unloadSubsidy}}</td>
- <td class="col ">{{ item.otherSubsidy}}</td>
- <td class="col ">{{ item.weighingDeduction}}</td>
- <td class="col ">{{ item.freightDeduction}}</td>
- <td class="col ">{{ item.unloadDeduction}}</td>
- </tr>
- <tr class="row">
- <td class="col col-bgc">质量扣款</td>
- <td class="col col-bgc">其他扣款</td>
- <td class="col col-bgc">合计应付</td>
- <td class="col col-bgc">购粮性质</td>
- <td class="col col-bgc">车牌号</td>
- <td class="col col-bgc" colspan="5">记事</td>
- </tr>
- <tr class="row">
- <td class="col ">{{ item.qualityDeduction}}</td>
- <td class="col ">{{ item.otherDeduction}}</td>
- <td class="col ">{{ item.calculationPayable}}</td>
- <td class="col ">{{ item.qualityInspectionManagement.natureOfGrainPurchase}}</td>
- <td class="col ">{{ item.carNo}}</td>
- <td class="col " colspan="5">{{ item.remarks}}</td>
- </tr>
- <tr class="row">
- <td class="col col-bgc" colspan="3">人民币(大写)</td>
- <td class="col " colspan="7">{{item.capitalize}}</td>
- </tr>
- </table>
- <div class="bottom">
- <div class="bottom-row1">
- <div>质检:{{ item.qualityInspectionManagement.qualityInspector}}</div>
- <div>毛检:{{ item.weighingManagement.secretaryWeigher}}</div>
- <div>皮检:{{ item.weighingManagement.skinInspector}}</div>
- <div>结算:{{ item.settlementClerk}}</div>
- <div>付款:{{ item.cashier}}</div>
- <div>复点:{{ }}</div>
- <div></div>
- </div>
- <div class="bottom-row2">
- <!-- <div class="left">
- <img src="../../../../public/img/add.png" alt="" />
- </div> -->
- <div class="config">收货单位签名或盖章</div>
- <div class="">客户签名</div>
- </div>
- <!-- <div class="bottom-row3">扫一扫</div> -->
- <!-- <div class="bottom-row4">
- <el-button type="primary">关闭</el-button>
- <el-button type="primary" @click="printSmall">打印小票</el-button>
- <el-button type="primary" @click="printBig">打印单据</el-button>
- </div> -->
- </div>
- </div>
- </div>
- </div>
- </body>
- <script src="../cdn/vue/2.6.10/vue.min.js"></script>
- <script src="../cdn/element-ui/2.13.2/index.js"></script>
- <script type="text/javascript">
- new Vue({
- el: '#app',
- data: {
- printData: [{
- identityAuthenticationInfo: {},
- qualityInspectionManagement: {},
- weighingManagement: {},
- customerNumberCard: {},
- }],
- printData1: [],
- date: '',
- },
- computed: {},
- methods: {
- dealNo(str) {
- return str.slice(4)
- },
- tableRowClassName({
- row,
- rowIndex
- }) {
- if (rowIndex === 1) {
- return 'warning-row'
- } else if (rowIndex === 3) {
- return 'success-row'
- }
- return ''
- },
- getQueryVariable(variable) {
- var query = window.location.search.substring(1)
- var vars = query.split('&')
- for (var i = 0; i < vars.length; i++) {
- var pair = vars[i].split('=')
- if (pair[0] == variable) {
- return pair[1]
- }
- }
- return false
- },
- printSmall() {},
- printBig() {}
- },
- mounted() {
- this.date = new Date().toLocaleString()
- this.printData = JSON.parse(sessionStorage.getItem('inOutRecord_printBD'))
- this.printData1 = JSON.parse(sessionStorage.getItem('inOutRecord_printJSD'))
- console.log("磅单", this.printData)
- console.log("结算单", this.printData1)
- // document.title = this.printData.compName + '结算凭证'
- window.print()
- window.onafterprint = function(event) {
- window.history.back(-1)
- }
- },
- watch: {}
- })
- </script>
- </html>
|