Przeglądaj źródła

订单修改添加修改手机号

xgb 3 tygodni temu
rodzic
commit
ffd8aea1ba
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      src/views/hisStore/components/productOrder.vue

+ 2 - 1
src/views/hisStore/components/productOrder.vue

@@ -594,7 +594,7 @@ export default {
       },
       editRules: {
         userPhone: [
-          { required: true, message: '请输入手机号', trigger: 'blur' },
+          { required: false, message: '请输入手机号', trigger: 'blur' },
           { pattern: /^1[3-9]\d{9}$/, message: '请输入正确的手机号格式', trigger: 'blur' }
         ]
       },
@@ -853,6 +853,7 @@ export default {
         this.edit.open=true;
         this.editForm.mark=this.order.mark
         this.editForm.id=this.order.id;
+        this.editForm.userPhone=null;
         if(this.order.orderType!=null){
           this.editForm.orderType=this.order.orderType.toString();
         }