|
@@ -1377,23 +1377,10 @@ export default {
|
|
|
model.goodtype = key_0 === "is_activity_1" ? "1" : key_1;
|
|
|
model.act_code = key_0 === "is_activity_1" ? key_1 : "";
|
|
|
|
|
|
- const keys = Object.keys(model);
|
|
|
- keys.forEach(key => {
|
|
|
- if(typeof model[key] === 'string'){
|
|
|
- model[key] = replaceTextWrapAndSpace(model[key])
|
|
|
- }
|
|
|
+ Object.keys(model).forEach(key => {
|
|
|
+ if(typeof model[key] === 'string'){ model[key] = replaceTextWrapAndSpace(model[key])}
|
|
|
});
|
|
|
|
|
|
- if(model.addrlist && model.addrlist.length > 0){
|
|
|
- model['addrlist'].forEach((_,index) => {
|
|
|
- model.addrlist[index].addr = replaceTextWrapAndSpace(model.addrlist[index].addr);
|
|
|
- model.addrlist[index].contactor = replaceTextWrapAndSpace(model.addrlist[index].contactor);
|
|
|
- model.addrlist[index].mobile = replaceTextWrapAndSpace(model.addrlist[index].mobile);
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- console.log(model);
|
|
|
- return
|
|
|
let res = await asyncRequest.add(model);
|
|
|
this.loading = false;
|
|
|
if (res && res.code === 0) {
|