Explorar el Código

自动调用问题

MaiXinRong hace 1 año
padre
commit
0d0a6ebacc
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      app/public/js/stage.js

+ 4 - 1
app/public/js/stage.js

@@ -3907,7 +3907,10 @@ $(document).ready(() => {
                             const curChange = SpreadJsObj.getSelectObject(self.changeSheet);
                             const changeBills = SpreadJsObj.getSelectObject(self.changeBillsSheet);
                             const billsPos = self.findBillsPos(curChange, changeBills);
-                            if (!billsPos) toastr.warning('无可调用的清单或计量单元');
+                            if (!billsPos) {
+                                toastr.warning('无可调用的清单或计量单元');
+                                return;
+                            }
 
                             const data = { autoType: 'bills', bills: [{ ...billsPos, cid: changeBills.cid, cbid: changeBills.id }] };
                             postData(window.location.pathname + '/auto-use-change', data, function(result) {