duy 2 years ago
parent
commit
0c3ad6e4b4

+ 4 - 2
src/api/modules/program/annual.js

@@ -38,7 +38,8 @@ export default {
         return httpApi({
             url: '/api/blade-control/annualBudget/addAnnualBudget',
             method: 'post',
-            data: form
+            data: form,
+            isDelay:true
         }, msg);
     },
     //编辑
@@ -46,7 +47,8 @@ export default {
         return httpApi({
             url: '/api/blade-control/annualBudget/updateAnnualBudget',
             method: 'post',
-            data: form
+            data: form,
+            isDelay:true
         }, msg);
     },
 }

+ 6 - 11
src/views/project/contract/components/file.vue

@@ -55,26 +55,23 @@ const props = defineProps({
         type: Boolean,
         default: false
     },
-    isres:{
-        type: Boolean,
-        default: false//验证是否可以保存
-    }
+
 })
 
 const infoData = ref(props.datas)
 const isDisabled = ref(props.disabled)
 const saveLoaingVal=ref(props.saveLoaing)
-const isresdata = ref(props.isres)
+
 
 //深度监听
 watch(() => [
     props.datas,
     infoData,
-    props.isres
+   
 ], ([datas,infoData]) => {
     infoData.value = datas
     emit('update:datas', infoData)
-    isresdata.value=isres
+   
 }, {deep: true})
 
 //监听
@@ -113,11 +110,9 @@ const emit= defineEmits(['saveClick',"update:datas"])
 //提交保存
 const saveClick = () => {
     console.log(infoData.value,'infoData');
-    if(isresdata.value){
+
         emit('saveClick')
-    }else{
-        window.$message.warning('请输入合同基础信息必填项')
-    }
+ 
     
 
 }

+ 7 - 12
src/views/project/contract/components/milestone.vue

@@ -87,27 +87,24 @@ const props = defineProps({
         type:Array,
         default:()=>([])
     },
-    isres:{
-        type: Boolean,
-        default: false//验证是否可以保存
-    }
+
 })
 
 const infoData = ref(props.datas)
 const isDisabled = ref(props.disabled)
 const saveLoaingVal=ref(props.saveLoaing)
-const isresdata = ref(props.isres)
+
 
 //深度监听
 watch(() => [
     props.datas,
     infoData,
-    props.isres
-], ([datas,infoData,isres]) => {
+
+], ([datas,infoData]) => {
    console.log(datas,'datas');
     infoData.value = datas
     emit('update:datas', infoData)
-    isresdata.value=isres
+
 
 }, {deep: true})
 
@@ -151,11 +148,9 @@ const delRow=(index)=>{
 //提交保存
 const saveClick = () => {
     console.log(infoData.value,'infoData');
-    if(isresdata.value){
+ 
         emit('saveClick')
-    }else{
-        window.$message.warning('请输入合同基础信息必填项')
-    }
+ 
     
  
 

+ 3 - 3
src/views/project/contract/form.vue

@@ -14,13 +14,13 @@
             />
         </template>
         <template #tab-file>
-            <fileTabCard :datas="infoDataFile" :disabled="dataType === 'view'" v-if="tabsKey === 'file'" @saveClick="saveClick"  :saveLoaing="saveLoaing" :isres="isres"/>
+            <fileTabCard :datas="infoDataFile" :disabled="dataType === 'view'" v-if="tabsKey === 'file'" @saveClick="saveClick"  :saveLoaing="saveLoaing" />
         </template>
         <template #tab-milestone>
-            <milestoneTab :datas="milestoneData" :disabled="dataType === 'view'" v-if="tabsKey === 'milestone'" @saveClick="saveClick"  :saveLoaing="saveLoaing" :reminderUserList="reminderUserList" :isres="isres"/>
+            <milestoneTab :datas="milestoneData" :disabled="dataType === 'view'" v-if="tabsKey === 'milestone'" @saveClick="saveClick"  :saveLoaing="saveLoaing" :reminderUserList="reminderUserList" />
         </template>
         <template #tab-record>
-            <recordTabCard :datas="recordData" v-if="tabsKey === 'record'" :isres="isres"/>
+            <recordTabCard :datas="recordData" v-if="tabsKey === 'record'" />
         </template>
         
     </HcTabsSimple>