zhangdan há 3 anos atrás
pai
commit
d097bf8b0d
2 ficheiros alterados com 13 adições e 4 exclusões
  1. 10 1
      pages/sales/addCustomer.vue
  2. 3 3
      pages/sales/addSales.vue

+ 10 - 1
pages/sales/addCustomer.vue

@@ -20,7 +20,6 @@
 				</u-form-item>
 				<u-form-item label="价格类型" required >
 					<v-select ref="priceType" :disabled="true" placeholder="请选择价格类型" @itemChange="chooseType" code="PRICE_TYPE" style="width: 100%"></v-select>
-					<u-icon name="arrow-right" color="#C0C4CC" slot="right"></u-icon>
 				</u-form-item>
 				<u-form-item label="收款方式" required prop="settleStyleSn">
 					<u-input v-model="settleStyleName" input-align="right" :disabled="true" placeholder="请选择收款方式" @click="showSettle=true"/>
@@ -56,6 +55,7 @@
 	import {customerDetail,custType,custSave,employeeAllList} from '@/api/customer.js'
 	import Address from '@/components/address.vue'
 	import vSelect  from  '@/components/select/v-select.vue'
+	import { isvalidPhone } from '@/libs/validate.js'
 	export default{
 		components:{Address,vSelect},
 		data(){
@@ -182,6 +182,15 @@
 							})
 							return false
 						}
+						if(this.form.contactMobile){
+							if (!isvalidPhone(this.form.contactMobile)) {
+								uni.showToast({
+									title: '请输入正确的联系手机',
+									icon: 'none'
+								})
+								return false
+							}
+						}
 						//  省市区
 						if(this.areaIdArr.length == 0){
 							uni.showToast({icon: 'none',title: '请选择省市区'})

+ 3 - 3
pages/sales/addSales.vue

@@ -425,9 +425,9 @@
 		.content-customerName{
 			width: 100%;
 			.customerName{
-				position: fixed;
+				// position: fixed;
 				width: 100%;
-				z-index: 999;
+				// z-index: 999;
 				color: #000000;
 				font-size: 30upx;
 				font-weight: 1000;
@@ -438,7 +438,7 @@
 		.content-box{
 			display: flex;
 			flex-direction: column;
-			margin-top: 100upx;
+			// margin-top: 100upx;
 			padding:0 40upx;
 			background-color: #fff;
 		}