|
|
@@ -16,15 +16,6 @@ Page({
|
|
|
},
|
|
|
sort: []
|
|
|
},
|
|
|
- filter: [{
|
|
|
- label: "标准",
|
|
|
- index: null,
|
|
|
- showName: "value", //显示字段
|
|
|
- valueKey: "name", //返回Key
|
|
|
- selectKey: "value", //传参 代表选着字段 不传参返回整个选择对象
|
|
|
- value: "", //选中值
|
|
|
- list: []
|
|
|
- }],
|
|
|
sys_enterpriseid: "",
|
|
|
|
|
|
},
|
|
|
@@ -49,7 +40,6 @@ Page({
|
|
|
sys_enterpriseid,
|
|
|
enterprisename
|
|
|
}) {
|
|
|
- console.log(sys_enterpriseid)
|
|
|
this.setData({
|
|
|
buttonText: enterprisename,
|
|
|
tradefieid: "",
|
|
|
@@ -69,31 +59,32 @@ Page({
|
|
|
this.getBrand();
|
|
|
}, 0)
|
|
|
},
|
|
|
- /* 获取系统分类 */
|
|
|
+ /* 获取授权标准 */
|
|
|
getOptionTypeSelect() {
|
|
|
_Http.basic({
|
|
|
- "classname": "sysmanage.develop.optiontype.optiontype",
|
|
|
- "method": "optiontypeselect",
|
|
|
+ "id": "20230519141202",
|
|
|
"content": {
|
|
|
- "pageNumber": 1,
|
|
|
- "pageSize": 999,
|
|
|
- "typename": "itemstandards",
|
|
|
- "parameter": {
|
|
|
- "siteid": wx.getStorageSync('userMsg').siteid
|
|
|
- }
|
|
|
- }
|
|
|
+ sys_enterpriseid: this.data.sys_enterpriseid
|
|
|
+ },
|
|
|
}, false).then(res => {
|
|
|
- console.log("系统标准列表", res)
|
|
|
- if (res.msg == '成功') this.setData({
|
|
|
- "filter[0].list": res.data
|
|
|
- })
|
|
|
+ console.log("授权标准", res)
|
|
|
+ if (res.msg == '成功') {
|
|
|
+ res.data.unshift("全部")
|
|
|
+ this.setData({
|
|
|
+ standardList: res.data.map(v => {
|
|
|
+ return {
|
|
|
+ standard: v
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
- /* 处理筛选 */
|
|
|
- handleFilter({
|
|
|
- detail
|
|
|
- }) {
|
|
|
- console.log(detail)
|
|
|
+ standardChange(e) {
|
|
|
+ this.setData({
|
|
|
+ standard: e.detail.item.standard == '全部' ? "" : e.detail.item.standard
|
|
|
+ })
|
|
|
+ this.getList(true);
|
|
|
},
|
|
|
/* 获取领域 */
|
|
|
getTradefie() {
|
|
|
@@ -106,8 +97,6 @@ Page({
|
|
|
}
|
|
|
};
|
|
|
if (this.data.sys_enterpriseid) content.sys_enterpriseid = this.data.sys_enterpriseid;
|
|
|
-
|
|
|
-
|
|
|
_Http.basic({
|
|
|
"id": this.data.userrole == '业务员' ? 20230418142202 : 20221223141802,
|
|
|
content
|
|
|
@@ -251,8 +240,9 @@ Page({
|
|
|
if (init) content.pageNumber = 1;
|
|
|
if (content.pageNumber > content.pageTotal) return;
|
|
|
content.brandids = [this.data.brand.sa_brandid];
|
|
|
- content.where.itemclassid = this.data.cType.itemclassid;
|
|
|
- content.where.tradefield = this.data.tradefieid;
|
|
|
+ content.where.itemclassid = this.data.cType.itemclassid || "";
|
|
|
+ content.where.tradefield = this.data.tradefieid || "";
|
|
|
+ content.where.standards = this.data.standard || '';
|
|
|
if (this.data.sys_enterpriseid) content.sys_enterpriseid = this.data.sys_enterpriseid;
|
|
|
_Http.basic({
|
|
|
"id": 20220926142203,
|