Browse Source

HL-5863SCP正式环境,供应商发货申请,已经发货的上传自检报告。不需要有限制

hella_online_20240911
yufei_wang 3 months ago
parent
commit
797a87b726
  1. 7
      src/components/Annex/src/Annex.vue
  2. 2
      src/components/Detail/src/Detail.vue
  3. 3
      src/components/UploadFile/src/UploadFile.vue
  4. 1
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

7
src/components/Annex/src/Annex.vue

@ -3,7 +3,7 @@
<div class="annex">
<div class="title flex items-center">
<!-- <div class="title-txt">附件</div> -->
<UploadFile :isShowFile="false" :isShowTip="false" :fileType="fileType" :fileSize="fileSize" :title="t('ts.添加附件')" :upData="upData" :limit="10"
<UploadFile :isShowFile="false" :isShowTip="false" :fileType="fileType" :fileSize="fileSize" :title="t('ts.添加附件')" :upData="upData" :limit="limit"
@update:modelValue="handleAnnexSuccess" v-if="showAddBtn"/>
<!-- HL-5838 5条限制影响了供应商发货申请上传质检报告这个限制没找到认领的需求所以放开 -->
<!-- @update:modelValue="handleAnnexSuccess" v-if="showAddBtn&&annexData.annexList.length<5"/> -->
@ -58,6 +58,11 @@ const props = defineProps({
return ['apk','doc', 'xls', 'ppt', 'txt', 'pdf','png', 'jpg', 'jpeg']
}
},
limit:{
type:Number,
required: false,
default:10
},
fileSize:{
type:Number,
required: false,

2
src/components/Detail/src/Detail.vue

@ -115,6 +115,7 @@
<Annex v-show="tabsList[current].label==annexItem.label"
:annexData="annexItem"
:fileType="annexItem.fileType"
:limit="annexItem.limit"
:fileSize="annexItem.fileSize"
:showAddBtn="!annexItem.hiddenUpload"
:showPreview="annexItem.showPreview"
@ -600,6 +601,7 @@ const getAnnexFileList = async (row) => {
hasSubDetail:item.hasSubDetail||false,
subDetailTableData:item.subDetailTableData,
fileType:item.fileType||['apk','doc', 'xls', 'ppt', 'txt', 'pdf','png', 'jpg', 'jpeg'],
limit:item.limit||10,
fileSize:item.fileSize||5,
showPreview:item.showPreview||false, //
showDownload:item.showDownload||false, //

3
src/components/UploadFile/src/UploadFile.vue

@ -114,7 +114,8 @@ const handleFileSuccess: UploadProps['onSuccess'] = (res: any,uploadFile: any):
fileListNew.pop()
fileList.value = fileListNew
uploadList.value.push({ name: uploadFile.name, url: res.data })
if (uploadList.value.length == uploadNumber.value) {
// if (uploadList.value.length == uploadNumber.value) {
if(fileList.value.every(it => it.status == 'success')) {
fileList.value = fileList.value.concat(uploadList.value)
uploadList.value = []
uploadNumber.value = 0

1
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -223,6 +223,7 @@ const annexInspectionDetail = ref({
hiddenUpload:false,
hiddenDelete:false,
fileType: ['pdf'],
limit:999999,
align: 'left',
//
subDetailTableData: {

Loading…
Cancel
Save