Browse Source

no message

linwenxin 7 tháng trước cách đây
mục cha
commit
334cd51feb

+ 2 - 3
src/views/auxiliaryFittings/shop/components/PurchaseAdjustmentArea.vue

@@ -261,7 +261,7 @@ export default {
         websitName: '', // 网点名称
         ref: '', // 采购单号
         purchaseTime: '', // 采购日期
-        flag: 0, // 状态
+        flag: '', // 状态
         notes: '', // 备注
         items: []
       },
@@ -334,8 +334,7 @@ export default {
               notes: this.dataForm.notes
             }
             purchaseAdjustmentSheetAdd(params).then(res => {
-              this.setDataForm(res.data)
-              this.inputParam.openType = 'edit'
+              this.cancelForm()
             })
           }
         }

+ 2 - 2
src/views/auxiliaryFittings/shop/components/PurchaseApplyArea.vue

@@ -338,6 +338,7 @@ export default {
           if (type === 'edit') {
             editPurchaseApplySheet(this.dataForm).then(() => {
               this.$successMsg('保存成功')
+              this.cancelForm()
             })
           } else {
             this.dataForm.websitName = this.authShop.find(item => item.websitId === this.dataForm.websitId)?.name
@@ -345,9 +346,8 @@ export default {
               item => item.venderId === this.dataForm.venderId
             )?.venderName
             addPurchaseApplySheet(this.dataForm).then(res => {
-              this.inputParam.openType = 'edit'
-              this.setDataForm(res.data)
               this.$successMsg('保存成功')
+              this.cancelForm()
             })
           }
         }

+ 3 - 2
src/views/auxiliaryFittings/vender/components/ShopPurchaseArea.vue

@@ -247,13 +247,13 @@ export default {
       }
     },
     cancelForm() {
-      this.$parent.$refs.pageRef.refreshList()
-      this.$emit('update:isOpen', false)
+      this.$parent.backUpdPage()
     },
     submitForm(type) {
       this.$refs.dataForm.validate(valid => {
         if (valid) {
           editPurchaseApplySheet(this.dataForm).then(() => {
+            this.cancelForm()
             this.$successMsg('保存成功')
           })
         }
@@ -290,6 +290,7 @@ export default {
               setTimeout(() => {
                 this.inputParam.openType = 'view'
                 this.getDetail(purchaseId)
+                this.cancelForm()
                 this.$successMsg('核实成功')
                 this.loading = false
               }, 2000)

+ 1 - 2
src/views/auxiliaryFittings/vender/components/VenderGoodsArea.vue

@@ -211,8 +211,7 @@ export default {
       }
     },
     cancelForm() {
-      this.$emit('getList')
-      this.$emit('update:isOpen', false)
+      this.$parent.backUpdPage()
     },
     // 获取辅材列表
     getMaterialList() {