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