|
@@ -433,11 +433,14 @@ export default {
|
|
var strDate = date.getDate()
|
|
var strDate = date.getDate()
|
|
this.parameter.startDate = ""+year+"-"+month+"-"+(strDate-1)
|
|
this.parameter.startDate = ""+year+"-"+month+"-"+(strDate-1)
|
|
this.parameter.endDate = ""+year+"-"+month+"-"+strDate
|
|
this.parameter.endDate = ""+year+"-"+month+"-"+strDate
|
|
- this.isShowPrintType = true
|
|
|
|
|
|
+ this.$forceUpdate();
|
|
|
|
+ this.isShowPrintType = true
|
|
},
|
|
},
|
|
removePrint(){
|
|
removePrint(){
|
|
|
|
+ this.parameter.warehouseName = ""
|
|
|
|
+ this.parameter.proportion = ""
|
|
this.isShowPrintType = false
|
|
this.isShowPrintType = false
|
|
- this.parameter = {}
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
async submitClick(){
|
|
async submitClick(){
|
|
if(!this.parameter.radio && this.headerText == "打印记录"){
|
|
if(!this.parameter.radio && this.headerText == "打印记录"){
|
|
@@ -518,13 +521,11 @@ export default {
|
|
if(increment > 0){
|
|
if(increment > 0){
|
|
let index = Math.round(Math.random()*response1.length - 1)
|
|
let index = Math.round(Math.random()*response1.length - 1)
|
|
let pro = response1[index] //取出假数据并设定值
|
|
let pro = response1[index] //取出假数据并设定值
|
|
-
|
|
|
|
- // pro.inOutDate = warehousePrint[Math.round(Math.random()* warehousePrint.length - 1)].inOutDate
|
|
|
|
- // pro.contractNo = warehousePrint[Math.round(Math.random()* warehousePrint.length - 1)].contractNo
|
|
|
|
- // pro.companyName = warehousePrint[Math.round(Math.random()* warehousePrint.length - 1)].companyName
|
|
|
|
- // pro.goodsName = warehousePrint[Math.round(Math.random()* warehousePrint.length - 1)].goodsName + "1"
|
|
|
|
- // pro.boxNo = warehousePrint[Math.round(Math.random()* warehousePrint.length - 1)].boxNo
|
|
|
|
- console.log(warehousePrint)
|
|
|
|
|
|
+ pro.inOutDate = warehousePrint[Math.round(Math.random()* warehousePrint.length - 1)].inOutDate
|
|
|
|
+ pro.contractNo = warehousePrint[Math.round(Math.random()* warehousePrint.length - 1)].contractNo
|
|
|
|
+ pro.companyName = warehousePrint[Math.round(Math.random()* warehousePrint.length - 1)].companyName
|
|
|
|
+ pro.goodsName = warehousePrint[Math.round(Math.random()* warehousePrint.length - 1)].goodsName
|
|
|
|
+ pro.boxNo = warehousePrint[Math.round(Math.random()* warehousePrint.length - 1)].boxNo
|
|
pro.netWeight = Number((Math.random()*(70-10+1)+10).toFixed(2))
|
|
pro.netWeight = Number((Math.random()*(70-10+1)+10).toFixed(2))
|
|
pro.tare = Number((Math.random()*(20-10+1)+10).toFixed(2))
|
|
pro.tare = Number((Math.random()*(20-10+1)+10).toFixed(2))
|
|
pro.grossWeight = Number((pro.tare + pro.netWeight).toFixed(2))
|
|
pro.grossWeight = Number((pro.tare + pro.netWeight).toFixed(2))
|
|
@@ -532,11 +533,11 @@ export default {
|
|
increment = (increment - pro.netWeight).toFixed(2) //所要增的量
|
|
increment = (increment - pro.netWeight).toFixed(2) //所要增的量
|
|
if(increment < 10 && pro.netWeight <= 60){
|
|
if(increment < 10 && pro.netWeight <= 60){
|
|
pro.netWeight += Number(increment)
|
|
pro.netWeight += Number(increment)
|
|
- pro.grossWeight = Number((pro.tare + pro.netWeight).toFixed(2))
|
|
|
|
|
|
+ pro.grossWeight = Number((pro.tare + pro.netWeight).toFixed(2))
|
|
increment = 0
|
|
increment = 0
|
|
warehousePrint.push(pro)
|
|
warehousePrint.push(pro)
|
|
}else{
|
|
}else{
|
|
- warehousePrint.push(pro)
|
|
|
|
|
|
+ warehousePrint.push(pro)
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
pro.netWeight = Number(increment.toFixed(2))
|
|
pro.netWeight = Number(increment.toFixed(2))
|