fix : 修复项目实施中功能细节

This commit is contained in:
2024-05-28 12:05:31 +08:00
parent 554c7d2be7
commit 63e94af451
14 changed files with 294 additions and 124 deletions

View File

@@ -11,7 +11,7 @@
const searchConfig = reactive([
{
label: '名称',
prop: 'requirementName',
prop: 'projectName',
component: 'el-input',
props: {
placeholder: '请输入名称查询',
@@ -22,7 +22,7 @@ const searchConfig = reactive([
},
{
label: '项目费用',
prop: 'requirementName',
prop: 'projectCost',
component: 'el-input',
props: {
placeholder: '请输入项目费用查询',
@@ -33,7 +33,7 @@ const searchConfig = reactive([
},
{
label: '起始时间',
prop: 'datetime',
prop: 'time',
component: 'el-date-picker',
props: {
placeholder: '请选择起始时间',
@@ -48,41 +48,48 @@ const tableConfig = reactive({
prop: 'name',
type: 'index',
label: '序号',
width:'80'
width:'80',
align: 'center'
},
{
prop: 'name',
prop: 'projectName',
label: '项目名称',
align: 'center'
},{
prop: 'time',
label: '时间',
align: 'center'
},
{
prop: 'projectType',
prop: 'projectCost',
label: '项目费用',
align: 'center'
},
{
prop: 'productMainBody',
prop: 'researchStage',
label: '研发阶段',
align: 'center'
},
{
prop: 'projectEffect',
prop: 'digest',
label: '摘要',
align: 'center'
},
{
prop: 'survey',
prop: 'afterTax',
label: '税后余额(元)',
align: 'center'
}
],
api: '',
api: '/workflow/mosr/expense/ledger',
params: {},
btns: [
{name: '上传费用', key: 'add', color: '#DED0B2',auth: ''}
]
})
const router = useRouter()
const route = useRoute()
const tableIns=ref()
const headBtnClick = (key) => {
switch (key) {
case 'add':
@@ -93,9 +100,17 @@ const headBtnClick = (key) => {
const handleUploadFee = () => {
router.push({
name: 'Implementation/uploadFee',
query: {}
query: {
id:route.query.id
}
})
}
const search = (val) => {
console.log('val',val)
tableConfig.params = {...val}
tableIns.value.refresh()
}
</script>
<style scoped>