Commit d748e93d by 前端

Merge branch 'master' into 'v2.3.0'

Master合并到v2.3.0

See merge request !49
2 parents ce6e2587 01f636ec
......@@ -285,6 +285,17 @@ export default {
// }, 100)
// return
// }
const reg = /^((0\d{2,3}-\d{7,8})|(1[34578]\d{9}))$/
if (this.accountAddForm.residentPhone) {
const result = reg.test(this.accountAddForm.residentPhone)
if (!result) {
this.$message({
message: '请输入正确的驻店信息',
type: 'warning'
})
return false
}
}
let params = Object.assign({}, this.accountAddForm, this.accountInfoForm)
if (params.bussinessTime) {
params.bussinessBegintime = params.bussinessTime[0]
......@@ -293,8 +304,8 @@ export default {
if (params.businessType) {
params.businessType = params.businessType.join(',')
}
const merchantBrandList = this.$refs.baseInfoForm.$refs.brandListTree.getMerchantBrandList()
params.merchantBrandListJson = JSON.stringify(merchantBrandList)
// const merchantBrandList = this.$refs.baseInfoForm.$refs.brandListTree.getMerchantBrandList()
// params.merchantBrandListJson = JSON.stringify(merchantBrandList)
params.isloginName ? (params.isloginName = 1) : (params.isloginName = 0)
params.merchantAccountLevel = this.accountDetail.merchantAccountLevel
params.status = 1
......
......@@ -173,7 +173,7 @@ export default {
})
this.loading = false
this.tabName = this.tabMenu[0].accounttypeId
this.productTab = this.tabMenu[0].productsArr[0].productId
this.productTab = this.tabMenu[0].productsArr[0] ? this.tabMenu[0].productsArr[0].productId : ''
// const arr = res.map(i => i.accounttypeId)
// this.tabMenu.map(i => arr.includes(i.accounttypeId))
// console.log(this.tabMenu, arr)
......
......@@ -350,7 +350,7 @@ export default {
},
//将后台返回数据中数值为空的字段全部替换为“-”
formateNullFieldData(initialData) {
const isEmpty = function(val) {
const isEmpty = function (val) {
if (!String(val) || String(val) === 'null') {
return '-'
}
......@@ -358,7 +358,7 @@ export default {
}
var that = this
if (initialData instanceof Array) {
initialData.forEach(function(val, key, array) {
initialData.forEach(function (val, key, array) {
array[key] = that.formateNullFieldData(val)
})
} else if (initialData instanceof Object) {
......
......@@ -301,6 +301,17 @@ export default {
// }, 100)
// return
// }
const reg = /^((0\d{2,3}-\d{7,8})|(1[34578]\d{9}))$/
if (this.accountAddForm.residentPhone) {
const result = reg.test(this.accountAddForm.residentPhone)
if (!result) {
this.$message({
message: '请输入正确的驻店信息',
type: 'warning'
})
return false
}
}
let params = Object.assign({}, this.accountAddForm, this.accountInfoForm)
if (params.bussinessTime) {
params.bussinessBegintime = params.bussinessTime[0]
......
<!--
* @Author: your name
* @Date: 2022-03-07 14:32:50
* @LastEditTime: 2022-04-19 18:08:55
* @LastEditTime: 2022-05-06 14:32:10
* @LastEditors: huyue
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: \scrm-micro-settings\src\views\baseInfo\editInfo.vue
......@@ -87,6 +87,7 @@ export default {
bussinessTime: [],
provinceName: '',
provinceCode: '',
residentPhone: '',
cityName: '',
cityCode: ''
},
......@@ -226,15 +227,17 @@ export default {
},
handleSave() {
const params = this.infoForm
// if (this.infoForm.residentPhone && !util.validatePhoneTwo(this.infoForm.residentPhone)) {
// this.$message.error('请输入正确的驻店电话')
// document.querySelector('#app').scrollTop = 0
// setTimeout(() => {
// var isError = document.getElementsByClassName('phone-input')
// isError[0].querySelector('input').focus()
// }, 100)
// return
// }
const reg = /^((0\d{2,3}-\d{7,8})|(1[34578]\d{9}))$/
if (params.residentPhone) {
const result = reg.test(params.residentPhone)
if (!result) {
this.$message({
message: '请输入正确的驻店信息',
type: 'warning'
})
return false
}
}
params.merchantBrandMain = ''
// 获取省市信息
const { provinceName, provinceCode, cityName, cityCode } = this.$refs.provinceForm.provinceForm
......
......@@ -36,11 +36,11 @@
</div>
<div class="sale-type-desc">跟进员工类型最多新增30个,已新增{{ empType.length - empTypeF.length }}个</div>
</el-form-item>
<el-form-item label="负责的业务类型" v-if="typeIndex != 2 && typeIndex != 4">
<!-- <el-form-item label="负责的业务类型" v-if="typeIndex != 2 && typeIndex != 4">
<el-checkbox-group v-model="selectBusiness" @change="selectType">
<el-checkbox :disabled="(typeIndex == 0 && item.id != 1) || (typeIndex == 1 && item.id == 1)" v-for="item in businessType" :key="item" :label="item.id">{{ item.businessName }}</el-checkbox>
</el-checkbox-group>
</el-form-item>
</el-form-item> -->
<el-form-item style="text-align: center">
<el-button @click="onCancel" size="small">取消</el-button>
<el-button type="primary" @click="onSubmit" size="small">确定</el-button>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!