huangfuli 3 lat temu
rodzic
commit
afac03434c
1 zmienionych plików z 85 dodań i 10 usunięć
  1. 85 10
      src/views/statisticalReport/autoSettlementList.vue

+ 85 - 10
src/views/statisticalReport/autoSettlementList.vue

@@ -137,13 +137,42 @@
           class="table_td"
           prop="loadingWeight"
           label="装车净重(吨)"
-        ></el-table-column>
+        ><template slot-scope="scope">
+            <div
+              style="
+                display: inline-block;
+                color: #5878e8;
+                padding: 0 4px !important;
+                position: relative;
+                font-size: 14px;
+              "
+              @click="lookloadingImg(scope.row)"
+            >
+            <span>{{scope.row.loadingWeight}}</span>
+            </div>
+          </template>
+        </el-table-column>
         <el-table-column
           width="100"
           class="table_td"
           prop="unloadingWeight"
           label="卸车净重(吨)"
-        ></el-table-column>
+        ><template slot-scope="scope">
+            <span v-if="scope.row.unloadingWeight == null ">未卸车</span>
+            <div
+              style="
+                display: inline-block;
+                color: #5878e8;
+                padding: 0 4px !important;
+                position: relative;
+                font-size: 14px;
+              "
+              @click="lookunloadingImg(scope.row)"
+            >
+            <span>{{scope.row.unloadingWeight}}</span>
+            </div>
+          </template>
+        </el-table-column>
         <el-table-column
           width="100"
           class="table_td"
@@ -173,6 +202,7 @@
           prop="settlementWeight"
           label="结算重量(吨)"
           ><template slot-scope="scope">
+            <span v-if="scope.row.unloadingWeight == '未卸车'">{{scope.row.loadingWeight}}}</span>
             <span
               v-if="
                 !scope.row.settlementWeightchange && scope.row.settlementWeight
@@ -190,7 +220,7 @@
               @click="changesettlementWeight(scope.row)"
               v-if="
                 (scope.row.settlementWeightchange &&
-                  scope.row.status == '审核') ||
+                  scope.row.status == '审核') ||
                 (scope.row.settlementWeightchange &&
                   scope.row.status == '已驳回')
               "
@@ -200,7 +230,7 @@
               v-if="
                 (!scope.row.settlementWeightchange &&
                   scope.row.settlementWeight &&
-                  scope.row.status == '审核') ||
+                  scope.row.status == '审核') ||
                 (!scope.row.settlementWeightchange &&
                   scope.row.settlementWeight &&
                   scope.row.status == '已驳回')
@@ -236,7 +266,7 @@
               @click="changedeductionAmount(scope.row)"
               v-if="
                 (scope.row.deductionAmountchange &&
-                  scope.row.status == '审核') ||
+                  scope.row.status == '审核') ||
                 (scope.row.deductionAmountchange &&
                   scope.row.status == '已驳回')
               "
@@ -246,7 +276,7 @@
               v-if="
                 (!scope.row.deductionAmountchange &&
                   scope.row.deductionAmount &&
-                  scope.row.status == '审核') ||
+                  scope.row.status == '审核') ||
                 (!scope.row.deductionAmountchange &&
                   scope.row.deductionAmount &&
                   scope.row.status == '已驳回')
@@ -485,6 +515,23 @@
         <el-button @click="dialogFormVisible8 = false">取 消</el-button>
       </div>
     </el-dialog>
+    <!--磅单 -->
+    <WinseaContentModal
+      v-model="accessoryTFs"
+      title="磅单信息"
+      @on-cancel="handleClose"
+    >
+      <p>查看装车磅单</p>
+        <img width="100" height="100" :src="loadingImg1" alt="" />
+    </WinseaContentModal>
+    <WinseaContentModal
+      v-model="accesscard"
+      title="磅单信息"
+      @on-cancel="handleClose1"
+    >
+      <p>查看卸车磅单</p>
+      <img width="100" height="100" :src="unloadingImg1" alt="" />
+    </WinseaContentModal>
   </div>
   <!-- </div> -->
 </template>
@@ -570,6 +617,8 @@ export default {
       searchKeyWord: '',
       customerlist: {},
       contractType: 2,
+      accessoryTFs: false,
+      accesscard: false,
       enter: {
         closePositionList: [],
       },
@@ -591,6 +640,8 @@ export default {
       pcFlag: 1,
       carryoverlist: {},
       modification: [],
+      loadingImg1: [],
+      unloadingImg1: [],
       amendlist: {},
       roleFlag: 1,
       alreadyInvoice1: 0,
@@ -617,7 +668,6 @@ export default {
           return time.getTime() > Date.now()
         },
       },
-      accessoryTFs: false,
     }
   },
   activated() {
@@ -677,6 +727,12 @@ export default {
         }
       }
     },
+    handleClose() {
+      this.accessoryTFs = false
+    },
+    handleClose1() {
+      this.accesscard = false
+    },
     //账户
     look(item) {
       this.dialogFormVisible8 = true
@@ -973,6 +1029,28 @@ export default {
       this.deductionAmount = item.deductionAmount
       item.deductionAmountchange = true
     },
+    //装车磅单
+    lookloadingImg(row) {
+      if (row.loadingImg == null || row.loadingImg == '') {
+        EventBus.$emit(
+          this.$message.warning('暂无磅单信息')
+        )
+      } else {
+        this.accessoryTFs = true
+      }
+      this.loadingImg1 = row.loadingImgArray
+    },
+    //卸车磅单
+    lookunloadingImg(row) {
+      if (row.unloadingImg === null || row.unloadingImg === '') {
+        EventBus.$emit(
+          this.$message.warning('暂无磅单信息')
+        )
+      } else {
+        this.accesscard = true
+      }
+      this.unloadingImg1 = row.unloadingImgArray
+    },
     //审核
     audit(item, index, status, status2, reason) {
       if (index < this.modification.length) {
@@ -1207,9 +1285,6 @@ export default {
       }
       return fmt
     },
-    handleClose() {
-      this.accessoryTFs = false
-    },
     handleSizeChange(val) {
       console.log(`每页 ${val} 条`)
       this.pageSize = val