fix : 修改细节
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="username" v-if="user.auditOpinion">
|
<div class="username" v-if="user.auditOpinion">
|
||||||
<div style="margin-bottom: 10px;color: #909399">{{user.operationTime}}</div>
|
<div style="margin-bottom: 10px;color: #909399">{{user.operationTime}}</div>
|
||||||
<Tooltip :content="user.auditOpinion" placement="bottom-start" width="150" :lines="true"/>
|
<Tooltip :content="user.auditOpinion" placement="bottom-start" width="140" :lines="true"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -250,7 +250,7 @@ const handleSubmit = async (instance) => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
const handleResubmit = () => {
|
const handleResubmit = () => {
|
||||||
resubmit(submitParam()).then(res => {
|
resubmit(submitParam(formData.value)).then(res => {
|
||||||
if (res.code === 1000) {
|
if (res.code === 1000) {
|
||||||
ElMessage.success(res.msg)
|
ElMessage.success(res.msg)
|
||||||
tagsViewStore.delVisitedViews(router.currentRoute.value.path)
|
tagsViewStore.delVisitedViews(router.currentRoute.value.path)
|
||||||
|
|||||||
@@ -87,8 +87,6 @@ const tableConfig = reactive({
|
|||||||
let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'}]
|
let btn = [{label: '详情', func: () => handleDetail(row), type: 'primary'}]
|
||||||
if (row.state === '3' || row.state === '2') {
|
if (row.state === '3' || row.state === '2') {
|
||||||
btn.push({label: '编辑', func: () => handleEdit(row), type: 'primary'})
|
btn.push({label: '编辑', func: () => handleEdit(row), type: 'primary'})
|
||||||
} else if (row.state === '4') {
|
|
||||||
btn.push({label: '上报', func: () => handleReport(row), type: 'primary'})
|
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div style={{width: '100%'}}>
|
<div style={{width: '100%'}}>
|
||||||
|
|||||||
@@ -34,8 +34,8 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="所属公司" prop="companyName">
|
<el-form-item label="所属公司" prop="affiliatedCompanyId">
|
||||||
<el-input v-model="formData.companyName" placeholder="请输入所属公司" clearable></el-input>
|
<el-input v-model="formData.affiliatedCompanyId" placeholder="请输入所属公司" clearable></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
@@ -50,6 +50,11 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="研发主体" prop="rdSubject">
|
||||||
|
<el-input v-model="formData.rdSubject" placeholder="请输入研发主体" clearable></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="结束时间" prop="endTime">
|
<el-form-item label="结束时间" prop="endTime">
|
||||||
<el-config-provider>
|
<el-config-provider>
|
||||||
@@ -315,7 +320,8 @@ const handleSubmit = async (instance) => {
|
|||||||
let params = {
|
let params = {
|
||||||
...formData.value,
|
...formData.value,
|
||||||
deploymentId: deploymentId.value,
|
deploymentId: deploymentId.value,
|
||||||
files: files
|
files: files,
|
||||||
|
requirementId:102
|
||||||
}
|
}
|
||||||
let res = await requirementReported(params)
|
let res = await requirementReported(params)
|
||||||
ElNotification({
|
ElNotification({
|
||||||
|
|||||||
@@ -24,3 +24,9 @@ export const getProcessInfo = () => {
|
|||||||
method: "post"
|
method: "post"
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
export const getDetail = (requirementId) => {
|
||||||
|
return request({
|
||||||
|
url: `/workflow/mosr/requirement/collect/info/${requirementId}`,
|
||||||
|
method: "get"
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|||||||
@@ -3,17 +3,17 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="jsx">
|
<script setup lang="jsx">
|
||||||
import {getInfo} from "@/api/project-demand";
|
|
||||||
import {useProcessStore} from '@/stores/processStore.js';
|
import {useProcessStore} from '@/stores/processStore.js';
|
||||||
|
import {getDetail} from "./api";
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const summaryData = ref({})
|
const summaryData = ref({})
|
||||||
const summaryProcessViewer = ref(true)
|
const summaryProcessViewer = ref(true)
|
||||||
const processStore = useProcessStore()
|
const processStore = useProcessStore()
|
||||||
const getDemandSummaryInfo = async () => {
|
const getDemandSummaryInfo = async () => {
|
||||||
// if (!route.query.id) return
|
if (!route.query.id) return
|
||||||
// await getCompanyOption()
|
// await getCompanyOption()
|
||||||
summaryProcessViewer.value = false
|
summaryProcessViewer.value = false
|
||||||
getInfo(101).then(res => {
|
getDetail(route.query.id).then(res => {
|
||||||
let data = res.data
|
let data = res.data
|
||||||
summaryData.value = data;
|
summaryData.value = data;
|
||||||
processStore.setDesign(data)
|
processStore.setDesign(data)
|
||||||
|
|||||||
@@ -114,7 +114,13 @@ const tableConfig = reactive({
|
|||||||
label: '状态',
|
label: '状态',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
showOverflowTooltip: false,
|
showOverflowTooltip: false,
|
||||||
currentRender: ({row, index}) => (<Tag dictType={'demand_collection'} value={row.state}/>)
|
currentRender: ({row, index}) => {
|
||||||
|
if(row.state!==null){
|
||||||
|
return (<Tag dictType={'demand_collection'} value={row.state}/>)
|
||||||
|
}else {
|
||||||
|
return '--'
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'oper',
|
prop: 'oper',
|
||||||
@@ -124,8 +130,8 @@ const tableConfig = reactive({
|
|||||||
currentRender: ({row, index}) => {
|
currentRender: ({row, index}) => {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<el-button type={'primary'} link onClick={()=>handleDetail()} >详情</el-button>
|
<el-button type={'primary'} link onClick={()=>handleDetail(row)} >详情</el-button>
|
||||||
<el-button type={'primary'} link onClick={()=>handleAdd()} >上报</el-button>
|
<el-button type={'primary'} link onClick={()=>handleAdd(row)} >上报</el-button>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -164,10 +170,12 @@ const handleAdd = () => {
|
|||||||
query: {}
|
query: {}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const handleDetail = () => {
|
const handleDetail = (row) => {
|
||||||
router.push({
|
router.push({
|
||||||
name: 'Summary/detail',
|
name: 'Summary/detail',
|
||||||
query: {}
|
query: {
|
||||||
|
id:row.requirementId
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user