Ver Fonte

预提测

hbchen há 2 anos atrás
pai
commit
c9a12d6f5e
1 ficheiros alterados com 104 adições e 71 exclusões
  1. 104 71
      src/views/financialManagement/contractProgress.vue

+ 104 - 71
src/views/financialManagement/contractProgress.vue

@@ -263,6 +263,15 @@
           qySeller = element[2]
           qySeller = element[2]
         }
         }
       }
       }
+      // 编辑,不允许修改销售数量
+      if(contractInfo.form.contract_register_id){
+        if(!(ficcSeller&&qySeller)){
+          ElMessage.warning('合规套餐类型已定,不允许修改销售数量')
+          cascaderSelectSeller.value = contractInfo.form.seller_ids.split(',').map(item => +item)
+          return 
+        }
+      }
+      console.log(contractInfo.form.seller_ids);
       cascaderSelectSeller.value=[ficcSeller,qySeller]
       cascaderSelectSeller.value=[ficcSeller,qySeller]
       contractInfo.form.seller_ids= cascaderSelectSeller.value.join(',')
       contractInfo.form.seller_ids= cascaderSelectSeller.value.join(',')
       // 根据销售选择是否显示套餐
       // 根据销售选择是否显示套餐
@@ -270,7 +279,10 @@
         // 都有
         // 都有
         contractInfo.showServiceFicc=true
         contractInfo.showServiceFicc=true
         contractInfo.showServiceQy=true
         contractInfo.showServiceQy=true
-        contractInfo.form.services_amount = contractInfo.form.services_Qy_amount = ''
+        if(!contractInfo.form.contract_register_id){
+          // 新增的情况才置空
+          contractInfo.form.services_amount = contractInfo.form.services_Qy_amount = ''
+        }
       }else if(!ficcSeller){
       }else if(!ficcSeller){
         // 没有ficc销售
         // 没有ficc销售
         contractInfo.showServiceFicc=false
         contractInfo.showServiceFicc=false
@@ -285,6 +297,11 @@
         contractInfo.form.services_Qy_amount =''
         contractInfo.form.services_Qy_amount =''
       }
       }
     }else{
     }else{
+      if(contractInfo.form.contract_register_id){
+        ElMessage.warning('合规套餐类型已定,不允许修改销售数量')
+        cascaderSelectSeller.value = contractInfo.form.seller_ids.split(',').map(item => +item)
+        return 
+      }
       contractInfo.showServiceFicc = contractInfo.showServiceQy=true
       contractInfo.showServiceFicc = contractInfo.showServiceQy=true
       contractInfo.form.services_amount = contractInfo.form.services_Qy_amount = ''
       contractInfo.form.services_amount = contractInfo.form.services_Qy_amount = ''
       cascaderSelectSeller.value=[]
       cascaderSelectSeller.value=[]
@@ -486,9 +503,12 @@
       sign_date:'',
       sign_date:'',
       agreed_pay_time:'',
       agreed_pay_time:'',
       services:[],
       services:[],
+      services_amount:'',
+      services_Qy_amount:'',
       service_remark:'',
       service_remark:'',
       remark:""
       remark:""
     }
     }
+    
     contractInfo.checkedService=[]
     contractInfo.checkedService=[]
     contractInfo.checkedServiceQy=[]
     contractInfo.checkedServiceQy=[]
 
 
@@ -497,6 +517,8 @@
     contractInfo.checkedPermissionQySmall=[]
     contractInfo.checkedPermissionQySmall=[]
     sellerArray.value=value==0?allSellerArray.all_list||[]:[]
     sellerArray.value=value==0?allSellerArray.all_list||[]:[]
 
 
+    sellerListType.value = value==0?3:''
+
     // 1-大套餐  2-小套餐
     // 1-大套餐  2-小套餐
     contractInfo.serviceType=0
     contractInfo.serviceType=0
     contractInfo.serviceTypeQy=0
     contractInfo.serviceTypeQy=0
