123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383 |
- <!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>
- .number {
- width: 50%;
- text-align: right;
- margin: 0 0 10px 0;
- }
- .No {
- width: 50%;
- text-align: left;
- }
- .title {
- text-align: center;
- font-size: 28px;
- font-weight: 600;
- }
- .title_top {
- display: flex
- }
- table,
- table tr th,
- table tr td {
- border: 2px solid #333333;
- padding: 5px 0;
- }
- table {
- width: 100%;
- min-height: 25px;
- line-height: 25px;
- text-align: center;
- border-collapse: collapse;
- border: 3px solid #333333;
- }
- .col-bgc {
- background: #f6f7fb;
- }
- .bottom-row1 {
- display: flex;
- margin: 10px 0;
- }
- .bottom-row2 {
- display: flex;
- margin: 10px 0;
- }
- img {
- width: 120px;
- height: 120px;
- margin-right: 118px;
- }
- .config {
- margin-top: 20px;
- width: 30%;
- min-width: 200px;
- }
- .autograph {
- margin-top: 20px;
- width: 30%;
- min-width: 200px;
- }
- .bottom-row3 {
- margin: 10px 0;
- }
- .bottom-row4 {
- margin-top: 50px;
- text-align: center;
- }
- .small-content {
- width: 400px;
- margin: 0 auto;
- border: 1px solid #ccc;
- padding: 20px 20px 160px 20px;
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- margin: auto;
- height: 650px;
- margin-top: 20px;
- }
- .small-title {
- text-align: center;
- font-size: 18px;
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .small-row {
- display: flex;
- justify-content: space-between;
- margin: 10px;
- }
- .listName{
- font-size: 22px;
- font-weight: 600;
- margin-top: 20px;
- }
- .img_css{
- width: 70px;
- height: 70px;
- margin-right: 0px;
- }
- </style>
- </head>
- <body>
- <div id="app">
- <div v-if="bigContent">
- <div class="title">出库检斤单</div>
- <div class="title_top">
- <div class="No" v-if="tableData.contractNo">{{tableData.contractNo}}</div>
- <div class="No" else>{{tableData.moveTaskNo}}</div>
- <div class="number">{{tableData.number}}</div>
- </div>
- <table class="table">
- <tr class="row">
- <td class="col col-bgc">收货单位</td>
- <td class="col" colspan="2">{{tableData.customer?tableData.customer:(tableData.contractManagement?tableData.contractManagement.buyer:"")}}</td>
- <td class="col col-bgc">客户电话</td>
- <!-- <td class="col">{{kehu}}</td> -->
- <td class="col">{{tableData.contractManagement?tableData.contractManagement.buyerPhone:""}}</td>
- <td class="col col-bgc">车牌号</td>
- <td class="col" colspan="2">{{tableData.carNumber}}</td>
- </tr>
- <tr class="row">
- <td class="col col-bgc">出库单位</td>
- <td class="col" colspan="2">{{tableData.contractManagement?tableData.contractManagement.seller:tableData.compName}}</td>
- <!-- <td class="col" colspan="2">{{tableData.contractManagement?tableData.contractManagement.seller:tableData.compName}}</td> -->
- <td class="col col-bgc">联系人</td>
- <!-- <td class="col">{{tableData.person}}</td> -->
- <td class="col">{{kehu}}</td>
- <td class="col col-bgc">联系电话</td>
- <td colspan="2" class="col">{{kehuphone}}</td>
- <!-- <td class="col" colspan="2">{{tableData.personPhone}}</td> -->
- </tr>
- <tr class="row">
- <td class="col col-bgc">货名</td>
- <td class="col">{{tableData.goodsName}}</td>
- <td class="col col-bgc">类型</td>
- <td class="col">{{tableData.type}}</td>
- <td class="col col-bgc">容重(克/升)</td>
- <td class="col">{{tableData.qualityInspectionManagement ?
- tableData.qualityInspectionManagement.bulkDensity:""}}</td>
- <!-- <td class="col col-bgc">不完善粒(%)</td>
- <td class="col">{{tableData.qualityInspectionManagement ?tableData.qualityInspectionManagement.imperfectGrain:""}}</td> -->
- <td class="col col-bgc">水分(%)</td>
- <td class="col">{{ tableData.qualityInspectionManagement ? tableData.qualityInspectionManagement.waterContent:""}}</td>
- </tr>
- <tr class="row">
- <td class="col col-bgc">等级</td>
- <td class="col">{{tableData.qualityInspectionManagement ?
- tableData.qualityInspectionManagement.grade:""}}</td>
-
- <td class="col col-bgc">热损伤(%)</td>
- <td class="col">{{tableData.qualityInspectionManagement ?
- tableData.qualityInspectionManagement.jiaorenli:""}}</td>
- <td class="col col-bgc">杂质(%)</td>
- <td class="col">{{ tableData.qualityInspectionManagement ?
- tableData.qualityInspectionManagement.impurity:""}}</td>
- <td class="col col-bgc">扣杂</td>
- <td class="col">{{tableData.qualityInspectionManagement ?
- tableData.qualityInspectionManagement.buckleMiscellaneous:""}}</td>
- </tr>
- <!-- <tr class="row">
- <td class="col col-bgc">杂质(%)</td>
- <td class="col">{{ tableData.qualityInspectionManagement ?
- tableData.qualityInspectionManagement.impurity:""}}</td>
- <td class="col col-bgc">霉变粒(%)</td>
- <td class="col">{{tableData.qualityInspectionManagement ?
- tableData.qualityInspectionManagement.mildewGrain:""}}</td>
- <td class="col col-bgc">扣杂</td>
- <td class="col">{{tableData.qualityInspectionManagement ?
- tableData.qualityInspectionManagement.buckleMiscellaneous:""}}</td>
- <td class="col" colspan="2"></td>
- </tr> -->
- <tr class="row">
- <td class="col col-bgc">毛重(公斤)</td>
- <td class="col">{{tableData.grossWeight}}</td>
- <td class="col col-bgc">皮重(公斤)</td>
- <td class="col">{{tableData.tare}}</td>
- <td class="col col-bgc">扣重(公斤)</td>
- <td class="col">{{tableData.buckleMiscellaneous}}</td>
- <td class="col col-bgc">净重(公斤)</td>
- <td class="col">{{tableData.netWeight}}</td>
- </tr>
- <tr class="row">
- <td class="col col-bgc">箱号-1</td>
- <td class="col">{{tableData.boxNo}}</td>
- <td class="col col-bgc">箱号-2</td>
- <td class="col">{{tableData.boxNoOther}}</td>
- <td class="col col-bgc">封号-1</td>
- <td class="col">{{tableData.titleNo}}</td>
- <td class="col col-bgc">封号-2</td>
- <td class="col">{{tableData.titleNoOther}}</td>
- </tr>
- <tr class="row">
- <td class="col col-bgc" colspan="2">毛重检斤时间</td>
- <td class="col" colspan="2">{{tableData.grossDate}}</td>
- <td class="col col-bgc" colspan="2"> 皮重检斤时间</td>
- <td class="col" colspan="2">{{tableData.tareDate}}</td>
- </tr>
- </table>
- <div class="bottom">
- <div class="bottom-row1">
- <div>毛检:{{tableData.secretaryWeigher}}</div>
- <div style="margin-left:60px">皮检:{{tableData.skinInspector}}</div>
- <!-- <div>{{tableData.qualityDate}}</div> -->
- </div>
- <div class="bottom-row2">
- <div class="left">
- <img :src="tableData.codeUrl" alt="" />
- </div>
- <div class="config">收货单位签名或盖章:</div>
- <div class="autograph">客户签名:</div>
- <div class="autograph">司机签名:</div>
- </div>
- </div>
- </div>
- <div class="small-content" v-if="smallContent">
- <div class="small-row">
- <div class="listName">出库检斤单</div>
- <img :src="tableData.codeUrl" alt="" class="img_css" />
- </div>
- <div class="small-row" v-if="tableData.number">
- <div>业务编号</div>
- <div>{{tableData.number}}</div>
- </div>
- <div class="small-row" else>
- <div>移库任务编号</div>
- <div>{{tableData.moveTaskNo}}</div>
- </div>
- <div class="small-row">
- <div>收货单位</div>
- <div v-if="tableData.number">{{tableData.contractManagement?tableData.contractManagement.buyer:""}}</div>
- <div else>{{tableData.compName}}</div>
- </div>
- <div class="small-row">
- <div>车牌号</div>
- <div>{{tableData.carNumber}}</div>
- </div>
- <div class="small-row">
- <div>出库单位</div>
- <div>{{tableData.contractManagement?tableData.contractManagement.seller:tableData.compName}}</div>
- </div>
- <div class="small-row">
- <div>联系人</div>
- <div>{{tableData.person}}</div>
- </div>
- <div class="small-row">
- <div>联系电话</div>
- <div>{{tableData.personPhone}}</div>
- </div>
- <div class="small-row">
- <div>货名</div>
- <div>{{tableData.goodsName}}</div>
- </div>
- <div class="small-row">
- <div>类型</div>
- <div>{{tableData.type}}</div>
- </div>
- <div class="small-row">
- <div>毛重(公斤)</div>
- <div>{{tableData.grossWeight}}</div>
- </div>
- <div class="small-row">
- <div>毛检时间</div>
- <div>{{tableData.grossDate}}</div>
- </div>
- <div class="small-row">
- <div>皮重(公斤</div>
- <div>{{tableData.tare}}</div>
- </div>
- <div class="small-row">
- <div>皮检时间</div>
- <div>{{tableData.tareDate}}</div>
- </div>
- <div class="small-row">
- <div>扣重(公斤)</div>
- <div>{{tableData.buckleMiscellaneous}}</div>
- </div>
- <div class="small-row">
- <div>净重(公斤)</div>
- <div>{{tableData.netWeight}}</div>
- </div>
- <div class="small-row">
- <div>发货单位签名或盖章:</div>
- </div>
- <div class="small-row">
- <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: {
- tableData: {
- // qualityInspectionManagement:{}
- },
- kehu:'',
- kehuphone:'',
- name: "",
- bigContent: false,
- smallContent: false
- },
- computed: {},
- methods: {
- 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.kehu=JSON.parse(localStorage.getItem('winseaview-userInfo')).content.staffName
- this.kehuphone=JSON.parse(localStorage.getItem('winseaview-userInfo')).content.staffMobilePhone
- let _data = JSON.parse(localStorage.getItem('ck_bd_printData1'))
- let _type = this.getQueryVariable("type")
- if (_type == 2) {
- this.bigContent = true
- this.smallContent = false
- } else {
- this.smallContent = true
- this.bigContent = false
- }
- console.log(_data, "sddsd")
- this.tableData = _data
- console.log(this.tableData)
- document.title = "粮食检斤单"
- window.print()
- window.onafterprint = function (event) {
- window.history.back(-1)
- };
- },
- watch: {}
- })
- </script>
- </html>
|