|
@@ -426,12 +426,13 @@ export default {
|
|
this.isShowPrintType = true
|
|
this.isShowPrintType = true
|
|
},
|
|
},
|
|
async submitClick(){
|
|
async submitClick(){
|
|
- // if(this.headerText = "导出入库记录"){
|
|
|
|
|
|
+ if(this.headerText = "导出入库记录"){
|
|
const {
|
|
const {
|
|
data
|
|
data
|
|
} = await postExport(this.parameter, {}, {
|
|
} = await postExport(this.parameter, {}, {
|
|
responseType: 'blob'
|
|
responseType: 'blob'
|
|
}).toPromise()
|
|
}).toPromise()
|
|
|
|
+ debugger
|
|
downloadFile({
|
|
downloadFile({
|
|
res: data,
|
|
res: data,
|
|
fileName: `${
|
|
fileName: `${
|
|
@@ -439,10 +440,10 @@ export default {
|
|
}导出记录`,
|
|
}导出记录`,
|
|
type: 'xls',
|
|
type: 'xls',
|
|
})
|
|
})
|
|
- // }else if(this.headerText = "打印记录"){
|
|
|
|
- // window.open('../../../../../static/warehousePrint.html')
|
|
|
|
- // console.log(this.parameter)
|
|
|
|
- // }
|
|
|
|
|
|
+ }else if(this.headerText = "打印记录"){
|
|
|
|
+ window.open('../../../../../static/warehousePrint.html')
|
|
|
|
+ console.log(this.parameter)
|
|
|
|
+ }
|
|
},
|
|
},
|
|
//清仓
|
|
//清仓
|
|
clearance(row) {
|
|
clearance(row) {
|
|
@@ -829,17 +830,8 @@ export default {
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
// async exportlist() {
|
|
// async exportlist() {
|
|
- // const { data } = await export1(
|
|
|
|
- // {
|
|
|
|
- // compId: localStorage.getItem('ws-pf_compId'),
|
|
|
|
- // contractType: this.contractType,
|
|
|
|
- // currentPage: this.currentPage,
|
|
|
|
- // pageSize: this.pageSize,
|
|
|
|
- // searchType: this.searchType,
|
|
|
|
- // searchKeyWord: this.searchKeyWord,
|
|
|
|
- // startDate: this.startDate,
|
|
|
|
- // endDate: this.endDate,
|
|
|
|
- // },
|
|
|
|
|
|
+ // const { data } = await postExport(
|
|
|
|
+ // this.parameter,
|
|
// {},
|
|
// {},
|
|
// { responseType: 'blob' }
|
|
// { responseType: 'blob' }
|
|
// ).toPromise()
|
|
// ).toPromise()
|
|
@@ -847,7 +839,7 @@ export default {
|
|
// res: data,
|
|
// res: data,
|
|
// fileName: `${
|
|
// fileName: `${
|
|
// this.date.year + (this.date.month ? `-${this.date.month}` : '')
|
|
// this.date.year + (this.date.month ? `-${this.date.month}` : '')
|
|
- // }_采购合同`,
|
|
|
|
|
|
+ // }_采购合同1`,
|
|
// type: 'xls',
|
|
// type: 'xls',
|
|
// })
|
|
// })
|
|
// },
|
|
// },
|