Browse Source

供应商发票

hella_online_20240829
zhaoyiran 4 months ago
parent
commit
07b1d6fb57
  1. 20
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

20
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

@ -398,6 +398,7 @@ const searchTableSuccessDetail = async (formField, searchField, val, formRef,sea
defaultButtons.defaultAddBtn({ hasPermi: 'wms:supplierinvoice-request-main:create' }), // defaultButtons.defaultAddBtn({ hasPermi: 'wms:supplierinvoice-request-main:create' }), //
defaultButtons.defaultImportBtn({hasPermi: 'wms:supplierinvoice-request-main:import'}), // defaultButtons.defaultImportBtn({hasPermi: 'wms:supplierinvoice-request-main:import'}), //
defaultButtons.defaultExportBtn({hasPermi: 'wms:supplierinvoice-request-main:export'}), // defaultButtons.defaultExportBtn({hasPermi: 'wms:supplierinvoice-request-main:export'}), //
defaultButtons.mainLisSelectiontPointBtn(null), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
@ -419,6 +420,8 @@ const searchTableSuccessDetail = async (formField, searchField, val, formRef,sea
handleImport() handleImport()
} else if (val == 'export') { // } else if (val == 'export') { //
handleExport() handleExport()
} else if (val=='selection_point'){//
handleSelectionPoint()
} else if (val == 'refresh') { // } else if (val == 'refresh') { //
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({ searchFormClick({
@ -990,7 +993,6 @@ const handleImport = () => {
} }
/** /**
* tableForm方法 * tableForm方法
*/ */
@ -1139,6 +1141,22 @@ const importSuccess = () => {
window.open(documentSrc.value + '&id=' + id) window.open(documentSrc.value + '&id=' + id)
} }
const srcPoint = ref(BASE_URL + '/jmreport/view/972723426543935488?token=' + getAccessToken())
const handleSelectionPoint = async ()=>{
let rows:any = []
selectionRows.value.forEach(item=>{
rows = [...rows,...item.selectionRows.map(item1=>item1.id)]
})
if(rows.length==0){
message.warning('至少选择一条数据!')
return
}
console.log('批量打印',rows.join(','))
window.open(srcPoint.value+'&ids='+rows.join(','))
}
const handlePrintAll = async (masterId) => { const handlePrintAll = async (masterId) => {
// //
SupplierinvoiceRequestMainApi.printSupplierRecordByMasterId(masterId).then(res =>{ SupplierinvoiceRequestMainApi.printSupplierRecordByMasterId(masterId).then(res =>{

Loading…
Cancel
Save