Browse Source

对账 2022年8月26日 sxm

master
[li_she] 3 years ago
parent
commit
3a7dd42a3a
  1. 4
      src/main/java/com/gaotao/modules/toolman/query/PoReceiptQuery.java
  2. 7
      src/main/resources/mapper/toolman/PoReceiptMapper.xml
  3. 2
      src/main/resources/static/js/pda/publicMenu.js
  4. 2
      src/main/resources/static/js/pda_base.js

4
src/main/java/com/gaotao/modules/toolman/query/PoReceiptQuery.java

@ -25,12 +25,10 @@ public class PoReceiptQuery extends PoReceipt {
private String supplierId;
private String supplierName;
private String invoicePrice;
private Date startDate;
private Date endDate;
private Date rStartDate;
private Date rEndDate;
private String status;
private String receiptType;
}

7
src/main/resources/mapper/toolman/PoReceiptMapper.xml

@ -181,7 +181,8 @@
pr.receive_date,pr.receiver,prd.receipt_no
,h.ToolDescription tool_description,pr.supplier_id,s.SupplierName supplier_name, prd.inspector
,prd.inspection_time,
(case when prd.arrive_qty = prd.invoice_qty then '已对账' else '未对账' end) status
(case when prd.arrive_qty = prd.invoice_qty then '已对账' else '未对账' end) status,
(case when charindex('TW',pr.OrderRef1) >0 then '维修入库' else '采购接收' end) receipt_type
FROM po_receipt_detail prd
LEFT JOIN po_receipt pr ON prd.site = pr.site AND pr.receipt_no = prd.receipt_no
LEFT JOIN ToolHeader h ON prd.site = h.site AND prd.part_no = h.ToolID
@ -222,6 +223,10 @@
<if test=" poReceiptQuery.rEndDate != null">
AND prd.inspection_time <![CDATA[ <= ]]> #{ poReceiptQuery.rEndDate}
</if>
<if test=" poReceiptQuery.receiptType != null and poReceiptQuery.receiptType != '' ">
AND (case when charindex('TW',pr.OrderRef1) >0 then '维修入库' else '采购接收' end) = #{ poReceiptQuery.receiptType}
</if>
</where>
ORDER BY pr.receive_date DESC

2
src/main/resources/static/js/pda/publicMenu.js

@ -84,7 +84,7 @@ function processMenuTags(authTree){
authTag += '<div data-v-45aee492="" class="ivu-col ivu-col-span-13 ivu-col-offset-5" style="width: 105%;margin-left: -7px;">';
authTag += '<a data-v-45aee492="" type="button" id="'+id+'" href="'+url+'"';
authTag += 'class="ivu-btn ivu-btn-primary ivu-btn-long" >'; //style = "border-color: #FF7F24;"
authTag += '<span style="font-size: 18px">'+name+'</span>';
authTag += '<span style="font-size: 20px">'+name+'</span>';
authTag += '</a></div></div>';
return authTag;
}

2
src/main/resources/static/js/pda_base.js

@ -135,7 +135,7 @@ function processMenuTags(authTree){
authTag += '<div data-v-45aee492="" class="ivu-col ivu-col-span-13 ivu-col-offset-5" style="width: 105%;margin-left: -7px;">';
authTag += '<a data-v-45aee492="" type="button" id="'+id+'" href="'+url+'"';
authTag += 'class="ivu-btn ivu-btn-primary ivu-btn-long" >'; //style = "border-color: #FF7F24;"
authTag += '<span style="font-size: 18px">'+name+'</span>';
authTag += '<span style="font-size: 20px">'+name+'</span>';
authTag += '</a></div></div>';
return authTag;
}
Loading…
Cancel
Save