123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467 |
- <!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;
- height: 37px;
- }
- body {
- margin: 0;
- }
- #app {
- /* height: 98vh;
- position: relative; */
- }
- .content {
- width: 1000px;
- padding: 30px 20px 20px 20px;
- font-size: 18px;
- /* height: 630px; */
- height: 90vh;
- position: relative;
- margin: auto;
- }
- .a5-content {
- height: 130vh;
- }
- 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-top: 5px 0;
- }
- .bottom-row2 {
- display: flex;
- }
- img,
- .left {
- width: 120px;
- height: 120px;
- position: absolute;
- left: 12px;
- top: 10px;
- }
- .config {
- margin-top: 10px;
- margin-right: 240px;
- }
- .autograph {
- margin-top: 10px;
- margin-right: 170px;
- }
- .bottom-row3 {
- margin: 10px 0;
- }
- .title {
- text-align: center;
- font-size: 36px;
- font-weight: 500;
- position: relative;
- /* margin-top: 47px; */
- }
- .number {
- text-align: right;
- margin-bottom: 10px;
- margin-top: 30px;
- }
- .small-row {
- display: flex;
- }
- .small-content {
- width: 300px;
- /* margin: 0 auto;
- border: 1px solid #ccc;
- padding: 20px 20px 160px 20px;
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- margin: auto; */
- }
- .small-title {
- text-align: center;
- font-size: 18px;
- /* display: flex; */
- justify-content: space-between;
- align-items: center;
- }
- .numberNo {
- font-size: 36px;
- margin: auto;
- }
- .small-row {
- display: flex;
- justify-content: space-between;
- margin: 10px;
- }
- .small-img {
- margin-right: 0;
- }
- .sign {
- margin-right: 100px;
- }
- .small-code {
- position: relative;
- left: calc(50% - 55px)
- }
- </style>
- </head>
- <body>
- <div id="app" v-cloak>
- <div class="content" v-if="isShowPrintType3&&!isShowPrintType6">
- <!-- <div class="title">{{item.customer}}</div> -->
- <div class="title">入库检斤单</div>
- <div class="left">
- <!-- <img :src="item.codeUrl" alt=""> -->
- </div>
- <div class="number">{{printData.dryNumber}}</div>
- <table class="table">
- <tr class="row">
- <td colspan="3" class="col col-bgc">发货单位</td>
- <td class="col" colspan="3">{{print_company_name}}</td>
- <td class="col col-bgc">车牌号</td>
- <td class="col">{{printData.carNo}}</td>
- </tr>
- <tr class="row">
- <td colspan="3" class="col col-bgc">收货仓库</td>
- <td class="col" colspan="5"
- v-if="print_company_name!='白城市鹏羽粮食贸易有限公司'&&print_company_name!='黑龙江省包谷粮食购销有限责任公司'">
- {{print_company_name}}</td>
- <td class="col" colspan="5" v-else>北京天维康油脂调销中心有限公司</td>
- </tr>
- <tr class="row">
- <td class="col col-bgc">货名</td>
- <td class="col">{{printData.goodsName}}</td>
- <td class="col col-bgc">类型</td>
- <td class="col">干粮</td>
- <td class="col col-bgc">{{printData.goodsName != '大豆' ? '容重(克/升)' : '蛋白'}}</td>
- <td v-if="print_company_name!='白城市鹏羽粮食贸易有限公司'&&print_company_name!='黑龙江省包谷粮食购销有限责任公司'" class="col">
- </td>
- <td v-else-if="print_company_name=='白城市鹏羽粮食贸易有限公司'" class="col">
- 685
- </td>
- <td v-else-if="print_company_name=='黑龙江省包谷粮食购销有限责任公司'" class="col">
- 676
- </td>
- <td class="col col-bgc">不完善粒(%)</td>
- <td v-if="print_company_name!='白城市鹏羽粮食贸易有限公司'&&print_company_name!='黑龙江省包谷粮食购销有限责任公司'" class="col">
- </td>
- <td v-else class="col">
- 6
- </td>
- </tr>
- <tr class="row">
- <td class="col col-bgc">等级</td>
- <td v-if="print_company_name!='白城市鹏羽粮食贸易有限公司'&&print_company_name!='黑龙江省包谷粮食购销有限责任公司'" class="col">
- </td>
- <td v-else class="col">三等</td>
- <td class="col col-bgc">水分(%)</td>
- <td v-if="print_company_name!='白城市鹏羽粮食贸易有限公司'&&print_company_name!='黑龙江省包谷粮食购销有限责任公司'" class="col">
- </td>
- <td v-else class="col">14.5</td>
- <td class="col col-bgc">热损伤(%)</td>
- <td v-if="print_company_name!='白城市鹏羽粮食贸易有限公司'&&print_company_name!='黑龙江省包谷粮食购销有限责任公司'" class="col">
- </td>
- <td v-else class="col">0</td>
- <td class="col col-bgc">检斤时间</td>
- <td class="col">
- {{printData.updateDate}}
- </td>
- </tr>
- <tr class="row">
- <td class="col col-bgc">杂质(%)</td>
- <td v-if="print_company_name!='白城市鹏羽粮食贸易有限公司'&&print_company_name!='黑龙江省包谷粮食购销有限责任公司'" class="col">
- </td>
- <td v-else class="col">1</td>
- <td class="col col-bgc">霉变粒(%)</td>
- <td v-if="print_company_name!='白城市鹏羽粮食贸易有限公司'&&print_company_name!='黑龙江省包谷粮食购销有限责任公司'" class="col">
- </td>
- <td v-else class="col">1</td>
- <td class="col col-bgc">扣杂</td>
- <td v-if="print_company_name!='白城市鹏羽粮食贸易有限公司'&&print_company_name!='黑龙江省包谷粮食购销有限责任公司'" class="col">
- </td>
- <td v-else class="col">0</td>
- <td class="col col-bgc">仓位号</td>
- <td v-if="print_company_name!='白城市鹏羽粮食贸易有限公司'&&print_company_name!='黑龙江省包谷粮食购销有限责任公司'" class="col">
- {{printData.binNumber}}</td>
- <td v-else-if="print_company_name=='白城市鹏羽粮食贸易有限公司'" class="col">{{printData.binNumber}}</td>
- <td v-else-if="print_company_name=='黑龙江省包谷粮食购销有限责任公司'" class="col">{{printData.binNumber}}</td>
- </tr>
- <tr class="row">
- <td class="col col-bgc">毛重(公斤)</td>
- <td class="col">{{printData.grossWeight}}</td>
- <td class="col col-bgc">皮重(公斤)</td>
- <td class="col">{{printData.tare}}</td>
- <td class="col col-bgc">扣重(公斤)</td>
- <td style="width:50px;" class="col">0</td>
- <td class="col col-bgc">净重(公斤)</td>
- <td class="col">{{printData.netWeight}}</td>
- <!-- <td class="col " colspan="2"></td> -->
- </tr>
- </table>
- <div class="bottom">
- <div class="bottom-row1">
- <div>检斤:{{printData.weigher}}</div>
- <!-- <div>{{tableData.qualityDate}}</div> -->
- </div>
- <div class="bottom-row2">
- <!-- <div class="left">
- <img :src="item.codeUrl" alt="">
- </div> -->
- <div class="config" v-if="printData.warehouseName!='白城补数据'">收货单位签名或盖章:</div>
- <div class="config" v-if="printData.warehouseName=='白城补数据'">收货单位签名或盖章:黑龙江中天昊元贸易有限公司</div>
- <div class="autograph" v-if="printData.warehouseName!='白城补数据'">司机签名:</div>
- </div>
- <!-- <div class="bottom-row3">扫一扫</div> -->
- </div>
- </div>
- <div class="content" v-if="isShowPrintType3&&printData.extra2||isShowPrintType6">
- <!-- <div class="title">{{item.customer}}</div> -->
- <div class="title">入库检斤单</div>
- <div class="left">
- <!-- <img :src="item.codeUrl" alt=""> -->
- </div>
- <div class="number">{{printData.dryNumber}}</div>
- <table class="table">
- <!-- <tr class="row">
- <td class="col col-bgc">发货单位</td>
- <td class="col" colspan="2" >{{print_customer_name_ew}}</td>
- <td class="col col-bgc">联系电话</td>
- <td class="col" ></td>
- <td class="col col-bgc">车牌号</td>
- <td class="col" colspan="2">{{printData.carNo}}</td>
- </tr>
- <tr class="row">
- <td class="col col-bgc">收货单位</td>
- <td class="col" colspan="2">{{print_company_name_ew}}</td>
- <td class="col col-bgc">联系人</td>
- <td class="col"></td>
- <td class="col col-bgc">联系电话</td>
- <td class="col" colspan="2"></td>
- </tr> -->
- <tr class="row">
- <td colspan="3" class="col col-bgc">发货单位</td>
- <td class="col" colspan="3">{{print_customer_name_ew}}</td>
- <td class="col col-bgc">车牌号</td>
- <td class="col">{{printData.carNo}}</td>
- </tr>
- <tr class="row">
- <td colspan="3" class="col col-bgc">收货单位</td>
- <td class="col" colspan="5">{{print_company_name_ew}}</td>
- </tr>
- <tr class="row">
- <td class="col col-bgc">货名</td>
- <td class="col">{{printData.goodsName}}</td>
- <td class="col col-bgc">类型</td>
- <td class="col">干粮</td>
- <td class="col col-bgc">{{printData.goodsName != '大豆' ? '容重(克/升)' : '蛋白'}}</td>
- <td class="col">
- </td>
- <td class="col col-bgc">不完善粒(%)</td>
- <td class="col">
- </td>
- </tr>
- <tr class="row">
- <td class="col col-bgc">等级</td>
- <td class="col"></td>
- <td class="col col-bgc">水分(%)</td>
- <td class="col"></td>
- <td class="col col-bgc">热损伤(%)</td>
- <td class="col"></td>
- <td class="col col-bgc">检斤时间</td>
- <td class="col">
- {{printData.updateDate}}
- </td>
- </tr>
- <tr class="row">
- <td class="col col-bgc">杂质(%)</td>
- <td class="col"></td>
- <td class="col col-bgc">霉变粒(%)</td>
- <td class="col"></td>
- <td class="col col-bgc">扣杂</td>
- <td class="col"></td>
- <td class="col col-bgc">仓位号</td>
- <td class="col">{{printData.binNumber}}</td>
- </tr>
- <tr class="row">
- <td class="col col-bgc">毛重(公斤)</td>
- <td class="col">{{printData.grossWeight}}</td>
- <td class="col col-bgc">皮重(公斤)</td>
- <td class="col">{{printData.tare}}</td>
- <td class="col col-bgc">扣重(公斤)</td>
- <td style="width:50px;" class="col">0</td>
- <td class="col col-bgc">净重(公斤)</td>
- <td class="col">{{printData.netWeight}}</td>
- <!-- <td class="col " colspan="2"></td> -->
- </tr>
- </table>
- <div class="bottom">
- <div class="bottom-row1">
- <div>检斤:{{printData.weigher}}</div>
- <!-- <div>{{tableData.qualityDate}}</div> -->
- </div>
- <div class="bottom-row2">
- <!-- <div class="left">
- <img :src="item.codeUrl" alt="">
- </div> -->
- <div class="config" v-if="printData.warehouseName!='白城补数据'">收货单位签名或盖章:</div>
- <div class="config" v-if="printData.warehouseName=='白城补数据'">收货单位签名或盖章:黑龙江中天昊元贸易有限公司</div>
- <div class="autograph" v-if="printData.warehouseName!='白城补数据'">司机签名:</div>
- </div>
- <!-- <div class="bottom-row3">扫一扫</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: {
- isShowPrintType1: false,
- isShowPrintType2: false,
- isShowPrintType3: false,
- isShowPrintType4: false,
- isShowPrintType5: false,
- isShowPrintType6: false,
- showType: [],
- printData: {},
- printData1: [],
- customerList: {},
- customerList1: [],
- name: '',
- bigContent: false,
- smallContent: false,
- date: '',
- imageUrl1: '',
- imageUrl2: '',
- imageUrl3: '',
- imageUrl4: '',
- identity: [],
- bank: [],
- selectPrint: false,
- onlyShowPz: false,
- tableData: [],
- compId: '',
- print_company_name: '',
- print_company_name_ew: '',
- print_customer_name_ew: '',
- pengyuPrint: 'false'
- },
- computed: {},
- methods: {
- dealNo(str) {
- console.log(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() {
- if (localStorage.getItem('print_company_name')) {
- this.print_company_name = localStorage.getItem('print_company_name')
- }
- if (localStorage.getItem('print_company_name_ew')) {
- this.print_company_name_ew = localStorage.getItem('print_company_name_ew')
- }
- if (localStorage.getItem('print_customer_name_ew')) {
- this.print_customer_name_ew = localStorage.getItem('print_customer_name_ew')
- }
- //公司id
- this.compId = localStorage.getItem('ws-pf_compId')
- if (this.compId == 'd4031a7c77694a749058ec87da1a4ff1') {
- this.compId = '6a713699e08c4cbc97a87f7648a95e3d'
- }
- if (localStorage.getItem('print_alone_extra') == 'true') {
- this.isShowPrintType6 = true
- } else {
- this.isShowPrintType3 = true
- }
- this.date = new Date().toLocaleString()
- // let _data = decodeURIComponent(this.getQueryVariable('dataList'))
- this.printData = JSON.parse(localStorage.getItem('printdrydata'))
- if (this.printData.compName == undefined) this.printData.compName = ''
- document.title = this.printData.compName + '结算凭证'
- window.print()
- // sessionStorage.removeItem('selectPrint_selectPrintList');
- // sessionStorage.removeItem('selectPrint_selectCustomerList');
- window.onafterprint = function (event) {
- window.history.back(-1)
- }
- },
- watch: {}
- })
- </script>
- </html>
|