فهرست منبع

物料申领-子表-物料名称带出计量单位

jbb 2 سال پیش
والد
کامیت
7ba59b60e4
1فایلهای تغییر یافته به همراه27 افزوده شده و 0 حذف شده
  1. 27 0
      src/views/activiti/form/demoForm2.vue

+ 27 - 0
src/views/activiti/form/demoForm2.vue

@@ -168,6 +168,7 @@ export default {
                 contractName:[],//技能博物馆-付款审批管理-子表合同名称
                 assetName:[],//技能博物馆- 资产处置-资产名称
                 sealName:[],//技能博物馆-印章名称
+                materialName:[],//技能博物馆 -物料名称
                 unit:[   //技能博物馆-物料库存-单位
                     {label:'个',value:'个'},
                     {label:'支',value:'支'},
@@ -304,6 +305,18 @@ export default {
                                  this.$message.error(res.message)
                              }
                         })
+                          //技能博物馆-物料申领-物料名称
+                      await this.getAction('/oa/material/list',{pageSize:10000,pageNo:1}).then(res => {
+                             if (res.success) {
+                               var aa=[]
+                               res.result.records.map(item=>{
+                               aa.push({value:item.materialName ,label:item.materialName,unit:item.unit  })
+                             })
+                             this.dynamicData.materialName = aa
+                            } else {
+                                 this.$message.error(res.message)
+                             }
+                        })
 
                          //技能博物馆-资产处置-子表资产名称
                       await this.getAction('/oa/asset/listByStatus',{pageSize:10000,pageNo:1}).then(res => {
@@ -1033,6 +1046,15 @@ export default {
                     })
                 })
             }
+            if(this.processData.businessTable == 'application_form' ){
+                value.map(item=>{
+                    this.dynamicData.materialName.map(event=>{
+                        if(item.material_name2==event.value){
+                            item.unit = event.unit
+                        }
+                    })
+                })
+            }
          },
          specialTerms(value,key){
             var that = this
@@ -1148,6 +1170,11 @@ export default {
           if(key =='sublist'){
            this.tableCalculation(value)
             
+          }
+          //技能博物馆-物料申领-子表
+          if(key =='child&application_form_b'){
+           this.tableCalculation(value)
+            
           }
            //技能博物馆-支付审批申请管理-子表
         //    if(key =='sublist'){