chenrui 1 年間 前
コミット
6985b658b6

+ 6 - 1
src/views/salesReturnManagement/custConfirm/list.vue

@@ -193,7 +193,7 @@
       :chooseData="chooseData"
       :openModal="showSetPriceModal"
       @setOk="setPriceOk"
-      @cancel="showSetPriceModal=false"></setPriceModal>
+      @cancel="cancelPriceModal"></setPriceModal>
     <!-- 添加产品 -->
     <chooseProductsModal
       ref="chooseProduct"
@@ -366,6 +366,11 @@ export default {
     handleBack () {
       this.$router.push({ name: 'salesReturnList', query: { closeLastOldTab: true } })
     },
+    // 关闭批量设置退货单价弹窗
+    cancelPriceModal(){
+      this.$refs.setPriceModal.closeGrabOrder();
+      this.showSetPriceModal=false
+    },
     // 添加产品
     addProduct (data) {
       const a = this.$store.state.app.goodReturnReason.find(item => item.code == data.returnReasonCode)

+ 1 - 2
src/views/salesReturnManagement/custConfirm/setPriceModal.vue

@@ -218,7 +218,6 @@ export default {
             const flag = newList.some(item => Object.keys(item).length > 2)
             if (flag) {
               _this.listInfo = newList.filter(con => Object.keys(con).length > 2)
-              _this.openGrabOrderModal = !!_this.isShow
               const noShowList = newList.filter(con => Object.keys(con).length <= 2)
               _this.noShowBillSnList = _this.getNewSalesBillList(noShowList)
               _this.salesBillSnList = _this.noShowBillSnList ? _this.noShowBillSnList : []
@@ -314,6 +313,7 @@ export default {
     },
     // 取消
     handleCommonCancel () {
+      this.salesBillFlag = false
       this.$emit('cancel')
     },
     // 查询
@@ -346,7 +346,6 @@ export default {
     //  重定义的弹框状态
     isShow (newValue, oldValue) {
       if (!newValue) {
-        this.salesBillFlag = false
         this.salesBillSnList = null
         this.handleCommonCancel()
       } else {