|
|
@@ -43,7 +43,32 @@ Page({
|
|
|
placeholder: "省市县",
|
|
|
valueName: "province",
|
|
|
checking: "base",
|
|
|
- required: true
|
|
|
+ required: false
|
|
|
+ }, {
|
|
|
+ label: "市场活动",
|
|
|
+ error: false,
|
|
|
+ errMsg: "",
|
|
|
+ type: "route",
|
|
|
+ url: "/packageA/select/selectActivity/index",
|
|
|
+ model: "#Form",
|
|
|
+ value: "",
|
|
|
+ radio: true,
|
|
|
+ params: {
|
|
|
+ "id":20221101095102,
|
|
|
+ "content": {
|
|
|
+ 'isAll':0,
|
|
|
+ "pageNumber":1,
|
|
|
+ "pageSize":999999999,
|
|
|
+ "where": {
|
|
|
+ 'condition':''
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ placeholder: "选择市场活动",
|
|
|
+ valueName: "campaign_name",
|
|
|
+ idName:'sat_campaignid',
|
|
|
+ checking: "base",
|
|
|
+ required: false
|
|
|
}, {
|
|
|
label: "详细地址",
|
|
|
error: false,
|
|
|
@@ -105,14 +130,19 @@ Page({
|
|
|
disabled: false,
|
|
|
form: this.data.form.map(v => {
|
|
|
if (v.valueName != 'region') {
|
|
|
- v.value = data[v.valueName];
|
|
|
+ if (v.valueName == 'campaign_name') {
|
|
|
+ v.value = [data[v.valueName]]
|
|
|
+ } else {
|
|
|
+ v.value = data[v.valueName];
|
|
|
+ }
|
|
|
} else {
|
|
|
v.value = data.province ? [data.province, data.city, data.county] : []
|
|
|
}
|
|
|
return v
|
|
|
}),
|
|
|
'form[0].value':data.enterprisename_customer,
|
|
|
- 'content.sat_orderclueid':data.sat_orderclueid
|
|
|
+ 'content.sat_orderclueid':data.sat_orderclueid,
|
|
|
+ 'content.sat_campaignid': data.sat_campaignid
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
@@ -121,11 +151,16 @@ Page({
|
|
|
...this.data.content,
|
|
|
...this.selectComponent("#Form").submit()
|
|
|
};
|
|
|
- console.log(content);
|
|
|
+ if (content.campaign_name && !(content.campaign_name[0] instanceof Array)) {
|
|
|
+ content.sat_campaignid = content.campaign_name[1][0]
|
|
|
+ }
|
|
|
content.sat_orderclueid = this.data.content.sat_orderclueid
|
|
|
- content.city = content.province[1]
|
|
|
- content.county = content.province[2]
|
|
|
- content.province = content.province[0]
|
|
|
+ if (content.province.length > 0) {
|
|
|
+ content.city = content.province[1]
|
|
|
+ content.county = content.province[2]
|
|
|
+ content.province = content.province[0]
|
|
|
+ }
|
|
|
+
|
|
|
_Http.basic({
|
|
|
"id":"20221205162402",
|
|
|
content
|