|
@@ -186,12 +186,15 @@ Page({
|
|
|
label: "客户来源",
|
|
label: "客户来源",
|
|
|
error: false,
|
|
error: false,
|
|
|
errMsg: "",
|
|
errMsg: "",
|
|
|
- type: "textarea",
|
|
|
|
|
|
|
+ type: "selector",
|
|
|
|
|
+ range: [],
|
|
|
|
|
+ rangeKey: "value",
|
|
|
|
|
+ rangeIndex: "",
|
|
|
value: "",
|
|
value: "",
|
|
|
- placeholder: "客户来源",
|
|
|
|
|
|
|
+ placeholder: "来源",
|
|
|
valueName: "source",
|
|
valueName: "source",
|
|
|
checking: "base",
|
|
checking: "base",
|
|
|
- required: false
|
|
|
|
|
|
|
+ required: true
|
|
|
}],
|
|
}],
|
|
|
content: {
|
|
content: {
|
|
|
"sa_customersid": 0, //新增是传0
|
|
"sa_customersid": 0, //新增是传0
|
|
@@ -445,6 +448,24 @@ Page({
|
|
|
form: this.data.form
|
|
form: this.data.form
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+ /* 获取来源 */
|
|
|
|
|
+ _Http.basic({
|
|
|
|
|
+ "classname": "sysmanage.develop.optiontype.optiontype",
|
|
|
|
|
+ "method": "optiontypeselect",
|
|
|
|
|
+ "content": {
|
|
|
|
|
+ "typename": "cluesource"
|
|
|
|
|
+ }
|
|
|
|
|
+ }).then(res => {
|
|
|
|
|
+ console.log("获取线索来源", res)
|
|
|
|
|
+ if (res.msg == '成功') {
|
|
|
|
|
+ let form = this.data.form;
|
|
|
|
|
+ let item = form.find(v => v.label == '客户来源');
|
|
|
|
|
+ item.range = res.msg == '成功' ? res.data : [];
|
|
|
|
|
+ this.setData({
|
|
|
|
|
+ form
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
/* 工商查询 */
|
|
/* 工商查询 */
|
|
|
introduce({
|
|
introduce({
|