|
@@ -167,7 +167,7 @@
|
|
<td class="col" colspan="2">{{item.carNumber}}</td>
|
|
<td class="col" colspan="2">{{item.carNumber}}</td>
|
|
</tr>
|
|
</tr>
|
|
<tr class="row">
|
|
<tr class="row">
|
|
- <td class="col col-bgc">收货单位</td>
|
|
|
|
|
|
+ <td class="col col-bgc">收货单位</td>
|
|
<td class="col" colspan="2">{{item.compName}}</td>
|
|
<td class="col" colspan="2">{{item.compName}}</td>
|
|
<td class="col col-bgc">联系人</td>
|
|
<td class="col col-bgc">联系人</td>
|
|
<td class="col">{{item.person}}</td>
|
|
<td class="col">{{item.person}}</td>
|
|
@@ -185,7 +185,8 @@
|
|
</td>
|
|
</td>
|
|
<td class="col col-bgc">{{item.goodsName == '大豆' ? '完善粒率(%)' : '不完善粒(%)'}}</td>
|
|
<td class="col col-bgc">{{item.goodsName == '大豆' ? '完善粒率(%)' : '不完善粒(%)'}}</td>
|
|
<td class="col">
|
|
<td class="col">
|
|
- {{item.goodsName == '大豆'?item.qualityInspectionManagement.completeGrain:item.qualityInspectionManagement.imperfectGrain}}
|
|
|
|
|
|
+ {{item.goodsName ==
|
|
|
|
+ '大豆'?item.qualityInspectionManagement.completeGrain:item.qualityInspectionManagement.imperfectGrain}}
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
<tr class="row">
|
|
<tr class="row">
|
|
@@ -217,7 +218,8 @@
|
|
{{item.qualityInspectionManagement?item.qualityInspectionManagement.buckleMiscellaneous:''}}
|
|
{{item.qualityInspectionManagement?item.qualityInspectionManagement.buckleMiscellaneous:''}}
|
|
</td>
|
|
</td>
|
|
<td class="col col-bgc">仓位号</td>
|
|
<td class="col col-bgc">仓位号</td>
|
|
- <td class="col">{{item.binNumber.indexOf("托盘") != -1?item.binNumber.replace("托盘",""):item.binNumber}}</td>
|
|
|
|
|
|
+ <td class="col">{{item.binNumber.indexOf("托盘") !=
|
|
|
|
+ -1?item.binNumber.replace("托盘",""):item.binNumber}}</td>
|
|
</tr>
|
|
</tr>
|
|
<tr class="row">
|
|
<tr class="row">
|
|
<td class="col col-bgc">毛重(公斤)</td>
|
|
<td class="col col-bgc">毛重(公斤)</td>
|
|
@@ -300,7 +302,8 @@
|
|
</td>
|
|
</td>
|
|
<td class="col col-bgc">{{item.goodsName == '大豆' ? '完善粒率(%)' : '不完善粒(%)'}}</td>
|
|
<td class="col col-bgc">{{item.goodsName == '大豆' ? '完善粒率(%)' : '不完善粒(%)'}}</td>
|
|
<td class="col">
|
|
<td class="col">
|
|
- {{item.goodsName == '大豆'?item.qualityInspectionManagement.completeGrain:item.qualityInspectionManagement.imperfectGrain}}
|
|
|
|
|
|
+ {{item.goodsName ==
|
|
|
|
+ '大豆'?item.qualityInspectionManagement.completeGrain:item.qualityInspectionManagement.imperfectGrain}}
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
<tr class="row">
|
|
<tr class="row">
|
|
@@ -332,7 +335,8 @@
|
|
{{item.qualityInspectionManagement?item.qualityInspectionManagement.buckleMiscellaneous:''}}
|
|
{{item.qualityInspectionManagement?item.qualityInspectionManagement.buckleMiscellaneous:''}}
|
|
</td>
|
|
</td>
|
|
<td class="col col-bgc">仓位号</td>
|
|
<td class="col col-bgc">仓位号</td>
|
|
- <td class="col">{{item.binNumber.indexOf("托盘") != -1?item.binNumber.replace("托盘",""):item.binNumber}}</td>
|
|
|
|
|
|
+ <td class="col">{{item.binNumber.indexOf("托盘") !=
|
|
|
|
+ -1?item.binNumber.replace("托盘",""):item.binNumber}}</td>
|
|
</tr>
|
|
</tr>
|
|
<tr class="row">
|
|
<tr class="row">
|
|
<td class="col col-bgc">毛重(公斤)</td>
|
|
<td class="col col-bgc">毛重(公斤)</td>
|
|
@@ -343,7 +347,7 @@
|
|
<td class="col">{{item.buckleMiscellaneous}}</td>
|
|
<td class="col">{{item.buckleMiscellaneous}}</td>
|
|
<td class="col col-bgc">净重(公斤)</td>
|
|
<td class="col col-bgc">净重(公斤)</td>
|
|
<td class="col">{{item.netWeight}}</td>
|
|
<td class="col">{{item.netWeight}}</td>
|
|
- <!-- <td class="col " colspan="2"></td> -->
|
|
|
|
|
|
+ <!-- <td class="col " colspan="2"></td> -->
|
|
|
|
|
|
</tr>
|
|
</tr>
|
|
<tr class="row">
|
|
<tr class="row">
|
|
@@ -403,7 +407,8 @@
|
|
<td class="col" colspan="2">{{_item.compName}}</td> -->
|
|
<td class="col" colspan="2">{{_item.compName}}</td> -->
|
|
<td v-if='_item.customer!="白城市鹏羽粮食贸易有限公司"' class="col col-bgc">收货单位</td>
|
|
<td v-if='_item.customer!="白城市鹏羽粮食贸易有限公司"' class="col col-bgc">收货单位</td>
|
|
<td v-else class="col col-bgc">收货仓库</td>
|
|
<td v-else class="col col-bgc">收货仓库</td>
|
|
- <td class="col" colspan="2">{{_item.customer!="白城市鹏羽粮食贸易有限公司"?_item.compName:'北京天维康油脂调销中心有限公司'}}</td>
|
|
|
|
|
|
+ <td class="col" colspan="2">{{_item.customer!="白城市鹏羽粮食贸易有限公司"?_item.compName:'上海首农投资控股有限公司'}}
|
|
|
|
+ </td>
|
|
<td class="col col-bgc">联系人</td>
|
|
<td class="col col-bgc">联系人</td>
|
|
<td class="col">{{_item.person}}</td>
|
|
<td class="col">{{_item.person}}</td>
|
|
<td class="col col-bgc">联系电话</td>
|
|
<td class="col col-bgc">联系电话</td>
|
|
@@ -415,13 +420,14 @@
|
|
<td class="col col-bgc">类型</td>
|
|
<td class="col col-bgc">类型</td>
|
|
<td class="col">{{_item.type}}</td>
|
|
<td class="col">{{_item.type}}</td>
|
|
<td class="col col-bgc">{{_item.goodsName == '大豆' ? '蛋白' : '容重(克/升)'}}</td>
|
|
<td class="col col-bgc">{{_item.goodsName == '大豆' ? '蛋白' : '容重(克/升)'}}</td>
|
|
- <td class="col">
|
|
|
|
- {{_item.goodsName=='大豆'?_item.qualityInspectionManagement.protein:_item.qualityInspectionManagement.bulkDensity}}
|
|
|
|
- </td>
|
|
|
|
- <td class="col col-bgc">{{_item.goodsName == '大豆' ? '完善粒率(%)' : '不完善粒(%)'}}</td>
|
|
|
|
- <td class="col">
|
|
|
|
- {{_item.goodsName == '大豆'?_item.qualityInspectionManagement.completeGrain:_item.qualityInspectionManagement.imperfectGrain}}
|
|
|
|
- </td>
|
|
|
|
|
|
+ <td class="col">
|
|
|
|
+ {{_item.goodsName=='大豆'?_item.qualityInspectionManagement.protein:_item.qualityInspectionManagement.bulkDensity}}
|
|
|
|
+ </td>
|
|
|
|
+ <td class="col col-bgc">{{_item.goodsName == '大豆' ? '完善粒率(%)' : '不完善粒(%)'}}</td>
|
|
|
|
+ <td class="col">
|
|
|
|
+ {{_item.goodsName ==
|
|
|
|
+ '大豆'?_item.qualityInspectionManagement.completeGrain:_item.qualityInspectionManagement.imperfectGrain}}
|
|
|
|
+ </td>
|
|
</tr>
|
|
</tr>
|
|
<tr class="row">
|
|
<tr class="row">
|
|
<td class="col col-bgc">等级</td>
|
|
<td class="col col-bgc">等级</td>
|
|
@@ -449,7 +455,8 @@
|
|
{{_item.qualityInspectionManagement?_item.qualityInspectionManagement.buckleMiscellaneous:''}}
|
|
{{_item.qualityInspectionManagement?_item.qualityInspectionManagement.buckleMiscellaneous:''}}
|
|
</td>
|
|
</td>
|
|
<td class="col col-bgc">仓位号</td>
|
|
<td class="col col-bgc">仓位号</td>
|
|
- <td class="col">{{_item.binNumber.indexOf("托盘") != -1?_item.binNumber.replace("托盘",""):_item.binNumber}}</td>
|
|
|
|
|
|
+ <td class="col">{{_item.binNumber.indexOf("托盘") !=
|
|
|
|
+ -1?_item.binNumber.replace("托盘",""):_item.binNumber}}</td>
|
|
</tr>
|
|
</tr>
|
|
<tr class="row">
|
|
<tr class="row">
|
|
<td class="col col-bgc">毛重(公斤)</td>
|
|
<td class="col col-bgc">毛重(公斤)</td>
|
|
@@ -522,7 +529,8 @@
|
|
</div>
|
|
</div>
|
|
<div class="small-row">
|
|
<div class="small-row">
|
|
<div>仓位号:</div>
|
|
<div>仓位号:</div>
|
|
- <div>{{tableData.binNumber.indexOf("托盘")!= -1?tableData.binNumber.replace("托盘",""):tableData.binNumber}}</div>
|
|
|
|
|
|
+ <div>{{tableData.binNumber.indexOf("托盘")!= -1?tableData.binNumber.replace("托盘",""):tableData.binNumber}}
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<div class="small-row">
|
|
<div class="small-row">
|
|
<div>收货单位</div>
|
|
<div>收货单位</div>
|
|
@@ -581,8 +589,8 @@
|
|
<script type="text/javascript" src="../static/html2canvas.js"></script>
|
|
<script type="text/javascript" src="../static/html2canvas.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
|
|
<script type="text/javascript">
|
|
<script type="text/javascript">
|
|
-
|
|
|
|
-// import API_CONFIG from "../../../vue.config.js"
|
|
|
|
|
|
+
|
|
|
|
+ // import API_CONFIG from "../../../vue.config.js"
|
|
new Vue({
|
|
new Vue({
|
|
el: '#app',
|
|
el: '#app',
|
|
data: {
|
|
data: {
|
|
@@ -631,7 +639,7 @@
|
|
} else {
|
|
} else {
|
|
that.serverIp = localStorage.getItem("serverIp")
|
|
that.serverIp = localStorage.getItem("serverIp")
|
|
}
|
|
}
|
|
- if (that.tableData&&that.tableData.length == 1) {//this.tableData 条数为1 认为单个打印
|
|
|
|
|
|
+ if (that.tableData && that.tableData.length == 1) {//this.tableData 条数为1 认为单个打印
|
|
html2canvas(document.querySelector("#saveImg"), { foreignObjectRendering: true, allowTaint: true }).then((canvas) => {
|
|
html2canvas(document.querySelector("#saveImg"), { foreignObjectRendering: true, allowTaint: true }).then((canvas) => {
|
|
let dataURL = canvas.toDataURL('image/png')
|
|
let dataURL = canvas.toDataURL('image/png')
|
|
that.imgUrl = dataURL
|
|
that.imgUrl = dataURL
|