Browse Source

SCP供应商发票,供应商/采购上传合同,采购审批通过后。增加限制:供应商/采购不允许删除或上传合同

master_hella_20240701
wangyufei 5 months ago
parent
commit
1e22f1b84d
  1. 2
      src/components/Detail/src/Detail.vue
  2. 32
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

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

@ -108,6 +108,7 @@
<Annex v-show="tabsList[current].label==annexItem.label"
:annexData="annexItem"
:fileType="annexItem.fileType"
:showAddBtn="!annexItem.hiddenUpload"
:showPreview="annexItem.showPreview"
:showDownload = "annexItem.showDownload"
:hiddenDelete = "annexItem.hiddenDelete"
@ -518,6 +519,7 @@ const getAnnexFileList = async (row) => {
showPreview:item.showPreview||false, //
showDownload:item.showDownload||false, //
hiddenDelete:item.hiddenDelete || false, //
hiddenUpload:item.hiddenUpload || false, //
})
if(item?.subDetailTableData){
const { tableObject:subTableObject, tableMethods:subTableMethods } = useTable({

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

@ -85,19 +85,7 @@
ref="detailRef"
:isOpenSearchTable="true"
fieldTableColumn="poLine"
:annexTable="[{
label: t('ts.合同附件'),
prop: 'Annex',
tableName:'contract'
},{
label: t('ts.发票附件'),
prop: 'Annex',
tableName:'invoice'
},{
label: t('ts.货运单附件'),
prop: 'Annex',
tableName:'waybill'
}]"
:annexTable="detailAnnexTable"
:annexAlias="{
label:t('ts.其他附件')
}"
@ -482,10 +470,28 @@ const handleImport = () => {
/** 详情操作 */
const detailRef = ref()
const clicKRowId = ref();
const detailAnnexTable = ref(
[{
label: t('ts.合同附件'),
prop: 'Annex',
tableName:'contract',
hiddenDelete:false,
hiddenUpload:false
},{
label: t('ts.发票附件'),
prop: 'Annex',
tableName:'invoice'
},{
label: t('ts.货运单附件'),
prop: 'Annex',
tableName:'waybill'
}])
const openDetail = (row : any, titleName : any, titleValue : any) => {
const departmentCode = wsCache.get(CACHE_KEY.DEPT).find((account) => account.id == row.departmentCode)?.name
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
clicKRowId.value = row.masterId
detailAnnexTable.value[0].hiddenDelete = Number(row.status)>=3
detailAnnexTable.value[0].hiddenUpload = Number(row.status)>=3
detailRef.value.openDetail(row, titleName, titleValue)
}

Loading…
Cancel
Save