zxz 3 years ago
parent
commit
fe033ce16d

+ 2 - 2
src/views/purchasingManagement/procurementPlanAdd.vue

@@ -734,7 +734,7 @@ export default {
         })
         return
       }
-      if (this.dataList.buyerPhone.length!=11) {
+      if (this.dataList.buyerPhone.length > 15 || this.dataList.buyerPhone.length < 6) {
         this.$message({
           message: '买方电话输入错误!',
           type: 'warning'
@@ -867,7 +867,7 @@ export default {
               // this.dataList.goodsType = 1
               this.dataList.pcFlag = 1
               this.dataList.compId = sessionStorage.getItem('ws-pf_compId')
-              console.log(this.dataList,"查看添加对象")
+              console.log(this.dataList,'查看添加对象')
               procurementAdd(this.dataList)
                 .toPromise()
                 .then(response => {

+ 1 - 1
src/views/salesManagement/salesPlanAdd.vue

@@ -833,7 +833,7 @@ export default {
         })
         return
       }
-      if (this.dataList.sellerPhone.length != 11) {
+      if (this.dataList.sellerPhone.length > 15 || this.dataList.sellerPhone.length < 6) {
         this.$message({
           message: '卖方电话输入错误!',
           type: 'warning',