Commit a624e39b by 前端

commit

1 parent fd14ffe9
......@@ -36,7 +36,7 @@ export default {
let { value } = this
const phoneRex = /^[1]([3-9])[0-9]{9}$/
let obj = {
customerSex: info.customerSex
// customerSex: info.customerSex
}
if (type == 'tel') {
if (!phoneRex.test(value)) {
......@@ -47,17 +47,17 @@ export default {
obj.customerPhone = info.customerPhone
}
if (vehicleInfo) {
Object.keys(vehicleInfo).map(i => {
if (vehicleInfo[i]) {
detailObj.map(k => {
if (k.key == i && save_key != k.save_key) {
if (!obj[k.save_key]) obj[k.save_key] = k.type == 'date' ? vehicleInfo[i].replace(/-/g, '/') : vehicleInfo[i]
}
})
}
})
// Object.keys(vehicleInfo).map(i => {
// if (vehicleInfo[i]) {
// detailObj.map(k => {
// if (k.key == i && save_key != k.save_key) {
// if (!obj[k.save_key]) obj[k.save_key] = k.type == 'date' ? vehicleInfo[i].replace(/-/g, '/') : vehicleInfo[i]
// }
// })
// }
// })
if(vehicleInfo.vehicleNo) obj.carNumber = vehicleInfo.vehicleNo
}
console.log(obj)
let staffUserId = this.getLocalStorage('dj_scrm_userInfo').workUserId
entmicroApi
.editCustomer({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!