|
@@ -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: '请选择省市区'})
|