Browse Source

供应商发票申请

master_hella_20240701
wangyufei 5 months ago
parent
commit
c7109f39a1
  1. 20
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue
  2. 18
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

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

@ -140,6 +140,7 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultExportBtn({hasPermi:'wms:supplierinvoice-record-main:export'}), //
// defaultButtons.mainLisSelectiontPointBtn(null), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -157,6 +158,8 @@ const HeadButttondata = [
const buttonBaseClick = (val, item) => {
if (val == 'export') { //
handleExport()
}else if (val=='selection_point'){//
handleSelectionPoint()
} else if (val == 'refresh') { //
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({
@ -170,7 +173,24 @@ const buttonBaseClick = (val, item) => {
console.log('其他按钮', item)
}
}
const handleSelectionPoint = async ()=>{
let rows:any = []
selectionRows.value.forEach(item=>{
rows = [...rows,...item.selectionRows.map(item1=>item1.id)]
})
if(rows.length==0){
return
}
console.log('批量打印',rows.join(','))
// let getLoading = ElLoading.service({
// lock: true,
// text: 'loading...',
// background: 'rgba(0, 0, 0, 0.7)'
// })
// getLoading?.close()
}
// -
const butttondata = (row,$index) => {
return []

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

@ -362,7 +362,7 @@ const searchTableSuccessDetail = async (formField, searchField, val, formRef,sea
{
label: t('ts.供应商确认'),
name: 'invoice_sent_out',
hide: isShowMainButton(row, ['8']),
hide: isShowMainButton(row, ['3','7']),
type: 'danger',
color: '',
link: true, //
@ -544,7 +544,9 @@ const handleImport = () => {
},{
label: t('ts.发票附件'),
prop: 'Annex',
tableName:'invoice'
tableName:'invoice',
hiddenDelete:false,
hiddenUpload:false
},{
label: t('ts.货运单附件'),
prop: 'Annex',
@ -554,7 +556,17 @@ const handleImport = () => {
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
clicKRowId.value = row.id
if(row.status=='1'||row.status=='2'||row.status=='3'||row.status=='6'){
//
if(row.status=='1'||row.status=='2'||row.status=='3'||row.status=='6'||row.status=='7'){
detailAnnexTable.value[0].hiddenDelete = false
detailAnnexTable.value[0].hiddenUpload = false
}else{
detailAnnexTable.value[0].hiddenDelete = true
detailAnnexTable.value[0].hiddenUpload = true
}
//
if(row.status=='7'){
detailAnnexTable.value[0].hiddenDelete = false
detailAnnexTable.value[0].hiddenUpload = false
}else{

Loading…
Cancel
Save