代码更新
This commit is contained in:
@@ -2138,6 +2138,7 @@ public class CheckOutBillServiceImpl implements CheckOutBillService {
|
||||
String cust_code = jsonMst.getString("cust_code");
|
||||
|
||||
JSONObject jsonCust = custTab.query("cust_code = '" + cust_code + "'").uniqueResult(0);
|
||||
if (ObjectUtil.isEmpty(jsonCust)) throw new BadRequestException("客户不存在");
|
||||
|
||||
int j = Integer.parseInt((String) whereJson.get("j"));
|
||||
//1.根据出入库主表中 收货单位 查询客户表中的模板路径
|
||||
|
||||
@@ -551,11 +551,10 @@ export default {
|
||||
},
|
||||
printExcel(jo) {
|
||||
checkoutbill.getDisNum({ 'iostorinv_id': jo.iostorinv_id }).then(res => {
|
||||
debugger
|
||||
const j = Math.ceil(res.num / jo.shd_dtl_num)
|
||||
for (let i = 0; i < j; i++) {
|
||||
download('/api/checkoutbill/downloadExcel', { 'iostorinv_id': jo.iostorinv_id, 'j': i }).then(result => {
|
||||
downloadFile(result, '', 'xlsx')
|
||||
downloadFile(result, '发货单', 'xlsx')
|
||||
crud.downloadLoading = false
|
||||
}).catch(() => {
|
||||
crud.downloadLoading = false
|
||||
|
||||
Reference in New Issue
Block a user