Explorar o código

Merge branch '蓝色' into 测试

xiaohaizhao hai 1 ano
pai
achega
039a596506
Modificáronse 2 ficheiros con 42 adicións e 0 borrados
  1. 21 0
      packageA/offers/addProjectOffer.js
  2. 21 0
      packageA/offers/addSetclientOffer.js

+ 21 - 0
packageA/offers/addProjectOffer.js

@@ -266,6 +266,27 @@ Page({
 				form,
 				accessory: false
 			})
+		} else {
+			_Http.basic({
+				"classname": "sysmanage.develop.optiontype.optiontype",
+				"method": "optiontypeselect",
+				"content": {
+					"pageNumber": 1,
+					"pageSize": 1,
+					"typename": "itemtype",
+					"parameter": {
+						"siteid": wx.getStorageSync('siteP').siteid
+					}
+				},
+			}).then(res => {
+				console.log(res)
+				if (res.code == 1 && res.data.length) {
+					this.data.form[this.data.form.findIndex(v => v.label == '产品系列')].value = [res.data[0].value]
+					this.setData({
+						form: this.data.form
+					})
+				}
+			})
 		}
 	},
 	/* 打断处理form */

+ 21 - 0
packageA/offers/addSetclientOffer.js

@@ -182,6 +182,27 @@ Page({
 				accessory: false
 			});
 			this.selectComponent("#Form").confirm();
+		} else {
+			_Http.basic({
+				"classname": "sysmanage.develop.optiontype.optiontype",
+				"method": "optiontypeselect",
+				"content": {
+					"pageNumber": 1,
+					"pageSize": 1,
+					"typename": "itemtype",
+					"parameter": {
+						"siteid": wx.getStorageSync('siteP').siteid
+					}
+				},
+			}).then(res => {
+				console.log(res)
+				if (res.code == 1 && res.data.length) {
+					this.data.form[this.data.form.findIndex(v => v.label == '产品系列')].value = [res.data[0].value]
+					this.setData({
+						form: this.data.form
+					})
+				}
+			})
 		}
 	},
 	/* 打断处理form */