|
|
@ -44,17 +44,20 @@ |
|
|
|
</Table> |
|
|
|
</ContentWrap> |
|
|
|
|
|
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
|
<!-- 表单弹窗:发票回转 --> |
|
|
|
<!-- |
|
|
|
:apiUpdate="BasicEamProductionlineApi.updateBasicEamProductionline" |
|
|
|
:apiCreate="BasicEamProductionlineApi.createBasicEamProductionline" |
|
|
|
@searchTableSuccess="searchTableSuccess" --> |
|
|
|
<BasicForm |
|
|
|
ref="formRef" |
|
|
|
@success="getList" |
|
|
|
:rules="SupplierinvoiceRecordMainRules" |
|
|
|
:formAllSchemas="SupplierinvoiceRecordMain.allSchemas" |
|
|
|
:tableAllSchemas="SupplierinvoiceRecordDetail.allSchemas" |
|
|
|
:tableFormRules="SupplierinvoiceRecordDetailRules" |
|
|
|
:isBusiness="true" |
|
|
|
ref="basicFormRef" |
|
|
|
@success="()=>{alert(1)}" |
|
|
|
:rules="SupplierinvoiceRecordMainTransferRules" |
|
|
|
:formAllSchemas="SupplierinvoiceRecordMainTransfer.allSchemas" |
|
|
|
:isBusiness="false" |
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
|
<Detail |
|
|
|
ref="detailRef" |
|
|
@ -143,7 +146,7 @@ |
|
|
|
|
|
|
|
<script setup lang="ts"> |
|
|
|
import download from '@/utils/download' |
|
|
|
import { SupplierinvoiceRecordMain,SupplierinvoiceRecordMainRules,SupplierinvoiceRecordDetail,SupplierinvoiceRecordDetailRules,SupplierinvoiceRecordDetailMain } from './supplierinvoiceRecordMain.data' |
|
|
|
import { SupplierinvoiceRecordMain,SupplierinvoiceRecordMainRules,SupplierinvoiceRecordDetail,SupplierinvoiceRecordDetailRules,SupplierinvoiceRecordDetailMain,SupplierinvoiceRecordMainTransfer,SupplierinvoiceRecordMainTransferRules } from './supplierinvoiceRecordMain.data' |
|
|
|
import * as SupplierinvoiceRecordMainApi from '@/api/wms/supplierinvoiceRecordMain' |
|
|
|
import * as SupplierinvoiceRecordDetailApi from '@/api/wms/supplierinvoiceRecordDeatil' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
@ -242,16 +245,31 @@ const butttondata = (row,$index) => { |
|
|
|
color: '', |
|
|
|
hasPermi: '', |
|
|
|
link: true, // 文本展现按钮 |
|
|
|
} |
|
|
|
}, |
|
|
|
// { |
|
|
|
// label: t('ts.发票回转'), |
|
|
|
// name: 'transfer', |
|
|
|
// type: 'primary', |
|
|
|
// icon: '', |
|
|
|
// color: '', |
|
|
|
// hasPermi: '', |
|
|
|
// hide:!(row['status']==5&&!!row['voucherNumber']), |
|
|
|
// link: true, // 文本展现按钮 |
|
|
|
// } |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
|
/** 添加/修改操作 */ |
|
|
|
const basicFormRef = ref() |
|
|
|
// 列表-操作按钮事件 |
|
|
|
const buttonTableClick = async (val, row) => { |
|
|
|
if (val == 'open_detail') { // 查看明细 |
|
|
|
openDetail(row, '单据号', row.number) |
|
|
|
}else if(val == 'transfer'){ |
|
|
|
//发票回转 |
|
|
|
basicFormRef.value.open('create', row) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 获取部门 用于详情 部门回显 |
|
|
|
const { wsCache } = useCache() |
|
|
|
/** 详情操作 */ |
|
|
|