lilei 3 vuotta sitten
vanhempi
commit
274b59f827
1 muutettua tiedostoa jossa 6 lisäystä ja 3 poistoa
  1. 6 3
      src/views/salesManagement/pushOrderManagement/list.vue

+ 6 - 3
src/views/salesManagement/pushOrderManagement/list.vue

@@ -135,7 +135,7 @@
       </s-table>
 
       <!-- 操作提示 -->
-      <commonModal modalTit="操作提示" :openModal="showTipModal" @cancel="showTipModal=false" @ok="updatePrintStatus">
+      <commonModal modalTit="操作提示" :openModal="showTipModal" @cancel="canselModal" @ok="updatePrintStatus">
         <div style="text-align: center;">
           <div style="margin-bottom: 15px;font-size: 14px;"><strong>确认允许此单进行备货打印吗?</strong></div>
           <div style="line-height: 24px;">
@@ -271,11 +271,14 @@ export default {
       this.tipData = row
       this.showTipModal = true
     },
+    canselModal () {
+      this.tipData = null
+      this.showTipModal = false
+    },
     updatePrintStatus () {
       dispatchPrintStatus({ dispatchBillSn: this.tipData.dispatchBillSn, printStatus: 'NO_PRINT' }).then(res => {
         if (res.status == 200) {
-          this.tipData = null
-          this.showTipModal = false
+          this.canselModal()
           this.$message.info(res.message)
           this.$refs.table.refresh()
         }