|
@@ -171,9 +171,7 @@
|
|
|
new Vue({
|
|
|
el: '#app',
|
|
|
data: {
|
|
|
- tableData: {
|
|
|
- // qualityInspectionManagement:{}
|
|
|
- },
|
|
|
+ tableData: {},
|
|
|
name: "",
|
|
|
bigContent: false,
|
|
|
smallContent: false
|
|
@@ -205,10 +203,12 @@
|
|
|
printSmall() {},
|
|
|
printBig() {},
|
|
|
},
|
|
|
- mounted() {
|
|
|
- console.log(this.getQueryVariable("tableData"))
|
|
|
- let _data = decodeURIComponent(this.getQueryVariable("tableData"))
|
|
|
- let _type = decodeURIComponent(this.getQueryVariable("type"))
|
|
|
+ mounted() {debugger
|
|
|
+ // console.log("sssss",this.getQueryVariable("tableData"))
|
|
|
+ // let _data = decodeURIComponent(this.getQueryVariable("tableData"))
|
|
|
+ // console.log("dfddd",_data)
|
|
|
+ let _data= JSON.parse(localStorage.getItem('ck_bd_printData'))
|
|
|
+ let _type = this.getQueryVariable("type")
|
|
|
if (_type == 2) {
|
|
|
this.bigContent = true
|
|
|
this.smallContent = false
|
|
@@ -217,7 +217,7 @@
|
|
|
this.bigContent = false
|
|
|
}
|
|
|
console.log(_data,"sddsd")
|
|
|
- this.tableData = JSON.parse(_data)
|
|
|
+ this.tableData = _data
|
|
|
console.log(this.tableData)
|
|
|
document.title = "粮食检斤单"
|
|
|
window.print()
|