|
@@ -172,45 +172,48 @@
|
|
|
}
|
|
|
|
|
|
.center {
|
|
|
- height: calc(100vh - 8px);
|
|
|
+ height: calc(100vh - 8px);
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
|
<div id="app">
|
|
|
<div class="center">
|
|
|
- <div class="title">黑龙江中天昊元贸易有限公司-{{warehouseName}}仓库<span v-if="type == '2'">出</span><span v-if="type == '3'">入</span>库单</div>
|
|
|
+ <div class="title">黑龙江中天昊元贸易有限公司<span v-if="type == '2'">出</span><span v-if="type == '3'">入</span>库单</div>
|
|
|
+ <div class='title12'>
|
|
|
+ <span>仓库名:</span>
|
|
|
+ <span>{{warehouseName}}</span>
|
|
|
+ <span>质检员:</span>
|
|
|
+ <span>{{printData[0].qualityInspector}}</span>
|
|
|
+ <span>复检员:</span>
|
|
|
+ <span>{{printData[0].reInspector}}</span>
|
|
|
+ <span>检斤员:</span>
|
|
|
+ <span>{{printData[0].agent}}</span>
|
|
|
+ <p>
|
|
|
+ <span>值班日期:</span>
|
|
|
+ <span>{{startDate}}</span>
|
|
|
+ <span>到</span>
|
|
|
+ <span>{{endDate}}</span>
|
|
|
+ </p>
|
|
|
+ <p>
|
|
|
+ <span>货名:</span>
|
|
|
+ <span>玉米</span>
|
|
|
+ <span>质量单位:吨</span>
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
<table class="table">
|
|
|
- <tr>
|
|
|
- <td colspan="8">仓库名:{{warehouseName}} 质检员:暂无 复检员:暂无 检斤员:暂无</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>值班日期:</td>
|
|
|
- <td colspan="3"></td>
|
|
|
- <td>到货日期</td>
|
|
|
- <td></td>
|
|
|
- <td colspan="3"></td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>仓位号:</td>
|
|
|
- <td colspan="2"></td>
|
|
|
- <td>货名:玉米</td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td colspan="2">质量单位:吨</td>
|
|
|
+ <tr class="row">
|
|
|
+ <th v-if="type == '2'">出库日期</th>
|
|
|
+ <th v-if="type == '3'">入库日期</th>
|
|
|
+ <th>车牌号</th>
|
|
|
+ <th>仓位号</th>
|
|
|
+ <th>箱一号</th>
|
|
|
+ <th>箱二号</th>
|
|
|
+ <th>毛重</th>
|
|
|
+ <th>皮重</th>
|
|
|
+ <th>净重</th>
|
|
|
</tr>
|
|
|
- <tr class="row">
|
|
|
- <th v-if="type == '2'">出库日期</th>
|
|
|
- <th v-if="type == '3'">入库日期</th>
|
|
|
- <th>车牌号</th>
|
|
|
- <th>仓位号</th>
|
|
|
- <th>箱一号</th>
|
|
|
- <th>箱二号</th>
|
|
|
- <th>毛重</th>
|
|
|
- <th>皮重</th>
|
|
|
- <th>净重</th>
|
|
|
- </tr>
|
|
|
- <tr class="row" v-for="(item,index) in printData">
|
|
|
+ <tr class="row" v-for="(item,index) in printData">
|
|
|
<td class="col">{{item.inOutDate}}</td>
|
|
|
<td class="col">{{item.carNo}}</td>
|
|
|
<td class="col">{{item.binNumber}}</td>
|
|
@@ -232,7 +235,7 @@
|
|
|
</tr>
|
|
|
</table>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
</body>
|
|
|
<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
|
|
@@ -242,27 +245,26 @@
|
|
|
el: '#app',
|
|
|
data: {
|
|
|
showType: [],
|
|
|
- printData: [
|
|
|
- {
|
|
|
- identityAuthenticationInfo:{},
|
|
|
- qualityInspectionManagement:{},
|
|
|
- weighingManagement:{},
|
|
|
- customerNumberCard:{},
|
|
|
- }
|
|
|
- ],
|
|
|
+ printData: [{
|
|
|
+ identityAuthenticationInfo: {},
|
|
|
+ qualityInspectionManagement: {},
|
|
|
+ weighingManagement: {},
|
|
|
+ customerNumberCard: {},
|
|
|
+ }],
|
|
|
printData1: [],
|
|
|
customerList: {},
|
|
|
customerList1: [],
|
|
|
-
|
|
|
+
|
|
|
date: '',
|
|
|
- warehouseName:"",
|
|
|
- type:"",
|
|
|
- maoZhong:0,
|
|
|
- piZhong:0,
|
|
|
- jingZhong:0,
|
|
|
- binNos:[],
|
|
|
- binNoShow:""
|
|
|
-
|
|
|
+ warehouseName: "",
|
|
|
+ type: "",
|
|
|
+ maoZhong: 0,
|
|
|
+ piZhong: 0,
|
|
|
+ jingZhong: 0,
|
|
|
+ binNos: [],
|
|
|
+ binNoShow: "",
|
|
|
+ startDate: "",
|
|
|
+ endDate: "",
|
|
|
},
|
|
|
computed: {},
|
|
|
methods: {
|
|
@@ -298,8 +300,10 @@
|
|
|
this.date = new Date().toLocaleString()
|
|
|
this.type = decodeURIComponent(this.getQueryVariable('type'))
|
|
|
this.warehouseName = decodeURIComponent(this.getQueryVariable('warehouseName'))
|
|
|
+ this.startDate = this.getQueryVariable('startDate')
|
|
|
+ this.endDate =this.getQueryVariable('endDate')
|
|
|
this.printData = JSON.parse(sessionStorage.getItem('inOutWarehouse_Print'))
|
|
|
- for(var count = 0 ; count < this.printData.length; count ++){
|
|
|
+ for (var count = 0; count < this.printData.length; count++) {
|
|
|
this.maoZhong += this.printData[count].grossWeight
|
|
|
this.piZhong += this.printData[count].tare
|
|
|
this.jingZhong += this.printData[count].netWeight
|