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="title flex items-center">
<!-- <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"/>
</div>
<div class="list">
@ -56,6 +56,10 @@ const props = defineProps({
return ['apk','doc', 'xls', 'ppt', 'txt', 'pdf','png', 'jpg', 'jpeg']
}
},
fileSize:{
type:Number,
required: false,
},
showPreview: {
type: Boolean,
required: false

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

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

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

@ -607,17 +607,21 @@ const handleImport = () => {
prop: 'Annex',
tableName:'contract',
hiddenDelete:false,
hiddenUpload:false
hiddenUpload:false,
fileSize:20
},{
label: t('ts.发票附件'),
prop: 'Annex',
tableName:'invoice',
hiddenDelete:false,
hiddenUpload:false
hiddenUpload:false,
fileSize:20
},{
label: t('ts.货运单附件'),
prop: 'Annex',
tableName:'waybill'
tableName:'waybill',
fileSize:20
}])
const openDetail = (row : any, titleName : any, titleValue : any) => {
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',
formatter: singlePriceFormart,
table: {
@ -1370,44 +1370,44 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
}
},
{
label: '未税差额',//子表数据
field: 'untaxedDifference',
formatter: accountantFormart,
table: {
width: 150
},
form: {
component: 'InputNumber',
componentProps: {
precision: 2,
}
},
tableForm: {
type: 'InputNumber',
min: 0,
precision: 2,
}
},
{
label: '含税差额',
field: 'taxInclusiveDifference',
formatter: accountantFormart,
table: {
width: 150
},
form: {
component: 'InputNumber',
componentProps: {
precision: 2,
}
},
tableForm: {
type: 'InputNumber',
min: 0,
precision: 2,
}
},
// {
// label: '未税差额',//子表数据
// field: 'untaxedDifference',
// formatter: accountantFormart,
// table: {
// width: 150
// },
// form: {
// component: 'InputNumber',
// componentProps: {
// precision: 2,
// }
// },
// tableForm: {
// type: 'InputNumber',
// min: 0,
// precision: 2,
// }
// },
// {
// label: '含税差额',
// field: 'taxInclusiveDifference',
// formatter: accountantFormart,
// table: {
// width: 150
// },
// form: {
// component: 'InputNumber',
// componentProps: {
// precision: 2,
// }
// },
// tableForm: {
// type: 'InputNumber',
// min: 0,
// precision: 2,
// }
// },
//仅是主列表页面的筛选搜索条件
@ -1434,21 +1434,21 @@ export const SupplierinvoiceRequestDetail = useCrudSchemas(reactive<CrudSchema[]
},
{
label: '货币',
field: 'currency',
table: {
width: 150
},
form: {
componentProps: {
disabled: true
}
},
tableForm:{
disabled: true
}
},
// {
// label: '货币',
// field: 'currency',
// table: {
// width: 150
// },
// form: {
// componentProps: {
// disabled: true
// }
// },
// tableForm:{
// disabled: true
// }
// },
{
label: '备注',
field: 'remark',

Loading…
Cancel
Save