|
|
@@ -128,31 +128,31 @@ Page({
|
|
|
if (options.data) {
|
|
|
let data = JSON.parse(options.data);
|
|
|
console.log(data)
|
|
|
- if (data.sa_projectid) this.data.form.splice(2, 0, {
|
|
|
- label: "项目",
|
|
|
- error: false,
|
|
|
- errMsg: "",
|
|
|
- type: "route",
|
|
|
- url: "/packageA/select/project/select",
|
|
|
- value: data.project,
|
|
|
- params: {
|
|
|
- "id": 20221201090802,
|
|
|
- "content": {
|
|
|
- nocache: true,
|
|
|
- sys_enterpriseid: data.sys_enterpriseid[1][0],
|
|
|
- type: 1, //1直销 2经销 3居间
|
|
|
- where: {
|
|
|
- condition: "",
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- query: "&radio=true",
|
|
|
- placeholder: "选择项目",
|
|
|
- interrupt: true,
|
|
|
- valueName: "sa_projectid",
|
|
|
- checking: "base",
|
|
|
- required: true
|
|
|
- })
|
|
|
+ /* if (data.sa_projectid) this.data.form.splice(2, 0, {
|
|
|
+ label: "项目",
|
|
|
+ error: false,
|
|
|
+ errMsg: "",
|
|
|
+ type: "route",
|
|
|
+ url: "/packageA/select/project/select",
|
|
|
+ value: data.project,
|
|
|
+ params: {
|
|
|
+ "id": 20221201090802,
|
|
|
+ "content": {
|
|
|
+ nocache: true,
|
|
|
+ sys_enterpriseid: data.sys_enterpriseid[1][0],
|
|
|
+ type: 1, //1直销 2经销 3居间
|
|
|
+ where: {
|
|
|
+ condition: "",
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ query: "&radio=true",
|
|
|
+ placeholder: "选择项目",
|
|
|
+ interrupt: true,
|
|
|
+ valueName: "sa_projectid",
|
|
|
+ checking: "base",
|
|
|
+ required: true
|
|
|
+ }) */
|
|
|
this.setData({
|
|
|
disabled: false,
|
|
|
form: this.data.form.map(v => {
|
|
|
@@ -163,7 +163,25 @@ Page({
|
|
|
"content.sa_contractid": data.sa_contractid
|
|
|
})
|
|
|
}
|
|
|
+ //项目进入 修改客户选择范围
|
|
|
+ if (options.sa_projectid) this.setData({
|
|
|
+ 'form[1].params': {
|
|
|
+ "id": 20220920083901,
|
|
|
+ "content": {
|
|
|
+ nocache: true,
|
|
|
+ "pageNumber": 1,
|
|
|
+ "pageSize": 20,
|
|
|
+ "where": {
|
|
|
+ "condition": "",
|
|
|
+ "type": "13",
|
|
|
+ "sa_projectid": options.sa_projectid
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
+
|
|
|
+
|
|
|
/* 打断处理form */
|
|
|
interrupt(e) {
|
|
|
let {
|