Browse Source

HL-5940SCP正式环境,设置供应商发票申请,发票附加上传只能上传一个附件

hella_online_20240913
yufei_wang 3 months ago
parent
commit
19a8db4595
  1. 17
      src/components/Detail/src/Detail.vue
  2. 1
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

17
src/components/Detail/src/Detail.vue

@ -589,10 +589,25 @@ const getAnnexFileList = async (row) => {
const annexData = annexTableData.value.find(annex=>annex.label === item.label) const annexData = annexTableData.value.find(annex=>annex.label === item.label)
let subDetailTableData = null let subDetailTableData = null
if(annexData){ if(annexData){
// HL-5940 maxLength
let hiddenUpload = false
if(item.maxLength&&annexList.length>=item.maxLength){
hiddenUpload = true
let findAnnex = annexTableData.value.find(item1=>item1.label==item.label)
if(findAnnex){
findAnnex.hiddenUpload = hiddenUpload || item.hiddenUpload || false //
}
}
annexData.annexList = annexList annexData.annexList = annexList
subDetailTableData = annexData.subDetailTableData subDetailTableData = annexData.subDetailTableData
}else{ }else{
subDetailTableData = item?.subDetailTableData subDetailTableData = item?.subDetailTableData
// HL-5940 maxLength
let hiddenUpload = false
if(item.maxLength&&annexList.length>=item.maxLength){
hiddenUpload = true
}
annexTableData.value.push({ annexTableData.value.push({
align:item.align, align:item.align,
label: item.label, label: item.label,
@ -606,7 +621,7 @@ const getAnnexFileList = async (row) => {
showPreview:item.showPreview||false, // showPreview:item.showPreview||false, //
showDownload:item.showDownload||false, // showDownload:item.showDownload||false, //
hiddenDelete:item.hiddenDelete || false, // hiddenDelete:item.hiddenDelete || false, //
hiddenUpload:item.hiddenUpload || false, // hiddenUpload:hiddenUpload || item.hiddenUpload || false, //
}) })
} }
if(subDetailTableData){ if(subDetailTableData){

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

@ -933,6 +933,7 @@ const detailAnnexTable = ref([
showPreview: true, showPreview: true,
showDownload:true, showDownload:true,
fileSize: 20, fileSize: 20,
maxLength:1,
fileType:['pdf'] fileType:['pdf']
}, },
{ {

Loading…
Cancel
Save