Commit 68cdc7a2 by liuyang

2024-07-08 修复组织间公司过滤

parent 4378622a
...@@ -87,6 +87,10 @@ $(function () { ...@@ -87,6 +87,10 @@ $(function () {
return _.filter(options.values, function (item) { return _.filter(options.values, function (item) {
return item["valueField"]===calloutCompanyCode; return item["valueField"]===calloutCompanyCode;
}) })
}else if (allotType === "2" && calloutCompanyCode){
return _.filter(options.values, function (item) {
return item["valueField"]!==calloutCompanyCode;
})
} }
return options.values; return options.values;
}, },
...@@ -106,8 +110,14 @@ $(function () { ...@@ -106,8 +110,14 @@ $(function () {
filter: function (options) { filter: function (options) {
// let calloutCompanyCode = options.model['calloutCompanyCode']; // let calloutCompanyCode = options.model['calloutCompanyCode'];
// let callinCompanyCode = options.model['callinCompanyCode']; // let callinCompanyCode = options.model['callinCompanyCode'];
// let calloutWhCode = options.model['calloutWhCode']; let calloutWhCode = options.model['calloutWhCode'];
// if (callinCompanyCode == calloutCompanyCode){ let allotType = options.model['allotType'];
if (calloutWhCode && allotType === "1"){
return _.filter(whInCodeBox, function (item) {
return item["valueField"] != calloutWhCode;
})
}
//if (callinCompanyCode == calloutCompanyCode){
// return _.filter(whCodeBox, function (item) { // return _.filter(whCodeBox, function (item) {
// return item["param1Field"]===callinCompanyCode && item["valueField"]!=calloutWhCode; // return item["param1Field"]===callinCompanyCode && item["valueField"]!=calloutWhCode;
// }) // })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment