瀏覽代碼

前端更新 sdy

zhongtianhaoyuan 3 年之前
父節點
當前提交
72377b5b80
共有 2 個文件被更改,包括 26 次插入11 次删除
  1. 25 10
      src/views/houseSelfCollect/paymentManagement.vue
  2. 1 1
      src/views/houseSelfCollect/weightCheck.vue

+ 25 - 10
src/views/houseSelfCollect/paymentManagement.vue

@@ -8,7 +8,7 @@
         <ws-button type="primary"  @click="screen()">全部</ws-button>
         <ws-button type="primary" @click="reject" v-if="isShowAdopt">驳回</ws-button>
         <ws-button type="primary" @click="adopt" v-if="isShowAdopt">通过</ws-button>
-        <ws-button type="primary" @click="handlepass" v-if="isShowAdopt">审核</ws-button>
+        <!-- <ws-button type="primary" @click="handlepass" v-if="isShowAdopt">审核</ws-button> -->
         <ws-button type="primary" @click="payment" v-hasPermission="`acquisitionManagement.acquisitionPay.pay`">付款</ws-button>
       </template>
       <template slot="right">
@@ -154,16 +154,14 @@
         </ws-form>
       </div>
     </el-dialog>
+    <!-- 付款截图 -->
      <el-dialog width="50%" :visible.sync="showPayImgs" :append-to-body="true" title="付款截图">
-       <div style="display: flex;">
-       <div v-for="(item,index) in payImg" :key="index" style="width:50%;display: flex;">
-         <img :src="item" alt="" style="height:300px">
-
+       <div v-for="(item,index) in payImg" :key="index" class="pay_img">
+         <img :src="item" alt="" class="img">
        </div>
+       <div style="text-align:center;margin:10px auto;">
+       <el-button @click="showPayImgs = false" type="primary">关闭</el-button>
        </div>
-
-
-
      </el-dialog>
     <div style="text-align: center">
       <el-pagination
@@ -261,8 +259,16 @@ export default {
     },
     //查看付款截图
     showPayImg(row){
-     this.showPayImgs = true
-     this.payImg = row.paymentScreenshot.split("$")
+      if(!row.paymentScreenshot){
+         this.$message({
+          message: '暂无付款截图!',
+          type: 'warning'
+        })
+        return
+      }else{
+        this.showPayImgs = true
+        this.payImg = row.paymentScreenshot.split("$")
+      }
     },
     getWarehouse() {
       selectWarehouseSelf({
@@ -705,4 +711,13 @@ table {
   border-radius: 5px;
   display: block;
 }
+.pay_img{
+width:50%;
+// display: flex;
+display: inline-block;
+.img{
+  height: 350px;
+  width: 100%;
+}
+}
 </style>

+ 1 - 1
src/views/houseSelfCollect/weightCheck.vue

@@ -290,7 +290,7 @@
           if ((_list[i].status == '已称皮重' || _list[i].status == '已称毛重')) {
             this.pList.push(_list[i])
           }
-        }debugger
+        }
         if (this.information == "毛重") {
           this.index = 0
           this.carList = this.mList