shish 2 лет назад
Родитель
Сommit
bcdc246558
1 измененных файлов с 8 добавлено и 5 удалено
  1. 8 5
      ghs/src/views/order/add.vue

+ 8 - 5
ghs/src/views/order/add.vue

@@ -479,7 +479,6 @@ export default {
           return false
         }
       }
-
       let name = '确认提交'
       if(this.form.hasPay == 1){
         name = '确认线下付款?'
@@ -489,7 +488,6 @@ export default {
         name = '确认提交'
       }
       this.$confirm(name, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(() => {
-
         that.$service.order.orderCreate(params).then(data => {
           if(data.respondType && data.respondType == 'priceError'){
             that.diffList = data.diff ? data.diff : []
@@ -498,19 +496,24 @@ export default {
             that.$nextTick(()=>{
               that.selectList = [];
               that.diffList = []
-              that.formReset()
               that.removeFromSaveDirect()
               that.showCommitPop = false;
-              that.escFun();
+              that.$notify({ title: '成功', message: '开单成功', type: 'success'})
+              that.escFun()
+              setTimeout(function(){
+                that.formReset()
+              },900)
             })
           }
         })
-
       })
     },
     formReset(){
       this.form.customId = 0
       this.form.customName = ''
+      this.$nextTick(() => {
+        this.$refs.customref.focus()
+      })
     },
     clearSeachVal(){
       this.searchVal = ''