|
@@ -1389,7 +1389,9 @@ $(document).ready(() => {
|
|
|
function setCurBillSourceList(mb_id, ms_id = null) {
|
|
|
const showSourceList = [];
|
|
|
if (mb_id) {
|
|
|
- const list = _.filter(materialListData2, { mb_id, ms_id, is_join: [1, 2] });
|
|
|
+ const list = _.filter(materialListData2, function (item) {
|
|
|
+ return item.mb_id === mb_id && item.ms_id === ms_id && (item.is_join === 1 || item.is_join === 2);
|
|
|
+ });
|
|
|
console.log(list);
|
|
|
if (list.length > 0) {
|
|
|
for (const l of list) {
|