Browse Source

【nev-pc】所有使用initPrintAllData打印,添加await以及async

ag_report_nev
安虹睿 10 months ago
parent
commit
e5a8f07423
  1. 6
      fe/PC/src/views/finishedProductManage/completDump/completDumpNotePT.vue
  2. 6
      fe/PC/src/views/finishedProductManage/completDump/completDumpNoteZP.vue
  3. 6
      fe/PC/src/views/finishedProductManage/completDump/completDumpNoteZS.vue
  4. 6
      fe/PC/src/views/finishedProductManage/deliver/FISDeliverNote-Query.vue
  5. 4
      fe/PC/src/views/finishedProductManage/deliver/FISDeliverRequest.vue
  6. 6
      fe/PC/src/views/finishedProductManage/productionReturn/returnNote.vue
  7. 8
      fe/PC/src/views/inventoryManage/customerStorageAllocation/customerStorageAllocationNote.vue
  8. 4
      fe/PC/src/views/inventoryManage/interStorageAllocation/interStorageAllocationNote.vue
  9. 4
      fe/PC/src/views/inventoryManage/lineSideWarehouseAdjustmentSheet/lineSideWarehouseAdjustmentSheetNote.vue
  10. 6
      fe/PC/src/views/inventoryManage/lineSideWarehouseAllocation/lineSideWarehouseAllocationNote.vue
  11. 4
      fe/PC/src/views/inventoryManage/lineSideWarehouseScrapping/lineSideWarehouseScrappingNote.vue
  12. 8
      fe/PC/src/views/inventoryManage/nonproductive/materialReturnRequest.vue
  13. 8
      fe/PC/src/views/inventoryManage/nonproductive/pickingRequest.vue
  14. 4
      fe/PC/src/views/inventoryManage/recycledMaterials/materialsAdjustment.vue
  15. 4
      fe/PC/src/views/inventoryManage/recycledMaterials/materialsReceipt.vue
  16. 4
      fe/PC/src/views/kittingManage/KittingIssueNote.vue
  17. 4
      fe/PC/src/views/materialIssueBP/IssueNoteBP.vue
  18. 1
      fe/PC/src/views/materialIssueManage/automaticPT/automaticNotePT.vue
  19. 1
      fe/PC/src/views/materialIssueManage/automaticZP/automaticNoteZP.vue
  20. 1
      fe/PC/src/views/materialIssueManage/automaticZS/automaticNoteZS.vue
  21. 4
      fe/PC/src/views/materialIssuePT/IssueNotePT.vue
  22. 4
      fe/PC/src/views/materialIssueZP/IssueNoteZP.vue
  23. 4
      fe/PC/src/views/materialIssueZS/IssueNoteZS.vue
  24. 4
      fe/PC/src/views/rawMaterialManage/automaticMaterialCall/automaticCallJob-msQuery.vue
  25. 4
      fe/PC/src/views/rawMaterialManage/automaticMaterialCall/automaticCallNote.vue
  26. 8
      fe/PC/src/views/rawMaterialManage/beforeGroundingReturn/beforeGroundingReturnNote.vue
  27. 4
      fe/PC/src/views/rawMaterialManage/directIssue/directIssueNote.vue
  28. 4
      fe/PC/src/views/rawMaterialManage/manualMaterialRequest/IssueJob.vue
  29. 4
      fe/PC/src/views/rawMaterialManage/manualMaterialRequest/IssueNote.vue
  30. 4
      fe/PC/src/views/rawMaterialManage/materialDirectSend/materialDirectSendNote.vue
  31. 4
      fe/PC/src/views/rawMaterialManage/purchaseOnShelves/PutawayNote.vue
  32. 4
      fe/PC/src/views/rawMaterialManage/purchaseReceipt/PurchaseReceiptNote-msQuery.vue
  33. 8
      fe/PC/src/views/rawMaterialManage/purchaseReturn/returnNote.vue

6
fe/PC/src/views/finishedProductManage/completDump/completDumpNotePT.vue

