Explorar o código

项目启动-项目编号自动生成/支付审批管理-付款编号自动生成/合同管理-合同编号自动生成

jbb %!s(int64=2) %!d(string=hai) anos
pai
achega
5da44c1f7f
Modificáronse 1 ficheiros con 99 adicións e 2 borrados
  1. 99 2
      src/views/activiti/form/demoForm2.vue

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

@@ -166,6 +166,8 @@ export default {
                 conferenceRoom:[],//技能博物馆会议室信息
                 paymentNumber:[], // 技能博物馆-付款编号
                 contractName:[],//技能博物馆-付款审批管理-子表合同名称
+                assetName:[],//技能博物馆- 资产处置-资产名称
+                sealName:[],//技能博物馆-印章名称
                 unit:[   //技能博物馆-物料库存-单位
                     {label:'个',value:'个'},
                     {label:'支',value:'支'},
@@ -290,6 +292,51 @@ export default {
                                  this.$message.error(res.message)
                              }
                         })
+                            //技能博物馆-印章申请-印章名称
+                      await this.getAction('/sealArchives/sealArchives/listByState',{pageSize:10000,pageNo:1}).then(res => {
+                             if (res.success) {
+                               var aa=[]
+                               res.result.records.map(item=>{
+                               aa.push({value:item.sealName,label:item.sealName})
+                             })
+                             this.dynamicData.sealName = aa
+                            } else {
+                                 this.$message.error(res.message)
+                             }
+                        })
+
+                         //技能博物馆-资产处置-子表资产名称
+                      await this.getAction('/oa/asset/listByStatus',{pageSize:10000,pageNo:1}).then(res => {
+                             if (res.success) {
+                               var aa=[]
+                               res.result.records.map(item=>{
+                               aa.push({
+                                value:item.assetNumber,
+                                label:item.assetNumber,
+                                assetName:item.assetName,
+                                assetsCategory:item.assetsCategory,
+                                brand:item.brand,
+                                unitName:item.unitName,
+                                model:item.model,
+                                unit :item.unit ,
+                                quantity:item.quantity,
+                                amount:item.amount,
+                                exp:item.exp,
+                                purhcaseDate:item.purhcaseDate,
+                                inDate:item.inDate,
+                                place:item.place,
+                                user:item.user,
+                                userDept:item.userDept,
+                                state :item.state ,
+                                remark:item.remark,
+                                attachment:item.attachment
+                            })
+                             })
+                             this.dynamicData.assetName = aa
+                            } else {
+                                 this.$message.error(res.message)
+                             }
+                        })
 
                         //技能博物馆人员信息
                         await this.getAction('/sys/user/list', { pageSize: -1}).then(res => {
@@ -952,6 +999,29 @@ export default {
                     })
                 })
             }
+            if(this.processData.businessTable == 'add_assets_a' ){
+                value.map(item=>{
+                    this.dynamicData.assetName.map(event=>{
+                        if(item.asset_number==event.value){
+                            item.asset_name = event.assetName
+                            item.assets_category = event.assetsCategory
+                            item.brand = event.brand
+                            item.company = event.unitName
+                            item.specifications_models = event.model
+                            item.unit = event.unit
+                            item.amount = event.quantity
+                            item.sum = event.amount
+                            item.durable_years = event.exp
+                            item.acquisition_date = event.purhcaseDate
+                            item.input_date = event.inDate
+                            item.storage_location = event.place
+                            item.asset_state = event.state 
+                            item.accessory = event.attachment
+                            item.notes = event.remark
+                        }
+                    })
+                })
+            }
          },
          specialTerms(value,key){
             var that = this
@@ -1064,12 +1134,18 @@ export default {
               }) 
          }
           //技能博物馆-支付审批申请管理-子表
-          if(key=='sublist'){
+          if(key =='sublist'){
            this.tableCalculation(value)
             
           }
            //技能博物馆-支付审批申请管理-子表
-           if(key=='sublist'){
+        //    if(key =='sublist'){
+        //    this.tableCalculation(value)
+            
+        //   }
+          
+          //技能博物馆-资产处置-子表
+          if(key =='child&add_assets'){
            this.tableCalculation(value)
             
           }
@@ -1572,6 +1648,27 @@ export default {
                                       }) 
                                     }
                                   }
+                if(this.processData.businessTable == 'payment_apply'){//技能博物馆-支付审批管理-自动生成单号
+                    if( this.processData.tableId==''|| !this.processData.tableId){
+                         await  this.getAction('/sys/user/getNextNo',{name:'FK'}).then(res => {
+                            formData.payment_number=res
+                        }) 
+                    }
+                }
+                if(this.processData.businessTable == 'bwg_project_start'){//技能博物馆-项目启动-自动生成单号
+                    if( this.processData.tableId==''|| !this.processData.tableId){
+                         await  this.getAction('/sys/user/getNextNo',{name:'FK'}).then(res => {
+                            formData.project_number=res
+                        }) 
+                    }
+                }
+                if(this.processData.businessTable == 'bwg_contract_management'){//技能博物馆-合同管理-自动生成单号
+                    if( this.processData.tableId==''|| !this.processData.tableId){
+                         await  this.getAction('/sys/user/getNextNo',{name:'FK'}).then(res => {
+                            formData.contract_number=res
+                        }) 
+                    }
+                }
                     this.btndisabled = true
                    await postFormDataAction(url, formData, { jsonContent: jsonPamats })
                         .then(res => {