Browse Source

YT-2863供应商发票申请和记录,增加【调差附件】TAB页。

intex_online20250710
张立 2 weeks ago
parent
commit
e620ef3881
  1. 3
      src/locales/en-US.ts
  2. 3
      src/locales/zh-CN.ts
  3. 11
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRecordMain/index.vue
  4. 17
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

3
src/locales/en-US.ts

@ -1059,7 +1059,8 @@ export default {
:'Invoice Attachment', :'Invoice Attachment',
:'Attachment to the waybill', :'Attachment to the waybill',
:'Dispatch note', :'Dispatch note',
:'Statement of account', : 'Statement of account',
: 'Adjustment of account',
:'Other Attachment', :'Other Attachment',
:'Print Detail', :'Print Detail',
:'Print all invoices', :'Print all invoices',

3
src/locales/zh-CN.ts

@ -1065,7 +1065,8 @@ export default {
:'发票附件', :'发票附件',
:'货运单附件', :'货运单附件',
:'发货单附件', :'发货单附件',
:'对账单附件', : '对账单附件',
: '调差附件',
:'其他附件', :'其他附件',
:'打印明细', :'打印明细',
:'打印全部发货单', :'打印全部发货单',

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

@ -108,6 +108,17 @@
queryField:'tableId', queryField:'tableId',
rowField:'annexMasterId', rowField:'annexMasterId',
}], }],
},{
label: t('ts.调差附件'),
prop: 'Annex',
tableName:'adjustmentAttachment',
showDownload:true,
hiddenDelete:true,
hiddenUpload:true,
queryParams:[{
queryField:'tableId',
rowField:'annexMasterId',
}],
},{ },{
label: t('ts.其他附件'), label: t('ts.其他附件'),
prop: 'Annex', prop: 'Annex',

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

@ -448,6 +448,7 @@ import { getAccessToken } from '@/utils/auth'
import { ElMessageBox } from 'element-plus' import { ElMessageBox } from 'element-plus'
import { getJmreportBaseUrl } from '@/utils/systemParam' import { getJmreportBaseUrl } from '@/utils/systemParam'
import { accountantFormart } from '@/utils/formatter' import { accountantFormart } from '@/utils/formatter'
import * as FileApi from '@/api/wms/file'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
import { usePageLoading } from '@/hooks/web/usePageLoading' import { usePageLoading } from '@/hooks/web/usePageLoading'
@ -870,6 +871,16 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'purchase_mainPlanSub') { } else if (val == 'purchase_mainPlanSub') {
// //
// handleApp(row.id) // handleApp(row.id)
// ,0
const fileList = await FileApi.getFileList({
tableId: row.masterId || row.id,
tableName: 'adjustmentAttachment'
})
if (row.differencePriceTotalMain || row.discountAmount1 || row.claimTaxAmount || !fileList || fileList.length == 0) {
message.alertWarning('请上传调差附件!')
return
}
// //
const res = await checkInvoicingCalendar() const res = await checkInvoicingCalendar()
if (res?.flag) { if (res?.flag) {
@ -1142,6 +1153,12 @@ const detailAnnexTable = ref([
tableName: 'statement', tableName: 'statement',
fileSize: 20 fileSize: 20
}, },
{
label: t('ts.调差附件'),
prop: 'Annex',
tableName: 'adjustmentAttachment',
fileSize: 20
},
{ {
label: t('ts.其他附件'), label: t('ts.其他附件'),
prop: 'Annex', prop: 'Annex',

Loading…
Cancel
Save