@ -87,19 +87,19 @@ export default {
}, },
methods: { methods: {
// //
// drawerbutton (val) { // async drawerbutton (val) {
// // // //
// if(val == 'print'){ // if(val == 'print'){
// if((this.propsData.supplierCode) && (!this.propsData.supplierShortName)){ // if((this.propsData.supplierCode) && (!this.propsData.supplierShortName)){
// getOneSupplierInfoByCode(this.propsData.supplierCode).then(res => { // getOneSupplierInfoByCode(this.propsData.supplierCode).then(res => {
// if(res){this.propsData.supplierShortName = res.shortName || res.name} // if(res){this.propsData.supplierShortName = res.shortName || res.name}
// let data = initPrintAllData(this.tableDataDetails,'thd.rdlx','PurReturnReason'); // let data = await initPrintAllData(this.tableDataDetails,'thd.rdlx','PurReturnReason');
// this.Print(data) // this.Print(data)
// }).catch(err => { // }).catch(err => {
// console.log(err) // console.log(err)
// }) // })
// }else{ // }else{
// let data = initPrintAllData(this.tableDataDetails,'thd.rdlx','PurReturnReason'); // let data = await initPrintAllData(this.tableDataDetails,'thd.rdlx','PurReturnReason');
// this.Print(data) // this.Print(data)
// } // }
// } // }

6
fe/PC/src/views/finishedProductManage/completDump/completDumpNoteZP.vue

@ -87,19 +87,19 @@ export default {
}, },
methods: { methods: {
// //
// drawerbutton (val) { // async drawerbutton (val) {
// // // //
// if(val == 'print'){ // if(val == 'print'){
// if((this.propsData.supplierCode) && (!this.propsData.supplierShortName)){ // if((this.propsData.supplierCode) && (!this.propsData.supplierShortName)){
// getOneSupplierInfoByCode(this.propsData.supplierCode).then(res => { // getOneSupplierInfoByCode(this.propsData.supplierCode).then(res => {
// if(res){this.propsData.supplierShortName = res.shortName || res.name} // if(res){this.propsData.supplierShortName = res.shortName || res.name}
// let data = initPrintAllData(this.tableDataDetails,'thd.rdlx','PurReturnReason'); // let data = await initPrintAllData(this.tableDataDetails,'thd.rdlx','PurReturnReason');
// this.Print(data) // this.Print(data)
// }).catch(err => { // }).catch(err => {
// console.log(err) // console.log(err)
// }) // })
// }else{ // }else{
// let data = initPrintAllData(this.tableDataDetails,'thd.rdlx','PurReturnReason'); // let data = await initPrintAllData(this.tableDataDetails,'thd.rdlx','PurReturnReason');
// this.Print(data) // this.Print(data)
// } // }
// } // }

6
fe/PC/src/views/finishedProductManage/completDump/completDumpNoteZS.vue

@ -87,19 +87,19 @@ export default {
}, },
methods: { methods: {
// //
// drawerbutton (val) { // async drawerbutton (val) {
// // // //
// if(val == 'print'){ // if(val == 'print'){
// if((this.propsData.supplierCode) && (!this.propsData.supplierShortName)){ // if((this.propsData.supplierCode) && (!this.propsData.supplierShortName)){
// getOneSupplierInfoByCode(this.propsData.supplierCode).then(res => { // getOneSupplierInfoByCode(this.propsData.supplierCode).then(res => {
// if(res){this.propsData.supplierShortName = res.shortName || res.name} // if(res){this.propsData.supplierShortName = res.shortName || res.name}
// let data = initPrintAllData(this.tableDataDetails,'thd.rdlx','PurReturnReason'); // let data = await initPrintAllData(this.tableDataDetails,'thd.rdlx','PurReturnReason');
// this.Print(data) // this.Print(data)
// }).catch(err => { // }).catch(err => {
// console.log(err) // console.log(err)
// }) // })
// }else{ // }else{
// let data = initPrintAllData(this.tableDataDetails,'thd.rdlx','PurReturnReason'); // let data = await initPrintAllData(this.tableDataDetails,'thd.rdlx','PurReturnReason');
// this.Print(data) // this.Print(data)
// } // }
// } // }

6
fe/PC/src/views/finishedProductManage/deliver/FISDeliverNote-Query.vue

@ -117,15 +117,15 @@ export default {
drawerbutton (val) { drawerbutton (val) {
// //
if(val == 'print'){ if(val == 'print'){
this.beforePrintHandle(()=>{ this.beforePrintHandle(async ()=>{
let _option = { let _option = {
details:{ details:{
packingCode:"toPackingCode", packingCode:"toPackingCode",
} }
} }
// let data = initPrintAllData(this.tableDataDetails,'chdmxb.rdlx',false,_option); // let data = await initPrintAllData(this.tableDataDetails,'chdmxb.rdlx',false,_option);
// todo: // todo:
let data = initPrintAllData(this.tableDataDetails,'fhd.rdlx',false,_option); let data = await initPrintAllData(this.tableDataDetails,'fhd.rdlx',false,_option);
this.Loading.appMainLoading = true this.Loading.appMainLoading = true
this.Print(data) this.Print(data)
sumPrint(this.propsData.number, this.URL).then(res => { sumPrint(this.propsData.number, this.URL).then(res => {

4
fe/PC/src/views/finishedProductManage/deliver/FISDeliverRequest.vue

@ -268,13 +268,13 @@ export default {
// //
this.Loading.appMainLoading = true this.Loading.appMainLoading = true
getPageListWip(param, 'wms/store/deliver-note/list-for-fis',true) getPageListWip(param, 'wms/store/deliver-note/list-for-fis',true)
.then(res => { .then(async res => {
let _option = { let _option = {
details:{ details:{
packingCode:"toPackingCode", packingCode:"toPackingCode",
} }
} }
let data = initPrintAllData(res.items[0],'chdmxb.rdlx',false,_option); let data = await initPrintAllData(res.items[0],'chdmxb.rdlx',false,_option);
this.Print(data) this.Print(data)
this.Loading.appMainLoading = false this.Loading.appMainLoading = false
}) })

6
fe/PC/src/views/finishedProductManage/productionReturn/returnNote.vue

@ -85,7 +85,7 @@ export default {
}, },
methods: { methods: {
// //
drawerbutton (val) { async drawerbutton (val) {
// //
if(val == 'printer'){ if(val == 'printer'){
this.tableDataDetails.title = "线边仓退料单" this.tableDataDetails.title = "线边仓退料单"
@ -94,9 +94,9 @@ export default {
fromLot:'toLot' fromLot:'toLot'
} }
} }
// let _data = initPrintAllData(this.tableDataDetails,'fsctl.rdlx',false,_option); // let _data = await initPrintAllData(this.tableDataDetails,'fsctl.rdlx',false,_option);
// todo: // todo:
let _data = initPrintAllData(this.tableDataDetails,'xbctl.rdlx',false,_option,true); let _data = await initPrintAllData(this.tableDataDetails,'xbctl.rdlx',false,_option,true);
this.Print(_data) this.Print(_data)
} }
}, },

8
fe/PC/src/views/inventoryManage/customerStorageAllocation/customerStorageAllocationNote.vue

@ -104,13 +104,13 @@ export default {
if(val == 'print'){ if(val == 'print'){
// toLocationCode // toLocationCode
getLocationByCode(this.tableDataDetails.details[0].toLocationCode) getLocationByCode(this.tableDataDetails.details[0].toLocationCode)
.then(res=>{ .then(async res=>{
this.tableDataDetails.details.forEach(item=>{item.toLocationName = res.name}) this.tableDataDetails.details.forEach(item=>{item.toLocationName = res.name})
let data = initPrintAllData(this.tableDataDetails,'khcwdbd.rdlx'); let data = await initPrintAllData(this.tableDataDetails,'khcwdbd.rdlx');
this.Print(data) this.Print(data)
}) })
.catch(err=>{ .catch(async err=>{
let data = initPrintAllData(this.tableDataDetails,'khcwdbd.rdlx'); let data = await initPrintAllData(this.tableDataDetails,'khcwdbd.rdlx');
this.Print(data) this.Print(data)
}) })
} }

4
fe/PC/src/views/inventoryManage/interStorageAllocation/interStorageAllocationNote.vue

@ -100,9 +100,9 @@ export default {
}, },
methods: { methods: {
// //
drawerbutton (val) { async drawerbutton (val) {
if(val == 'print'){ if(val == 'print'){
let data = initPrintAllData(this.tableDataDetails,'cwdbd.rdlx'); let data = await initPrintAllData(this.tableDataDetails,'cwdbd.rdlx');
this.Print(data) this.Print(data)
} }
}, },

4
fe/PC/src/views/inventoryManage/lineSideWarehouseAdjustmentSheet/lineSideWarehouseAdjustmentSheetNote.vue

@ -87,7 +87,7 @@ export default {
}, },
methods: { methods: {
// //
drawerbutton (val) { async drawerbutton (val) {
// //
if(val == 'print'){ if(val == 'print'){
let _option = { let _option = {
@ -95,7 +95,7 @@ export default {
locationCode:"toLocationCode", locationCode:"toLocationCode",
} }
} }
let data = initPrintAllData(this.tableDataDetails,'tzd.rdlx','AdjustmentReason',_option); let data = await initPrintAllData(this.tableDataDetails,'tzd.rdlx','AdjustmentReason',_option);
this.Print(data) this.Print(data)
} }
}, },

6
fe/PC/src/views/inventoryManage/lineSideWarehouseAllocation/lineSideWarehouseAllocationNote.vue

@ -100,11 +100,11 @@ export default {
}, },
methods: { methods: {
// //
drawerbutton (val) { async drawerbutton (val) {
if(val == 'print'){ if(val == 'print'){
// todo:() // todo:()
// let data = initPrintAllData(this.tableDataDetails,'cwdbd.rdlx'); // let data = await initPrintAllData(this.tableDataDetails,'cwdbd.rdlx');
let data = initPrintAllData(this.tableDataDetails,'lineSideWarehouse.rdlx'); let data = await initPrintAllData(this.tableDataDetails,'lineSideWarehouse.rdlx');
this.Print(data) this.Print(data)
} }
}, },

4
fe/PC/src/views/inventoryManage/lineSideWarehouseScrapping/lineSideWarehouseScrappingNote.vue

@ -88,9 +88,9 @@ export default {
}, },
methods: { methods: {
// //
drawerbutton (val) { async drawerbutton (val) {
if(val == 'print'){ if(val == 'print'){
let data = initPrintAllData(this.tableDataDetails,'xbcbfd.rdlx','Reason'); let data = await initPrintAllData(this.tableDataDetails,'xbcbfd.rdlx','Reason');
this.Print(data) this.Print(data)
} }
}, },

8
fe/PC/src/views/inventoryManage/nonproductive/materialReturnRequest.vue

@ -134,7 +134,7 @@ export default {
}) })
}) })
this.Loading.appMainLoading = true this.Loading.appMainLoading = true
getPageList(this.PageListParams, 'basedata/item-basic').then(res => { getPageList(this.PageListParams, 'basedata/item-basic').then(async res => {
this.Loading.appMainLoading = false this.Loading.appMainLoading = false
res.items.forEach(res_item=>{ res.items.forEach(res_item=>{
this.tableDataDetails.details.forEach(detail=>{ this.tableDataDetails.details.forEach(detail=>{
@ -143,12 +143,12 @@ export default {
} }
}) })
}) })
let data = initPrintAllData(this.tableDataDetails,'fsctl.rdlx',false,false,true); let data = await initPrintAllData(this.tableDataDetails,'fsctl.rdlx',false,false,true);
this.Print(data) this.Print(data)
}).catch(err => { }).catch(async err => {
this.Loading.appMainLoading = false this.Loading.appMainLoading = false
this.$message.error('物品信息配置获取失败'); this.$message.error('物品信息配置获取失败');
let data = initPrintAllData(this.tableDataDetails,'fsctl.rdlx',false,false,true); let data = await initPrintAllData(this.tableDataDetails,'fsctl.rdlx',false,false,true);
this.Print(data) this.Print(data)
}) })
} else { } else {

8
fe/PC/src/views/inventoryManage/nonproductive/pickingRequest.vue

@ -134,7 +134,7 @@ export default {
}) })
}) })
this.Loading.appMainLoading = true this.Loading.appMainLoading = true
getPageList(this.PageListParams, 'basedata/item-basic').then(res => { getPageList(this.PageListParams, 'basedata/item-basic').then(async res => {
this.Loading.appMainLoading = false this.Loading.appMainLoading = false
res.items.forEach(res_item=>{ res.items.forEach(res_item=>{
this.tableDataDetails.details.forEach(detail=>{ this.tableDataDetails.details.forEach(detail=>{
@ -143,12 +143,12 @@ export default {
} }
}) })
}) })
let data = initPrintAllData(this.tableDataDetails,'fscll.rdlx',false,false,true); let data = await initPrintAllData(this.tableDataDetails,'fscll.rdlx',false,false,true);
this.Print(data) this.Print(data)
}).catch(err => { }).catch(async err => {
this.Loading.appMainLoading = false this.Loading.appMainLoading = false
this.$message.error('物品信息配置获取失败'); this.$message.error('物品信息配置获取失败');
let data = initPrintAllData(this.tableDataDetails,'fscll.rdlx',false,false,true); let data = await initPrintAllData(this.tableDataDetails,'fscll.rdlx',false,false,true);
this.Print(data) this.Print(data)
}) })
} else { } else {

4
fe/PC/src/views/inventoryManage/recycledMaterials/materialsAdjustment.vue

@ -86,7 +86,7 @@ export default {
}, },
methods: { methods: {
// //
drawerbutton (val) { async drawerbutton (val) {
// //
if(val == 'print'){ if(val == 'print'){
// //
@ -102,7 +102,7 @@ export default {
qty:"toQty", qty:"toQty",
} }
} }
let data = initPrintAllData(_propsData,'tzd.rdlx','AdjustmentReason',_option); let data = await initPrintAllData(_propsData,'tzd.rdlx','AdjustmentReason',_option);
this.Print(data) this.Print(data)
} }
}, },

4
fe/PC/src/views/inventoryManage/recycledMaterials/materialsReceipt.vue

@ -86,10 +86,10 @@ export default {
}, },
methods: { methods: {
// //
drawerbutton (val) { async drawerbutton (val) {
// //
if(val == 'print'){ if(val == 'print'){
let data = initPrintAllData(this.tableDataDetails,'hslrkd.rdlx',false,false,true); let data = await initPrintAllData(this.tableDataDetails,'hslrkd.rdlx',false,false,true);
this.Print(data) this.Print(data)
} }
}, },

4
fe/PC/src/views/kittingManage/KittingIssueNote.vue

@ -98,7 +98,7 @@
this.paging(); this.paging();
}, },
methods: { methods: {
drawerbuttonHanlde (val) { async drawerbuttonHanlde (val) {
// //
if(val == 'print'){ if(val == 'print'){
let _propsData = JSON.parse(JSON.stringify(this.tableDataDetails)) let _propsData = JSON.parse(JSON.stringify(this.tableDataDetails))
@ -106,7 +106,7 @@
item.handledToLot = item.handledToLot + " " item.handledToLot = item.handledToLot + " "
item.boxQtyShow = _propsData.enumIssueSendType == 2 ? item.requestQty : '' item.boxQtyShow = _propsData.enumIssueSendType == 2 ? item.requestQty : ''
}) })
let data = initPrintAllData(_propsData,'xbcll.rdlx',false,false,true); let data = await initPrintAllData(_propsData,'xbcll.rdlx',false,false,true);
this.Print(data) this.Print(data)
} else { } else {
this.drawerbutton(val, this) this.drawerbutton(val, this)

4
fe/PC/src/views/materialIssueBP/IssueNoteBP.vue

@ -98,7 +98,7 @@ export default {
this.paging(); this.paging();
}, },
methods: { methods: {
drawerbuttonHanlde (val) { async drawerbuttonHanlde (val) {
// //
if(val == 'print'){ if(val == 'print'){
let _propsData = JSON.parse(JSON.stringify(this.tableDataDetails)) let _propsData = JSON.parse(JSON.stringify(this.tableDataDetails))
@ -106,7 +106,7 @@ export default {
item.handledToLot = item.handledToLot + " " item.handledToLot = item.handledToLot + " "
item.boxQtyShow = _propsData.enumIssueSendType == 2 ? item.requestQty : '' item.boxQtyShow = _propsData.enumIssueSendType == 2 ? item.requestQty : ''
}) })
let data = initPrintAllData(_propsData,'xbcll.rdlx',false,false,true); let data = await initPrintAllData(_propsData,'xbcll.rdlx',false,false,true);
this.Print(data) this.Print(data)
} else { } else {
this.drawerbutton(val, this) this.drawerbutton(val, this)

1
fe/PC/src/views/materialIssueManage/automaticPT/automaticNotePT.vue

@ -51,7 +51,6 @@ import { LoadingMixins } from "@/mixins/LoadingMixins"
import { drawerMixins } from "@/mixins/drawerMixins" import { drawerMixins } from "@/mixins/drawerMixins"
import { TableHeaderMixins } from "@/mixins/TableHeaderMixins" import { TableHeaderMixins } from "@/mixins/TableHeaderMixins"
import { mixins } from "@/mixins/mixins" import { mixins } from "@/mixins/mixins"
import { initPrintAllData } from "@/mixins/printMixin"
export default { export default {
name: "automaticNotePT", name: "automaticNotePT",
mixins: [ mixins: [

1
fe/PC/src/views/materialIssueManage/automaticZP/automaticNoteZP.vue

@ -51,7 +51,6 @@ import { LoadingMixins } from "@/mixins/LoadingMixins"
import { drawerMixins } from "@/mixins/drawerMixins" import { drawerMixins } from "@/mixins/drawerMixins"
import { TableHeaderMixins } from "@/mixins/TableHeaderMixins" import { TableHeaderMixins } from "@/mixins/TableHeaderMixins"
import { mixins } from "@/mixins/mixins" import { mixins } from "@/mixins/mixins"
import { initPrintAllData } from "@/mixins/printMixin"
export default { export default {
name: "automaticNoteZP", name: "automaticNoteZP",
mixins: [ mixins: [

1
fe/PC/src/views/materialIssueManage/automaticZS/automaticNoteZS.vue

@ -51,7 +51,6 @@ import { LoadingMixins } from "@/mixins/LoadingMixins"
import { drawerMixins } from "@/mixins/drawerMixins" import { drawerMixins } from "@/mixins/drawerMixins"
import { TableHeaderMixins } from "@/mixins/TableHeaderMixins" import { TableHeaderMixins } from "@/mixins/TableHeaderMixins"
import { mixins } from "@/mixins/mixins" import { mixins } from "@/mixins/mixins"
import { initPrintAllData } from "@/mixins/printMixin"
export default { export default {
name: "automaticNoteZS", name: "automaticNoteZS",
mixins: [ mixins: [

4
fe/PC/src/views/materialIssuePT/IssueNotePT.vue

@ -98,7 +98,7 @@ export default {
this.paging(); this.paging();
}, },
methods: { methods: {
drawerbuttonHanlde (val) { async drawerbuttonHanlde (val) {
// //
if(val == 'print'){ if(val == 'print'){
let _propsData = JSON.parse(JSON.stringify(this.tableDataDetails)) let _propsData = JSON.parse(JSON.stringify(this.tableDataDetails))
@ -106,7 +106,7 @@ export default {
item.handledToLot = item.handledToLot + " " item.handledToLot = item.handledToLot + " "
item.boxQtyShow = _propsData.enumIssueSendType == 2 ? item.requestQty : '' item.boxQtyShow = _propsData.enumIssueSendType == 2 ? item.requestQty : ''
}) })
let data = initPrintAllData(_propsData,'xbcll.rdlx',false,false,true); let data = await initPrintAllData(_propsData,'xbcll.rdlx',false,false,true);
this.Print(data) this.Print(data)
} else { } else {
this.drawerbutton(val, this) this.drawerbutton(val, this)

4
fe/PC/src/views/materialIssueZP/IssueNoteZP.vue

@ -98,7 +98,7 @@ export default {
this.paging(); this.paging();
}, },
methods: { methods: {
drawerbuttonHanlde (val) { async drawerbuttonHanlde (val) {
// //
if(val == 'print'){ if(val == 'print'){
let _propsData = JSON.parse(JSON.stringify(this.tableDataDetails)) let _propsData = JSON.parse(JSON.stringify(this.tableDataDetails))
@ -106,7 +106,7 @@ export default {
item.handledToLot = item.handledToLot + " " item.handledToLot = item.handledToLot + " "
item.boxQtyShow = _propsData.enumIssueSendType == 2 ? item.requestQty : '' item.boxQtyShow = _propsData.enumIssueSendType == 2 ? item.requestQty : ''
}) })
let data = initPrintAllData(_propsData,'xbcll.rdlx',false,false,true); let data = await initPrintAllData(_propsData,'xbcll.rdlx',false,false,true);
this.Print(data) this.Print(data)
} else { } else {
this.drawerbutton(val, this) this.drawerbutton(val, this)

4
fe/PC/src/views/materialIssueZS/IssueNoteZS.vue

@ -98,7 +98,7 @@ export default {
this.paging(); this.paging();
}, },
methods: { methods: {
drawerbuttonHanlde (val) { async drawerbuttonHanlde (val) {
// //
if(val == 'print'){ if(val == 'print'){
let _propsData = JSON.parse(JSON.stringify(this.tableDataDetails)) let _propsData = JSON.parse(JSON.stringify(this.tableDataDetails))
@ -106,7 +106,7 @@ export default {
item.handledToLot = item.handledToLot + " " item.handledToLot = item.handledToLot + " "
item.boxQtyShow = _propsData.enumIssueSendType == 2 ? item.requestQty : '' item.boxQtyShow = _propsData.enumIssueSendType == 2 ? item.requestQty : ''
}) })
let data = initPrintAllData(_propsData,'xbcll.rdlx',false,false,true); let data = await initPrintAllData(_propsData,'xbcll.rdlx',false,false,true);
this.Print(data) this.Print(data)
} else { } else {
this.drawerbutton(val, this) this.drawerbutton(val, this)

4
fe/PC/src/views/rawMaterialManage/automaticMaterialCall/automaticCallJob-msQuery.vue

@ -463,7 +463,7 @@ export default {
}) })
} }
}, },
drawerbutton (val) { async drawerbutton (val) {
// //
if(val == 'print'){ if(val == 'print'){
let _propsData = JSON.parse(JSON.stringify(this.tableDataDetails)) let _propsData = JSON.parse(JSON.stringify(this.tableDataDetails))
@ -481,7 +481,7 @@ export default {
fromLocationErpCode:"recommendLocationErpCode", fromLocationErpCode:"recommendLocationErpCode",
} }
} }
let data = initPrintAllData(_propsData,'xbcll.rdlx',false,_option); let data = await initPrintAllData(_propsData,'xbcll.rdlx',false,_option);
this.Print(data) this.Print(data)
} else { } else {
drawerMixins.methods.drawerbutton(val, this) drawerMixins.methods.drawerbutton(val, this)

4
fe/PC/src/views/rawMaterialManage/automaticMaterialCall/automaticCallNote.vue

@ -122,7 +122,7 @@ export default {
this.Loading.tableLoading = false this.Loading.tableLoading = false
}) })
}, },
drawerbutton (val) { async drawerbutton (val) {
// //
if(val == 'print'){ if(val == 'print'){
let _propsData = JSON.parse(JSON.stringify(this.tableDataDetails)) let _propsData = JSON.parse(JSON.stringify(this.tableDataDetails))
@ -134,7 +134,7 @@ export default {
let _option = { let _option = {
number:"requestNumber", number:"requestNumber",
} }
let data = initPrintAllData(_propsData,'xbcll.rdlx',false,_option); let data = await initPrintAllData(_propsData,'xbcll.rdlx',false,_option);
this.Print(data) this.Print(data)
} else if(val == 'confirm') { } else if(val == 'confirm') {
this.Loading.appMainLoading = true this.Loading.appMainLoading = true

8
fe/PC/src/views/rawMaterialManage/beforeGroundingReturn/beforeGroundingReturnNote.vue

@ -104,19 +104,19 @@ export default {
}) })
}, },
// //
drawerbutton (val) { async drawerbutton (val) {
// //
if(val == 'print'){ if(val == 'print'){
if((this.propsData.supplierCode) && (!this.propsData.supplierShortName)){ if((this.propsData.supplierCode) && (!this.propsData.supplierShortName)){
getOneSupplierInfoByCode(this.propsData.supplierCode).then(res => { getOneSupplierInfoByCode(this.propsData.supplierCode).then(async res => {
if(res){this.propsData.supplierShortName = res.shortName || res.name} if(res){this.propsData.supplierShortName = res.shortName || res.name}
let data = initPrintAllData(this.tableDataDetails,'thd.rdlx','UnqualifiedReason'); let data = await initPrintAllData(this.tableDataDetails,'thd.rdlx','UnqualifiedReason');
this.Print(data) this.Print(data)
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
}) })
}else{ }else{
let data = initPrintAllData(this.tableDataDetails,'thd.rdlx','UnqualifiedReason'); let data = await initPrintAllData(this.tableDataDetails,'thd.rdlx','UnqualifiedReason');
this.Print(data) this.Print(data)
} }
} }

4
fe/PC/src/views/rawMaterialManage/directIssue/directIssueNote.vue

@ -102,7 +102,7 @@ export default {
this.Loading.tableLoading = false this.Loading.tableLoading = false
}) })
}, },
drawerbutton (val) { async drawerbutton (val) {
// //
if(val == 'print'){ if(val == 'print'){
let _propsData = JSON.parse(JSON.stringify(this.tableDataDetails)) let _propsData = JSON.parse(JSON.stringify(this.tableDataDetails))
@ -110,7 +110,7 @@ export default {
_propsData.details.forEach(item=>{ _propsData.details.forEach(item=>{
item.fromLot = item.fromLot + " " item.fromLot = item.fromLot + " "
}) })
let data = initPrintAllData(_propsData,'zjfl.rdlx'); let data = await initPrintAllData(_propsData,'zjfl.rdlx');
this.Print(data) this.Print(data)
} else { } else {
drawerMixins.methods.drawerbutton(val, this) drawerMixins.methods.drawerbutton(val, this)

4
fe/PC/src/views/rawMaterialManage/manualMaterialRequest/IssueJob.vue

@ -465,7 +465,7 @@ export default {
}) })
} }
}, },
drawerbutton (val) { async drawerbutton (val) {
// //
if(val == 'print'){ if(val == 'print'){
let _propsData = JSON.parse(JSON.stringify(this.tableDataDetails)) let _propsData = JSON.parse(JSON.stringify(this.tableDataDetails))
@ -481,7 +481,7 @@ export default {
fromLocationErpCode:"recommendFromLocationErpCode", fromLocationErpCode:"recommendFromLocationErpCode",
} }
} }
let data = initPrintAllData(_propsData,'xbcll.rdlx',false,_option); let data = await initPrintAllData(_propsData,'xbcll.rdlx',false,_option);
this.Print(data) this.Print(data)
} else { } else {
drawerMixins.methods.drawerbutton(val, this) drawerMixins.methods.drawerbutton(val, this)

4
fe/PC/src/views/rawMaterialManage/manualMaterialRequest/IssueNote.vue

@ -103,7 +103,7 @@ export default {
this.Loading.tableLoading = false this.Loading.tableLoading = false
}) })
}, },
drawerbutton (val) { async drawerbutton (val) {
// //
if(val == 'print'){ if(val == 'print'){
let _propsData = JSON.parse(JSON.stringify(this.tableDataDetails)) let _propsData = JSON.parse(JSON.stringify(this.tableDataDetails))
@ -115,7 +115,7 @@ export default {
let _option = { let _option = {
number:"requestNumber", number:"requestNumber",
} }
let data = initPrintAllData(_propsData,'xbcll.rdlx',false,_option); let data = await initPrintAllData(_propsData,'xbcll.rdlx',false,_option);
this.Print(data) this.Print(data)
} else { } else {
drawerMixins.methods.drawerbutton(val, this) drawerMixins.methods.drawerbutton(val, this)

4
fe/PC/src/views/rawMaterialManage/materialDirectSend/materialDirectSendNote.vue

@ -118,13 +118,13 @@
drawerbutton (val) { drawerbutton (val) {
// //
if(val == 'print'){ if(val == 'print'){
this.beforePrintHandle(()=>{ this.beforePrintHandle(async ()=>{
let _option = { let _option = {
details:{ details:{
packingCode:"toPackingCode", packingCode:"toPackingCode",
} }
} }
let data = initPrintAllData(this.tableDataDetails,'chdmxb.rdlx',false,_option); let data = await initPrintAllData(this.tableDataDetails,'chdmxb.rdlx',false,_option);
this.Print(data) this.Print(data)
sumPrint(this.propsData.number, this.URL).then(res => { sumPrint(this.propsData.number, this.URL).then(res => {
this.paging() this.paging()

4
fe/PC/src/views/rawMaterialManage/purchaseOnShelves/PutawayNote.vue

@ -109,7 +109,7 @@ export default {
this.tableDataDetails.details.forEach(item => { this.tableDataDetails.details.forEach(item => {
_ids.push(item.handledPackingCode) _ids.push(item.handledPackingCode)
}); });
getInventoryLabelByCodes(_ids).then(res => { getInventoryLabelByCodes(_ids).then(async res => {
let _printData = JSON.parse(JSON.stringify(this.tableDataDetails)) let _printData = JSON.parse(JSON.stringify(this.tableDataDetails))
if(res && res.length > 0){ if(res && res.length > 0){
_printData.supplierCode = res[0].supplierCode; _printData.supplierCode = res[0].supplierCode;
@ -133,7 +133,7 @@ export default {
}) })
_printData.details = [] _printData.details = []
for(let i in _sumArr){ _printData.details.push(_sumArr[i]) } for(let i in _sumArr){ _printData.details.push(_sumArr[i]) }
let data = initPrintAllData(_printData,'ysd.rdlx',false,false,true); let data = await initPrintAllData(_printData,'ysd.rdlx',false,false,true);
this.Print(data).then(()=>{ this.Print(data).then(()=>{
// //
putawayPrintUpdateRemark(this.propsData.id) putawayPrintUpdateRemark(this.propsData.id)

4
fe/PC/src/views/rawMaterialManage/purchaseReceipt/PurchaseReceiptNote-msQuery.vue

@ -208,7 +208,7 @@ export default {
drawerbutton (val) { drawerbutton (val) {
// //
if(val == 'print-shd'){ if(val == 'print-shd'){
this.toPrintHttp(()=>{ this.toPrintHttp(async ()=>{
let _printData = JSON.parse(JSON.stringify(this.tableDataDetails)) let _printData = JSON.parse(JSON.stringify(this.tableDataDetails))
_printData.details = [] _printData.details = []
let _hg=[],_no=[] let _hg=[],_no=[]
@ -225,7 +225,7 @@ export default {
// } // }
}); });
_printData.details = _hg.concat(_no); _printData.details = _hg.concat(_no);
let data = initPrintAllData(_printData,'cgshd.rdlx'); let data = await initPrintAllData(_printData,'cgshd.rdlx');
this.Print(data) this.Print(data)
}) })
} }

8
fe/PC/src/views/rawMaterialManage/purchaseReturn/returnNote.vue

@ -104,19 +104,19 @@ export default {
}) })
}, },
// //
drawerbutton (val) { async drawerbutton (val) {
// //
if(val == 'print'){ if(val == 'print'){
if((this.propsData.supplierCode) && (!this.propsData.supplierShortName)){ if((this.propsData.supplierCode) && (!this.propsData.supplierShortName)){
getOneSupplierInfoByCode(this.propsData.supplierCode).then(res => { getOneSupplierInfoByCode(this.propsData.supplierCode).then(async res => {
if(res){this.propsData.supplierShortName = res.shortName || res.name} if(res){this.propsData.supplierShortName = res.shortName || res.name}
let data = initPrintAllData(this.tableDataDetails,'thd.rdlx','PurReturnReason'); let data = await initPrintAllData(this.tableDataDetails,'thd.rdlx','PurReturnReason');
this.Print(data) this.Print(data)
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
}) })
}else{ }else{
let data = initPrintAllData(this.tableDataDetails,'thd.rdlx','PurReturnReason'); let data = await initPrintAllData(this.tableDataDetails,'thd.rdlx','PurReturnReason');
this.Print(data) this.Print(data)
} }
} }

Loading…
Cancel
Save