代码更新
This commit is contained in:
@@ -99,6 +99,7 @@ public class SapToLmsServiceImpl implements SapToLmsService {
|
|||||||
jsonMst.put("receiver", json.getString("CONSIGNEE")); // 收货人
|
jsonMst.put("receiver", json.getString("CONSIGNEE")); // 收货人
|
||||||
jsonMst.put("receiptphone", json.getString("TEL_NUMBER")); // 联系电话
|
jsonMst.put("receiptphone", json.getString("TEL_NUMBER")); // 联系电话
|
||||||
jsonMst.put("contractno", json.getString("BSTNK")); // 合同号
|
jsonMst.put("contractno", json.getString("BSTNK")); // 合同号
|
||||||
|
jsonMst.put("cust_code", json.getString("KUNNR")); // 客户
|
||||||
|
|
||||||
// 明细
|
// 明细
|
||||||
JSONObject jsonMater = materTab.query("material_code = '" + json.getString("MATNR") + "'").uniqueResult(0);
|
JSONObject jsonMater = materTab.query("material_code = '" + json.getString("MATNR") + "'").uniqueResult(0);
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ public class VirtualOutServiceImpl implements VirtualOutService {
|
|||||||
|
|
||||||
String box_no = whereJson.getString("box_no"); // 箱号
|
String box_no = whereJson.getString("box_no"); // 箱号
|
||||||
|
|
||||||
JSONArray disArr = disTab.query("box_no = '" + box_no + "' and work_status <> '99'").getResultJSONArray(0);
|
JSONArray disArr = WQL.getWO("PDA_ST_01").addParam("flag", "7").addParam("box_no", box_no).process().getResultJSONArray(0);
|
||||||
for (int i = 0; i < disArr.size(); i++) {
|
for (int i = 0; i < disArr.size(); i++) {
|
||||||
JSONObject jsonDis = disArr.getJSONObject(i);
|
JSONObject jsonDis = disArr.getJSONObject(i);
|
||||||
// 更新状态为完成
|
// 更新状态为完成
|
||||||
|
|||||||
@@ -175,3 +175,23 @@
|
|||||||
ENDSELECT
|
ENDSELECT
|
||||||
ENDQUERY
|
ENDQUERY
|
||||||
ENDIF
|
ENDIF
|
||||||
|
|
||||||
|
IF 输入.flag = "7"
|
||||||
|
QUERY
|
||||||
|
SELECT
|
||||||
|
dis.*
|
||||||
|
FROM
|
||||||
|
ST_IVT_IOStorInvDis dis
|
||||||
|
LEFT JOIN st_ivt_iostorinv mst ON dis.iostorinv_id = mst.iostorinv_id
|
||||||
|
WHERE
|
||||||
|
mst.is_delete = '0'
|
||||||
|
AND mst.io_type = '1'
|
||||||
|
AND dis.work_status <> '99'
|
||||||
|
|
||||||
|
OPTION 输入.box_no <> ""
|
||||||
|
dis.box_no = 输入.box_no
|
||||||
|
ENDOPTION
|
||||||
|
|
||||||
|
ENDSELECT
|
||||||
|
ENDQUERY
|
||||||
|
ENDIF
|
||||||
@@ -66,6 +66,7 @@
|
|||||||
WHERE
|
WHERE
|
||||||
dis.sect_id = '1586913215886004224'
|
dis.sect_id = '1586913215886004224'
|
||||||
AND mst.is_delete = '0'
|
AND mst.is_delete = '0'
|
||||||
|
AND mst.io_type = '1'
|
||||||
AND mst.bill_status <> '99'
|
AND mst.bill_status <> '99'
|
||||||
|
|
||||||
OPTION 输入.box_no <> ""
|
OPTION 输入.box_no <> ""
|
||||||
@@ -117,6 +118,7 @@
|
|||||||
WHERE
|
WHERE
|
||||||
dis.sect_id = '1586913215886004224'
|
dis.sect_id = '1586913215886004224'
|
||||||
AND mst.is_delete = '0'
|
AND mst.is_delete = '0'
|
||||||
|
AND mst.io_type = '1'
|
||||||
AND dis.work_status <> '99'
|
AND dis.work_status <> '99'
|
||||||
|
|
||||||
OPTION 输入.box_no <> ""
|
OPTION 输入.box_no <> ""
|
||||||
|
|||||||
@@ -550,8 +550,12 @@ export default {
|
|||||||
return strStyle + arr.join('')
|
return strStyle + arr.join('')
|
||||||
},
|
},
|
||||||
printExcel(jo) {
|
printExcel(jo) {
|
||||||
|
if (jo.shd_dtl_num === '') {
|
||||||
|
return this.crud.notify('客户为空!', CRUD.NOTIFICATION_TYPE.INFO)
|
||||||
|
}
|
||||||
checkoutbill.getDisNum({ 'iostorinv_id': jo.iostorinv_id }).then(res => {
|
checkoutbill.getDisNum({ 'iostorinv_id': jo.iostorinv_id }).then(res => {
|
||||||
const j = Math.ceil(res.num / jo.shd_dtl_num)
|
const j = Math.ceil(res.num / jo.shd_dtl_num)
|
||||||
|
debugger
|
||||||
for (let i = 0; i < j; i++) {
|
for (let i = 0; i < j; i++) {
|
||||||
download('/api/checkoutbill/downloadExcel', { 'iostorinv_id': jo.iostorinv_id, 'j': i, 'pageNum': j }).then(result => {
|
download('/api/checkoutbill/downloadExcel', { 'iostorinv_id': jo.iostorinv_id, 'j': i, 'pageNum': j }).then(result => {
|
||||||
downloadFile(result, '发货单', 'xlsx')
|
downloadFile(result, '发货单', 'xlsx')
|
||||||
|
|||||||
Reference in New Issue
Block a user