|
@@ -302,7 +302,7 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
- <div v-if="deptBudgetList.warehouseName=='鲅鱼圈金信库'||deptBudgetList.warehouseName=='白城内陆港'||deptBudgetList.warehouseName=='哈尔滨依兰库'">
|
|
|
+ <div v-if="deptBudgetList.warehouseName=='鲅鱼圈金信库'||deptBudgetList.warehouseName=='白城内陆港'">
|
|
|
<div class="print-type-ew">
|
|
|
<el-checkbox v-model="checked" @change="changeEw">打印额外票据</el-checkbox>
|
|
|
<el-checkbox v-model="ddchecked" @change="changeEwDD">单独打印额外票据</el-checkbox>
|
|
@@ -456,8 +456,8 @@
|
|
|
label: '厦门建发物产有限公司'
|
|
|
}],
|
|
|
companyName: '黑龙江利润元粮食贸易有限公司',
|
|
|
- companyNameEW: '厦门建发物产有限公司',
|
|
|
- ewCustomer: '黑龙江利润元粮食贸易有限公司',
|
|
|
+ companyNameEW: "厦门建发物产有限公司",
|
|
|
+ ewCustomer: "黑龙江利润元粮食贸易有限公司",
|
|
|
ddchecked: false,
|
|
|
checked: false,
|
|
|
isShowPrintType: false,
|
|
@@ -466,7 +466,6 @@
|
|
|
deptBudgetTotal: 0,
|
|
|
currentPage: 1,
|
|
|
pageSize: 10,
|
|
|
- capacity: '',
|
|
|
contractType: 2,
|
|
|
// 提交类型
|
|
|
submitType: true,
|
|
@@ -494,7 +493,7 @@
|
|
|
modification: [],
|
|
|
printList: [], //批量打印数据
|
|
|
onePrint: false, //单个打印开关
|
|
|
- idPrint:'',
|
|
|
+ idPrint:"",
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -509,9 +508,6 @@
|
|
|
this.getList()
|
|
|
this.getPassYearFormatDate()
|
|
|
this.showType = this.isShow
|
|
|
- if(this.binNumber == '全部仓位'){
|
|
|
- this.deptBudgetList.positionId = ''
|
|
|
- }
|
|
|
},
|
|
|
updated() {
|
|
|
this.$nextTick(() => {
|
|
@@ -528,6 +524,7 @@
|
|
|
}
|
|
|
},
|
|
|
changeEw(e) {
|
|
|
+ debugger
|
|
|
this.ddchecked = false
|
|
|
|
|
|
if (e) {
|
|
@@ -546,31 +543,32 @@
|
|
|
localStorage.setItem('ewWarehouseBatchPrint', JSON.stringify(_printList))
|
|
|
},
|
|
|
async typePrintClick() {
|
|
|
+ debugger
|
|
|
this.printList = []
|
|
|
- // if (this.onePrint) {
|
|
|
- // sessionStorage.removeItem('ck_bd_printData')
|
|
|
- // getPrintInfo({
|
|
|
- // id: this.idPrint
|
|
|
- // })
|
|
|
- // .toPromise()
|
|
|
- // .then((response) => {
|
|
|
- // if (response) {
|
|
|
- // if (this.checked || this.ddchecked) {
|
|
|
- // var arrayPrint = response
|
|
|
- // // for (let i = 0; i < arrayPrint.length; i++) {
|
|
|
- // // let _data = arrayPrint[i];
|
|
|
- // arrayPrint.companyName = this.companyNameEW;
|
|
|
- // arrayPrint.customer = this.ewCustomer
|
|
|
- // // }
|
|
|
- // localStorage.setItem('ck_bd_printData', JSON.stringify(arrayPrint))
|
|
|
- // window.open('../../../../static/weightCheckInOut.html?type=2')
|
|
|
- // return
|
|
|
- // }
|
|
|
- // localStorage.setItem('ck_bd_printData', JSON.stringify(response))
|
|
|
- // window.open('../../../../static/weightCheckInOut.html?type=2')
|
|
|
- // }
|
|
|
- // })
|
|
|
- // } else {
|
|
|
+ if (this.onePrint) {
|
|
|
+ sessionStorage.removeItem('ck_bd_printData')
|
|
|
+ getPrintInfo({
|
|
|
+ id: this.idPrint
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ if (response) {
|
|
|
+ if (this.checked || this.ddchecked) {
|
|
|
+ var arrayPrint = response
|
|
|
+ // for (let i = 0; i < arrayPrint.length; i++) {
|
|
|
+ // let _data = arrayPrint[i];
|
|
|
+ arrayPrint.companyName = this.companyNameEW;
|
|
|
+ arrayPrint.customer = this.ewCustomer
|
|
|
+ // }
|
|
|
+ localStorage.setItem('ck_bd_printData', JSON.stringify(arrayPrint))
|
|
|
+ window.open('../../../../static/weightCheckInOut.html?type=2')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ localStorage.setItem('ck_bd_printData', JSON.stringify(response))
|
|
|
+ window.open('../../../../static/weightCheckInOut.html?type=2')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } else {
|
|
|
var count = 0
|
|
|
for (var i = 0; i < this.modification.length; i++) {
|
|
|
await getPrintInfo({
|
|
@@ -586,14 +584,14 @@
|
|
|
this.makeEWjjSelectPrintList()
|
|
|
// this.selectEW = true;
|
|
|
}
|
|
|
- localStorage.setItem('warehouseBatchPrint', JSON.stringify(this.printList))
|
|
|
+ localStorage.setItem("warehouseBatchPrint", JSON.stringify(this.printList))
|
|
|
window.open('../../../../static/warehouseBatchPrint.html?selectEW=' + this.checked +
|
|
|
'&selectEWDD=' + this.ddchecked)
|
|
|
}
|
|
|
})
|
|
|
|
|
|
}
|
|
|
- // }
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
@@ -680,9 +678,10 @@
|
|
|
|
|
|
// },
|
|
|
batchPrint() {
|
|
|
+
|
|
|
this.printList = []
|
|
|
if (this.modification.length == 0) {
|
|
|
- this.$message.error('请勾选要打印的条目!')
|
|
|
+ this.$message.error("请勾选要打印的条目!")
|
|
|
} else {
|
|
|
|
|
|
this.isShowPrintType = true
|
|
@@ -710,7 +709,7 @@
|
|
|
},
|
|
|
handleSelectionChange(val) {
|
|
|
this.modification = val
|
|
|
- console.log('sfasa', this.modification)
|
|
|
+ console.log("sfasa", this.modification)
|
|
|
},
|
|
|
selectInit(row){
|
|
|
//在这里一定要记得类型匹配的上。
|
|
@@ -803,28 +802,9 @@
|
|
|
this.value2 = [formatDate, nowData] // 默认赋值一年时间
|
|
|
},
|
|
|
print(row) {
|
|
|
- // this.onePrint = true
|
|
|
- // this.isShowPrintType = true
|
|
|
- // this.idPrint = row.id
|
|
|
- sessionStorage.removeItem('ck_bd_printData')
|
|
|
- getPrintInfo({
|
|
|
- id: row.id
|
|
|
- })
|
|
|
- .toPromise()
|
|
|
- .then((response) => {
|
|
|
- if (response) {
|
|
|
- // if (this.checked || this.ddchecked) {
|
|
|
- // var arrayPrint = response
|
|
|
- // arrayPrint.companyName = this.companyNameEW;
|
|
|
- // arrayPrint.customer = this.ewCustomer
|
|
|
- // localStorage.setItem('ck_bd_printData', JSON.stringify(arrayPrint))
|
|
|
- // window.open('../../../../static/weightCheckInOut.html?type=2')
|
|
|
- // return
|
|
|
- // }
|
|
|
- localStorage.setItem('ck_bd_printData', JSON.stringify(response))
|
|
|
- window.open('../../../../static/weightCheckInOut.html?type=2')
|
|
|
- }
|
|
|
- })
|
|
|
+ this.onePrint = true
|
|
|
+ this.isShowPrintType = true
|
|
|
+ this.idPrint = row.id
|
|
|
|
|
|
},
|
|
|
//返回按钮
|