Browse Source

文件文字大小

master_hella_20240701
wangyufei 5 months ago
parent
commit
2bb10d5f68
  1. 6
      src/components/Annex/src/Annex.vue
  2. 2
      src/components/Detail/src/Detail.vue
  3. 10
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue
  4. 108
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/supplierinvoiceRequestMain.data.ts

6
src/components/Annex/src/Annex.vue

@ -3,7 +3,7 @@
<div class="annex"> <div class="annex">
<div class="title flex items-center"> <div class="title flex items-center">
<!-- <div class="title-txt">附件</div> --> <!-- <div class="title-txt">附件</div> -->
<UploadFile :isShowFile="false" :isShowTip="false" :fileType="fileType" :title="t('ts.添加附件')" :upData="upData" :limit="10" <UploadFile :isShowFile="false" :isShowTip="false" :fileType="fileType" :fileSize="fileSize" :title="t('ts.添加附件')" :upData="upData" :limit="10"
@update:modelValue="handleAnnexSuccess" v-if="showAddBtn&&annexData.annexList.length<5"/> @update:modelValue="handleAnnexSuccess" v-if="showAddBtn&&annexData.annexList.length<5"/>
</div> </div>
<div class="list"> <div class="list">
@ -56,6 +56,10 @@ const props = defineProps({
return ['apk','doc', 'xls', 'ppt', 'txt', 'pdf','png', 'jpg', 'jpeg'] return ['apk','doc', 'xls', 'ppt', 'txt', 'pdf','png', 'jpg', 'jpeg']
} }
}, },
fileSize:{
type:Number,
required: false,
},
showPreview: { showPreview: {
type: Boolean, type: Boolean,
required: false required: false

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

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

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

@ -607,17 +607,21 @@ const handleImport = () => {
prop: 'Annex', prop: 'Annex',
tableName:'contract', tableName:'contract',
hiddenDelete:false, hiddenDelete:false,
hiddenUpload:false hiddenUpload:false,
fileSize:20
},{ },{
label: t('ts.发票附件'), label: t('ts.发票附件'),
prop: 'Annex', prop: 'Annex',
tableName:'invoice', tableName:'invoice',
hiddenDelete:false, hiddenDelete:false,
hiddenUpload:false hiddenUpload:false,
fileSize:20
},{ },{
label: t('ts.货运单附件'), label: t('ts.货运单附件'),
prop: 'Annex', prop: 'Annex',
tableName:'waybill' tableName:'waybill',
fileSize:20
}]) }])
const openDetail = (row : any, titleName : any, titleValue : any) => { const openDetail = (row : any, titleName : any, titleValue : any) => {
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name

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

@ -1204,7 +1204,7 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
} }
}, },
{ {
label: '差额', label: '单价差额',
field: 'differencePrice', field: 'differencePrice',
formatter: singlePriceFormart, formatter: singlePriceFormart,
table: { table: {
@ -1370,44 +1370,44 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
} }
}, },
{ // {
label: '未税差额',//子表数据 // label: '未税差额',//子表数据
field: 'untaxedDifference', // field: 'untaxedDifference',
formatter: accountantFormart, // formatter: accountantFormart,
table: { // table: {
width: 150 // width: 150
}, // },
form: { // form: {
component: 'InputNumber', // component: 'InputNumber',
componentProps: { // componentProps: {
precision: 2, // precision: 2,
} // }
}, // },
tableForm: { // tableForm: {
type: 'InputNumber', // type: 'InputNumber',
min: 0, // min: 0,
precision: 2, // precision: 2,
} // }
}, // },
{ // {
label: '含税差额', // label: '含税差额',
field: 'taxInclusiveDifference', // field: 'taxInclusiveDifference',
formatter: accountantFormart, // formatter: accountantFormart,
table: { // table: {
width: 150 // width: 150
}, // },
form: { // form: {
component: 'InputNumber', // component: 'InputNumber',
componentProps: { // componentProps: {
precision: 2, // precision: 2,
} // }
}, // },
tableForm: { // tableForm: {
type: 'InputNumber', // type: 'InputNumber',
min: 0, // min: 0,
precision: 2, // precision: 2,
} // }
}, // },
//仅是主列表页面的筛选搜索条件 //仅是主列表页面的筛选搜索条件
@ -1434,21 +1434,21 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
}, },
{ // {
label: '货币', // label: '货币',
field: 'currency', // field: 'currency',
table: { // table: {
width: 150 // width: 150
}, // },
form: { // form: {
componentProps: { // componentProps: {
disabled: true // disabled: true
} // }
}, // },
tableForm:{ // tableForm:{
disabled: true // disabled: true
} // }
}, // },
{ {
label: '备注', label: '备注',
field: 'remark', field: 'remark',

Loading…
Cancel
Save