소스 검색

【深爱】【CBG 查看数据处理】

wuyx 1 개월 전
부모
커밋
6103c41366
1개의 변경된 파일12개의 추가작업 그리고 10개의 파일을 삭제
  1. 12 10
      uas-office-web/uas-mobile/src/utils/common/form.request.js

+ 12 - 10
uas-office-web/uas-mobile/src/utils/common/form.request.js

@@ -114,21 +114,23 @@ export function getBillGroup (groupItem, groupIndex, isDetail) {
       }
       //CBG 数据处理
       if (billModel.value&&billModel.sourceType === 'CBG'&&billModel.logicType
+          && billModel.value.indexOf(";")>=0
       ){
-        // && billModel.value.indexOf(";")>=0
         console.log(billModel.value,billModel.logicType);
-        /*var logicTypeList = billModel.logicType.split(";");
+        var logicTypeList = billModel.logicType.split(";");
         var cbgVList= billModel.value.split(";");
-        var cbgRealV = "";
-        cbgVList.localDatas.forEach((cbgv,index) => {
-          if (String(cbgv) === '1') {
-            cbgRealV = cbgRealV+"#"+logicTypeList[index];
+        if(cbgVList.length === logicTypeList.length){
+          var cbgRealV = "";
+          cbgVList.forEach((cbgv,index) => {
+            if (String(cbgv) === '1') {
+              cbgRealV = cbgRealV+"#"+logicTypeList[index];
+            }
+          });
+          if(cbgRealV){
+            cbgRealV = cbgRealV.substring(1);
           }
-        })
-        if(cbgRealV){
-          cbgRealV = cbgRealV.substring(1);
+          billModel.value = cbgRealV;
         }
-        billModel.value = cbgRealV;*/
       }
           //添加附件
       let filePaths = fieldItem.filePaths