Browse Source

供应商发票记录

master_hella_20240701
yufei0306 6 months ago
parent
commit
70f52e672f
  1. 2
      src/components/SearchHigh/src/SearchHigh.vue
  2. 28
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue

2
src/components/SearchHigh/src/SearchHigh.vue

@ -86,7 +86,7 @@ const moreListData = ref({
// - // -
const butttondata = [ const butttondata = [
defaultButtons.defaultSearchBtn(null), // defaultButtons.defaultSearchBtn(null), //
// defaultButtons.defaultSearchResetBtn(null), // // defaultButtons.defaultSearchResetBtn(null), //
] ]
// ==,!=,>,<,>=,<=,like,in,notIn,betweeen,isNull,isNotNull // ==,!=,>,<,>=,<=,like,in,notIn,betweeen,isNull,isNotNull
const moreListOptions = ref({ const moreListOptions = ref({

28
src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue

@ -59,18 +59,30 @@
tableName:'contract', tableName:'contract',
showDownload:true, showDownload:true,
hiddenDelete:true, hiddenDelete:true,
queryParams:[{
queryField:'tableId',
rowField:'annexMasterId',
}],
},{ },{
label: t('ts.发票附件'), label: t('ts.发票附件'),
prop: 'Annex', prop: 'Annex',
tableName:'invoice', tableName:'invoice',
showDownload:true, showDownload:true,
hiddenDelete:true, hiddenDelete:true,
queryParams:[{
queryField:'tableId',
rowField:'annexMasterId',
}],
},{ },{
label: t('ts.货运单附件'), label: t('ts.货运单附件'),
prop: 'Annex', prop: 'Annex',
tableName:'waybill', tableName:'waybill',
showDownload:true, showDownload:true,
hiddenDelete:true, hiddenDelete:true,
queryParams:[{
queryField:'tableId',
rowField:'annexMasterId',
}],
}]" }]"
:annexAlias="{ :annexAlias="{
label:t('ts.其他附件'), label:t('ts.其他附件'),
@ -92,6 +104,8 @@ import * as SupplierinvoiceRecordMainApi from '@/api/wms/supplierinvoiceRecordMa
import * as SupplierinvoiceRecordDetailApi from '@/api/wms/supplierinvoiceRecordDeatil' import * as SupplierinvoiceRecordDetailApi from '@/api/wms/supplierinvoiceRecordDeatil'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import * as SupplierinvoiceRequestDetailApi from '@/api/wms/supplierinvoiceRequestDetail'
// //
defineOptions({ name: 'SupplierinvoiceRecordMain' }) defineOptions({ name: 'SupplierinvoiceRecordMain' })
@ -164,8 +178,20 @@ const buttonTableClick = async (val, row) => {
const { wsCache } = useCache() const { wsCache } = useCache()
/** 详情操作 */ /** 详情操作 */
const detailRef = ref() const detailRef = ref()
const openDetail = (row: any, titleName: any, titleValue: any) => { const openDetail = async (row: any, titleName: any, titleValue: any) => {
console.log('openDetail',row)
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
//masterId
const { tableObject: requestTableObject, tableMethods:requestTableMethods } = useTable({
getListApi: SupplierinvoiceRequestDetailApi.getSupplierinvoiceRequestDetailPage //
})
const { getList:requestGetList } = requestTableMethods
requestTableObject.params.number = row.requestNumber
await requestGetList()
if(requestTableObject.tableList.length>0){
row.annexMasterId = requestTableObject.tableList[0].masterId
}
if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode)) if (departmentCode) row.departmentCode = JSON.parse(JSON.stringify(departmentCode))
detailRef.value.openDetail(row, titleName, titleValue) detailRef.value.openDetail(row, titleName, titleValue)
} }

Loading…
Cancel
Save