Ver Fonte

no message

linwenxin há 1 ano atrás
pai
commit
719a59d5fd

+ 8 - 7
src/views/valueAddedService/orderSettleManag/pages/offline.vue

@@ -22,8 +22,8 @@
         <div v-if="formType == 1 && formData.flag == 'WAIT'" slot="footer" class="dialog-footer">
           <el-button size="mini" type="primary" @click="shenhexinxi">审核</el-button>
         </div>
-        <div v-if="formType == 0 && formData.payStatus == 'WAIT' && formData.payType == 1" slot="footer"
-          class="dialog-footer">
+        <div v-if="formType == 0 && formData.flag == 'OK' && formData.payStatus == 'WAIT' && formData.payType == 1"
+          slot="footer" class="dialog-footer">
           <el-button size="mini" type="primary" @click="() => { wxPay(formData.id) }">扫码支付</el-button>
         </div>
       </el-dialog>
@@ -365,11 +365,12 @@ export default {
             "machineImg": this.addFormData.machineImg.map(item => item.url).join(","),
           }).then(res => {
             this.$message({ type: 'success', message: `新增成功!` })
-            if (res.data.payStatus == "WAIT" && res.data.payType == 1) {
-              this.wxPay(res.data.id)
-            } else {
-              this.addFormCancel()
-            }
+            this.addFormCancel()
+            // if (res.data.payStatus == "WAIT" && res.data.payType == 1) {
+            //   this.wxPay(res.data.id)
+            // } else {
+            //   this.addFormCancel()
+            // }
           })
         }
       })