diff --git a/src/api/contract/contract/index.ts b/src/api/contract/contract/index.ts
index 768a2bd31..c0fc564a2 100644
--- a/src/api/contract/contract/index.ts
+++ b/src/api/contract/contract/index.ts
@@ -75,8 +75,12 @@ export const MainApi = {
return await request.get({ url: `/apply/main/page`, params })
},
- generateContract: async (data: MainVO) => {
- return await request.post({ url: `/contract/main/generateContract`, data })
+ generateContract: async (params: any) => {
+ return await request.post({ url: `/contract/main/generateContract`, params })
+ },
+ //提宝
+ presentingContract: async (params: any) => {
+ return await request.post({ url: `/contract/main/presentingContract`, params })
},
// ==================== 子表(任务书详细信息) ====================
diff --git a/src/views/contract/contract/MainForm.vue b/src/views/contract/contract/MainForm.vue
index 31dad024b..b3d6a10d9 100644
--- a/src/views/contract/contract/MainForm.vue
+++ b/src/views/contract/contract/MainForm.vue
@@ -14,7 +14,7 @@
-
+
+
@@ -130,6 +153,7 @@ const message = useMessage() // 消息弹窗
const { t } = useI18n() // 国际化
const dialogVisible = ref(false) // 弹窗的是否展示
+const dialogVisible1 = ref(false) // 弹窗的是否展示
const loading = ref(true) // 列表的加载中
const loading1 = ref(true) // 列表的加载中
const list = ref([]) // 列表的数据
@@ -145,6 +169,7 @@ const queryParams = reactive({
technicalField: undefined,
year: undefined,
})
+
const queryParams1 = reactive({
pageNo: 1,
pageSize: 10,
@@ -154,6 +179,14 @@ const queryParams1 = reactive({
technicalField: undefined,
year: undefined,
})
+const formData = ref({
+ id: undefined,
+ type: 1,
+ des: '',
+})
+const formRules = reactive({
+ des: [{ required: true, message: '审核意见不能为空', trigger: 'blur' }],
+})
const queryFormRef = ref() // 搜索的表单
const exportLoading = ref(false) // 导出的加载中
@@ -186,11 +219,11 @@ const handleCurrentChange = (row) => {
}
const submitForm = async () => {
try {
- const data = await MainApi.generateContract({id:currentRow.value})
- console.log(data)
+ const data = await MainApi.generateContract({ id: currentRow.value })
} finally {
// 关闭弹窗
- currentRow.value =undefined
+ currentRow.value = undefined
+ currentRowValue.value = undefined
dialogVisible.value = false
}
}
@@ -213,6 +246,7 @@ const openForm = (type: string, id?: number) => {
}
// 点击导入立项
const handleInsert = async () => {
+ currentRowValue.value = undefined
dialogVisible.value = true
getList1()
@@ -230,7 +264,18 @@ const handleDelete = async (id: number) => {
await getList()
} catch { }
}
+//提报
+const handlePresenting = async (id: number) => {
+ try {
+ var par = { id: id }
+ await MainApi.presentingContract(par)
+ await getList()
+ } catch { }
+}
+//审核
+const handleauditContract = async (id: number) => {
+}
/** 导出按钮操作 */
const handleExport = async () => {
try {