diff --git a/src/components/DesignForm/public/form/form.vue b/src/components/DesignForm/public/form/form.vue
index 9a3e912fd..e0d107649 100644
--- a/src/components/DesignForm/public/form/form.vue
+++ b/src/components/DesignForm/public/form/form.vue
@@ -940,7 +940,7 @@ const saveEditFormInfo = (type: string, res: any) => {
*/
const draftSubmit = (params = {}) => {
// let apiUrl = "/systemapi/task_management/newcust_form_editdata"
- let apiUrl ="/systemapi/task_management/add_customer_form"
+ let apiUrl ="/systemapi/task_management/editCustomerTable"
if (props.isSearch || !apiUrl || loading.value) {
if (!props.isSearch && !apiUrl) {
console.error(
diff --git a/src/components/DesignForm/tableListPage/formPageCont.vue b/src/components/DesignForm/tableListPage/formPageCont.vue
index de6431edd..6a5413093 100644
--- a/src/components/DesignForm/tableListPage/formPageCont.vue
+++ b/src/components/DesignForm/tableListPage/formPageCont.vue
@@ -27,6 +27,10 @@ const props = defineProps({
type:Number,
default:1
},
+ operState:{
+ type:Number,
+ default:1
+ },
pageInfo:{
type:Object,
default(){
@@ -100,7 +104,16 @@ const getCustomrrFormInfo = () => {
.then((data:any) =>{
if(data.code == 0){
if (data.data == 3 || data.data == 4){
- formState.formData.list.push(submitButtonEs)
+ // formState.formData.list.push(submitButtonEs)
+ if(props.operState == 2){
+ formState.formData.list.push(afreshSubmitButton)
+ }else if(props.operState == 3){
+ formState.formData.list.push(editFormCont)
+ }else if(props.operState == 4){
+ formState.formData.list.push(draftSubmitButton)
+ }else if(props.operState == 5){
+ formState.formData.list.push(submitButtonEs)
+ }
}
}
})
@@ -145,6 +158,8 @@ const drawerBeforeClose = () => {
// emits("getmytodolist")
// emits("update:isshow", false);
}
+//提交审批
+const sendDraftSubmit = (type: string,val?:any) => {}
()
-
+const operState = ref(1) //操作状态 1:新增;2:重新发起;3:申请修改;4:提交审批;5:普通表单修改
const idList = ref([])
const designStore = useDesignFormStore()
const route = useRoute()
@@ -328,6 +328,19 @@ const lookPageInfo = (val:any) => {
const editInfo = (val:any) => {
console.log('修改数据!',val)
+ operState.value = 5;
+ tablePageClass.value = 2;
+ pageInfoCont.value = val
+ drawerWith.value = container.value?.clientWidth
+ lookPageInfoIsShow.value = true;
+}
+/**
+@ 作者: 秦东
+@ 时间: 2024-04-10 15:32:55
+@ 功能: 提交审批
+*/
+const submitApproval = (val:any) => {
+ operState.value = 4
tablePageClass.value = 2;
pageInfoCont.value = val
drawerWith.value = container.value?.clientWidth
@@ -472,7 +485,7 @@ const editInfo = (val:any) => {
content="提交审批"
placement="top-end"
>
-
+
{
/>
-
+
{{ tableDataList}}
@@ -610,7 +623,7 @@ const editInfo = (val:any) => {
content="提交审批"
placement="top-end"
>
-
+
{
-
+