lilei 2 年之前
父節點
當前提交
cd7a95d6f1
共有 2 個文件被更改,包括 27 次插入13 次删除
  1. 1 1
      public/version.json
  2. 26 12
      src/views/purchasingManagement/purchaseReturnApplyForm/creatPurchaseReutn.vue

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1660188826024
+  "version": 1660202899740
 }

+ 26 - 12
src/views/purchasingManagement/purchaseReturnApplyForm/creatPurchaseReutn.vue

@@ -43,6 +43,12 @@
         </div>
         <!-- 按钮 -->
         <div class="btn-con">
+          <a-button
+            id="creatPurchaseReutn-cancel"
+            size="large"
+            class="button-cancel"
+            @click="isShow=false"
+            style="padding: 0 36px;">取消</a-button>
           <a-button
             type="primary"
             id="creatPurchaseReutn-save"
@@ -50,13 +56,7 @@
             :loading="spinning"
             class="button-primary"
             @click="handleSave"
-            style="padding: 0 36px;">确定</a-button>
-          <a-button
-            id="creatPurchaseReutn-cancel"
-            size="large"
-            class="button-cancel"
-            @click="isShow=false"
-            style="padding: 0 36px;margin-left: 15px;">取消</a-button>
+            style="padding: 0 36px;margin-left: 15px;">确定</a-button>
         </div>
       </div>
     </a-spin>
@@ -120,12 +120,26 @@ export default {
       }
       this.spinning = true
       createPurchaseReturnBill(params).then(res => {
-        if (res.status == 200 && res.data) {
-          this.$emit('creatOk')
-          this.$emit('close')
-          this.$message.success(res.message)
-          this.spinning = false
+        if (res.status == 200) {
+          if (res.data && res.data.length) {
+            this.$info({
+              title: '提示',
+              centered: true,
+              content: (h) => {
+                const content = []
+                res.data.map(item => {
+                  content.push(h('div', item))
+                })
+                return h('div', content)
+              }
+            })
+          } else {
+            this.$emit('creatOk')
+            this.$message.success(res.message)
+          }
         }
+        this.$emit('close')
+        this.spinning = false
       })
     }
   },