Commit a624e39b by 前端

commit

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