Browse Source

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

hella_online_20240913
yufei_wang 2 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)
let subDetailTableData = null
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
subDetailTableData = annexData.subDetailTableData
}else{
subDetailTableData = item?.subDetailTableData
// HL-5940 maxLength
let hiddenUpload = false
if(item.maxLength&&annexList.length>=item.maxLength){
hiddenUpload = true
}
annexTableData.value.push({
align:item.align,
label: item.label,
@ -606,7 +621,7 @@ const getAnnexFileList = async (row) => {
showPreview:item.showPreview||false, //
showDownload:item.showDownload||false, //
hiddenDelete:item.hiddenDelete || false, //
hiddenUpload:item.hiddenUpload || false, //
hiddenUpload:hiddenUpload || item.hiddenUpload || false, //
})
}
if(subDetailTableData){

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

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

Loading…
Cancel
Save