|
|
@@ -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 */
|