浏览代码

feat:线下订单

Moss 1 年之前
父节点
当前提交
c36ea1e089
共有 1 个文件被更改,包括 15 次插入13 次删除
  1. 15 13
      src/views/mallManagement/order/offline_order_list/index.vue

+ 15 - 13
src/views/mallManagement/order/offline_order_list/index.vue

@@ -617,19 +617,21 @@ export default {
       this.$refs.formRef.validate((valid, invalidFields, errLabels) => {
         if (valid) {
           offlineOrderSave({...this.formData, orderDetails: this.goodsList}).then(res => {
-            offlineOrderExamine({
-              orderId: res.data,
-              examineStatus: 'OK',
-              examineRemark: '',
-            }).then(examineRes => {
-              if(this.formData.payType == 'WECHAT' && examineRes.data.codeUrl) {
-                this.creatCode(examineRes.data.codeUrl);
-              }else {
-                this.$message({ type: 'success', message: `${this.formDialogTitles[this.formDialogType]}成功!` })
-                cancel('list')
-                this.$refs.pageRef.refreshList()
-              }
-            })
+            if(this.formData.payType == 'WECHAT') {
+              offlineOrderExamine({
+                orderId: res.data,
+                examineStatus: 'OK',
+                examineRemark: '',
+              }).then(examineRes => {
+                if(examineRes.data.codeUrl) {
+                  this.creatCode(examineRes.data.codeUrl);
+                }else {
+                  this.$message({ type: 'success', message: `${this.formDialogTitles[this.formDialogType]}成功!` })
+                  cancel('list')
+                  this.$refs.pageRef.refreshList()
+                }
+              })
+            }
           })
         }
       })