Browse Source

no message

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

+ 1 - 2
src/packageMaterial/pages/newSale/index.vue

@@ -222,14 +222,13 @@ import zjDialogPicker from "@/components/zj-dialog/zj-dialog-picker.vue";
 
     toChooseProduct(index) {
       if(!this.websit) return this.$toast('请选择所属网点');
-      if(!this.userMobile) return this.$toast('请输入客户电话');
-      if(!(/^1[3456789]\d{9}$/.test(this.userMobile)) || this.userMobile.length != 11) return this.$toast('请填写正确的客户电话');
       this.$navToPage({
         url: `/packageMaterial/pages/newSale/product?dijiIndex=${index}&type=${this.type}&categoryId=${this.type=='P'?this?.category?.categoryId:''}&categoryName=${this.type=='P'?this?.category?.name:''}&userMobile=${this.userMobile}&orderNo=${this.orderNo}&partsWebsitId=${this.websit.partsWebsitId}&websitId=${this.websit.websitId}&websitName=${this.websit.name}&wbId=${this.wbId||''}&wbIsAllFee=${this.wbIsAllFee||''}&wbPayType=${this.wbPayType||''}`
       })
     },
 
     submitData() {
+      if(!this.userMobile) return this.$toast('请输入客户电话');
       if (this.rpMaterialOrderItemList.length < 1) return this.$toast('请选择');
       for (var item of this.rpMaterialOrderItemList) {
         if(!item.repairFlag) return this.$toast('维修标识不能为空');

+ 1 - 1
src/packageMaterial/pages/sale/index.vue

@@ -216,7 +216,7 @@ import zjDialogPicker from "@/components/zj-dialog/zj-dialog-picker.vue";
        if(this.type == 'P' && !this.category) return this.$toast('请选择产品大类');
        if(!this.websit) return this.$toast('请选择所属网点');
        if(!this.userMobile) return this.$toast('请输入客户电话');
-       if(!(/^1[3456789]\d{9}$/.test(this.userMobile)) || this.userMobile.length != 11) return this.$toast('请填写正确的客户电话');
+      //  if(!(/^1[3456789]\d{9}$/.test(this.userMobile)) || this.userMobile.length != 11) return this.$toast('请填写正确的客户电话');
       //  this.$navToPage({
       //    url: `/packageMaterial/pages/sale/product?type=${this.type}&brandId=${this.brand.id}&brandName=${this.brand.brandName}&categoryId=${this.type=='P'?this.category.categoryId:''}&categoryName=${this.type=='P'?this.category.name:''}&salesType=${this.salesType}&userMobile=${this.userMobile}&orderNo=${this.orderNo}&websitId=${this.websit.websitId}&websitName=${this.websit.name}&wbId=${this.wbId||''}&wbIsAllFee=${this.wbIsAllFee||''}&wbPayType=${this.wbPayType||''}`
       //  })