@@ -606,20 +628,45 @@
     // 获取套餐详情
     // 获取套餐详情
     getServiceDetail({contract_id:selectItem.contract_id}).then(res=>{
     getServiceDetail({contract_id:selectItem.contract_id}).then(res=>{
       // console.log(res);
       // console.log(res);
-      contractInfo.form.services = res.data?res.data.Service||[]:[]
-      // 小套餐
-      let smallService = contractInfo.form.services.find(item => item.ServiceTemplateId==2)
-      // 是否有大套餐
-      let hasBigService = contractInfo.form.services.some(item => item.ServiceTemplateId==1)
+      let servivesTemp = res.data?res.data.Service||[]:[]
+      if(selectItem.product_id==1){
+        // FICC套餐
+        // 小套餐
+        let smallService = servivesTemp.find(item => item.ServiceTemplateId==2)
+        // 是否有大套餐
+        let hasBigService = servivesTemp.some(item => item.ServiceTemplateId==1)
+        contractInfo.serviceVarietyShow=!!smallService
+        contractInfo.serviceType = !!smallService?2:hasBigService?1:0
+        contractInfo.checkedService=servivesTemp.map(item => item.ServiceTemplateId)
+        contractInfo.checkedPermission=smallService?smallService.ChartPermissionIds||[]:[]
+        contractInfo.form.services_Qy_amount = ''
+      }else{
+        //权益
+        // 权益大套餐
+        let bigServiceQY = servivesTemp.find(item => item.FMSServiceTemplateId==11 || item.FMSServiceTemplateId==12)
+        // 行业套餐
+        let smallServiceQY = servivesTemp.filter(item => [14,15,16,17,18].includes(item.FMSServiceTemplatePId))
 
 
-      contractInfo.serviceVarietyShow=!!smallService
-      contractInfo.serviceVarietyShowQy=!!false
+        contractInfo.serviceVarietyShowQy = (!!bigServiceQY) || (!!smallServiceQY)
+        contractInfo.serviceTypeQy = contractInfo.qYDiaType =  !!bigServiceQY?1:!!smallServiceQY?2:0
+        contractInfo.checkedServiceQy=[!!bigServiceQY?10:13]
+        if(!!bigServiceQY){
+          //权益大套餐
+          contractInfo.checkedPermissionQyBig = [bigServiceQY.FMSServiceTemplateId]
+          contractInfo.checkedPermissionQySmall = []
+        }else{
+          //行业套餐
+          contractInfo.checkedPermissionQyBig = []
+          contractInfo.checkedPermissionQySmall = smallServiceQY.map(item => item.FMSServiceTemplateId)
+        }
+        contractInfo.form.services_amount = ''
+      }
       contractInfo.varietyDiaType='edit'
       contractInfo.varietyDiaType='edit'
-      contractInfo.serviceType = !!smallService?2:hasBigService?1:0
-      contractInfo.checkedService=contractInfo.form.services.map(item => item.ServiceTemplateId)
-      contractInfo.checkedPermission=smallService?smallService.ChartPermissionIds||[]:[]
+
     })
     })
+
     contractInfo.form.product_ids = selectItem.product_id.toString()
     contractInfo.form.product_ids = selectItem.product_id.toString()
+    sellerListType.value = selectItem.product_id
     sellerArray.value = selectItem.product_id==1?allSellerArray.ficc_list||[]:allSellerArray.rai_list || []
     sellerArray.value = selectItem.product_id==1?allSellerArray.ficc_list||[]:allSellerArray.rai_list || []
     // console.log(contractInfo.form);
     // console.log(contractInfo.form);
     contractInfo.form.company_name=selectItem.company_name
     contractInfo.form.company_name=selectItem.company_name
@@ -631,8 +678,12 @@
     contractInfo.form.seller_id=selectItem.seller_id
     contractInfo.form.seller_id=selectItem.seller_id
     contractInfo.form.seller_ids=selectItem.seller_id+''
     contractInfo.form.seller_ids=selectItem.seller_id+''
     contractInfo.form.contract_type=selectItem.contract_type_key
     contractInfo.form.contract_type=selectItem.contract_type_key
