ソースを参照

fix:重新打款

Tang 2 年 前
コミット
c413c14e29
2 ファイル変更28 行追加3 行削除
  1. 8 2
      src/fxApi/temp.js
  2. 20 1
      src/views/finance/withdrawal/index.vue

+ 8 - 2
src/fxApi/temp.js

@@ -165,6 +165,12 @@ export default {
             data
         })
     },
-    
-    
+    //again打款
+    distributionwithdrawalrePayCash(data) {
+        return request({
+            url: '/distribution/withdrawal/rePayCash',
+            method: 'post',
+            data
+        })
+    },
 }

+ 20 - 1
src/views/finance/withdrawal/index.vue

@@ -25,6 +25,11 @@
           type="text"
           @click="payCash(props.scope.row.cwSn)"
           >打款</el-button
+        ><el-button
+          v-if="props.scope.row.cwStatus === 6 && props.scope.row.cashier === 1"
+          type="text"
+          @click="againPayCash(props.scope.row.cwSn)"
+          >重新打款</el-button
         >
       </template>
     </table-list>
@@ -233,7 +238,21 @@ export default {
         })
         .catch(() => {});
     },
-
+    againPayCash(id) {
+      this.$alert("确定进行重新打款操作吗?", "提示", {
+        dangerouslyUseHTMLString: true,
+      })
+        .then(() => {
+          this.$api
+            .distributionwithdrawalrePayCash({ cwSn: id })
+            .then((res) => {
+              this.$message.success("打款成功");
+              this.search();
+            })
+            .finally(() => {});
+        })
+        .catch(() => {});
+    },
     handleSizeChange(v) {
       this.formData.pageSize = v;
       this.formData.pageNum = 1;