Sfoglia il codice sorgente

项目启动管理-创建人创建部门/承办部门/自动生成合同编码单据号

jbb 2 anni fa
parent
commit
6cdc6485d4
1 ha cambiato i file con 23 aggiunte e 2 eliminazioni
  1. 23 2
      src/views/activiti/form/demoForm2.vue

+ 23 - 2
src/views/activiti/form/demoForm2.vue

@@ -836,6 +836,10 @@ export default {
                                if(that.processData.businessTable == 'material_apply'){
                                        that.$refs.KFB.setData({department:jnDeparment}) 
                                 }
+                                //技能博物馆-合同管理-创建部门
+                               if(that.processData.businessTable == 'bwg_contract_management'){
+                                       that.$refs.KFB.setData({create_department:jnDeparment}) 
+                                }
                                 //技能博物馆-物料申领
                                if(that.processData.businessTable == 'application_form'){
                                        that.$refs.KFB.setData({create_department:jnDeparment}) 
@@ -1306,6 +1310,16 @@ export default {
               })
          }
 
+         //技能博物馆-项目合同管理-承办部门
+         if(key == 'undertaker' &&this.processData.businessTable == 'bwg_contract_management'){
+           this.dynamicData.personListJn.map(item =>{
+                  if(item.label == value){
+                      this.$refs.KFB.setData({undertaker_department:item.departIds_dictText}) 
+                  }
+              })
+         }
+
+
           //技能博物馆-合同管理-项目预算
           if(key == 'project_name' &&this.processData.businessTable == 'bwg_contract_management'){
            this.dynamicData.fundApproval.map(item =>{
@@ -1692,12 +1706,19 @@ export default {
                         }) 
                     }
                 }
-                if(this.processData.businessTable == 'bwg_contract_management'){//技能博物馆-合同管理-自动生成单号
+                if(this.processData.businessTable == 'bwg_contract_management'){//技能博物馆-合同管理-自动生成合同单号
                     if( this.processData.tableId==''|| !this.processData.tableId){
-                         await  this.getAction('/sys/user/getNextNo',{name:'FK'}).then(res => {
+                         await  this.getAction('/sys/user/getNextNo',{name:'XMHT'}).then(res => {
                             formData.contract_number=res
                         }) 
                     }
+                }
+                if(this.processData.businessTable == 'bwg_contract_management'){//技能博物馆-合同管理-自动生成单据号
+                    if( this.processData.tableId==''|| !this.processData.tableId){
+                         await  this.getAction('/sys/user/getNextNo',{name:'XMHT'}).then(res => {
+                            formData.document_number=res
+                        }) 
+                    }
                 }
                     this.btndisabled = true
                    await postFormDataAction(url, formData, { jsonContent: jsonPamats })