Browse Source

打印明细,打印全部发货单

master_hella_20240701
yufei0306 8 months ago
parent
commit
073727f5d7
  1. 32
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
  2. 2
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

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

@ -90,7 +90,7 @@
}]" }]"
annexAliasLabel="其他附件" annexAliasLabel="其他附件"
:otherHeadButttonData="[{ :otherHeadButttonData="[{
label: '打印', label: '打印明细',
name: 'printing', name: 'printing',
hide: false, hide: false,
type: 'primary', type: 'primary',
@ -98,6 +98,26 @@
color: '', color: '',
float:'left', float:'left',
hasPermi: '' hasPermi: ''
},{
label: '打印全部发货单',
name: 'printing-all',
hide: false,
type: 'primary',
// icon: 'ep:operation',
color: '',
float:'left',
hasPermi: ''
}]"
:buttondataTable = "[{
label: '打印',
name: 'print',
hide: false,
type: 'primary',
// icon: 'ep:operation',
color: '',
float:'left',
link: true, //
hasPermi: ''
}]" }]"
:isBasic="false" :isBasic="false"
:allSchemas="SupplierinvoiceRequestMain.allSchemas" :allSchemas="SupplierinvoiceRequestMain.allSchemas"
@ -110,6 +130,7 @@
:apiDelete="SupplierinvoiceRequestDetailApi.deleteSupplierinvoiceRequestDetail" :apiDelete="SupplierinvoiceRequestDetailApi.deleteSupplierinvoiceRequestDetail"
:Echo="Echo" :Echo="Echo"
@buttonBaseClick="detailButtonBaseClick" @buttonBaseClick="detailButtonBaseClick"
@tableFormButton="tableFormButton"
/> />
<!-- 导入 --> <!-- 导入 -->
@ -632,9 +653,18 @@ const importSuccess = () => {
if(val == 'printing'){ if(val == 'printing'){
// //
handleDocumentPrint(clicKRowId.value) handleDocumentPrint(clicKRowId.value)
}else if(val === 'printing-all'){
//
} }
} }
const tableFormButton = (val, item) => {
console.log("点击的按钮",val)
if(val == 'print'){
//
}
}
// //
const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL const BASE_URL = import.meta.env.VITE_JMREPORT_BASE_URL
const documentSrc = ref(BASE_URL + '/jmreport/view/936875675614240768?token=' + getAccessToken()) const documentSrc = ref(BASE_URL + '/jmreport/view/936875675614240768?token=' + getAccessToken())

2
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

@ -1005,7 +1005,7 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
isDetail: false, isDetail: false,
isForm: false, isForm: false,
table: { table: {
width: 150, width: 250,
fixed: 'right' fixed: 'right'
}, },
hiddenInMain:true, hiddenInMain:true,

Loading…
Cancel
Save