ccjgmwz 3 years ago
parent
commit
961f23f7cf

+ 3 - 3
src/views/tranManagement/tranManagementUnShippingFeedback.vue

@@ -310,10 +310,10 @@
             />
           </el-upload>
           <div class="tupian">
-            <span v-if="deptBudgetList.tranCarInfoList[0].loadPoundImg != null"
+            <span v-if="deptBudgetList.tranCarInfoList[0]&&deptBudgetList.tranCarInfoList[0].loadPoundImg != null"
               >1</span
             >
-            <span v-if="deptBudgetList.tranCarInfoList[0].loadPoundImg == null"
+            <span v-if="deptBudgetList.tranCarInfoList[0]&&deptBudgetList.tranCarInfoList[0].loadPoundImg == null"
               >未上传</span
             >
           </div>
@@ -487,7 +487,7 @@ export default {
                 var reader = new FileReader();
                 //if (!FileReader.prototype.readAsBinaryString) {
                 FileReader.prototype.readAsBinaryString = function (f) {
-                    var binary = "";
+                    var binary = '';
                     var rABS = false; //是否将文件读取为二进制字符串
                     var pt = this;
                     var wb; //读取完成的数据

+ 5 - 5
src/views/tranManagement/tranManagementUnShippingFeedbackLook.vue

@@ -226,7 +226,7 @@
                   alt=""
                 />
                 <span
-                  v-if="
+                  v-if="deptBudgetList.tranCarInfoList[0]&&
                     deptBudgetList.tranCarInfoList[0].loadPoundImgArr
                       .length > 0
                   "
@@ -235,7 +235,7 @@
                   }}</span
                 >
                  <span
-                  v-if="
+                  v-if="deptBudgetList.tranCarInfoList[0]&&
                     deptBudgetList.tranCarInfoList[0].loadPoundImgArr
                       .length == 0
                   "
@@ -456,11 +456,11 @@ export default {
             if (!this.freightspace[i].loadNetWeight) {
               this.freightspace[i].loadNetWeight = 0
             }
-            if (this.deptBudgetList.tranCarInfoList[i].loadPoundImg != null) {
+            if (this.deptBudgetList.tranCarInfoList[i]&&this.deptBudgetList.tranCarInfoList[i].loadPoundImg != null) {
               this.deptBudgetList.tranCarInfoList[i].loadPoundImgArr =
-                this.deptBudgetList.tranCarInfoList[i].loadPoundImg.split(',')
+              this.deptBudgetList.tranCarInfoList[i].loadPoundImg.split(',')
               this.fileList[i] =
-                this.deptBudgetList.tranCarInfoList[i].loadPoundImg.split(',')
+              this.deptBudgetList.tranCarInfoList[i].loadPoundImg.split(',')
             } else {
               this.deptBudgetList.tranCarInfoList[i].loadPoundImgArr = []
             }