|  | @@ -221,8 +221,12 @@ $(document).ready(() => {
 | 
												
													
														
															|  |                  }
 |  |                  }
 | 
												
													
														
															|  |              });
 |  |              });
 | 
												
													
														
															|  |              // 过滤可变更数量为0
 |  |              // 过滤可变更数量为0
 | 
												
													
														
															|  | -            $('#customCheckDisabled').click(function () {
 |  | 
 | 
												
													
														
															|  | -                self._filterEmptyChange(!this.checked);
 |  | 
 | 
												
													
														
															|  | 
 |  | +            $('#filterEmpty').click(function () {
 | 
												
													
														
															|  | 
 |  | +                self._filterChange(!this.checked, $('#matchPos')[0].checked);
 | 
												
													
														
															|  | 
 |  | +            });
 | 
												
													
														
															|  | 
 |  | +            // 匹配编号
 | 
												
													
														
															|  | 
 |  | +            $('#matchPos').click(function () {
 | 
												
													
														
															|  | 
 |  | +                self._filterChange(!$('#filterEmpty')[0].checked, this.checked);
 | 
												
													
														
															|  |              });
 |  |              });
 | 
												
													
														
															|  |              // 展开收起 变更令详细信息
 |  |              // 展开收起 变更令详细信息
 | 
												
													
														
															|  |              $('#show-bgl-detail').bind('click', function () {
 |  |              $('#show-bgl-detail').bind('click', function () {
 | 
												
											
												
													
														
															|  | @@ -341,21 +345,28 @@ $(document).ready(() => {
 | 
												
													
														
															|  |                  SpreadJsObj.loadSheetData(sheet, SpreadJsObj.DataType.Data, this.changes);
 |  |                  SpreadJsObj.loadSheetData(sheet, SpreadJsObj.DataType.Data, this.changes);
 | 
												
													
														
															|  |                  sheet.setSelection(0, 0, 1, 1);
 |  |                  sheet.setSelection(0, 0, 1, 1);
 | 
												
													
														
															|  |                  this._loadChangeDetail(this.changes[0]);
 |  |                  this._loadChangeDetail(this.changes[0]);
 | 
												
													
														
															|  | -                this._filterEmptyChange(!$('#customCheckDisabled')[0].checked);
 |  | 
 | 
												
													
														
															|  | 
 |  | +                this._filterChange(!$('#filterEmpty')[0].checked, $('#matchPos')[0].checked);
 | 
												
													
														
															|  |              } else {
 |  |              } else {
 | 
												
													
														
															|  |                  toast('查询变更令有误,请刷新页面后重试', 'warning');
 |  |                  toast('查询变更令有误,请刷新页面后重试', 'warning');
 | 
												
													
														
															|  |              }
 |  |              }
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
													
														
															|  | -        _filterEmptyChange(isFilter) {
 |  | 
 | 
												
													
														
															|  | 
 |  | +        _filterChange(filterEmpty, matchPosName) {
 | 
												
													
														
															|  |              for (const c of this.changes) {
 |  |              for (const c of this.changes) {
 | 
												
													
														
															|  | -                c.visible = isFilter ? (c.vamount && !checkZero(c.vamount)) : true;
 |  | 
 | 
												
													
														
															|  | 
 |  | +                const filterVisible = filterEmpty ? (c.vamount && !checkZero(c.vamount)) : true;
 | 
												
													
														
															|  | 
 |  | +                const matchVisible = matchPosName && this.callData.pos ? c.b_detail === this.callData.pos.name : true;
 | 
												
													
														
															|  | 
 |  | +                c.visible = filterVisible && matchVisible;
 | 
												
													
														
															|  |              }
 |  |              }
 | 
												
													
														
															|  |              SpreadJsObj.refreshTreeRowVisible(this.spread.getActiveSheet());
 |  |              SpreadJsObj.refreshTreeRowVisible(this.spread.getActiveSheet());
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
													
														
															|  | -        loadChanges(data, code) {
 |  | 
 | 
												
													
														
															|  | 
 |  | +        loadChanges(data) {
 | 
												
													
														
															|  |              this.callData = data;
 |  |              this.callData = data;
 | 
												
													
														
															|  | 
 |  | +            if (this.callData.pos) {
 | 
												
													
														
															|  | 
 |  | +                $('#matchPos').parent().show();
 | 
												
													
														
															|  | 
 |  | +            } else {
 | 
												
													
														
															|  | 
 |  | +                $('#matchPos').parent().hide();
 | 
												
													
														
															|  | 
 |  | +            }
 | 
												
													
														
															|  |              const self = this;
 |  |              const self = this;
 | 
												
													
														
															|  | -            $('#b-code-hint').text('当前变更清单:' + code);
 |  | 
 | 
												
													
														
															|  | 
 |  | +            $('#b-code-hint').text('当前变更清单:' + data.bills.b_code);
 | 
												
													
														
															|  |              postData(window.location.pathname + '/valid-change', data, function (result) {
 |  |              postData(window.location.pathname + '/valid-change', data, function (result) {
 | 
												
													
														
															|  |                  self.changes = result.changes;
 |  |                  self.changes = result.changes;
 | 
												
													
														
															|  |                  self.useChanges = result.useChanges;
 |  |                  self.useChanges = result.useChanges;
 | 
												
											
												
													
														
															|  | @@ -385,7 +396,7 @@ $(document).ready(() => {
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
													
														
															|  |      };
 |  |      };
 | 
												
													
														
															|  |      ledgerSpreadSetting.imageClick = function (data) {
 |  |      ledgerSpreadSetting.imageClick = function (data) {
 | 
												
													
														
															|  | -        changesObj.loadChanges({bills: data}, data.b_code);
 |  | 
 | 
												
													
														
															|  | 
 |  | +        changesObj.loadChanges({bills: data});
 | 
												
													
														
															|  |      };
 |  |      };
 | 
												
													
														
															|  |      //
 |  |      //
 | 
												
													
														
															|  |      SpreadJsObj.initSheet(slSpread.getActiveSheet(), ledgerSpreadSetting);
 |  |      SpreadJsObj.initSheet(slSpread.getActiveSheet(), ledgerSpreadSetting);
 | 
												
											
												
													
														
															|  | @@ -409,7 +420,7 @@ $(document).ready(() => {
 | 
												
													
														
															|  |      };
 |  |      };
 | 
												
													
														
															|  |      posSpreadSetting.imageClick = function (data) {
 |  |      posSpreadSetting.imageClick = function (data) {
 | 
												
													
														
															|  |          const node = SpreadJsObj.getSelectObject(slSpread.getActiveSheet());
 |  |          const node = SpreadJsObj.getSelectObject(slSpread.getActiveSheet());
 | 
												
													
														
															|  | -        changesObj.loadChanges({pos: data}, node.b_code);
 |  | 
 | 
												
													
														
															|  | 
 |  | +        changesObj.loadChanges({bills: node, pos: data});
 | 
												
													
														
															|  |      };
 |  |      };
 | 
												
													
														
															|  |      SpreadJsObj.initSheet(spSpread.getActiveSheet(), posSpreadSetting);
 |  |      SpreadJsObj.initSheet(spSpread.getActiveSheet(), posSpreadSetting);
 | 
												
													
														
															|  |  
 |  |  
 |