-    contractInfo.form.relate_contract_code=selectItem.relate_contract_code
-    contractInfo.form.actual_company_name=selectItem.actual_company_name
+    contractInfo.form.relate_contract_code=contractInfo.form.contract_type==3 || contractInfo.form.contract_type==4?selectItem.relate_contract_code:''
+    contractInfo.form.actual_company_name=contractInfo.form.contract_type==3?selectItem.actual_company_name:''
+    if(contractInfo.form.contract_type==3){
+      // 代付
+      contractInfo.form.has_payment=''
+    }
     contractInfoForm.value && 
     contractInfoForm.value && 
     contractInfoForm.value.validateField([
     contractInfoForm.value.validateField([
       'contract_code','company_name','contract_type','seller_ids',
       'contract_code','company_name','contract_type','seller_ids',
@@ -850,12 +901,12 @@
     }
     }
   }
   }
   // 合规登记-提交
   // 合规登记-提交
-  const 
-  complianceSubmit=()=>{
+  const complianceSubmit=()=>{
     // console.log(contractInfo.checkedService);
     // console.log(contractInfo.checkedService);
     contractInfoForm.value.validate(valid=>{
     contractInfoForm.value.validate(valid=>{
       if(valid){
       if(valid){
         contractInfo.form.services=[]
         contractInfo.form.services=[]
+        contractInfo.form.service_amount=[]
         // FICC
         // FICC
         if(contractInfo.showServiceFicc){
         if(contractInfo.showServiceFicc){
           if(contractInfo.checkedService.length==0){
           if(contractInfo.checkedService.length==0){
@@ -896,6 +947,7 @@
             ElMessage.error('FICC套餐金额格式错误')
             ElMessage.error('FICC套餐金额格式错误')
             return 
             return 
           }
           }
+          contractInfo.form.service_amount.push({product_id:1,service_amount:+contractInfo.form.services_amount})
         }
         }
         
         
         // 权益
         // 权益
@@ -917,7 +969,6 @@
             ElMessage.warning('请保存行业套餐品种')
             ElMessage.warning('请保存行业套餐品种')
             return 
             return 
           }
           }
-          console.log(contractInfo.checkedServiceQy);
           contractInfo.checkedServiceQy.map(serviceId=>{
           contractInfo.checkedServiceQy.map(serviceId=>{
             console.log(contractInfo.serviceArrayQy);
             console.log(contractInfo.serviceArrayQy);
             let serviceItem = contractInfo.serviceArrayQy.find(it=> it.service_template_id==serviceId)
             let serviceItem = contractInfo.serviceArrayQy.find(it=> it.service_template_id==serviceId)
@@ -960,18 +1011,20 @@
             ElMessage.error('权益套餐金额格式错误')
             ElMessage.error('权益套餐金额格式错误')
             return 
             return 
           }
           }
+          contractInfo.form.service_amount.push({product_id:2,service_amount:+contractInfo.form.services_Qy_amount})
         }
         }
         
         
         contractInfo.form.contract_amount = +parseFloat(contractInfo.form.contract_amount).toFixed(2)
         contractInfo.form.contract_amount = +parseFloat(contractInfo.form.contract_amount).toFixed(2)
         contractInfo.form.services_amount = +parseFloat(contractInfo.form.services_amount).toFixed(2) || 0
         contractInfo.form.services_amount = +parseFloat(contractInfo.form.services_amount).toFixed(2) || 0
         contractInfo.form.services_Qy_amount = +parseFloat(contractInfo.form.services_Qy_amount).toFixed(2) || 0
         contractInfo.form.services_Qy_amount = +parseFloat(contractInfo.form.services_Qy_amount).toFixed(2) || 0
+        console.log(contractInfo.form.services_amount,contractInfo.form.services_Qy_amount);
         let servicesAll = Math.round((contractInfo.form.services_Qy_amount+contractInfo.form.services_amount)*100)/100
         let servicesAll = Math.round((contractInfo.form.services_Qy_amount+contractInfo.form.services_amount)*100)/100
         if(servicesAll!=contractInfo.form.contract_amount){
         if(servicesAll!=contractInfo.form.contract_amount){
           ElMessage.error('套餐总金额不等于合同金额')
           ElMessage.error('套餐总金额不等于合同金额')
           return 
           return 
         }
         }
-        contractInfo.form.service_amount = [{product_id:1,service_amount:contractInfo.form.services_amount},
-        {product_id:2,service_amount:contractInfo.form.services_Qy_amount}]
+        // contractInfo.form.service_amount = [{product_id:1,service_amount:contractInfo.form.services_amount},
+        // {product_id:2,service_amount:contractInfo.form.services_Qy_amount}]
         if(!contractInfo.form.has_payment) contractInfo.form.has_payment=0
         if(!contractInfo.form.has_payment) contractInfo.form.has_payment=0
         console.log(contractInfo.form);
         console.log(contractInfo.form);
         // 检验合同名称或者合同有效期是否重复
         // 检验合同名称或者合同有效期是否重复
@@ -1147,7 +1200,7 @@
   // 到款预登记Id
   // 到款预登记Id
   supplementary_item.id = parseInt(route.query.supplementaryId) || ''
   supplementary_item.id = parseInt(route.query.supplementaryId) || ''
   // complianceId没有,认为是合规登记
   // complianceId没有,认为是合规登记
-  contractInfo.operationtype=contractInfo.form.contract_register_id?(route.query.type || 'compliance'):'compliance'
+  contractInfo.operationtype=contractInfo.form.contract_register_id?(route.query.type || 'view'):'compliance'
   
   
 
 
   // 是否是开票登记或者单款登记
   // 是否是开票登记或者单款登记
@@ -1192,7 +1245,7 @@
         currency_unit:res.data.currency_unit,
         currency_unit:res.data.currency_unit,
         new_company:res.data.new_company,
         new_company:res.data.new_company,
         seller_ids:res.data.seller_ids,
         seller_ids:res.data.seller_ids,
-        seller_id:res.data.seller_id,
+        seller_id:res.data.seller_id || res.data.rai_seller_id,
         contract_status:res.data.contract_status,
         contract_status:res.data.contract_status,
         start_date:res.data.start_date,
         start_date:res.data.start_date,
         end_date:res.data.end_date,
         end_date:res.data.end_date,
@@ -1210,6 +1263,8 @@
       // 销售
       // 销售
       if(res.data.seller_id && res.data.rai_seller_id){
       if(res.data.seller_id && res.data.rai_seller_id){
         contractInfo.showServiceFicc = contractInfo.showServiceQy=true
         contractInfo.showServiceFicc = contractInfo.showServiceQy=true
+        sellerArray.value = allSellerArray.all_list
+        cascaderSelectSeller.value = res.data.seller_ids.split(',').map(item => +item) 
       }else if(!res.data.seller_id){
       }else if(!res.data.seller_id){
         sellerArray.value=allSellerArray.rai_list
         sellerArray.value=allSellerArray.rai_list
         contractInfo.showServiceQy=true
         contractInfo.showServiceQy=true
@@ -1217,10 +1272,10 @@
         sellerArray.value=allSellerArray.ficc_list
         sellerArray.value=allSellerArray.ficc_list
         contractInfo.showServiceFicc=true
         contractInfo.showServiceFicc=true
       }
       }
-      if(res.data.contract_source == 0){
-        sellerArray.value = allSellerArray.all_list
-        cascaderSelectSeller.value = res.data.seller_ids.split(',').map(item => +item) 
-      }
+      // if(res.data.contract_source == 0){
+      //   sellerArray.value = allSellerArray.all_list
+      //   cascaderSelectSeller.value = res.data.seller_ids.split(',').map(item => +item) 
+      // }
 
 
       rmbRate.value=res.data.rmb_rate
       rmbRate.value=res.data.rmb_rate
       console.log(rmbRate.value,res.data.rmb_rate);
       console.log(rmbRate.value,res.data.rmb_rate);
@@ -1295,37 +1350,15 @@
       placementForm.placementData[0].service_product_id=sellerListType.value == 3?'':sellerListType.value
       placementForm.placementData[0].service_product_id=sellerListType.value == 3?'':sellerListType.value
 
 
       // 开票
       // 开票
-      // haveInvoiceMoney:'',
-      // waitInvoiceMoney:'',
-      // allInvoiceMoney:'',
-      // // 到款金额
-      // havePlacementMoney:'',
-      // waitPlacementMoney:'',
-      // allPlacementMoney:'',
-      // // FICC开票金额
-      // haveInvoiceMoneyFICC:'',
-      // waitInvoiceMoneyFICC:'',
-      // allInvoiceMoneyFICC:'',
-      // // FICC到款金额
-      // havePlacementMoneyFICC:'',
-      // waitPlacementMoneyFICC:'',
-      // allPlacementMoneyFICC:'', 
-      // // 权益开票金额
-      // haveInvoiceMoneyQY:'',
-      // waitInvoiceMoneyQY:'',
-      // allInvoiceMoneyQY:'',
-      // // 权益到款金额
-      // havePlacementMoneyQY:'',
-      // waitPlacementMoneyQY:'',
-      // allPlacementMoneyQY:'',
+      // console.log(res.data.service_amount_list.find(item => item.product_id==1),res.data.service_amount_list.find(item => item.product_id==2));
       // FICC套餐总金额 = FICC套餐剩余开篇金额
       // FICC套餐总金额 = FICC套餐剩余开篇金额
       contractInfo.moneyData.waitInvoiceMoneyFICC=contractInfo.moneyData.waitPlacementMoneyFICC=
       contractInfo.moneyData.waitInvoiceMoneyFICC=contractInfo.moneyData.waitPlacementMoneyFICC=
       contractInfo.moneyData.allInvoiceMoneyFICC = contractInfo.moneyData.allPlacementMoneyFICC=
       contractInfo.moneyData.allInvoiceMoneyFICC = contractInfo.moneyData.allPlacementMoneyFICC=
-      res.data.service_amount_list.find(item => item.product_id==1)?.service_amount
+      res.data.service_amount_list.find(item => item.product_id==1)?res.data.service_amount_list.find(item => item.product_id==1).service_amount:0
       // 权益套餐总金额 = 权益套餐剩余开篇金额
       // 权益套餐总金额 = 权益套餐剩余开篇金额
       contractInfo.moneyData.waitInvoiceMoneyQY=contractInfo.moneyData.waitPlacementMoneyQY=
       contractInfo.moneyData.waitInvoiceMoneyQY=contractInfo.moneyData.waitPlacementMoneyQY=
       contractInfo.moneyData.allInvoiceMoneyQY = contractInfo.moneyData.allPlacementMoneyQY=
       contractInfo.moneyData.allInvoiceMoneyQY = contractInfo.moneyData.allPlacementMoneyQY=
-      res.data.service_amount_list.find(item => item.product_id==2)?.service_amount
+      res.data.service_amount_list.find(item => item.product_id==2)?res.data.service_amount_list.find(item => item.product_id==2).service_amount:0
 
 
       if(res.data.invoice_list.length>0){
       if(res.data.invoice_list.length>0){
         invoiceForm.invoiceData=[]
         invoiceForm.invoiceData=[]
@@ -1446,10 +1479,10 @@
                   <div class="info-row-title">合同信息</div>
                   <div class="info-row-title">合同信息</div>
                   <div style="margin: 0px 42px 0 62px;">
                   <div style="margin: 0px 42px 0 62px;">
                     <el-form :model="contractInfo.form" inline ref="contractInfoForm" label-width="130" 
                     <el-form :model="contractInfo.form" inline ref="contractInfoForm" label-width="130" 
-                    :disabled="contractInfo.operationtype!='compliance'&&contractInfo.operationtype!='placement'"
+                    :disabled="contractInfo.operationtype!='compliance'"
                     :rules="contractInfo.rules" class="contractInfo-form">
                     :rules="contractInfo.rules" class="contractInfo-form">
                       <el-form-item label="合同来源" prop="contract_source" >
                       <el-form-item label="合同来源" prop="contract_source" >
-                        <el-select v-model="contractInfo.form.contract_source" :disabled="contractInfo.operationtype!='compliance'"
+                        <el-select v-model="contractInfo.form.contract_source" 
                         placeholder="请选择合同来源" @change="contractSourceChange">
                         placeholder="请选择合同来源" @change="contractSourceChange">
                           <el-option :label="item" :value="index" 
                           <el-option :label="item" :value="index" 
                           v-for="(item,index) in contractSourceArray" :key="item"></el-option>
                           v-for="(item,index) in contractSourceArray" :key="item"></el-option>
@@ -1457,83 +1490,83 @@
                       </el-form-item>
                       </el-form-item>
                       <el-form-item label="合同编号" prop="contract_code" id="selectContract">
                       <el-form-item label="合同编号" prop="contract_code" id="selectContract">
                         <el-input v-model="contractInfo.form.contract_code" placeholder="请输入合同编号"
                         <el-input v-model="contractInfo.form.contract_code" placeholder="请输入合同编号"
-                        v-if="(contractInfo.form.contract_source==0)" :disabled="contractInfo.operationtype!='compliance'"/>
+                        v-if="(contractInfo.form.contract_source==0)" />
                         <scrollableSelect :loadMoreMethod="loadContractNoMore" v-model="contractInfo.form.contract_code" placeholder="请搜索合同编号" v-else
                         <scrollableSelect :loadMoreMethod="loadContractNoMore" v-model="contractInfo.form.contract_code" placeholder="请搜索合同编号" v-else
                         :searchMethod="contractNoSearch" @change="selectContractNo" useLoading :isLoading="contractInfo.contractNoLoading" 
                         :searchMethod="contractNoSearch" @change="selectContractNo" useLoading :isLoading="contractInfo.contractNoLoading" 
-                        :disabled="contractInfo.operationtype!='compliance'">
+                        >
                           <el-option :label="item.contract_code" :value="item.contract_code" v-for="item in contractInfo.contractNoArray" :key="item.contract_id"></el-option>
                           <el-option :label="item.contract_code" :value="item.contract_code" v-for="item in contractInfo.contractNoArray" :key="item.contract_id"></el-option>
                         </scrollableSelect>
                         </scrollableSelect>
                       </el-form-item>
                       </el-form-item>
                       <el-form-item label="客户名称" prop="company_name" id="contractInfo-companyName">
                       <el-form-item label="客户名称" prop="company_name" id="contractInfo-companyName">
                         <el-input v-model="contractInfo.form.company_name" 
                         <el-input v-model="contractInfo.form.company_name" 
-                        placeholder="请输入客户名称" :disabled="contractInfo.operationtype!='compliance'" />
+                        placeholder="请输入客户名称"  />
                         <el-checkbox v-model="is_new_company" label="新客户" style="margin-left: 20px;min-width: 100px;"
                         <el-checkbox v-model="is_new_company" label="新客户" style="margin-left: 20px;min-width: 100px;"
-                        size="large" @change="isNewChange" :disabled="contractInfo.form.contract_type!='' && contractInfo.form.contract_type!=3 "  />
+                        size="large" @change="isNewChange" :disabled="contractInfo.form.contract_type!='' && contractInfo.form.contract_type!=3 "   />
                       </el-form-item>
                       </el-form-item>
                       <el-form-item label="销售" prop="seller_ids">
                       <el-form-item label="销售" prop="seller_ids">
-                        <el-select v-if="contractInfo.form.contract_source==1" v-model="contractInfo.form.seller_id" placeholder="请选择销售" 
-                        filterable @change="selectSeller" :disabled="contractInfo.operationtype!='compliance'">
-                          <el-option :label="item.seller_name" :value="item.seller_id" v-for="item in sellerArray" :key="item.admin_id"></el-option>
-                        </el-select>
-                        <el-cascader v-else filterable :options="sellerArray" placeholder="请选择销售" @change="sellerChange"
-                          clearable :show-all-levels="false" v-model="cascaderSelectSeller" :disabled="contractInfo.operationtype!='compliance'"
+                        <el-cascader v-if="sellerListType==3" filterable :options="sellerArray" placeholder="请选择销售" @change="sellerChange"
+                          :show-all-levels="false" v-model="cascaderSelectSeller" :clearable="false" 
                           :props="{multiple:true,label:'seller_name',value:'seller_id',children:'child'}"
                           :props="{multiple:true,label:'seller_name',value:'seller_id',children:'child'}"
                           key="seller" >
                           key="seller" >
                         </el-cascader>
                         </el-cascader>
+                        <el-select v-else v-model="contractInfo.form.seller_id" placeholder="请选择销售" 
+                        filterable @change="selectSeller" >
+                          <el-option :label="item.seller_name" :value="item.seller_id" v-for="item in sellerArray" :key="item.admin_id"></el-option>
+                        </el-select>
                       </el-form-item>
                       </el-form-item>
                       <el-form-item label="合同金额" id="contractInfo-contractAmount"
                       <el-form-item label="合同金额" id="contractInfo-contractAmount"
                       prop="contract_amount">
                       prop="contract_amount">
                         <el-input v-model.trim="contractInfo.form.contract_amount"
                         <el-input v-model.trim="contractInfo.form.contract_amount"
-                        placeholder="请输入合同金额" :disabled="contractInfo.operationtype!='compliance'" />
+                        placeholder="请输入合同金额"  />
                         <el-select v-model="contractInfo.form.currency_unit" placeholder="请选择货币类型" 
                         <el-select v-model="contractInfo.form.currency_unit" placeholder="请选择货币类型" 
-                        style="margin-left: 20px;" :disabled="contractInfo.operationtype!='compliance'">
+                        style="margin-left: 20px;" >
                           <el-option v-for="item in currencyList" :key="item.code" :label="item.name" :value="item.code">
                           <el-option v-for="item in currencyList" :key="item.code" :label="item.name" :value="item.code">
                           </el-option>
                           </el-option>
                         </el-select>
                         </el-select>
                       </el-form-item>
                       </el-form-item>
                       <el-form-item label="合同有效期" 
                       <el-form-item label="合同有效期" 
                       prop="start_date">
                       prop="start_date">
-                        <el-date-picker type="daterange" :disabled="contractInfo.operationtype!='compliance'"
+                        <el-date-picker type="daterange" 
                         v-model="contractInfo.contractValidityDate" @change="contractValidityDateChane"
                         v-model="contractInfo.contractValidityDate" @change="contractValidityDateChane"
                         start-placeholder="开始日期" end-placeholder="结束日期" value-format="YYYY-MM-DD"
                         start-placeholder="开始日期" end-placeholder="结束日期" value-format="YYYY-MM-DD"
                         :clearable="false">
                         :clearable="false">
                         </el-date-picker>
                         </el-date-picker>
                       </el-form-item>
                       </el-form-item>
                       <el-form-item label="合同类型" prop="contract_type">
                       <el-form-item label="合同类型" prop="contract_type">
-                        <el-select v-model="contractInfo.form.contract_type" :disabled="contractInfo.operationtype!='compliance'"
+                        <el-select v-model="contractInfo.form.contract_type" 
                         placeholder="请选择合同类型" @change="contractTypeChange">
                         placeholder="请选择合同类型" @change="contractTypeChange">
                           <el-option :label="item.label" :value="item.id" v-for="item in contractTypeArray" :key="item.id"></el-option>
                           <el-option :label="item.label" :value="item.id" v-for="item in contractTypeArray" :key="item.id"></el-option>
                         </el-select>
                         </el-select>
                       </el-form-item>
                       </el-form-item>
                       <el-form-item label="是否代付" prop="has_payment" v-if="[1,2,4].includes(contractInfo.form.contract_type)">
                       <el-form-item label="是否代付" prop="has_payment" v-if="[1,2,4].includes(contractInfo.form.contract_type)">
-                        <el-radio-group v-model="contractInfo.form.has_payment" :disabled="contractInfo.operationtype!='compliance'"
+                        <el-radio-group v-model="contractInfo.form.has_payment" 
                         style="min-width:286px;width: 15vw;">
                         style="min-width:286px;width: 15vw;">
                           <el-radio :label="1">是</el-radio>
                           <el-radio :label="1">是</el-radio>
                           <el-radio :label="0">否</el-radio>
                           <el-radio :label="0">否</el-radio>
                         </el-radio-group>
                         </el-radio-group>
                       </el-form-item>
                       </el-form-item>
                       <el-form-item label="实际使用方" prop="actual_company_name" v-if="contractInfo.form.contract_type==3">
                       <el-form-item label="实际使用方" prop="actual_company_name" v-if="contractInfo.form.contract_type==3">
-                        <el-input v-model="contractInfo.form.actual_company_name" :disabled="contractInfo.operationtype!='compliance'"
+                        <el-input v-model="contractInfo.form.actual_company_name" 
                         placeholder="请输入实际使用方" />
                         placeholder="请输入实际使用方" />
                       </el-form-item>
                       </el-form-item>
                       <el-form-item label="关联合同" prop="relate_contract_code" v-if="contractInfo.form.contract_type==3 || contractInfo.form.contract_type==4">
                       <el-form-item label="关联合同" prop="relate_contract_code" v-if="contractInfo.form.contract_type==3 || contractInfo.form.contract_type==4">
-                        <el-input v-model="contractInfo.form.relate_contract_code" :disabled="contractInfo.operationtype!='compliance'"
+                        <el-input v-model="contractInfo.form.relate_contract_code" 
                         placeholder="请输入关联合同" />
                         placeholder="请输入关联合同" />
                       </el-form-item>
                       </el-form-item>
                       <el-form-item label="合同状态" prop="contract_status">
                       <el-form-item label="合同状态" prop="contract_status">
-                        <el-select v-model="contractInfo.form.contract_status" :disabled="contractInfo.operationtype!='compliance'"
+                        <el-select v-model="contractInfo.form.contract_status" 
                         placeholder="请选择合同状态" >
                         placeholder="请选择合同状态" >
                           <el-option :label="item.label" :value="item.id" v-for="item in contractStatusArray" :key="item.id"></el-option>
                           <el-option :label="item.label" :value="item.id" v-for="item in contractStatusArray" :key="item.id"></el-option>
                         </el-select>
                         </el-select>
                       </el-form-item>
                       </el-form-item>
                       <el-form-item label="签订日" prop="sign_date" >
                       <el-form-item label="签订日" prop="sign_date" >
-                        <el-date-picker v-model="contractInfo.form.sign_date" :disabled="contractInfo.operationtype!='compliance'"
+                        <el-date-picker v-model="contractInfo.form.sign_date" 
                         placeholder="请选择签订日" value-format="YYYY-MM-DD"
                         placeholder="请选择签订日" value-format="YYYY-MM-DD"
                         :clearable="false">
                         :clearable="false">
                         </el-date-picker>
                         </el-date-picker>
                       </el-form-item>
                       </el-form-item>
                       <el-form-item label="约定付款时间" prop="agreed_pay_time">
                       <el-form-item label="约定付款时间" prop="agreed_pay_time">
-                        <el-input v-model="contractInfo.form.agreed_pay_time" :disabled="contractInfo.operationtype!='compliance'"
+                        <el-input v-model="contractInfo.form.agreed_pay_time" 
                         placeholder="请输入约定付款时间" />
                         placeholder="请输入约定付款时间" />
                       </el-form-item>
                       </el-form-item>
                     </el-form>
                     </el-form>