|
@@ -37,6 +37,7 @@
|
|
|
<script setup>
|
|
|
import { onMounted, ref, watch } from 'vue'
|
|
|
import { useAppStore } from '~src/store'
|
|
|
+import { getObjValue } from 'js-fast-way'
|
|
|
import HcMiddlepayForm from './middlepay-form.vue'
|
|
|
import HcMassForm from './mass-form.vue'
|
|
|
import HcStartWorkForm from './start-work-form.vue'
|
|
@@ -116,11 +117,9 @@ const tableSubmitClick = async () => {
|
|
|
window.$message.error('请先填写驳回原因')
|
|
|
return
|
|
|
}
|
|
|
- const tableData = htmlFormRef.value?.getTableForm()
|
|
|
//发起请求
|
|
|
const { error, code, msg } = await mainApi.taskAudit({
|
|
|
...taskForm.value,
|
|
|
- tableData: tableData,
|
|
|
dataId: tableInfo.value.id,
|
|
|
taskId: taskInfo.value.id,
|
|
|
projectId: projectId.value,
|
|
@@ -133,6 +132,16 @@ const tableSubmitClick = async () => {
|
|
|
window.$message.error(msg ?? '提交失败')
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+//获取表单数据
|
|
|
+const getTableForm = () => {
|
|
|
+ const res = htmlFormRef.value?.getTableForm()
|
|
|
+ return getObjValue(res)
|
|
|
+}
|
|
|
+
|
|
|
+defineExpose({
|
|
|
+ getTableForm,
|
|
|
+})
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|