Merge branch 'master' of http://git.feashow.cn/clay/mosr-web
This commit is contained in:
@@ -114,9 +114,14 @@ watch(() => props.showTable, (newVal) => {
|
|||||||
watch(() => props.otherFileList, (newVal) => {
|
watch(() => props.otherFileList, (newVal) => {
|
||||||
console.log('newotherFileList',newVal)
|
console.log('newotherFileList',newVal)
|
||||||
if (props.preview) {
|
if (props.preview) {
|
||||||
newVal?.forEach(item => {
|
if(props.formData.fileList==null){
|
||||||
allFileList.value.push(item)
|
allFileList.value=newVal
|
||||||
})
|
}else {
|
||||||
|
newVal?.forEach(item => {
|
||||||
|
allFileList.value.push(item)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
}else {
|
}else {
|
||||||
allFileList.value=newVal
|
allFileList.value=newVal
|
||||||
}
|
}
|
||||||
@@ -124,9 +129,9 @@ watch(() => props.otherFileList, (newVal) => {
|
|||||||
watch(() => props.formData.fileList, (newVal) => {
|
watch(() => props.formData.fileList, (newVal) => {
|
||||||
console.log('newVal-fileList',newVal)
|
console.log('newVal-fileList',newVal)
|
||||||
if (props.preview) {
|
if (props.preview) {
|
||||||
newVal?.forEach(item => {
|
newVal?.forEach(item => {
|
||||||
allFileList.value.push(item)
|
allFileList.value.push(item)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}, {deep: true})
|
}, {deep: true})
|
||||||
watch(() => props.formData.singleFile, (newVal) => {
|
watch(() => props.formData.singleFile, (newVal) => {
|
||||||
|
|||||||
@@ -90,18 +90,18 @@ const tableConfig = reactive({
|
|||||||
if(row.buttons){
|
if(row.buttons){
|
||||||
buttons = new Set(Array.from(row.buttons))
|
buttons = new Set(Array.from(row.buttons))
|
||||||
}
|
}
|
||||||
// if (buttons.has("details")) {
|
if (buttons.has("details")) {
|
||||||
btn.push({label: '详情', prem: ['mosr:requirement:info'], func: () => handleDetail(row), type: 'primary'})
|
btn.push({label: '详情', prem: ['mosr:requirement:info'], func: () => handleDetail(row), type: 'primary'})
|
||||||
// }
|
}
|
||||||
// if (buttons.has("edit")) {
|
if (buttons.has("edit")) {
|
||||||
btn.push({label: '编辑', prem: ['mosr:requirement:resubmit'], func: () => handleEdit(row), type: 'primary'})
|
btn.push({label: '编辑', prem: ['mosr:requirement:resubmit'], func: () => handleEdit(row), type: 'primary'})
|
||||||
// }
|
}
|
||||||
// if (buttons.has("report")) {
|
if (buttons.has("report")) {
|
||||||
btn.push({label: '明细导出', prem: ['mosr:requirement:info'], func: () => handleReport(row), type: 'primary'})
|
btn.push({label: '明细导出', prem: ['mosr:requirement:info'], func: () => handleReport(row), type: 'primary'})
|
||||||
// }
|
}
|
||||||
// if (buttons.has("report")) {
|
if (buttons.has("report")) {
|
||||||
btn.push({label: '汇总导出', prem: ['mosr:requirement:info'], func: () => handleReport(row), type: 'primary'})
|
btn.push({label: '汇总导出', prem: ['mosr:requirement:info'], func: () => handleReport(row), type: 'primary'})
|
||||||
// }
|
}
|
||||||
return (
|
return (
|
||||||
<div style={{width: '100%'}}>
|
<div style={{width: '100%'}}>
|
||||||
{
|
{
|
||||||
@@ -117,11 +117,11 @@ const tableConfig = reactive({
|
|||||||
))
|
))
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
// buttons.has("delete") ?
|
buttons.has("delete") ?
|
||||||
<popover-delete name={row.requirementName} type={'费用分摊'} btnType={'danger'}
|
<popover-delete name={row.requirementName} type={'费用分摊'} btnType={'danger'}
|
||||||
perm={['mosr:requirement:del']}
|
perm={['mosr:requirement:del']}
|
||||||
onDelete={() => handleDelete(row)}/>
|
onDelete={() => handleDelete(row)}/>
|
||||||
// : ''
|
: ''
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -393,6 +393,7 @@ const handleSubmit = debounce(async (instance) => {
|
|||||||
// }
|
// }
|
||||||
let params = {
|
let params = {
|
||||||
...formData.value,
|
...formData.value,
|
||||||
|
isSpecialFund:false,
|
||||||
deploymentId: deploymentId.value,
|
deploymentId: deploymentId.value,
|
||||||
fileList: otherFiles,
|
fileList: otherFiles,
|
||||||
singleFile: singleFile,
|
singleFile: singleFile,
|
||||||
|
|||||||
@@ -96,17 +96,41 @@ const tableConfig = reactive({
|
|||||||
{
|
{
|
||||||
prop: 'projectType',
|
prop: 'projectType',
|
||||||
label: '项目类型',
|
label: '项目类型',
|
||||||
align: 'center'
|
align: 'center',
|
||||||
|
showOverflowTooltip: false,
|
||||||
|
currentRender: ({row, index}) => {
|
||||||
|
if (row.state !== null) {
|
||||||
|
return (<Tag dictType={'project_type'} value={row.projectType}/>)
|
||||||
|
} else {
|
||||||
|
return '--'
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'rdSubject',
|
prop: 'rdSubject',
|
||||||
label: '研发主体',
|
label: '研发主体',
|
||||||
align: 'center'
|
align: 'center',
|
||||||
|
showOverflowTooltip: false,
|
||||||
|
currentRender: ({row, index}) => {
|
||||||
|
if (row.state !== null) {
|
||||||
|
return (<Tag dictType={'rd_subject'} value={row.rdSubject}/>)
|
||||||
|
} else {
|
||||||
|
return '--'
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'projectImpact',
|
prop: 'projectImpact',
|
||||||
label: '项目影响',
|
label: '项目影响',
|
||||||
align: 'center'
|
align: 'center',
|
||||||
|
showOverflowTooltip: false,
|
||||||
|
currentRender: ({row, index}) => {
|
||||||
|
if (row.state !== null) {
|
||||||
|
return (<Tag dictType={'project_impact'} value={row.projectImpact}/>)
|
||||||
|
} else {
|
||||||
|
return '--'
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'startTime',
|
prop: 'startTime',
|
||||||
|
|||||||
@@ -153,21 +153,45 @@ const tableConfig = reactive({
|
|||||||
{
|
{
|
||||||
prop: 'projectType',
|
prop: 'projectType',
|
||||||
label: '项目类型',
|
label: '项目类型',
|
||||||
align: 'center'
|
align: 'center',
|
||||||
|
showOverflowTooltip: false,
|
||||||
|
currentRender: ({row, index}) => {
|
||||||
|
if (row.state !== null) {
|
||||||
|
return (<Tag dictType={'project_type'} value={row.projectType}/>)
|
||||||
|
} else {
|
||||||
|
return '--'
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'rdSubject',
|
prop: 'rdSubject',
|
||||||
label: '研发主体',
|
label: '研发主体',
|
||||||
align: 'center'
|
align: 'center',
|
||||||
|
showOverflowTooltip: false,
|
||||||
|
currentRender: ({row, index}) => {
|
||||||
|
if (row.state !== null) {
|
||||||
|
return (<Tag dictType={'rd_subject'} value={row.rdSubject}/>)
|
||||||
|
} else {
|
||||||
|
return '--'
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'projectImpact',
|
prop: 'projectImpact',
|
||||||
label: '项目影响',
|
label: '项目影响',
|
||||||
align: 'center'
|
align: 'center',
|
||||||
|
showOverflowTooltip: false,
|
||||||
|
currentRender: ({row, index}) => {
|
||||||
|
if (row.state !== null) {
|
||||||
|
return (<Tag dictType={'project_impact'} value={row.projectImpact}/>)
|
||||||
|
} else {
|
||||||
|
return '--'
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'economicEstimate',
|
prop: 'economicEstimate',
|
||||||
label: '经济概算',
|
label: '经济概算(万元)',
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -158,21 +158,45 @@ const tableConfig = reactive({
|
|||||||
{
|
{
|
||||||
prop: 'projectType',
|
prop: 'projectType',
|
||||||
label: '项目类型',
|
label: '项目类型',
|
||||||
align: 'center'
|
align: 'center',
|
||||||
|
showOverflowTooltip: false,
|
||||||
|
currentRender: ({row, index}) => {
|
||||||
|
if (row.state !== null) {
|
||||||
|
return (<Tag dictType={'project_type'} value={row.projectType}/>)
|
||||||
|
} else {
|
||||||
|
return '--'
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'rdSubject',
|
prop: 'rdSubject',
|
||||||
label: '研发主体',
|
label: '研发主体',
|
||||||
align: 'center'
|
align: 'center',
|
||||||
|
showOverflowTooltip: false,
|
||||||
|
currentRender: ({row, index}) => {
|
||||||
|
if (row.state !== null) {
|
||||||
|
return (<Tag dictType={'rd_subject'} value={row.rdSubject}/>)
|
||||||
|
} else {
|
||||||
|
return '--'
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'projectImpact',
|
prop: 'projectImpact',
|
||||||
label: '项目影响',
|
label: '项目影响',
|
||||||
align: 'center'
|
align: 'center',
|
||||||
|
showOverflowTooltip: false,
|
||||||
|
currentRender: ({row, index}) => {
|
||||||
|
if (row.state !== null) {
|
||||||
|
return (<Tag dictType={'project_impact'} value={row.projectImpact}/>)
|
||||||
|
} else {
|
||||||
|
return '--'
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'economicEstimate',
|
prop: 'economicEstimate',
|
||||||
label: '经济概算',
|
label: '经济概算(万元)',
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -152,21 +152,45 @@ const tableConfig = reactive({
|
|||||||
{
|
{
|
||||||
prop: 'projectType',
|
prop: 'projectType',
|
||||||
label: '项目类型',
|
label: '项目类型',
|
||||||
align: 'center'
|
align: 'center',
|
||||||
|
showOverflowTooltip: false,
|
||||||
|
currentRender: ({row, index}) => {
|
||||||
|
if (row.state !== null) {
|
||||||
|
return (<Tag dictType={'project_type'} value={row.projectType}/>)
|
||||||
|
} else {
|
||||||
|
return '--'
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'rdSubject',
|
prop: 'rdSubject',
|
||||||
label: '研发主体',
|
label: '研发主体',
|
||||||
align: 'center'
|
align: 'center',
|
||||||
|
showOverflowTooltip: false,
|
||||||
|
currentRender: ({row, index}) => {
|
||||||
|
if (row.state !== null) {
|
||||||
|
return (<Tag dictType={'rd_subject'} value={row.rdSubject}/>)
|
||||||
|
} else {
|
||||||
|
return '--'
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'projectImpact',
|
prop: 'projectImpact',
|
||||||
label: '项目影响',
|
label: '项目影响',
|
||||||
align: 'center'
|
align: 'center',
|
||||||
|
showOverflowTooltip: false,
|
||||||
|
currentRender: ({row, index}) => {
|
||||||
|
if (row.state !== null) {
|
||||||
|
return (<Tag dictType={'project_impact'} value={row.projectImpact}/>)
|
||||||
|
} else {
|
||||||
|
return '--'
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'economicEstimate',
|
prop: 'economicEstimate',
|
||||||
label: '经济概算',
|
label: '经济概算(万元)',
|
||||||
align: 'center'
|
align: 'center'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -187,7 +211,7 @@ const tableConfig = reactive({
|
|||||||
label: '状态',
|
label: '状态',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflowTooltip: false,
|
showOverflowTooltip: false,
|
||||||
currentRender: ({row, index}) =>{
|
currentRender: ({row, index}) => {
|
||||||
if (row.state !== null) {
|
if (row.state !== null) {
|
||||||
return (<Tag dictType={'project_initiation'} value={row.state}/>)
|
return (<Tag dictType={'project_initiation'} value={row.state}/>)
|
||||||
} else {
|
} else {
|
||||||
@@ -207,7 +231,7 @@ const tableConfig = reactive({
|
|||||||
btn.push({label: '详情', prem: ['mosr:requirement:info'], func: () => handleDetail(row), type: 'primary'})
|
btn.push({label: '详情', prem: ['mosr:requirement:info'], func: () => handleDetail(row), type: 'primary'})
|
||||||
}
|
}
|
||||||
if (buttons.has("edit")) {
|
if (buttons.has("edit")) {
|
||||||
btn.push({label: '编辑',prem: ['mosr:requirement:resubmit'], func: () => handleEdit(row), type: 'primary'})
|
btn.push({label: '编辑', prem: ['mosr:requirement:resubmit'], func: () => handleEdit(row), type: 'primary'})
|
||||||
}
|
}
|
||||||
// if (buttons.has("delete")) {
|
// if (buttons.has("delete")) {
|
||||||
// btn.push({label: '删除',prem: ['mosr:requirement:del'], func: () => handleDelete(row), type: 'primary'})
|
// btn.push({label: '删除',prem: ['mosr:requirement:del'], func: () => handleDelete(row), type: 'primary'})
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<script setup lang="jsx">
|
<script setup lang="jsx">
|
||||||
import {ElNotification} from "element-plus";
|
import {ElNotification} from "element-plus";
|
||||||
import {useProcessStore} from '@/stores/processStore.js';
|
import {useProcessStore} from '@/stores/processStore.js';
|
||||||
import {getFundDetailProcess} from "@api/special-fund";
|
import {getFundDetailProcess} from "@/api/special-fund";
|
||||||
const processStore = useProcessStore()
|
const processStore = useProcessStore()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const fundData = ref({})
|
const fundData = ref({})
|
||||||
|
|||||||
Reference in New Issue
Block a user