|
|
@@ -14,7 +14,32 @@ Page({
|
|
|
idname: "itemid", //idkey
|
|
|
showName: "itemname", //表单用 显示名称
|
|
|
filtrate: false,
|
|
|
+
|
|
|
filtratelist: [{
|
|
|
+ label: "领域",
|
|
|
+ index: null,
|
|
|
+ showName: "tradefield", //显示字段
|
|
|
+ valueKey: "tradefield", //返回Key
|
|
|
+ selectKey: "tradefield", //传参 代表选着字段 不传参返回整个选择对象
|
|
|
+ value: "", //选中值
|
|
|
+ list: null
|
|
|
+ }, {
|
|
|
+ label: "标准",
|
|
|
+ index: null,
|
|
|
+ showName: "value", //显示字段
|
|
|
+ valueKey: "standards", //返回Key
|
|
|
+ selectKey: "value", //传参 代表选着字段 不传参返回整个选择对象
|
|
|
+ value: "", //选中值
|
|
|
+ list: null
|
|
|
+ }, {
|
|
|
+ label: "材质",
|
|
|
+ index: null,
|
|
|
+ showName: "value", //显示字段
|
|
|
+ valueKey: "material", //返回Key
|
|
|
+ selectKey: "value", //传参 代表选着字段 不传参返回整个选择对象
|
|
|
+ value: "", //选中值
|
|
|
+ list: null
|
|
|
+ }, {
|
|
|
label: "品牌",
|
|
|
index: null,
|
|
|
showName: "brandname", //显示字段
|
|
|
@@ -23,16 +48,10 @@ Page({
|
|
|
value: "", //选中值
|
|
|
interrupt: true,
|
|
|
list: null
|
|
|
- }, {
|
|
|
- label: "领域",
|
|
|
- index: null,
|
|
|
- showName: "tradefield", //显示字段
|
|
|
- valueKey: "tradefield", //返回Key
|
|
|
- selectKey: "tradefield", //传参 代表选着字段 不传参返回整个选择对象
|
|
|
- value: "", //选中值
|
|
|
- list: null
|
|
|
- }]
|
|
|
+ }, ]
|
|
|
},
|
|
|
+
|
|
|
+
|
|
|
onLoad(options) {
|
|
|
if (options.params) {
|
|
|
let params = JSON.parse(options.params);
|
|
|
@@ -163,7 +182,7 @@ Page({
|
|
|
},
|
|
|
async openFiltrate() {
|
|
|
if (this.data.filtratelist[0].list == null) {
|
|
|
- let res = await Promise.all([this.getBrand(), this.gettradefields()]);
|
|
|
+ let res = await Promise.all([this.gettradefields(), this.getitemstandards(), this.getitemmaterial(), this.getBrand()]);
|
|
|
console.log(res)
|
|
|
res.forEach((v, i) => this.data.filtratelist[i].list = v.data);
|
|
|
this.setData({
|
|
|
@@ -181,6 +200,8 @@ Page({
|
|
|
this.data.params.content.where.itemclassid = e.detail.itemclassid || "";
|
|
|
this.data.params.content.where.sa_brandid = e.detail.sa_brandid || "";
|
|
|
this.data.params.content.where.tradefield = e.detail.tradefield || "";
|
|
|
+ this.data.params.content.where.standards = e.detail.standards || "";
|
|
|
+ this.data.params.content.where.material = e.detail.material || "";
|
|
|
this.getList(true)
|
|
|
},
|
|
|
/* 获取品牌列表 */
|
|
|
@@ -208,6 +229,32 @@ Page({
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ /* 标准 */
|
|
|
+ getitemstandards() {
|
|
|
+ return _Http.basic({
|
|
|
+ "classname": "sysmanage.develop.optiontype.optiontype",
|
|
|
+ "method": "optiontypeselect",
|
|
|
+ "content": {
|
|
|
+ "pageNumber": 1,
|
|
|
+ "pageSize": 1000,
|
|
|
+ "typename": "itemstandards",
|
|
|
+ "parameter": {}
|
|
|
+ },
|
|
|
+ })
|
|
|
+ },
|
|
|
+ /* 材质 */
|
|
|
+ getitemmaterial() {
|
|
|
+ return _Http.basic({
|
|
|
+ "classname": "sysmanage.develop.optiontype.optiontype",
|
|
|
+ "method": "optiontypeselect",
|
|
|
+ "content": {
|
|
|
+ "pageNumber": 1,
|
|
|
+ "pageSize": 1000,
|
|
|
+ "typename": "itemmaterial",
|
|
|
+ "parameter": {}
|
|
|
+ },
|
|
|
+ })
|
|
|
+ },
|
|
|
/* 打断 */
|
|
|
interrupt(e) {
|
|
|
let {
|