feat : 项目实施-台账新增表格更新功能
This commit is contained in:
@@ -36,6 +36,10 @@ const schema = computed(() => {
|
||||
]
|
||||
})
|
||||
const baseForm = ref()
|
||||
const tableIns = ref()
|
||||
const btns=ref([
|
||||
{name: '表格更新', key: 'update', color: '#DED0B2', auth: ''}
|
||||
])
|
||||
const searchConfig = reactive([
|
||||
{
|
||||
label: '时间',
|
||||
@@ -146,17 +150,25 @@ const tableConfig = reactive({
|
||||
currentRender: ({row}) => {
|
||||
return <span>{toThousands(row.afterTax)}</span>
|
||||
}
|
||||
}
|
||||
},
|
||||
],
|
||||
api: '/workflow/mosr/expense/ledger',
|
||||
params: {
|
||||
projectId: route.query.id
|
||||
},
|
||||
btns: [
|
||||
{name: '上传费用', key: 'add', color: '#DED0B2', auth: ''}
|
||||
]
|
||||
btns: btns.value
|
||||
})
|
||||
const tableIns = ref()
|
||||
if(route.query.state!=4){
|
||||
btns.value.push({name: '上传费用', key: 'add', color: '#DED0B2', auth: ''})
|
||||
}
|
||||
const handleUpdateTable=()=>{
|
||||
router.push({
|
||||
name: 'Implementation/update',
|
||||
query: {
|
||||
id: route.query.id
|
||||
}
|
||||
})
|
||||
}
|
||||
const getBaseInfo = async () => {
|
||||
try {
|
||||
const {code, data} = await getBaseInfoApi(route.query.id)
|
||||
@@ -171,6 +183,9 @@ const headBtnClick = (key) => {
|
||||
case 'add':
|
||||
handleUploadFee()
|
||||
break;
|
||||
case 'update':
|
||||
handleUpdateTable()
|
||||
break;
|
||||
}
|
||||
}
|
||||
const handleUploadFee = () => {
|
||||
|
||||
Reference in New Issue
Block a user